
/* Reset and full-screen */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;      /* allow vertical scroll */
  overflow-y: auto;        /* enable scroll */
  background: white;
  color: #fff;
}

html, body, canvas {
	touch-action: none;
	-o-animation-delay: none;
}


/* Prevent blocking touches globally, allow scroll if needed */
canvas {
  touch-action: none; /* Required for Construct gameplay */
  display: block;
}

/* Not supported message */
#notSupportedWrap {
  margin: 2em auto 1em auto;
  width: 75%;
  max-width: 45em;
  border: 2px solid #aaa;
  border-radius: 1em;
  padding: 2em;
  background-color: #f0f0f0;
  font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
  color: black;
}

#notSupportedTitle { font-size: 1.8em; }
.notSupportedMessage { font-size: 1.2em; }
.notSupportedMessage em { color: #888; }

/* Header for game */
#gameHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(90deg, #8DC63F, #A8E06E);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
  z-index: 1000; /* below canvas but still clickable for buttons */
  font-family: Arial, sans-serif;
}

/* Header columns */
.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
}
.header-left { gap: 10px; }
.header-center { justify-content: center; gap: 8px; flex: 1; }
.header-right { justify-content: flex-end; gap: 12px; flex: 1; }

/* Logo */
.ethiologo { height: 32px; }
.game-title { font-size: 18px; font-weight: 700; color: white; }

/* Coin shine animation */
.coin { height: 30px; animation: coinShine 2.5s linear infinite; }
@keyframes coinShine { 0% { filter: brightness(1); } 50% { filter: brightness(1.6); } 100% { filter: brightness(1); } }

/* Score */
.score-text { font-size: 20px; font-weight: 700; color: white; }
.score-anim { position: absolute; opacity: 0; font-size: 18px; font-weight: 700; color: #FFF7C8; pointer-events: none; transform: translateY(10px); transition: all .4s ease-out; }

/* Header buttons/icons */
.icon-btn { height: 26px; cursor: pointer; transition: 0.2s; }
.icon-btn:hover { transform: scale(1.15); }

/* Language dropdown */
.lang-box .btn { padding: 4px 10px; font-size: 14px; border-radius: 10px; }

/* Add spacing for header so it doesn't block the canvas */
body::before { content: ""; display: block; height: 70px; }


#notSupportedWrap {
	margin: 2em auto 1em auto;
	width: 75%;
	max-width: 45em;
	border: 2px solid #aaa;
	border-radius: 1em;
	padding: 2em;
	background-color: #f0f0f0;
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
	color: black;
}

#notSupportedTitle {
	font-size: 1.8em;
}

.notSupportedMessage {
	font-size: 1.2em;
}

.notSupportedMessage em {
	color: #888;
}

/* bbcode styles */
.bbCodeH1 {
	font-size: 2em;
	font-weight: bold;
}

.bbCodeH2 {
	font-size: 1.5em;
	font-weight: bold;
}

.bbCodeH3 {
	font-size: 1.25em;
	font-weight: bold;
}

.bbCodeH4 {
	font-size: 1.1em;
	font-weight: bold;
}

.bbCodeItem::before {
	content: " • ";
}

/* screen reader text */
.c3-screen-reader-text {
	position: absolute;
	width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}