@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@300;400;600&display=swap');

body {
    font-family: "Red Hat Display", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #004643;
}

/* Tela Inicial */
.start-screen {
    text-align: center;
    padding: 20px;
}

.start-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.start-btn {
    background-color: #f9bc60;
    color: #001e1d;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

/* Container do Quiz */
.quiz-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 400px;
    background-color: #002826;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #abd1c6;
}

.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.answer-buttons button {
    background-color: #f9bc60;
    font-weight: 600;
    color: #001e1d;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.answer-buttons button:hover {
    filter: brightness(80%);
}

.progress-bar {
    width: 100%;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    width: 0;
    height: 10px;
    background-color: #f9bc60;
    transition: width 0.3s ease;
}

/* Mensagem de Loading */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: #000000; /* Preto sólido */
    padding: 30px;
    border-radius: 10px;
    color: white;
    font-size: 20px;
    text-align: center;
}

.loading-image {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

/* Efeito de desfoque para o quiz quando o loading estiver ativo */
.quiz-container.blur {
    filter: blur(5px); /* Ajuste a intensidade do desfoque conforme necessário */
    pointer-events: none; /* Impede interação com o fundo durante o loading */
    user-select: none; /* Evita seleção de texto no fundo */
}

/* Tela de Resultado */
.result {
    padding: 10px;
    background-color: #abd1c6;
    color: #001e1d;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.result-link-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background-color: #f9bc60;
    color: #001e1d;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result-link-btn:hover {
    background-color: #e89c50;
}

.video-container {
    margin-top: 20px;
    text-align: center;
}


/* Tela Intermediária */
.intermediate-screen {
    width: 890px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #004643;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.intermediate-image {
    max-width: 100%;
    height: auto;
}

.next-intermediate-btn {
    background-color: #f9bc60;
    color: #001e1d;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}

#intermediate-title {
    text-align: center;
}

/* Transição de Fade In e Out */
.fade-out {
    animation: fadeOut 0.5s forwards;
}

.fade-in {
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
