/* Universal styles */
* {
    box-sizing: border-box;
}

/* Global styles for the document */
body {
    background-color: #EAEAEA; /* Changed background color */
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
}

/* Styles for the header element */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    height: 120px; /* Changed height */
}

/* Styles for the h1 element */
h1 {
    text-align: center;
    padding-top: 0.5em;
    font-size: 3em; /* Added font size */
    letter-spacing: 0.25em; /* Added letter spacing */
    color: #FFFFFF; /* Set H1 text color to white */
}

/* Remove underline from header link */
header a {
    text-decoration: none; /* Remove underline */
    color: #FFFFFF; /* Ensure link color is white */
}

/* Styles for the nav element */
nav {
    font-weight: bold;
    padding: 0; /* Changed padding to 0 */
    float: left; /* Float left */
    width: 160px; /* Set width */
    font-size: 1.2em; /* Set font size */
    background-color: inherit; /* Inherit background from wrapper */
}

/* Remove underline from hyperlinks in nav */
nav a {
    text-decoration: none;
}

/* Styles for nav link states */
nav a:link {
    color: #5C7FA3; /* Unvisited hyperlinks */
}

nav a:visited {
    color: #344873; /* Visited hyperlinks */
}

nav a:hover {
    color: #A52A2A; /* Hover state */
}

/* Styles for the unordered lists in nav */
nav ul {
    list-style-type: none; /* No list markers */
    padding-left: 1em; /* Set left padding */
}

/* Styles for the h2 element */
h2 {
    color: #1976D2;
    font-family: Georgia, serif;
}

/* Styles for the h3 element */
h3 {
    font-family: Georgia, serif;
}

/* Styles for the dt element */
dt {
    color: #002171;
    font-weight: bold;
}

/* Styles for a class named resort */
.resort {
    color: #1976D2;
    font-size: 1.2em;
}

/* Styles for the footer element */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF; /* Added background color */
    margin-left: 170px; /* Set left margin */
}

/* Style rule for the wrapper ID */
#wrapper {
    background-color: #FFFFFF; /* Changed background color */
    min-width: 960px;
    max-width: 2048px;
    margin-right: auto;
    margin-left: auto;
    background: linear-gradient(#FFFFFF, #90C7E3); /* Added gradient background */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styles for the main element */
main {
    padding-left: 2em;
    padding-right: 2em;
    display: block; /* For IE compatibility */
    background-color: #FFFFFF; /* Set background color */
    margin-left: 170px; /* Set left margin */
    overflow: auto; /* Prevent display issues for floated elements */
}

/* Styles for the hero image areas */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-left: 170px; /* Set left margin */
}

#homehero {
    background-image: url('coast.jpg');
}

#yurthero {
    background-image: url('yurt.jpg');
}

#trailhero {
    background-image: url('trail.jpg');
}

/* Styles for the section element */
section {
    float: left; /* Float left */
    width: 33%; /* Set width */
    padding-left: 2em; /* Left padding */
    padding-right: 2em; /* Right padding */
}
#mobile {
    display: none;
}
#desktop {
    display: inline;
}
@media only screen and (max-width: 1024px) {
    body {
        margin: 0;
        padding: 0;
        background-image: none;
    }
    wrapper {
        width: auto;
        min-width: 0;
        margin: 0;
        box-shadow: none;
    }
    nav {
        float: none;
        width: auto;
        padding-top: 0.01em;
        padding-bottom: 0.01em;
        padding-left: 1em;
        padding-right: 1em;
    }
    nav li {
        display: inline-block;
    }
    nav a {
        padding-right: 2em;
    }
    main {
        padding: 1em;
        margin-left: 0;
        font-size: 90%;
    }
    footer {
        margin: 0;
    }
    #homehero {
        margin-left: 0;
    }
    #yurthero {
        margin-left: 0;
    }
    #trailhero {
        margin-left: 0;
    }
}
@media only all and (max-width: 768px) {
    h1 {
        height: 100%;
        font-size: 1.5em;
        padding-left: 0.3em;
    }
    nav {
        padding: 0;
    }
    nav a {
        display: block;
        padding: 0.2em;
        font-size: 1.1em;
        border-bottom: 1px solid #330000;
    }
    nav ul {
        margin: 0;
        padding: 0;
    }
    main {
        padding-top: 0.1em;
        padding-right: 0.6em;
        padding-bottom: 0.1em;
        padding-left: 0.4em;
    }
    #homehero {
        display: none;
    }
    #yurthero {
        display: none;
    }
    #trailhero {
        display: none;
    }
    footer {
        padding: 0;
    }
    #mobile {
        display: inline;
    }
    #desktop {
        display: none;
    }
}
