html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.side-ad {
    width: 15%;
    min-width: 160px; /* Minimum width for the ad */
    max-width: 300px; /* Maximum width for the ad */
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f3f3f3;
    color: black;
}

.navbar {
    background-color: #0060c6;
    padding: 14px 20px;
    text-align: left;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 1);
    flex-shrink: 0; /* Prevent shrinking */
    box-sizing: border-box; /* Include padding in width */
    width: 100%;
    overflow-x: hidden;
}

.navbar a {
    color: black;
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 10px;
    font-size: 1em;
}

.navbar a:hover {
    background-color: #007BFF;
    color: white;
}

.main-content {
    flex: 1; /* Allows the main content to grow and fill the available space */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2%;
    padding: 0 5%; /* Adjust padding for responsiveness */
    overflow-y: auto; /* Enable scrolling if content is too large */
    box-sizing: border-box;
}

.question-block {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 850px;
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box;
}

img {
    max-height: 55%;
    max-width: 95%;
}

.footer {
    background-color: #ffffff;
    padding: 10px 30px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
    overflow-x: hidden;
}

.footer p {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.submit-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px; /* Reduced margin-top */
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button:hover {
    background-color: #0056b3;
    transition: 0.5s;
}

.reset-button {
    background-color: #007BFF;
    color: white;
    margin-left: 10px;
    border: none;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 4px;
    box-sizing: border-box;
}

.reset-button:hover {
    background-color: #0056b3;
    transition: 0.5s;
}

/* Responsive Styles */

/* Laptops */
@media (max-width: 1440px) and (min-width: 1024px) {
    .main-content {
        padding-left: 4%;
        padding-right: 4%;
        margin-top: 1%;
    }

    .question-block {
        padding: 20px;
        max-width: 700px; /* Make the content narrower */
    }

    .navbar a {
        padding: 12px 18px;
        margin: 0 8px;
        font-size: 0.95em;
    }

    .footer p {
        font-size: 0.95em;
    }

    .submit-button, .reset-button {
        padding: 8px 16px;
        font-size: 0.95em;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media (max-width: 768px) {
    .navbar a {
        padding: 10px;
        margin: 0 5px;
        font-size: 0.9em;
    }

    .main-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .question-block {
        padding: 20px;
    }

    .footer {
        flex-direction: column;
        padding: 10px;
    }

    .footer p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .navbar a {
        padding: 8px;
        margin: 0 3px;
        font-size: 0.8em;
    }

    .main-content {
        padding-left: 5%;
        padding-right: 5%;
    }

    .question-block {
        padding: 15px;
    }

    .submit-button, .reset-button {
        width: 100%;
        margin: 10px 0;
    }

    .footer p {
        font-size: 0.8em;
    }
}


