/* Universal styles */
* {
    box-sizing: border-box;
}

/* Global styles for the document */
body {
    background-color: #90C7E3; /* Changed background color */
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
    margin: 0; /* Added margin */
}
/* Styles for wrapper ID */
#wrapper { 
    background-color: #FFFFFF; 
    /* Removed background image, width, margin, and box shadow */
}

/* Styles for the header element */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    padding: 1em; /* Added padding and removed height */
}

/* Styles for the h1 element */
h1 {
    text-align: center;
    font-size: 1.5em; /* Changed font size to 1.5em and removed padding */
    color: #FFFFFF; /* Set H1 text color to white */
    /* Removed padding and letter spacing */
}

/* 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 {
    text-align: center; /* Added centered text */
    background-color: #FFFFFF; /*Added white background color */
    /* Removed float, position, width, font-weight, and padding */
}

/* Styles for nav unordered list */
nav ul {
    list-style-type: none;
    display: flex; /* Configured as flex container */
    flex-direction: column; /* Set to column */
    margin: 0; /* Set 0 margin */
    padding-left: 0; /* Set 0 left padding */
}

/* Styles for nav list items */
nav li{
    padding: 0.5em 1em; /* 0.5em top and bottom, 1em as left and right */
    width: 100%; /* 100% width */
    border-bottom: 1px solid; /* 1px solid bottom border */ 
}

/* 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 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 main element */
main {
    padding: 0em 1em; /* 0em for top and bottom, 1em for left and right padding */
    display: block; /* For IE compatibility */
    /* Removed margin, background-color, and overflow */
}

/* Styles for the section element */
    section {
        padding: 0.5em; /* Left and right padding to 0.5em */
        /* Removed float and width */
    }

    /* Styles for the footer element */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF; /* Added background color */
    /* Removed left margin */
}

/* Styles for the hero image areas */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 200% 100%; /* Changed to 200% and 100% */
    background-repeat: no-repeat;
    /* Removed left margin */
}

#homehero {
    background-image: url('coast.jpg');
}

#yurthero {
    background-image: url('yurt.jpg');
}

#trailhero {
    background-image: url('trail.jpg');
}

/* Telephone number styles for mobile and desktop */
    #mobile {
        display: inline; /* Display as hyperlink on mobile */
    }
    
    #desktop {
        display: none; /* Hide on small displays */
    }

/* Medium Display Media Query - 600px */
@media (mid-width: 600px) {
    h1 {
        font-size: 2em;
        letter-spacing: 0.25em
    }
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        padding-right: 2em;
    }
    nav li {
        width: 12em;
        border-bottom: none;
    }
    section {
        padding-left: 2em;
        padding-right: 2em;
    }
    #flow {
        display: flex;
        flex-direction: row;
    }
    #mobile {
        display: inline;
    }
    #desktop {
        display: inline;
    }
    #homehero,
    #yurthero,
    #trailhero {
        background-size: 100% 100%;
    }
}
    
/* Large Display Media Query - 1024px */
@media (mid-width: 1024px) {
    body{
        background-image: linear-gradient(to bottom, #FFFFFF 20%, #90C7E3 60%, #FFFFFF 100%);
    }
    nav ul {
        padding-left: 10%;
        padding-right: 10%;
    }
    #wrapper {
        margin: auto;
        width: 80%;
    }
}