/* ========================================= */
/* QUIZ PAGE */
/* ========================================= */

.quiz-page {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

/* ========================================= */
/* TITULOS */
/* ========================================= */

.page-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 50px;
}

.quiz-title {
  text-align: center;
  font-size: 34px;
  margin-bottom: 40px;
}

.quiz-subtitle {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-bottom: 60px;
}

/* ========================================= */
/* CARD INICIAL */
/* ========================================= */

.quiz-start-card {
  display: flex;
  align-items: center;
  gap: 30px;

  background: #ffffff;
  padding: 40px;
  transition: 0.4s ease;

  border: 3px solid #06185a;
  margin-bottom: 30px;
}

/* ========================================= */
/* ÁREA DOS CARDS */
/* ========================================= */

.quiz-cards-area {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hidden {
  display: none;
}

/* ========================================= */
/* TRANSIÇÃO SUAVE */
/* ========================================= */

.fade-screen {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-screen.hidden {
  display: none;
}

.fade-screen.fade-out {
  opacity: 0;
  transform: translateY(30px);
}

.fade-screen.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/* IMAGEM */
/* ========================================= */

.quiz-start-image {
  flex: 1;
}

.quiz-start-image img {
  width: 80%;
  border-radius: 20px;
  object-fit: cover;
}

/* ========================================= */
/* TEXTO */
/* ========================================= */

.quiz-start-content {
  flex: 1;
}

.quiz-start-content h2 {
  font-size: 38px;
  color: #06185a;
  margin-bottom: 20px;
  line-height: 1.2;
}

.quiz-start-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 35px;
}

/* ========================================= */
/* BOTÕES */
/* ========================================= */

.quiz-main-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 32px;

  border-radius: 40px;

  font-size: 16px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border 0.25s ease;

  text-decoration: none;
}

/* BOTÃO PRINCIPAL */

.quiz-main-button {
  padding: 16px 32px;
  border-radius: 40px;
  border: 2px solid #2f49ff;
  background: none;
  color: #2f49ff;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}

.quiz-main-button:hover {
  background: #2f49ff;
  color: #fff;
}

/* BOTÃO SECUNDÁRIO */

.secondary-button {
  border: 2px solid #000000;
  color: #000000;
  background: transparent;
}

.secondary-button:hover {
  background: #000000;
  color: white;
}

/* ========================================= */
/* LOADING */
/* ========================================= */

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  text-align: center;
}

.loading-screen h2 {
  margin-top: 30px;
  font-size: 32px;
  color: #06185a;
}

.loading-screen p {
  margin-top: 12px;
  color: #666;
  font-size: 16px;
}

/* ========================================= */
/* SPINNER */
/* ========================================= */

.spinner {
  width: 75px;
  height: 75px;

  border-radius: 50%;

  border: 7px solid #06185a52;
  border-top: 7px solid #06185a;

  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================= */
/* QUIZ CONTAINER */
/* ========================================= */

.quiz-container {
  max-width: 850px;
  margin: auto;
}

/* ========================================= */
/* TOPO */
/* ========================================= */

.quiz-top {
  margin-bottom: 35px;
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;

  font-weight: 600;
  color: #06185a;
}

/* ========================================= */
/* BARRA */
/* ========================================= */

.progress-bar {
  width: 100%;
  height: 14px;

  background: #06185a52;

  border-radius: 30px;

  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;

  background: linear-gradient(90deg, #06185a, #06185a);

  border-radius: 30px;

  transition: width 0.4s ease;
}

/* ========================================= */
/* CARD DA QUESTÃO */
/* ========================================= */

.question-card {
  background: #fff;

  padding: 45px;

  border: 3px solid #06185a;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* ========================================= */
/* TEXTO */
/* ========================================= */

.question-text {
  font-size: 32px;
  line-height: 1.4;

  color: #06185a;

  margin-bottom: 40px;
}

/* ========================================= */
/* RESPOSTAS */
/* ========================================= */

.answers-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.answer-btn {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 20px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #2f49ff;
  background: none;
  color: #2f49ff;
  transition: all .3s ease;
}

.answer-btn:hover {
  background: #2f49ff;
  color: #fff;
}

.answer-btn.correct {
  background: #1db954;
  border-color: #1db954;
  color: #fff;
}

.answer-btn.selected {
  background: #2f49ff;
  border-color: #2f49ff;
  color: #fff;
}

.answer-btn.wrong {
  background: #ff3b3b;
  border-color: #ff3b3b;
  color: #fff;
}

.answer-btn.disabled {
  pointer-events: none;
  opacity: 0.85;
}

/* ========================================= */
/* TRANSIÇÕES */
/* ========================================= */

.question-fade-out {
  opacity: 0;
  transform: translateY(20px);
}

.question-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/* RESULTADO */
/* ========================================= */

.result-screen {
  display: flex;
  align-items: center;
  gap: 30px;
  background: white;
  border: 3px solid #06185a;
  padding: 45px;

}

/* ========================================= */
/* IMAGEM RESULTADO */
/* ========================================= */

.result-image {
  flex: 1;
}

.result-image img {
  width: 80%;
  border-radius: 25px;
}

/* ========================================= */
/* TEXTO RESULTADO */
/* ========================================= */

.result-content {
  flex: 1;
}

.result-label {
  display: inline-block;

  background: #06185a;

  color: #ffffff;

  padding: 10px 18px;

  border-radius: 30px;

  font-size: 14px;
  font-weight: 700;

  margin-bottom: 20px;
}

.result-content h2 {
  font-size: 52px;
  color: #06185a;

  margin-bottom: 20px;
}

.result-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 35px;
}

/* ========================================= */
/* BOTÕES RESULTADO */
/* ========================================= */

.result-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========================================= */
/* FADE GERAL */
/* ========================================= */

.fade-screen {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-screen.hidden {
  display: none;
}

.fade-screen.fade-out {
  opacity: 0;
  transform: translateY(30px);
}

.fade-screen.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================= */
/* REVEAL */
/* ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(35px);

  animation: revealAnimation 1s ease forwards;
}

@keyframes revealAnimation {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================= */
/* RESPONSIVO */
/* ========================================= */

@media (max-width: 900px) {

  .quiz-start-card,
  .result-screen {
    flex-direction: column;
    text-align: center;
  }

  .quiz-start-content h2 {
    font-size: 30px;
  }

  .question-text {
    font-size: 25px;
  }

  .result-content h2 {
    font-size: 40px;
  }

  .result-buttons {
    justify-content: center;
  }
}

/* ========================================= */
/* MOBILE */
/* ========================================= */

@media (max-width: 768px) {

  .quiz-page {
    padding: 50px 15px;
  }

  .quiz-title {
    font-size: 36px;
  }

  .quiz-subtitle {
    font-size: 16px;
  }

  .quiz-start-card,
  .question-card,
  .result-screen {
    padding: 30px 22px;
  }

  .question-text {
    font-size: 22px;
  }

  .answer-btn {
    font-size: 16px;
    padding: 18px;
  }

  .quiz-main-button,
  .secondary-button {
    width: 100%;
  }

  .result-content h2 {
    font-size: 34px;
  }

  .loading-screen h2 {
    font-size: 26px;
  }
}