/* body {
    font-family: 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
} */
/* 
.quiz-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 700px;
    text-align: center;
    position: relative;
    top: 400px;
    left: 50px;
    
} */

.quiz-container h2 {
    margin-bottom: 20px;
    font-size:calc(.8rem + 1vw);
}

.navigation-btn {
    background-color: #5a67d8;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

.navigation-btn:hover {
    background-color: #434190;
}

#previous {
    display: none;
}

#submit {
    display: none;
}

.slide {
    display: none;
}

.active-slide {
    display: block;
}

.question {
    font-size: calc(.6rem + 1vw);
    margin-bottom: 15px;
    text-align: start;
}

.answers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

label {
    background: #edf2f7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    transition: background 0.3s ease;
    cursor: pointer;
}

label:hover {
    background: #e2e8f0;
}

input[type="radio"] {
    margin-right: 10px;
}

#results {
    font-size: calc(.8rem + 1vw);
    font-weight: bold;
    margin-top: 20px;
}

.quiz-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 90%; /* Adjusted to a percentage for responsiveness */
    max-width: 700px; /* Maximum width to retain readability */
    margin: auto; /* Centering the container */
    text-align: center;
    position: relative;
    top: 300px; /* Adjusted to a smaller value */
    left: 0; /* Removed left positioning */
    right: 0; /* Added to center horizontally */
}


.quiz-container h2 {
    margin-bottom: 20px;
}

.navigation-btn {
    background-color: #5a67d8;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px 5px;
    transition: background-color 0.3s ease;
}

.navigation-btn:hover {
    background-color: #434190;
}

#previous {
    display: none;
}

#submit {
    display: none;
}

.slide {
    display: none;
}

.active-slide {
    display: block;
}

.question {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: start;
}

.answers {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
}

label {
    background: #edf2f7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    transition: background 0.3s ease;
    cursor: pointer;
}

label:hover {
    background: #e2e8f0;
}

input[type="radio"] {
    margin-right: 10px;
}

#results {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
}


@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
    }
    .navigation-btn{
        padding: 10px 15px;
        border-radius: 25px;
        font-size: 12px;
        margin: 8px 3px;
    }

    label {
        border-radius: 5px;
        padding: 5px;
        margin-bottom: 8px;
        width: 100%;
        font-size: 15px;
    }
    .question {
        font-size: 17px;
    }
    
    
}

@media (max-width: 600px) {
    .quiz-container {
        padding: 15px;
    }
}