body {
    font-family: 'Comic Sans MS', cursive, sans-serif; 
    background-color: #e6e6fa; 
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
    color: #ffffff;
}

header {
    background-color: #2e6df5; 
    color: #ffffff; 
    text-align: center;
    padding: 10px 0;
}

header img {
    max-width: 200px; 
}

main {
    padding: 20px;
    padding-bottom: 60px; 
}

.quiz-section {
    max-width: 800px;
    margin: 20px auto; 
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    grid-gap: 20px;
}

.cartao-pergunta {
    background-color: #215fe2; 
    padding: 20px;
    border-radius: 8px;
}

.cartao-pergunta h2 {
    margin-top: 0;
    color: #ffffff; 
}

.lista-respostas {
    list-style: none;
    padding: 0;
}

.lista-respostas li {
    margin-bottom: 10px;
}

.lista-respostas li button {
    display: block;
    width: 100%;
    padding: 10px;
    border: none; 
    background-color: #2e6df5; 
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.lista-respostas li button:hover {
    background-color: #6c8dd6;
}

.lista-respostas li button:focus {
    outline: none;
}

.lista-respostas li button:active {
    transform: scale(0.95);
}

footer {
    background-color: #2e6df5; 
    color: #ffffff; 
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.voltar-inicio {
    position: fixed;
    top: 10px;
    left: 20px;
    color: #ffffff; 
    text-decoration: none;
    border-radius: 50%;
    font-size: 2rem;
    transition: .3s;
}

.voltar-inicio:hover {

    transform: translateX(-10px);
}

.mensagem-resultado {
    margin-top: 20px;
    padding: 15px;
    background-color: #90EE90;
    border-radius: 8px;
    text-align: center;
    font-size: 1.2em;
}

.correta {
    background-color: #23cb64 !important; 
}

.incorreta {
    background-color: #fd3d1b !important;
}
