/* Universal styles */
* {
    box-sizing: border-box;
}
/*If it's a large size device. */

form {
	display: flex;
	flex-direction: column;
	padding-left: 1em; 
	width: 80%;
}

input, textarea {
	margin-bottom: 0.5em
}

#reshero {
	height: 300px;
	
}

@media (min-width: 1024px) {
	body{
		background-image:linear-gradient(to bottom, #FFFFFF 20%, #90C7E3 60%, #FFFFFF 100%);
	}
	nav ul {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		justify-content: space-around;
		padding-right: 2em;
	}
	nav ul li{
		padding-left:10%;
		padding-right:10%;
	}

    nav li{
		padding-left:10%;
		padding-right:10%;
	}
	#wrapper{
		margin:auto;
		width:80%;
	}
	form {
		width: 60%;
		display: grid;
		grid-gap: 1em;
		grid-template-columns: 10em 1fr;
	}
	input[type="submit"] {
		grid-column: 2;
		width: 9em;
	}
	#reshero {
		background-size: 100% 100%;
	}
}


/*If it's a medium size device. */
@media (min-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: none;
}

#desktop {
  display: inline;
}

#homehero,
#yurthero,
#trailhero,
#reshero {
  
    background-size: 100% 100%;
  
  
}
}
/* Global styles for the document */
body {
    background-color: #90C7E3; /* 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; /* updated for chapter 7 */
}

/* Styles for the h1 element */
h1 {
    text-align: center;
    font-size: 1.5em; /* updated font size chapter 7 */
    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; /* Add for CH 7 */
    font-size: 1.2em; /* Set font size */
    background-color: #FFFFFF; /* 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 {
    display:flex; 
	flex-direction: column;
	margin:0; 
	list-style-type: none; /* No list markers */
    padding-left: 0; /* Set left padding */
}
/* Styles for the list item in the nav */
nav li {
	padding-bottom: .5em;
	padding-top: .5em;
	padding-right: 1em; /* Set right padding */
    padding-left: 1em; /* Set left padding */
	width:100%; 
	border-bottom: 1px; 
	border-bottom-style: 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 */
}

/* Mobile ID style */
#mobile{
	display: inline;
}

/* Mobile ID style */
#desktop{
	display: none;
}
/* Style rule for the wrapper ID */
#wrapper {
    background-color: #FFFFFF; /* Changed background color */
 

}
/* Styles for the main element */
main {
    padding-left: 1em;
    padding-right: 1em;
	padding-bottom: 0;
	padding-top: 0; 
    display: block; /* For IE compatibility */
    
}

/* Styles for the hero image areas */
#homehero,
#yurthero,
#trailhero,
#reshero {
    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');
}

#reshero {
	background-image: url('ocean.jpg');
}

/* Styles for the section element */
section {
    padding-left: .5em; /* Left padding */
    padding-right: .5em; /* Right padding */
}


/*If it's a medium size device. */
@media only screen and (min-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: none;
}

#desktop {
  display: inline;
}

#homehero,
#yurthero,
#trailhero,
#reshero {
  
    background-size: 100% 100%;
  
  
}
}

/* Styles for the table for CH 8 Case Study */
table {
    border-collapse: collapse; /* Collapse table borders */
    width: 100%; /* Make the table full width */
}
/* Cell styling for th and td */
th, td {
    padding: 5px; /* Add 5 pixels of padding */
    border: 1px solid #3399CC; /* Set a 1 pixel blue border */
}

/* Center text in td elements */
td {
    text-align: center; /* Center text */
}

/* Class to left-align text in specific cells */
.text {
    text-align: left; /* Left-align text for this class */
}

/* Alternate row background color */
tr:nth-of-type(even) {
    background-color: #DFEDF8; /* Light blue background for even rows */
}