/********* CSS RESETS **********/

img {
	max-width:100%;
}

h1, h2, h3, p, ul, ol {
	margin: 0;
	padding: 0;
}

ul, ol {
	list-style-type: none;
}

/********* Basic Styling **********/

body {
    font-family: sans-serif;
    line-height: 1.6em;
    font-size: 1em;
	background-color:#eeeeee;
}

section { 
	padding: 30px 30px;
}

img {
	padding-bottom: 50px;
}

a:link , a:visited{
    color: #5e5e5e;
    text-decoration: none;
    font-style: light;
    font-weight: 400;
}
a:hover , a:active{
    text-decoration: none;
    color: #9a9a9a;
    background-size: auto auto;
}

.fullPhoto {
	display: none;
}

.mobilePhoto {
	display: block;
	margin: auto;
}

.centered {
    margin-bottom: 20px;
    display: block;
   	margin: auto;
  }

  .body-flex p {
	padding: 50px 50px;
  }

  .flexText {
	display: flex;
	justify-content: center;
	gap: 20px;
  }

  /******** Benefits Styles ********/ 
 .flexCenter {
	display: flex;
	justify-content: center;
 }

  .icon {
	height: 120px;
	width: 120px;
  } 

  .mini-icon {
	height: 80px;
	width: 80px;
  }
  
  #benefits {
	background-color: white;
	border-radius: 1.5em;
	box-shadow: 4px 4px grey;

	display: flex;
	flex-direction: column;
	margin-top: 50px;
	margin-bottom: 50px;
  }

  #benefits article {
	margin-bottom: 30px;
  }

  #benefits p {
	font-size: .9em;
	text-align: center;
  }

/******* Navigation styles *******/

#navigation {
	position: relative;
}

#mobilenav {
	background:#FE986A;
	margin-bottom: 20px;
	padding-right: 20px;
}

#mobilenav h2 {
	text-align: right;
	line-height: 50px;
	color: #9a9a9a;
	font-size: 30px;
}

#mainnav {
	width: 200px; 
	position: absolute;
	top: 50px;  
	right: 0;  
	border-top: 1px solid #ca6a0c; 
}

#mainnav ul {
	background: #FE986A;
}

#mainnav ul li a {
	display:block; 
	background:#FE986A;
	color:#9a9a9a;
	font-size:30px;
	line-height:50px;
	text-decoration:none;
	text-transform:uppercase;
	text-align:right;
	padding-right: 20px;
	width:180px;
	border-bottom: 1px solid #ca6a0c;
}

#mainnav ul li a:hover {
	background:#628595;
}



/******** Top Styles ********/ 
#top {
    background-color: #fffff1;
}

#top h1, #top h2, #middle h2 {
    text-align: center;
	padding: 10px 10px;
	font-size: 2.2em;
	margin-bottom:30px;
}


span {
	font-weight: bold;
	font-size: 1.6em;
	
}



/******** Promo Styles ********/ 

#promo {
    background-color: #F9F19B;
    height: 150px;
}

#promo #button {
    background: white;
	border-radius: 1.5em;
	box-shadow: 2px 2px grey;

    height: 100px;
	width: 50%;
}

#promo h2 {
	text-align: center;
}
/******** Middle Styles ********/ 
#middle {
    background-color: #FFF0D1;
}

#middle h2 {
	
}
#article-grid {
	display: grid;
	gap: 20px;
}
.article {
	background-color: white;
	border-radius: 1.5em;

	margin: auto;
	padding: 10px 10px;

}

.article h3 {
	font-size: 1.3em;
	text-align: center;
	padding-bottom: 20px;
}

.article p {
	padding: 10px 10px;
}
.article a {
	background-color: lightblue;
	border: 1px solid black;
	border-radius: 1.5em;

	width: fit-content;       
  	margin: 1em auto 0 auto; 

	margin-top: 10px;
	padding: 10px 10px;
}
/******** Footer Styles ********/ 

footer {
    background-color: #FE986A;
	padding: 30px 0;
}

footer article {
	padding: 30px 0;
}

footer h2 {
    font-size: 1.2em;
	margin-bottom: 30px;
}

footer h2, footer ul li {
    text-align: center;
}

footer article {
    background-color: #FFFFE3;
	border-radius: 1.5em;
	margin: auto;
	margin-bottom: 20px;

    height: 150px;
    width: 50%;/*Change later*/
}

/******** Tablet Styles ********/ 
@media screen and (min-width: 600px) {


#article-grid {
    display: flex;
    justify-content: space-around;
}

#middle #article-grid {
    display: flex;
    justify-content: space-around; 
	display: grid;
	grid-template-columns: 1fr 1fr;
}

#benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

footer {
	display: flex;
	justify-content: space-around;
}

footer article {
	width: 30%;
}


}

/******** Desktop Styles ********/ 

@media screen and (min-width: 1000px) {

    body {
        max-width: 1000px;
        margin: auto;
    }

	.mobilePhoto  {
		display: none;
	}

	.fullPhoto  {
		display: block;
		margin: auto;
	}

	#benefits {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	}

	
	.features article {
		display: flex;
		gap: 20px;
	}

	.features #evenReverse {
		flex-direction: row-reverse;
	}

	.features .flexText {
		align-items: center;
	}

	/******** about flex *********/
  .body-flex {
	display: flex; 
	padding: 0 100px;
	margin-top: 50px;
	
  }

  .body-flex p {
	padding-right: 40px;
	padding-left: 40px;
  }



	#mobilenav {
		display: none;
	}

	#mainnav {
		box-sizing: border-box;
		position: static; 
		width: 100%;
		margin-bottom: 20px;
		border-top: none;
		border-left: 1px solid #ca6a0c;
	}

	#mainnav ul {
		display: flex;
	}

	#mainnav ul li {
		flex: 1;
	}

	#nav ul li a {
		width: 100%;
		box-sizing: border-box;
		padding: 0;
		text-align: center;
		border-bottom: none;
		border-right: 1px solid #ca6a0c;
	}
	
}