/* Universal styles */
* {
    box-sizing: border-box;
}

/* Global styles for the document */
body {
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
    margin: 0em; /* changed margin to 0 */
    background-color: #90c7e3; 
}

/* Updated styles for the header element */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    padding: 1em; /* Changed padding to 1em */
}

/* Updated styles for the h1 element */
h1 {
    text-align: center;
    font-size: 1.5em; /* changed font size */
    color: #FFFFFF; 
}

/* Remove underline from header link */
header a {
    text-decoration: none; /* Remove underline */
    color: #FFFFFF; /* Ensure link color is white */
}

/* Updated styles for the nav element; I did not see declarations to configure position */
nav { font-size: 1.2em; 
    background-color: white; 
    text-align: center;
}

/* 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 */
}

/* Updated styles for the unordered lists in nav */
nav ul { display: flex;
        flex-direction: column; 
        flex-wrap: nowrap;
        justify-content: space-around; /* Added space around items */
    list-style-type: none; 
    margin: 0em;
    padding-left: 0em; 
    padding-right: 0em; /* Added right padding */
}
/* Added styles for nav list items */
nav li { padding-top: .5em;
        padding-bottom: .5em; 
        padding-left: 1em; /* Added left padding */
        padding-right: 1em; /* Added right padding */
        width: 100%; 
        border-bottom: 1px solid; }


/* 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;
}

/* Updated styles for the footer element */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF;
}

/* Updated style rule for the wrapper ID */
#wrapper { 
           background-color: #FFFFFF;
           
        
   
    /* i don't see declarations for a background image */
}

/* Added styles for the mobile and desktop IDs */
#mobile {
    display: none; 
}

#desktop {
    display: inline;
}

/* Updated styles for the main element */
main {
    display: block; 
    padding-top: 0em; /* Added padding-top */
    padding-bottom: 0em; /* Added padding-bottom */
    padding-left: 1em; /* Added padding-left */
    padding-right: 1em; /* Added padding-right */
}

/* Updated styles for the hero image areas */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 200% 100%;
    background-repeat: no-repeat;
}

#homehero {
    background-image: url('coast.jpg');
}

#yurthero {
    background-image: url('yurt.jpg');
}

#trailhero {
    background-image: url('trail.jpg');
}

/* Updated styles for the section element */
section {
    padding-left: .5em; 
    padding-right: .5em; 
}

/* Added styles for the flow ID */
#flow
{ display: flex;
    flex-direction: row; }
    
      /* Added media query for screens wider than 600px */
@media screen and (min-width: 600px) { 
    #flow { 
        display: flex;
        flex-direction: row; } 
    h1 { font-size: 2em;
         letter-spacing: .25em; }
    nav ul { display: flex;
        flex-direction: row; 
        flex-wrap: nowrap;
         justify-content: space-around; }
    nav li { width: 12em;
            border-bottom: none;}
    section { padding-left: 2em; 
              padding-right: 2em; }
    #mobile { display: none; }
    #desktop { display: inline; }
    #homehero, #yurthero, #trailhero { background-size: 100% 100%; }
}

/* Added media query for screens up to max width of 1024px */
@media screen and (max-width: 1024px) {
    body { background: linear-gradient(to bottom, #ffffff 20%, #90c7e3 60%, #ffffff  100%); }
    nav ul { padding-right: 10%;
            padding-left: 10%; }
    #wrapper { margin: auto;
               width: 80%;
               }
}