body {
  font-family: "Montserrat", sans-serif;
  background-color: #d4af37;
  color: white;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Garante altura mínima de 100% da tela */
}

/* Logo centralizada */
.logo-container {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  background: #0056b3; /* Fundo para destacar a logo */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Sombra para separação */
  z-index: 10;
}

.logo-container img {
  max-width: 10%; /* Ajusta o tamanho em dispositivos menores */
  height: auto;
}

@media (max-width: 768px) {
  .logo-container img {
    max-width: 40%; /* Logo maior em dispositivos maiores */
  }
}

.container {
  text-align: center;
  background: #5B4636;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 600px;
  flex: 1; /* Faz o container crescer para ocupar o espaço restante */
  margin: 20px auto; /* Centraliza horizontalmente */
}
h1 {
  color: #d4af37;
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: bold;
}

.question {
  font-size: 1em;
  margin-bottom: 20px;
  font-weight: bold;
}

.options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
background: linear-gradient(145deg, #a1866f, #5B4636);
  color: white;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  position: relative;
}

.options button.selected {
  border-color: black;
  background: linear-gradient(145deg, #e0c28c, #c5a352);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.options button:hover {
  background-color: #d4af37;
  transform: scale(1.02);
}

.options button::before {
  content: attr(data-letter);
  font-weight: bold;
  font-size: 20px;
  margin-right: 10px;
  background: #d4af37;
  border-radius: 5px;
  padding: 5px;
  width: 30px;
  text-align: center;
}

#next-btn {
  margin: 0 auto; /* Centraliza o botão */
  display: block;
  padding: 10px 20px;
  font-size: 18px;
  background-color: #d4af37;
  color: #5B4636;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#next-btn:hover {
  background-color: #ffcc33;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  text-align: center;
  font-weight: bold;
}
.popup button {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #d4af37;
  color: #5B4636;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
}
.popup button:hover {
  background-color: #ffcc33;
}

.block-message {
  color: #0056b3;
  font-weight: bold;
  margin-top: 20px;
}

#block-message-timer {
  background-color: #f8f9fa; /* Cor de fundo clara */
  border: 2px solid #ff4d4d; /* Bordas com destaque */
  border-radius: 10px; /* Arredondamento */
  padding: 20px;
  width: 90%;
  max-width: 400px;
  margin: 20px auto; /* Centraliza o popup */
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
}

#block-message-timer p {
  margin: 10px 0;
  font-size: 1rem;
  color: #333; /* Texto padrão */
  line-height: 1.5;
}

#block-message-timer p:nth-child(1) {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0056b3; /* Destaque para o título */
}

#block-message-timer p:nth-child(2) {
  color: #555; /* Texto secundário */
}

#block-message-timer p:nth-child(3) {
  color: #0056b3; /* Destaque para a dica */
  font-weight: bold;
}

#block-timer {
  color: #ffcc00; /* Cor do cronômetro */
  font-size: 2rem;
  font-weight: bold;
  margin-top: 20px;
  animation: pulse-timer 1s infinite; /* Animação de pulsar */
}

/* Animação de pulsar */
@keyframes pulse-timer {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.popup,
.block-message {
  background: #fff;
  color: #333;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  position: absolute;
}

.timer {
  color: #ff0000;
  font-weight: bold;
  font-size: 1.2em;
}
.hidden {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.hidden {
  display: none;
}

#block-message-timer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #333333;
  padding: 30px;
  width: 80%;
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  z-index: 1001;
  animation: fadeIn 0.3s ease-in-out;
}

#block-message-timer p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ff4c4c; /* Vermelho para chamar atenção */
}

#block-message-timer .timer {
  font-size: 24px;
  font-weight: bold;
  color: #ff0000; /* Vermelho vibrante para o cronômetro */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -55%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.challenge-header {
  display: flex;
  justify-content: center; /* Centraliza o timer horizontalmente */
  align-items: center; /* Centraliza verticalmente */
  margin-bottom: 20px;
}

#timer-container {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  text-align: center; /* Garante que o texto interno esteja centralizado */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer {
  font-size: 1.5em;
  font-weight: bold;
  color: #00ff00;
  animation: pulse-green 2s infinite;
  margin-top: 5px; /* Adiciona espaço entre o texto "Tempo restante" e o cronômetro */
}

@keyframes pulse-green {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pulse-red {
  0% {
    color: #ff0000;
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

#hint-btn {
  background-color: #d4af37;
  color: #5B4636;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  margin-right: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#hint-btn:hover {
  background-color: #ffcc33;
}

.navigation {
  display: flex;
  align-items: center; /* Alinha verticalmente ao centro */
  justify-content: space-between; /* Espaço entre os itens */
  margin-top: 20px;
  position: relative;
}

#challenge-progress {
  font-size: 1em;
  color: #ffffff;
  margin-left: -50px;
}

#reward-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8); /* Inicia centralizado e reduzido */
  z-index: 1000;
  border-radius: 12px; /* Bordas mais suaves */
  width: 90%; /* Largura para dispositivos menores */
  max-width: 400px; /* Limita a largura em desktops */
  padding: 20px;
  text-align: center;
  opacity: 0; /* Invisível inicialmente */
  visibility: hidden; /* Não interagível */
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Suaviza transformações */
}

/* Quando o modal for exibido */
#reward-modal.show {
  animation: modalFadeIn 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* Animação suave */
  opacity: 1; /* Torna visível */
  visibility: visible; /* Permite interação */
  transform: translate(-50%, -50%) scale(1); /* Cresce suavemente até o tamanho normal */
}

#reward-modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Define a animação de entrada */
@keyframes modalFadeIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  #reward-modal {
    width: 60%; /* Ajusta a largura para desktops */
    max-width: 500px; /* Modal maior em telas maiores */
    padding: 30px; /* Mais espaçamento interno */
  }
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}

#reward-modal.closing-animation {
  opacity: 0;
  transform: translate(-50%, -60%);
}

.hidden {
  display: none;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}

.user-profile {
  text-align: center;
  align-items: center;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 15px;
}

.profile-picture {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1.7px solid #000;
  margin-right: 15px;
  object-fit: cover;
}


.user-info p {
  margin: 5px 0;
  color: #333;
}

.status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* espaço entre o ícone e o texto */
  color: green;
  font-weight: bold;
  margin-top: 8px;
}


.status-icon {
  width: 20px;
  height: 20px;
}

#instructions {
  margin-bottom: 20px;
}
