body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #021733;
    color: white;
    text-align: center;
}

.screen {
    display: none;
    padding: 40px;
}

.screen.active {
    display: block;
}

#start-screen h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

button {
    cursor: pointer;
    padding: 12px 20px;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    background: #1565c0;
    color: white;
    transition: 0.2s;
}

button:hover:not(:disabled) {
    background: #0d47a1;
}

button:disabled {
    background: #444;
    cursor: not-allowed;
}

/* Layout do jogo */
#game-layout {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

#left-side {
    width: 65%;
}

#right-side {
    width: 25%;
    border-left: 2px solid #0d47a1;
    padding-left: 20px;
}

/* Exibição do prêmio atual */
#current-prize-box {
    padding: 15px;
    margin-bottom: 20px;
    background: #0d47a1;
    font-size: 20px;
    border-radius: 6px;
}

/* Ajudas */
#helpers {
    margin-bottom: 20px;

}

#helpers button {
    margin: 5px;
    background: #ff9800;
        color: black;
}

#helpers button:hover:not(:disabled) {
    background: #f57c00;
}

#helpers button.used {
    background: #5a5a5a;
}

/* Caixa da pergunta */
#question-box {
    background: #082a54;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    min-height: 80px;
    font-size: 20px;
}

/* Respostas */
#answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.answer-btn {
    background: #1e88e5;
    padding: 15px;
    border-radius: 6px;
    font-size: 16px;
}

.answer-btn.correct {
    background: #2e7d32 !important;
}

.answer-btn.wrong {
    background: #c62828 !important;
}

.answer-btn.hidden {
    visibility: hidden;
}

/* Botão próximo */
#next-container {
    margin-top: 20px;
}

/* Lista de prêmios */
#prize-list {
    text-align: left;
    font-size: 16px;
}

.prize-item {
    padding: 5px 0;
}

/* .prize-item:nth-child(12) {
    font-weight: bold;
    color: #ffea00;
} */

.prize-item.active {
    font-weight: bold;
    color: #ffea00;
}

/* Tela final */
#end-screen p {
    font-size: 20px;
    margin-bottom: 20px;
}



.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #021733;
  padding: 20px 30px;
  border-radius: 12px;
  color: white;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-around;
}

.modal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #f1c40f;
  color: #021733;
  font-weight: bold;
}

.modal-buttons button:hover {
  background: #d4ac0d;
}

#timer-display {
    font-size: 24px;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 15px;
}

/* Modal geral */
.modal2 {
  display: none; /* escondido inicialmente */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  justify-content: center;
  align-items: center;
}

/* Conteúdo interna */
.modal-content2 {
  padding: 25px;
  border-radius: 12px;
  width: 85%;
  max-width: 380px;
  animation: pop 0.25s ease-out;
  background: #021733;
  padding: 20px 30px;
  color: white;
  text-align: left;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}


/* linhas com porcentagens */
.academic-line {
  margin: 12px 0;
  font-size: 18px;
  font-weight: bold;
}

.academic-bar {
  height: 10px;
  border-radius: 4px;
  background: #4a90e2;
  margin-top: 4px;
}

/* Botão de fechar */
.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.close:hover {
  color: #000;
}

.answer-btn.correct {
    animation: pulse 0.4s ease-in-out 2;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}



@keyframes pop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Responsivo */
@media (max-width: 800px) {
    #game-layout {
        flex-direction: column;
    }
    #left-side, #right-side {
        width: 100%;
    }
    #right-side {
        border-left: none;
        border-top: 2px solid #0d47a1;
        padding-top: 20px;
    }
}
