/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: linear-gradient(to bottom,
      #000000 0%,
      #3b0a2a 40%,
      #d81b75 100%);
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
}

main {
  width: 100%;
  max-width: 500px;
}


/* Tipografia */

h1 {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
  font-size: 35px;
}


/* Telas */

#quiz-screen,
#game-over {
  display: none;
}

#play,
#quiz-screen,
#game-over {
  width: 100%;
  max-width: 500px;
  padding: 32px;
  border-radius: 16px;
  background: transparent;
}

#question-box {
  border: 1px solid white;
  padding: 30px;
}


/* Home */

#play {
  text-align: center;
}

#play h2 {
  margin: 50px 0 30px;
}


/* Imagens */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.logo-quiz {
  max-width: 50%;
  margin: 0 auto 20px;
}

.icones {
  width: 40px;
  height: 40px;
}



/* Botões */

.play-button,
#restart-button {
  padding: 20px 50px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  border: 2px solid #fff;
  background-color: rgba(0, 0, 0, 0.15);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.play-button:hover,
#restart-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
  animation: tremida-diagonal 0.25s ease-in-out;
}

@keyframes tremida-diagonal {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-0.6px, 0.6px);
  }

  100% {
    transform: translate(0, 0);
  }
}


/* Barra de status */

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 30px 0;
  flex-wrap: wrap;
}

.status-bar p {
  display: flex;
  align-items: center;
  gap: 6px;
}


/* Pergunta */

#question-title {
  background: #fff;
  color: #000;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 20px;
}

#sentence {
  text-align: center;
  font-size: 18px;
  margin-bottom: 24px;
}


/* Opções */

#options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.option::before {
  content: attr(data-index);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3ba3e6;
  color: #fff;
  font-weight: 600;
}

.option.correct {
  background: #22c55e;
  color: #fff;
}

.option.wrong {
  background: #ef4444;
  color: #fff;
}


/* Timer */

#timer {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}

.timer-danger {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  50% {
    background: #b91c1c;
  }
}


/* Game over */

#game-over {
  text-align: center;
}

#game-over p {
  margin: 50px 0;
  font-size: 20px;
}


/* Mobile */

@media (max-width: 480px) {

  #play,
  #quiz-screen,
  #game-over {
    padding: 20px;
  }

  .status-bar p {
    font-size: 14px;
  }

  #quiz-screen.logo-quiz {
    padding: 50px;
  }
}

@media (max-width: 800px) {
  #quiz-screen {
    transform: translateY(-30px);
  }

  .logo-quiz {
    margin-top: 0;
    margin-bottom: 12px;
  }
}