:root {
    --text: #00011a;
    --background: #dd0fbbd3;
    --primary: #6a17d7;
    --secondary: #00011a;
    --accent: #d200f2;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--background);
    font-family: Arial, Helvetica, sans-serif;
}

header {
    background-color: var(--secondary);
    color: var(--text);
    height: 120px;
    text-align: center;
    padding-top: 30px;
    margin-bottom: 0;
    grid-area: header;
}

header a:link, header a:visited {
    text-decoration: none;
    color: var(--accent);
}

header a:hover {
    color: var(--accent);
}

nav {
    font-weight: bold;
    padding: 1.5em;
    font-size: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--primary);
    color: var(--accent);
    grid-area: nav;
    height: 15px;
}

nav a {
    text-decoration: none;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 20px;
    font-size: 1.2em;
}

nav li {
    padding-bottom: 0.9em;
    margin: 0 15px;
}

nav a:link {
    color: var(--accent);
}

nav a:visited {
    color: var(--secondary);
}

nav a:hover {
    color: #002171;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3em;
    letter-spacing: 0.25em;
    margin-top: 0;
    word-wrap: break-word;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--accent);
    text-shadow: 1px 1px 1px var(--secondary);
}


.blurb {
    padding: 1px 20px 20px 30px;
    display: block;
    background: var(--secondary);
    overflow: auto;
    color: white;
    font-size: 16pt;
    grid-area: blurb;
    width: 85%;
}

#homeimage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

#submissionImage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
}

footer {
    font-size: 75%;
    display: flex;
    flex-direction: column;
    font-style: italic;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    padding: 2em;
    margin-left: 50px;
    margin-right: 50px;
    margin-bottom: 15px;
    background-color: var(--secondary);
    color: var(--primary);
    grid-area: footer;
}

.intro {
    color: var(--primary);
    font-weight: bold;
}

#wrapper {
    margin: 0 auto;
    background-color: var(--background);
    box-shadow: var(--accent) 1px 1px 0, var(--accent) -1px -1px 0;
    border: 1px solid var(--secondary);
}

#homehero {
    position: relative;
    height: 500px;
    background-image: url('img/logoFinal.png');
    background-size: contain;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 0;
    margin-left: 20px;
    grid-area: hero;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent), 0 0 5px var(--accent), 0 0 10px var(--primary), 0 0 20px var(--accent), 0 0 30px var(--primary);
    transform: scale(1);
    animation: sparkle 2s infinite;
    top: calc(100% * var(--random-top));
    left: calc(100% * var(--random-left));
    animation-delay: calc(var(--random-delay) * 2s);
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
}

#hero {
    max-height: 500px;
    margin-top: 25px;
    margin-left: 20px;
    width: 100%;
    grid-area: hero;
}

#submissionhero {
    position: relative;
    height: 500px;
    width: 100%;
    background-image: url('img/logoRound.png');
    background-size: 900px 900px;
    background-repeat: no-repeat;
    background-position: center;
    background-position-y: -155px;
    margin-top: 0;
    margin-left: 20px;
    grid-area: hero;
}
#contactForm {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    height: 500px; /* Ensure the container takes the full height of the viewport */
    text-align: center; /* Center the text inside the form */
    width: 1500px;
}


form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    max-width: 50%;
    width: 100%; /* Ensure the form takes the full width available */
    margin: 0 auto; /* Center the form within its container */
    padding: 20px; /* Add some padding for better appearance */
    background-color: var(--primary); /* Optional: Add background color for better visibility */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow for better appearance */
    border-radius: 10px; /* Optional: Add rounded corners */
    color:var(--accent);
    text-shadow: 1px 1px 1px var(--primary);
    font-size: 20px;
}

#formSection{
    margin-bottom: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact, #notice {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--secondary);
    text-shadow: 1px 1px 1px var(--primary);
}

input, textarea, select {
    margin-bottom: 0.5em;
    width: 100%; /* Make the inputs take full width */
    max-width: 400px; /* Optional: Set a maximum width */
}

input[type="submit"] {
    width: fit-content;
    margin: 20px auto;
    padding: 0.5em 1em;
}

textarea {
    height: 150px;
}


/* Media Queries for Responsive Design */

/* For tablets and larger mobile devices */
@media (max-width: 1000px) {
    main {
        padding: 10px;
    }

    nav {
        width: 100%;
        float: left;
        background-color: var(--primary);
        height: 35px;
        justify-content: center;
        align-items: center;
    }

    nav ul {
        display: flex;
        justify-content: center;
        list-style: none;
        padding: 1em;
    }

    nav li {
        margin: 0 15px;
        padding: 0.5em 0;
    }

    h1 {
        font-size: 1.75em;
        word-wrap:break-word
    }

    #homehero {
        height: 300px;
        width: 100%;
        background-size: contain;
        background-position: center;
    }

    #homeimage {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #submissionhero {
        height: 300px;
        width: 100%;
        background-size: 450px 450px;
        background-position: center;
    }

    #submissionimage {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }



    .blurb {
        width: 100%;
        padding: 10px;
        font-size: 12pt;
    }
}

/* For smaller mobile devices */
@media (max-width: 480px) {
    main {
        padding: 5px;
    }

    nav {
        width: 100%;
        float: left;
        text-align: center;
        background-color: var(--primary);
        height: 25px;
    }

    nav ul {
        display: flex;
        justify-content: center;
        padding: 0;
        list-style: none;
    }

    nav li {
        margin: 0 15px;
        padding-bottom: 25px;

    }

    h1 {
        font-size: 1.25em;
        word-wrap: break-word;
    }

    #homehero {
        height: 200px;
        width: 100%;
        background-size: contain;
        background-position: center;
    }

    #submissionhero {
        height: 200px;
        width: 100%;
        background-size: 300px 300px;
        background-position-x: 35px;
    }

    footer {
        font-size: 60%;
        padding: 1em;
    }

    #contact {
        font-size: 75%;
    }

    #submissionimage {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .blurb {
        width: 100%;
        padding: 5px;
        font-size: 10pt;
    }
}