/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
* {
  box-sizing: border-box;
} 
a{
  text-decoration: none;
} 









/*==================My Style Sheet==================*/


/*============whole page============*/
body {
  background: #fbfafc;
  border: 3px solid #8A91A6;
  border-radius: 20px;
  margin: 0.8em;
    
/*===typography===*/
  font-family: "Noto Sans", sans-serif;
  font-size: 27px;
  color: #0D172A;
  text-align: left;
  line-height: 1.5;
  text-wrap: balance;
}

/*===link styling===*/
ul li a, 
figcaption, 
footer a{ /*links, excluding title*/
  color:#1a2b52;
  text-decoration: underline;
  text-decoration-color: #edb22f;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 0.1em;
  font-weight: 450;
}
ul li a:hover,  /*link hover effect*/
footer a:hover{
  text-underline-offset: 0.2em;
  color:#edb22f
} 





/*============header style============*/
header {
  padding-bottom: 2.7em;
  border-bottom: 3px solid #8A91A6;
}

header p { /*title */
  font-family: "Playfair", serif;
  font-size: 3.5em;
  color: #475474;
  font-weight: 900;
  margin: 0.1em 0.4em 0.3em;
  line-height: 1em;
  

}

ul li { /*nav bar*/
  float: right;
  display: block;
  padding: 0em 0.5em 2.5em;
  font-size: 1.2em;
    
}






/*============main style============*/
main {
  /* padding: 0 auto; */
  width: 70%;
  margin: 0 auto 2em;
}
main p{
  border-bottom: 2em;
}
main > section { /*centering the card links to other pages*/
  text-align: center;
}
main p:first-of-type, 
h1{ /*page title and first p indented for seperation*/
  width: 90%;
  margin: 0 auto;
}

/*==typography==*/
h1 {
  font-family: "Playfair", serif;
  font-size: 2.3em;
  font-weight: 800;
  margin-bottom: 0.2em;
  margin-top: 1.5em;
  color: #646F8A;
  line-height: 1;

}
h2, 
h3{
  margin-top: 2em;
  margin-bottom: 0.4em;
  font-weight: 700;
  color: #8A91A6;
}
h2 {
  font-size: 1.3em;
}
h3 {
  font-size: 1.1em;
  font-style: italic;
}
section h2{
  font-style: italic;
  text-align: left;
}
footer a{
  font-size: 0.7em;
}



/*====link card styling====*/
figure{ 
  width: 30%;
  display: inline-block; /*aligns horizontally*/
  margin: 0 0.2em;
  vertical-align: top;
  font-size: 1.2em;
  text-align: center;
  line-height: 1.2; 
}
section img{
  display: block; /*allows them to be centered*/
  margin-bottom: 0.6em;
  max-width: 100%;
  height: auto;
  border-color: #8A91A6
}

figure:hover img {
  box-shadow: -3px 3px 9px #8A91A6;
}
figure:hover figcaption {
  text-underline-offset: 0.2em;
  color:#edb22f
}




/*====img styling====*/

img:not(h1 img){ 
  border-radius: 20px;
  border: 3px solid #475474;
  
}


h1 img{ /*illustrated icons*/
  border: none;
  max-height: 1.2em;
  width: auto;
  vertical-align: -0.15em;

}

img:not(section img):not(h1 img):first-of-type{ /*centering first img*/
  display: block;
  margin: 1em auto -1em;
  
}
 
img:not(section img):not(h1 img){ /*styling img in the text*/
  margin:1em 1em;
  display: inline-block;
  border-color: #edb22f;
  height: 300px;
  width: auto;
}
p:nth-of-type(2) img:nth-of-type(1), p:nth-of-type(3) img:nth-of-type(1), p:nth-of-type(4) img:nth-of-type(1){
  float:right;
  margin: 0.8em;
}








/*==========footer style==========*/

footer {
  border-top: 3px solid #8A91A6;
  text-align: center;
  padding: 1em ;
}
footer p:last-of-type{ 
  font-size: 0.5em;
  padding-top: 1em; 

}
footer a {
  font-size: 1em;
  background-image: url(images/back-arrow-yellow.svg);
  background-position: center left;
  background-repeat: no-repeat;
  padding-left: 28px;
  background-size: 0.9em;
  
}








/*========media queries=======*/
/*gradually shrinking nav bar so it doesnt wrap  out of the header as the viewport shrinks*/
@media screen and (max-width: 1300px) {
  h1 {
    margin-top: 0.6em;
  }
}


@media screen and (max-width: 1000px) {
  nav ul li {
    font-size: 1em;
  }
  h1 {
    margin-top: 0.6em;
  }
  
  img:not(section img):not(h1 img){
    height: 250px;
    width: auto;
  }
  figure {
    display: block;
    margin: 1.5em auto;
    width: 50%;
  }
  main {
    width: 90%;
  }
  header {
  padding-bottom: 1.7em;
}
}


@media screen and (max-width: 900px) {
  nav ul li {
    font-size: 0.85em;
  }

}


@media screen and (max-width: 725px) {
  nav ul li {
    font-size: 0.75em;
  }
  img:not(section img):not(h1 img){
    height: 180px;
    width: auto;
  }
  h1 {
    font-size: 2em;
    
  }
  header p {
    font-size: 3em;
    max-width: 80%;
    box-sizing: border-box;
  }


}


/*mobile view*/
@media screen and (max-width:600px) {
  main p{
    font-size: 0.75em;
  } 
  nav ul li {
    font-size: 0.55em;
    padding: 0em 0.4em 2.5em;
  } 
  header p {
    font-size: 2.8em;
  }
  h1{
    font-size: 1.8em;
  }
  h2{
    font-size: 1.1em;
  }
  body{
    margin: 0.6em;
  }
  header {
  padding-bottom: 1.2em;
}
}

