/* =====================================================
   BASE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
}

.hidden {
  display: none !important;
}

/* =====================================================
   UTILITÁRIOS / PADRÕES
===================================================== */
button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
}

.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fundo {
  background: url('assets/images/fundo-body.jpg') center / cover no-repeat;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.screen {
  position: fixed;
  inset: 0;
}

/* =====================================================
  MENU
===================================================== */

#menuScreen {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.menuBox {
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.menuBox button {
  background-color: #23f4f0;
  font-size: 18px;
  padding: 12px 24px;
}

/* =====================================================
   TEXTOS
===================================================== */
.intro {
  font-size: 16px;
}

.destaque {
  font-size: 18px;
  font-weight: bold;
  color: #2c7be5;
  margin: 16px 0;
}

/* =====================================================
GAME
===================================================== */

#levelTitle {
  margin-bottom: 10px;
  margin-top: 2px;
}
#gameScreen {
  width: 100vw;
  height: 100vh;
  max-height: 100dvh;
  max-width: 100dvw;
} 

#gameImages {
  position: relative; 
  display: flex;
  justify-self: center;
  align-items: center;
  flex-direction: column;
  padding-bottom: 20px;
  margin-bottom: 0;
}
@media (max-width: 768px), (max-height: 700px) {
  #gameScreen {
    overflow-x: auto;
    overflow-y: auto;
  }
}

.box-imagem {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 750px;
}

.box-imagem img {
  width: 100%;
  height: auto;
}

#feedback {
  position: absolute;
  top: calc(100% - 120px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.95);
  color: #241717;
  box-shadow: 0px -6px 20px 0px rgb(0 0 0 / 88%);
  border-radius: 10px;
  padding: 3px 8px;
}

/* =====================================================
   BOTÃO VOLTAR
===================================================== */
#restartBtn {
  position: absolute;
  top: 12px;
  left: 12px;

  z-index: 10;
  padding: 6px 12px;
  border-radius: 8px;
}

#restartBtn:hover {
  transform: scale(1.05);
}

#restartBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#restartBtn:disabled:hover {
  transform: none;
}

/* =====================================================
ANSWER BUTTONS
===================================================== */
#answerButtons {
  margin-top: 130px;
  width: min(600px, 95%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
}

.answerBtn {
  padding: 8px 14px;
  font-size: 16px;
  background: #8b918c;
  color: rgb(255, 255, 255);
  transition: transform 0.1s, background 0.2s;
  box-shadow: 12px 12px 15px rgb(0 0 0 / 88%);
  border-radius: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .answerBtn:hover {
    background: #1536dc;
    transform: scale(1.1);
  }
}
.answerBtn:active {
  transform: scale(0.95);
}

.wrongAnswer {
  background: rgba(227, 10, 10, 1);
}

.correctAnswer {
  background: rgba(10, 227, 33, 1);
}

/* =====================================================
   CONFETTI
===================================================== */
#confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 21;
  /* atrás da box */
  pointer-events: none;
  background: transparent;
}


/* =====================================================
  END GAME
===================================================== */
#endGame {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.1);
  z-index: 20;
}

.endGameBox {
  position: relative;
  z-index: 22;
  background: rgba(255, 255, 255, 0.5);
  padding: 40px 0 50px 0;
  width: 500px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.endGameBox h1,
h3 {
  margin: 10px 0 0 0;
}

.endGameBox button {
  margin-top: 35px;
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.endGameBox button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.endGameBox button:active {
  transform: scale(0.98);
}

.endGameBox button::after {
  content: " 🎉";
}