/* Universal styles */
* {
    box-sizing: border-box;
}

/* Global styles for the document */
body {
    margin: 0;
    background-color: #90C7E3; /* Changed background color */
    color: #666666;
    font-family: Verdana, Arial, sans-serif;
}

/* Wrapper */
#wrapper{
    background-color: #FFFFFF;
}

/* 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;
    font-size: 1em; /* Added font size */
    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 {
    text-align: center;
    background-color: #FFFFFF; /* White background */
}

/* Remove underline from hyperlinks in nav */
nav a {
    text-decoration: none;
    color: #5C7FA3;
}

/* 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 {
    display: flex;
    flex-direction: column;
    margin: 0;
    list-style-type: none; /* No list markers */
    padding-left: 0; /* Set left padding */
}

nav li{
    padding: 0.5em 1em;
    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;
}

/* 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; /* 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-top: 0;
    padding-bottom: 0;
    padding-left: 1em;
    padding-right: 1em;
    display: block; /* For IE compatibility */
}

/* 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');
}

/* Styles for the section element */
section {
    padding-left: 0.5em; /* Left padding */
    padding-right: 0.5em; /* Right padding */
}

/* Telephone Display */
#mobile{
    display: inline;
}
#desktop{
    display: none;
}

/* Media Layout*/
@media (min-width: 600px) {

    /* Larger Heading */
    h1 {
        font-size: 2em;
        letter-spacing: 0.25em;
    }

    /* Navigation in a row */
  nav ul {
    flex-direction: row;
    justify-content: space-around;
    padding-right: 2em;
  }

  /* Navigation items wider, no bottom border */
  nav li {
    width: 12em;
    border-bottom: none;
  }

  /* Wider padding on sections */
  section {
    padding-left: 2em;
    padding-right: 2em;
  }

  /* Flow container for side-by-side sections */
  #flow {
    display: flex;
    flex-direction: row;
  }

  /* Mobile phone number hidden */
  #mobile {
    display: none;
  }

  /* Desktop phone number visible */
  #desktop {
    display: inline;
  }

  /* Hero images fill width normally */
  #homehero,
  #yurthero,
  #trailhero {
    background-size: 100% 100%;
  }
}

@media (min-width: 1024px) {

  /* Body gradient background */
  body {
    background-image: linear-gradient(to bottom, #FFFFFF 20%, #90C7E3 60%, #FFFFFF 100%);
  }

  /* Extra horizontal padding on nav */
  nav ul {
    padding-right: 10%;
    padding-left: 10%;
  }

  /* Wrapper centered, narrower width */
  #wrapper {
    width: 80%;
    margin: auto;
  }
}