/* -------------------- */
/* Global Styles        */
/* -------------------- */
body {
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

/* Hide cursor only while playing */
body.playing {
  cursor: none;
}

/* -------------------- */
/* Menu                 */
/* -------------------- */
#mainMenu {
  position: fixed;
  inset: 0;
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#mainMenu h1 {
  margin-bottom: 20px;
}

#mainMenu button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#mainMenu label {
  color: white;
  margin-top: 10px;
}

/* Slider */
#mainMenu input[type="range"] {
  width: 200px;
  margin-top: 10px;
  cursor: pointer;
}

#mainMenu.hidden { display: none; }

/* -------------------- */
/* HUD                  */
/* -------------------- */
#hud.hidden {
  display: none;
}

#score {
  position: fixed;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 36px;
  font-family: monospace;
  transition: color 0.3s ease;
}

#timer {
  position: fixed;
  top: 10px;
  right: 10px;
  color: white;
  font-size: 36px;
  font-family: monospace;
}

/* -------------------- */
/* Crosshair            */
/* -------------------- */
#crosshair {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  pointer-events: none;
  user-select: none;
}

/* -------------------- */
/* Click to Begin       */
/* -------------------- */
#clickToBegin {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  user-select: none;
  cursor: pointer;
}

#clickToBegin.hidden {
  display: none;
}

/* -------------------- */
/* Finished Screen      */
/* -------------------- */
#finished {
  position: fixed;
  inset: 0;
  background: #111;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#finished.hidden {
  display: none;
}

#finished button {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}