@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #EBEBD3;
    color: #083D77;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100vh;
}

/* Background Design: Subtle Diagonal Stripes */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            #dedede,
            #dedede 20px,
            #eeeeee 20px,
            #eeeeee 40px);
    opacity: 0.6;
    z-index: -1;
}

.span-top {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: inline;
    margin-top: 30px;
}

/* Header */
header {
    background-color: #f1f1f1;
    color: black;
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* Pushes title left and nav right */
    align-items: center;
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
    margin: 0 auto;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Centers the header */
}

.logo {
    margin-left: 100px;
    max-width: 70px;
    border-radius: 15px;
    /* Limits width */
    height: auto;
    /* Maintains aspect ratio */
}

.how-it-works {
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    /* Limits width */
    height: auto;
    display: table;

    /* Maintains aspect ratio */

}

/* Title */
header h1 {
    font-size: 28px;
    font-weight: 600;
    padding: 10px 20px;
    padding-left: 10px;
    border-radius: 20px;
}

/* Navigation Bar */
nav {
    margin-left: auto;
}

.nav-links {
    margin-right: 70px;
    align-items: flex-start;
}

nav-bracket {
    display: flex;
    flex-direction: row;
}

/* Navigation List */
nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    /* Ensures horizontal layout */
    gap: 10px;
    padding: 20px 10px;
    border-radius: 20px;
    width: fit-content;
}

/* Navigation Buttons */
nav ul li {
    display: inline;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 10px;
    margin: 0px;
    border-radius: 15px;
    background-color: #cccccc;
    transition: all 0.1s ease-in-out;
}

/* Hover Effect */
nav ul li a:hover {
    background-color: #b7b7b7;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Centers boxes horizontally */
    /* Aligns them vertically */
    gap: 10px;
    /* Adds spacing between boxes */
    flex-wrap: wrap;
    /* Allows wrapping on small screens */
    align-items: inline;
    height: 100vh;
    width: 100vw;
}

input[type="text"],
input[type="email"] {
    width: calc(100% - 20px);
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #007bff;
}

button {
    background: #007bff;
    color: white;
    border: none;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    width: 100%;
}

button:hover {
    background: #0056b3;
}

/* Survey Boxes */
.home-box {
    background-color: #F4D35E;
    padding: 20px;
    border-radius: 10px;
    display: block;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
    /* Makes it only as wide as its content */
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 20px;
    justify-content: center;
    align-self: flex-start;
    /* Ensures it's not centered */
    animation: fadeIn 1s ease-in-out;
}

.home-box-top {
    background-color: #F4D35E;
    padding: 20px;
    border-radius: 10px;
    display: block;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 1000px;
    margin-left: 20px;
    margin-right: 20px;
    /* Makes it only as wide as its content */
    justify-content: center;
    align-self: flex-start;
    /* Ensures it's not centered */
    animation: fadeIn 1s ease-in-out;
}

.survey-link :hover {
    opacity: 0.9;
}

.home-box-text {
    background-color: #EE964B;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    font-size: clamp(20px, 8vw, 20px);
    word-wrap: break-word;
    overflow-wrap: break-word;
    display: table;
    /* Ensures it only takes needed space */
    width: fit-content;
    /* Prevents full-width stretching */
    max-width: 100%;
    /* Stops overflow */
}

#contact-box {
    font-size: clamp(16px, 8vw, 40px);
    text-wrap: wrap;
}

#contact-text {
    font-size: clamp(16px, 8vw, 32px);
}

.actual-survey {
    background-color: #EE964B;
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 350px;
    min-height: 300px;
    max-width: 350px;
    max-height: 350px;
    font-weight: bold;
    font-size: clamp(16px, 8vw, 22px);
    margin: 0;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
}

.home-box.closed {
    position: relative;
    opacity: 0.7; /* keep it visible but less vibrant */
}

.home-box.closed::after {
    content: "🍂 Back in Fall";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.actual-survey ul {
    font-size: 18px;
    color: #000000;
    list-style: none;
    justify-content: center;
    text-align: center;
}

.special li {
    font-size: 14px;
    color: #000000;
    list-style: none;
    justify-content: center;
    text-align: center;
}

.actual-survey p {
    margin-bottom: 30px;
}

.actual-survey ul {
    margin-bottom: 35px;
}

.actual-survey ul li::before {
    content: "✓ ";
    /* Replace with your desired text or symbol */
    font-weight: bold;
    /* Optional styling */
}

.actual-survey .click-button {
    font-size: 24px;
    border-radius: 10px;
    padding-left: 60px;
    padding-right: 60px;
    padding: 5px;
    background-color: #eaeaea;
    bottom: 20px;
    justify-self: center;
    align-self: center;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.actual-survey .click-button-attapoll {
    font-size: 24px;
    border-radius: 10px;
    padding-left: 60px;
    padding-right: 60px;
    padding: 5px;
    background-color: #ff6767;
    bottom: 20px;
    justify-self: center;
    align-self: center;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

#success {
    display: none;
}

/* Footer */
footer {
    background-color: #212121;
    margin-top: 30px;
    color: white;
    padding: 10px;
    text-align: right;
    width: 100%;
    font-size: 12px;
}

.side-by-side-survey {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.survey-box {
    background-color: #EE964B;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
}

.survey-box h2 {
    font-size: 24px;
    color: #083D77;
    margin-bottom: 10px;
}

.survey-box p {
    font-size: 16px;
    margin-bottom: 5px;
    color: black;
}

.survey-link {
    animation: fadeIn 1s ease-out;
    position: flex;
}

#surveyid {
    background-color: #083D77;
}

#surveyidattapoll {
    background-color: #e40505;
}

#surveyidtext {
    background-color: #007bff;
}

#surveyidtextattapoll {
    background-color: #d8ebff;
}

/* Responsive Adjustments */
@media (max-width: 1080px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .survey-box {
        align-self: center;
        margin-left: 20px;
        margin-right: 20px;
    }

    .logo {
        margin-left: 0px;
    }

    .nav-links {
        margin-right: 0px;
    }

    nav {
        margin-left: 0px;
    }

    .logo {
        padding-top: 0;
    }

    nav ul {
        width: 100%;
        /* Allows centering */
        display: flex;
        justify-content: center;
        padding-bottom: 0;
    }

    body {
        align-items: center;
    }

    main {
        flex-wrap: wrap;
        align-items: center;
    }

    .home-box {
        align-self: center;
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #contact-box {
        font-size: clamp(16px, 8vw, 32px);
    }

    #contact-text {
        font-size: clamp(16px, 8vw, 16px);
    }

    body {
        align-items: center;
    }

    .survey-box {
        width: 90%;
        max-width: 100%;
    }

    .logo {
        margin-left: 0px;
    }

    .nav-links {
        margin-right: 0px;
    }

    nav {
        margin-left: 0px;
    }

    nav ul {
        width: 100%;
        /* Allows centering */
        display: flex;
        justify-content: center;
    }

    nav ul li a {
        margin: 1px;
        font-size: 16px;
    }

    main {
        flex-wrap: wrap;
        align-items: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}