/* Flight Simulator: the HUD, the bars, the start / game-over overlay with the language switcher
   and the compass line over the canvas (index.html). */

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #0d1b2a;
  font-family: 'Segoe UI', Arial, sans-serif;
  cursor: default;
}
canvas {
  display: block;
}
#hud {
  position: fixed;
  top: 12px;
  left: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-size: 18px;
  line-height: 1.5;
  pointer-events: none;
  user-select: none;
}
#hud .score {
  font-size: 26px;
  font-weight: bold;
}
#bars {
  position: fixed;
  top: 12px;
  right: 12px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  text-align: right;
  font-size: 14px;
  pointer-events: none;
  user-select: none;
}
.barBg {
  width: 160px;
  height: 14px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 7px;
  overflow: hidden;
  margin: 2px 0 10px auto;
}
.barFill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #29b6f6);
  transition: width 0.1s linear;
}
#overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  text-align: center;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}
#overlay h1 {
  font-size: 42px;
  margin: 0 0 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
#overlay p {
  font-size: 18px;
  max-width: 560px;
  line-height: 1.6;
  margin: 6px 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
#overlay .btn {
  margin-top: 20px;
  padding: 14px 34px;
  font-size: 20px;
  background: #29b6f6;
  border: none;
  border-radius: 8px;
  color: #06202b;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
#overlay .btn:hover {
  background: #4fc3f7;
}
#compass {
  position: fixed;
  bottom: 205px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  font-size: 15px;
  pointer-events: none;
  user-select: none;
  text-align: center;
}
/* the mouse cursor, hidden in fullscreen while it is still */
html.cursor-hidden, html.cursor-hidden * { cursor: none !important; }

/* the language switcher: a flag per language, over the start and game-over screens */
.lang {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
}
.lang[hidden] { display: none; }
.lang button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #9fb0c3;
  font: 600 12px 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang button:hover { background: rgba(255,255,255,0.08); color: #e8eef5; }
.lang button[aria-pressed="true"] { background: rgba(255,255,255,0.16); color: #e8eef5; }
.lang img {
  width: 21px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
  opacity: 0.6;
}
.lang button:hover img,
.lang button[aria-pressed="true"] img { opacity: 1; }
#panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the sound switch under the start and game-over panels, in the switcher's style */
.soundBtn {
  margin-top: 18px;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  color: #9fb0c3;
  font: 600 12px 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.soundBtn:hover { color: #e8eef5; background: rgba(30, 48, 68, 0.9); }
.soundBtn[aria-pressed="true"] { color: #e8eef5; }
