/* Universal Selector */
* {
    box-sizing: border-box;
}

/* Body Styles */
body {
    background-color: #EAEAEA;
    color: #666666;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

/* Wrapper Styles */
#wrapper {
    background-color: #90C7E3;
    background-image: linear-gradient(to top, #90C7E3, #FFFFFF);
}

/* Header Styles */
header {
    background-color: #002171;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #000033;
    margin: 0;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.25em;
    padding: 0.5em 0;
    margin: 0;
}

/* Navigation Styles */
nav {
    text-align: center;
    padding: 1em;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

nav li {
    border-bottom: none;
}

nav a {
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 0.5em 0;
}

nav a:link {
    color: #5C7FA3;
}

nav a:visited {
    color: #344873;
}

nav a:hover {
    color: #A52A2A;
}

/* Hero Image Styles */
#homehero {
    height: 300px;
    background-image: url("coast2.jpg"); /* Make sure the image path is correct */
    background-size: cover; /* Cover the element, but may crop */
    background-position: center;
    background-repeat: no-repeat;
}

#yurthero {
    height: 300px;
    background-image: url("yurt.jpg"); /* Make sure the image path is correct */
    background-size: cover; /* Cover the element, but may crop */
    background-position: center;
    background-repeat: no-repeat;
}

#trailhero {
    height: 300px;
    background-image: url("trail.jpg"); /* Make sure the image path is correct */
    background-size: cover; /* Cover the element, but may crop */
    background-position: center;
    background-repeat: no-repeat;
}


/* Main Content Styles */
main {
    background-color: #FFFFFF;
    padding: 20px;
    overflow: auto;
}

/* Footer Styles */
footer {
    background-color: #FFFFFF;
    font-size: 75%;
    font-style: italic;
    text-align: center;
    padding: 2em;
}

/* Header Link Styles */
header a {
    text-decoration: none;
    color: #FFFFFF;
}

header a:link,
header a:visited {
    color: #FFFFFF;
}

header a:hover {
    color: #90C7E3;
}

/* Small Screen Layout (600px and less) */
@media (max-width: 600px) {
    #wrapper {
        display: block;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    header, nav, div, main, footer {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    nav ul {
        flex-direction: column; /* Vertical navigation */
        justify-content: flex-start; /* Align items at the top */
    }
}

/* Medium Screen Layout (between 600px and 1024px) */
@media (min-width: 600px) and (max-width: 1023px) {
    #wrapper {
        width: 100%;
        padding: 0 20px;
    }

    nav {
        text-align: center;
        padding-left: 0;
    }

    nav ul {
        flex-direction: row; /* Horizontal navigation */
        justify-content: space-around;
    }

    main {
        display: flex;
        flex-direction: row;
        gap: 20px; /* Space between items */
    }

    section {
        flex: 1; /* Distribute space equally */
    }
}

/* Large Grid Layout (1024px and greater) */
@media (min-width: 1024px) {
    nav ul {
        flex-direction: column; /* Vertical layout */
        padding-top: 1em;
    }

    nav {
        text-align: left;
        padding-left: 1em;
    }

    #wrapper {
        margin: auto;
        width: 80%;
        border: 1px solid #000033;
        box-shadow: 3px 3px 3px #333333;
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: auto 300px auto auto;
    }

    header {
        grid-row: 1 / 2;
        grid-column: 1 / 3;
    }

    nav {
        grid-row: 2 / 4;
        grid-column: 1 / 2;
    }

    div {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
    }

    main {
        grid-row: 3 / 4;
        grid-column: 2 / 3;
    }

    footer {
        grid-row: 4 / 5;
        grid-column: 1 / 3;
    }
}
