body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f0f4f8, #ffffff);
    color: #333;
    line-height: 1.6;
    /* NEW: Enable full page scrolling with fixed header, menu, and footer */
    overflow: auto;
}

.header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(90deg, #4a148c, #7b1fa2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header h1 {
    margin: 0;
    font-size: 2.8em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.appheader {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #4a148c, #7b1fa2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    z-index: 1000;
    border-radius: 10px;
}

.header p {
    margin: 5px 0;
    font-size: 1.3em;
    font-weight: 300;
}

.hamburger {
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px 12px;
    background: #4a148c;
    color: #fff;
    border-radius: 6px;
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 1001;
    display: none;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    background-color: #7b1fa2;
}

.menu {
    /* CHANGED: Adjusted top to add more space between header and menu */
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 150px;
    /* Increased from 130px to add space below header */
    width: 100%;
    z-index: 999;
}

.menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #4a148c;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.menu a:hover {
    color: #7b1fa2;
    background: #f5f5f5;
    padding-left: 25px;
}

.content {
    padding: 20px;
    /* CHANGED: Increased top margin further for more space between menu and content */
    margin: 230px auto 80px;
    /* Increased top from 210px to 230px */
    /* NEW: Ensure content is centered with enough space for footer */
    min-height: calc(100vh - 230px - 80px);
    /* Adjusted for new top margin */
}

.section {
    display: none;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* NEW: Fixed wider section width, dynamic height with visible border-radius and shadow */
    width: 1000px;
    margin: 0 auto;
}

.section.active {
    display: flex;
}

.section h2 {
    color: #4a148c;
    margin-bottom: 15px;
    font-size: 2em;
}

.section p {
    font-size: 1.1em;
    color: #555;
    margin: 10px 0;
}

.section ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.section ul li {
    margin: 10px 0;
    font-size: 1.1em;
}

.section ul li a {
    color: #4a148c;
    text-decoration: none;
    transition: color 0.3s;
}

.section ul li a:hover {
    color: #7b1fa2;
    text-decoration: underline;
}

.quiz-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quiz-form label {
    text-align: left;
    display: block;
    margin: 10px 0 5px;
    color: #333;
    font-weight: 500;
}

.quiz-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.quiz-form input:focus {
    border-color: #7b1fa2;
    outline: none;
}

.quiz-form button {
    padding: 12px;
    background: #4a148c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    width: 100%;
    transition: background 0.3s;
}

.quiz-form button:hover {
    background: #7b1fa2;
}

.download-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background: #4a148c;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #7b1fa2;
}

.os-detect {
    margin-top: 20px;
    font-size: 1.1em;
    font-weight: 500;
    color: #555;
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(90deg, #4a148c, #7b1fa2);
    color: #fff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    /* NEW: Fixed positioning to keep footer at bottom */
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}

.footer p {
    margin: 0;
    font-size: 0.7em;
    font-weight: 350;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .menu {
        /* CHANGED: Increased z-index for mobile menu to appear in front of header */
        display: none;
        flex-direction: column;
        align-items: flex-start;
        background: #fff;
        border: 1px solid #ccc;
        position: absolute;
        top: 60px;
        right: 10px;
        width: 200px;
        z-index: 1001;
        /* Increased from 999 to be in front of header */
        border-radius: 6px;
    }

    .menu.active {
        display: flex !important;
        z-index: 1001;
        /* Ensure active menu is also in front */
    }

    .content {
        /* CHANGED: Adjusted for mobile header and more space below menu */
        margin-top: 120px;
        /* Increased slightly for consistency */
        margin-bottom: 80px;
        /* Ensure space for footer */
        min-height: calc(80vh - 90px - 70px);
        /* Adjusted for mobile */
    }

    .section {
        /* NEW: Responsive width for mobile */
        width: 100%;
    }

    .footer {
        padding: 7px;
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}