.how-to {
    background: rgba(255, 255, 255, 0.8); /* Partly transparent white background */
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    width: 75%;
    text-align: center;
}

.how-to h2 {
    color: #5f4b8b; /* Dark purple headings */
    margin-bottom: 1rem;
}

.how-to p {
    font-size: 1.1rem; /* Slightly larger text for readability */
    margin-bottom: 2rem;
}

.quiz {
    background: rgba(255, 255, 255, 0.8); /* Partly transparent white background */
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem auto;
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.quiz h2 {
    color: #5f4b8b; /* Dark purple headings */
    margin-bottom: 1rem;
}

.quiz p {
    font-size: 1.1rem; /* Slightly larger text for readability */
    margin-bottom: 2rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
    text-align: left;
}

.quiz-question label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.answer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.answer {
    width: 33%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(95, 75, 139, 0.1);
    border: 2px solid rgba(95, 75, 139, 0.3);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.answer:hover {
    background: rgba(95, 75, 139, 0.2);
    border-color: rgba(95, 75, 139, 0.5);
}

.answer input[type="radio"] {
    display: none;
}

.answer.selected {
    background: rgba(95, 75, 139, 0.3);
    border-color: rgba(95, 75, 139, 0.7);
}

.quiz button {
    padding: 1rem 2rem; /* Larger button */
    font-size: 1.2rem; /* Increase font size */
    background: #5f4b8b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}

.quiz button:hover {
    background: #4e3b72;
    transform: scale(1.05); /* Slightly enlarge on hover */
}

.quiz-result {
    margin-top: 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #5f4b8b;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .how-to, .quiz {
        width: 90%; /* Increase width for better use of mobile screen space */
        padding: 1rem; /* Adjust padding for mobile */
    }

    .answer {
        width: 100%; /* Make each answer take full width on mobile */
        margin-bottom: 1rem;
    }

    .quiz button {
        padding: 0.8rem 1.5rem; /* Adjust button size for mobile */
        font-size: 1rem; /* Adjust font size for mobile */
    }

    .quiz p, .how-to p {
        font-size: 1rem; /* Adjust font size for mobile readability */
    }
}
