/* 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;
} 








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


/*========whole page========*/
body {
    background: #f9f7fa;
    border: 3px solid #223a6b;
    border-radius: 20px;
    margin: 1em;
    
    /*typography*/
    font-family: Verdana, sans-serif;
    font-size: 27px;
    color: #223a6b;
    text-align: left;
    line-height: 1.5;
}

a{
    color: #4d6088;
    text-decoration: none;
} 









/*==========header style==========*/
header {
    padding-bottom: 2em;
    border-bottom: 3px solid #223a6b;
}

 header p { /*title */
    font-family: "Playfair", serif;
    font-size: 3.5em;
    color: #7886a4;
    font-weight: 900;
    margin: 0.1em 0.4em 0.3em;
    /* text-decoration: underline;
    text-decoration-color: #f3d494; */
    text-decoration-thickness: 0.03em;
    line-height: 1em;
}

ul li { /*nav*/
    float: right;
    display: block;
    padding: 0em 0.7em 2.5em;
    font-size: 1.2em;
    font-style: italic;
}
ul a:hover {
    text-decoration: underline #f2ce80;
    font-style: normal;
    color: #f2ce80;
}
/*==========main style==========*/
main {
    padding: 0 auto;
    width: 70%;
    margin: 0 auto 2em;
    display:100%;

}
main > section { /*centering row of objects on homepage*/
  margin-left: -100px;
  margin-right: -100px;
  
}

main p:first-of-type{
    text-align: center;
}
h1 {
    font-family: "Playfair", serif;
    font-size: 2.3em;
    font-weight: 800;
    text-decoration: underline;
    margin-bottom: 0.6em;
    margin-top: 1.5em;
    color: #8e99b3;
    text-align: center;
    line-height: 1;
    text-underline-offset: 0.1em;
    text-decoration-color: #7886a4;
}
h2, h3{
    margin-top: 2em;
    margin-bottom: 0.4em;
    font-weight: 600;
    font-style: italic;
    color: #c3c8d6;
    
}
h2 {
    font-size: 1.2em;
}

h3{ /*'browse my other items'*/
margin-bottom: -0.5em;
}
figure{
    font-family: "playfair", serif;
    font-weight: 600;
    width: 30%;
    display: inline-block; /*aligns horizontally*/
    margin-left: 0.2em ;
    margin-right: 0.2em;
    vertical-align: top;
    font-size: 1.5em;
    text-align: center;
    line-height: 1;
   
}
img{
    display: block; /*allows them to be centered*/
   border-radius: 20px;
   border: 3px solid #223a6b;
   margin-top: 0.8em;
   margin-bottom: 0.6em;
   max-width: 100%;
   height: auto;
   margin-left: auto;
   margin-right: auto;
}
main a{
    color: #a3abc1;
}
main a:hover{
    color: #f2ce80;
;
}
main p{
    border-bottom: 2em;
}



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

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

}
footer a {
    font-size: 1em;
    font-style: italic;
    text-decoration: underline;
}
footer a:hover{
    color: #f2ce80;
    text-decoration-color: #f2ce80;
    text-underline-offset: 0.2em;
    font-style: normal;
}
@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;
  }
  figure {
    display: block;
    margin: 0 auto;
    width: 60%;
  }
}
@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;
  }
  
}
@media screen and (max-width:600px) {
    body {
        font-size: larger;
    } 
    nav ul li {
    font-size: 0.6em;
  } 
  main {
    width: 85%;
  }
  h2:has(+ figure), h3 { 
    padding: 0 4em;
}
}
