body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #f8f8f8;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 1;
}

.logo {
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 2;
}

main {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    padding: 20px;
}

.webform {
    width: 50%;
    height: 1415px; /* Fixed height for all screen sizes */
    border: 0px solid #fff;
    margin-right: -110px;
}

.spreadsheet-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
}

.spreadsheet1 {
    width: 325px;
    height: 300px;
    border: 1px solid #ccc;
    margin: 10px 0;
    position: sticky;
    top: 80px;
    margin-right: 30px;
}

.spreadsheet2 {
    width: 600px;
    height: 300px;
    border: 1px solid #ccc;
    margin: 10px 0;
    position: sticky;
    top: 80px;
    margin-right: 30px;
}

.spreadsheet3 {
    width: 600px;
    height: 300px;
    border: 1px solid #ccc;
    margin: 10px 0;
    position: right;
    top: 80px;
    margin-right: 30px;
}

.download-link {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
}

.download-link:hover {
    text-decoration: underline;
}

footer {
    background-color: #f8f8f8;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* Media Queries for Mobile Screens */
@media (max-width: 768px) {
    main {
        flex-direction: column; /* Stack the elements on top of each other */
    }

    .webform, .spreadsheet-container {
        width: 100%; /* Make them take full width on mobile */
        margin-right: 0; /* Remove margin between webform and spreadsheets */
    }

    .spreadsheet1, .spreadsheet2, .spreadsheet3 {
        display: none; /* Hide spreadsheets on mobile */
    }

    .webform {
        height: 1300px; /* Keep the webform height fixed at 1300px */
    }

    /* Make the logo non-sticky on mobile */
    .logo, header {
        position: relative; /* Remove sticky behavior */
    }
}
