/* 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;
    margin: 0;
}

/* Styles for the header element */
header {
    background-color: #002171;
    color: #FFFFFF;
    font-family: Georgia, serif;
    padding: 1em;
}

/* Styles for the h1 element */
h1 {
    text-align: center;
    padding-top: 0.5em;
    font-size: 1.5em; /* 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 */
    font-size: 1.2em; /* Set font size */
    background-color: inherit; /* Inherit background from wrapper */
    text-align: center; /* Center align nav content */
}

/* Remove underline from hyperlinks in nav */
nav a {
    text-decoration: none;
    display: block; /* Make links block-level for better spacing */
}

/* 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 */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    display: flex; 
    flex-direction: column; /* Stack items vertically */
}

nav li {
    padding: 0.5em 0; /* Add vertical spacing between links */
    width: 100%; /* Make list items take full width */
    border-bottom: 1px solid #cccccc; /* Add bottom border for separation */
}
/* 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;
}

#mobile {
    display: inline; /* Show mobile phone number */
}

#desktop {
    display: none; /* Hide desktop phone number */
}

/* Styles for the footer element */
footer {
    font-size: 0.70em;
    font-style: italic;
    text-align: center;
    padding: 1em;
    background-color: #FFFFFF; /* Added background color */
}

/* Style rule for the wrapper ID */
#wrapper {
    background-color: #FFFFFF; 
}

/* Styles for the main element */
main {
   padding: 0 1em 1em 1em; /* Added padding */
    display: block; 
    background-color: #FFFFFF; /* Set background color */
    overflow: auto; /* Prevent display issues for floated elements */
}

/* Styles for the hero image areas */
#homehero,
#yurthero,
#trailhero {
    height: 300px;
    background-size: 200% 100%; /*crop and scale the image to fit the hero area */
    background-repeat: no-repeat;
}

#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: none; /* Remove float */
    width: 100%; /* Set width */
    padding-left: .5em; /* Left padding */
    padding-right: .5em; /* Right padding */
}

@media (min-width: 600px) { /* Styles for screens wider than 600px */
    h1 {
        font-size: 2em;
        letter-spacing: 0.25em;
    }

    nav ul { /* Change nav layout to horizontal for wider screens */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-around;
        padding-right: 2em;
    }

    nav li { /* Adjust nav list items for horizontal layout */
        width: 12em;
        border-bottom: none;
    }

    section { /* Adjust section padding for wider screens */
        padding-left: 2em;
        padding-right: 2em;
    }

    #flow { /* Change flow layout to horizontal for wider screens */
        display: flex;
        flex-direction: row;
    }

    #mobile { /* Hide mobile phone number on wider screens */
        display: none;
    }

    #desktop { /* Show desktop phone number on wider screens */
        display: inline;
    }

    #homehero,
    #yurthero,
    #trailhero { 
        background-size: 100% 100%;
    }
}


@media (min-width: 1024px) { /* Styles for screens wider than 1024px */
    body {
        background-image: linear-gradient(#FFFFFF, #90C7E3);
        background-repeat: no-repeat;
    }

    #wrapper {
        width: 80%;
        margin: 0 auto;
    }

    nav ul {
        padding-left: 10%;
        padding-right: 10%;
    }
}