/* pratica.css */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f3f0ff, #ffffff);
    min-height: 100vh;
    color: #222;
}

/* HEADER */

.header{
    text-align: center;
    padding: 40px 20px;
    background: #6c3cf0;
    color: white;
}

.header h1{
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* TOP INFO */

.top-info{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.timer-card,
.score-card{
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* QUIZ */

.quiz-container{
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.quiz-card{
    width: 100%;
    max-width: 700px;
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);

    transition: 0.5s;
}

.question-number{
    color: #6c3cf0;
    font-weight: bold;
    margin-bottom: 15px;
}

.quiz-card h2{
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.quiz-card img{
    width: 260px;
    display: block;
    margin: 0 auto 25px;
    border-radius: 20px;
}

/* OPTIONS */

.options{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn{
    border: none;
    padding: 18px;
    border-radius: 15px;
    background: #f1ebff;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.option-btn:hover{
    transform: scale(1.02);
    background: #e3d8ff;
}

/* ACERTO */

.correct{
    background: #2ecc71 !important;
    color: white;
}

/* ERRO */

.wrong{
    background: #e74c3c !important;
    color: white;
}

/* BOTÃO NEXT */

#next-btn{
    width: 100%;
    margin-top: 25px;
    border: none;
    padding: 18px;
    border-radius: 15px;
    background: #6c3cf0;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

#next-btn:hover{
    background: #5728d6;
}

#next-btn:disabled{
    opacity: 0.5;
    cursor: not-allowed;
}

/* RESULTADO */

.result-card{
    width: 100%;
    max-width: 500px;
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.final-score{
    margin-top: 20px;
    font-size: 3rem;
    font-weight: bold;
    color: #6c3cf0;
}

/* ANIMAÇÃO */

.animate{
    animation: aparecer 0.5s ease;
}

@keyframes aparecer{

    from{
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }

    to{
        opacity: 1;
        transform: translateX(0) scale(1);
    }

}

/* HIDDEN */

.hidden{
    display: none;
}

/* RESPONSIVO */

@media(max-width: 768px){

    .quiz-card h2{
        font-size: 1.3rem;
    }

    .quiz-card img{
        width: 100%;
    }

}