body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../images/blue_team_2.png') no-repeat center center fixed; /* Full-page background image */
    background-size: cover;
    color: #fff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-container_qs {
    position: absolute;
    top: 10px;
    right: 10px;
}

.main-card {
    background-color: rgba(255, 255, 255, 0.85); /* White background with transparency */
    border-radius: 20px;
    width: 50%;
    max-width: 1200px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5); /* Strong shadow for elevation */
    padding: 2%; /* Reduced padding */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    padding-bottom: 0%; /* Reduce padding */
    margin-bottom: 0%; /* Reduce margin */
    width: 100%;
}

    .header h1 {
        font-size: 2.5em;
        margin-bottom: 0.2em;
        color: #333;
        margin-top: 0px;
    }

    .header p {
        font-size: 24px;
        color: #666;
        margin-top: 0px;
    }

.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.card {
    background-color: rgba(255, 255, 255, 0.95); /* Lighter card background */
    padding: 2%; /* Reduced padding */
    border-radius: 20px;
    width: 55%; /* Use percentage width */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.instructions {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2%; /* Reduced padding */
    padding-left: 3%;
    border-radius: 20px;
    width: 35%; /* Use percentage width */
    margin-left: 2%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.instructions_title {
    color: #ff6f61;
    font-size: 20px;
    margin-bottom: 5px;
    margin-top: 5px;
    margin-left: 0px;
}

.instructions_p1 {
    color: #305280;
}

.instructions_p2 {
    color: #305280;
}

label {
    font-size: 24px;
    display: block;
    margin-top: 0px; /* Reduce space between labels and inputs */
    color: #222;
    text-align: left;
}

input[type="text"], textarea {
    width: 95%;
    padding: 8px; /* Slightly reduce padding */
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    color: #333;
    background-color: #fff;
}

textarea {
    resize:none;
    height: 112px;
}

input[type="submit"] {
    margin-top: 15px; /* Reduced space above submit button */
    padding: 10px 20px; /* Slightly reduced padding */
    background-color: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    input[type="submit"]:hover {
        background-color: #ff4b2b;
    }

.skip-link {
    display: inline-block; /* Ensures the link behaves like a flexbox item */
    align-items: center; /* Centers the text inside the link vertically */
    text-decoration: none; /* Optional: removes underline from link */
    color: #007BFF; /* Optional: sets the text color */
    background-color: #f8f9fa; /* Optional: sets a background color */
    padding: 4px 8px; /* Optional: adds padding to make the link more button-like */
    border-radius: 4px; /* Optional: rounds the corners of the link */
}

.dynamic_box_content {
    display: block;
    color: #305280;
    font-size: 14px;
    width: 90%;
    margin-bottom: 20px;
}


/* Add responsiveness for smaller screens */
@media (max-width: 768px) {
    html, body {
        min-height: 80vh; /* Ensure the full viewport height */
        overflow: auto; /* Allow regular scrolling */
    }

    .header h1 {
        font-size: 1.6em;
    }

    .header p {
        font-size: 18px;
        display:none;
    }

    #qs2SubHead {
        padding: 5px;
    }

    .menu-container_qs {
        display: flex;
        justify-content: flex-end; /* Aligns children (like your dropdown) to the right */
        /* width: 100%; */
        z-index: 1000; /* Ensure it is above other content */
        box-sizing: border-box;
    }

    .main-card {
        width: 90%;
        margin:3%;
        margin-top:50px;
        display: block;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .card {
        overflow: auto;
        order: 1;
        width: 90%;
        padding-left: 20px;
        padding-bottom: 10px;
        margin-bottom: 5px;
        margin-left: 5px;
        margin-right: 5px;
    }

    label {
        font-size: 18px; /* Smaller font size for labels on phones */
    }

    input[type="text"]::placeholder {
        font-size: 14px; /* Smaller font size for placeholder on mobile devices */
        color: #888; /* Maintaining the same color for consistency */
    }

    textarea {
        width: 90%;
        height: 85px;
        padding: 8px; /* Slightly reduce padding */
        margin-top: 8px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 12px;
        color: #333;
        background-color: #fff;
    }

    .skip-link {
        display: inline-block; /* Ensures the link behaves like a flexbox item */
        align-items: center; /* Centers the text inside the link vertically */
        text-decoration: none; /* Optional: removes underline from link */
        color: #007BFF; /* Optional: sets the text color */
        background-color: #f8f9fa; /* Optional: sets a background color */
        padding: 4px 8px; /* Optional: adds padding to make the link more button-like */
        border-radius: 4px; /* Optional: rounds the corners of the link */
    }

    input[type="submit"] {
        padding: 5px 10px; /* Slightly reduced padding */
        font-size: 1.0em;
    }

    .content {
        margin-top: 20px;
        flex-direction: column;
    }

    .instructions {
        order: -1;
        width: 90%;
        padding-left: 20px;
        margin-bottom: 10px;
        margin-left: 5px;
        margin-right: 5px;
    }

    .instructions_p2 {
        display: none;
    }

    .dynamic_box_content {
        display:block;
        color: #305280;
        font-size: 14px;
        width: 90%;
        margin-bottom: 20px;
    }
}
