/* 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: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */

/*playfair for headers
dancing script for signature
roboto for main body*/

@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/roboto-v30-latin-regular.woff"),
      url("fonts/roboto-v30-latin-regular.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/roboto-v30-latin-italic.woff"),
      url("fonts/roboto-v30-latin-italic.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/roboto-v30-latin-700.woff"),
      url("fonts/roboto-v30-latin-700.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/dancing-script-v24-latin-regular.woff"),
      url("fonts/dancing-script-v24-latin-regular.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/dancing-script-v24-latin-700.woff"),
      url("fonts/dancing-script-v24-latin-700.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/playfair-display-v30-latin-regular.woff"),
      url("fonts/playfair-display-v30-latin-regular.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  src: url("fonts/playfair-display-v30-latin-italic.woff"),
      url("fonts/playfair-display-v30-latin-italic.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  src: url("fonts/playfair-display-v30-latin-700.woff"),
      url("fonts/playfair-display-v30-latin-700.woff2");
}

@font-face {
  font-display: swap;
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 700;
  src: url("fonts/playfair-display-v30-latin-700italic.woff"),
      url("fonts/playfair-display-v30-latin-700italic.woff2");
}

html {
    font-family: "Roboto", sans-serif;
    line-height: 1.8;
    background: #30B4F4;
    color: black;
    scroll-behavior: smooth;
}

body {
    margin: 0 auto;
    font-size: 18px;
}

#wrapper {
  width: 90%;
  margin: 5% auto;
  border: 1px solid #99c;
}

header {
  text-align: center;
  border: 1px solid #ddd;
}

.name, .subname {
  padding-left: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-family: "Dancing Script", serif;
}

.subname {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h1, h2 {
    font-weight: bold;
    color: #000000;
}

h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: bold;
}

h2 a, footer a {
  color: #382916;
}

nav {
  display: none;
  width: auto;
  padding:1%;
  margin: 1% auto;
}

#ham-icon  {
  display: block;
  font-size: 2.5em;
  width: auto;
  margin: 0 auto;
}

#close-icon  {
  display: block;
  font-size: 1.5em;
  width: auto;
  margin: 0 auto;
}

a.menu-icon:link, a.menu-icon:visited {
   color: black;
   text-decoration: none;
}

a.menu-icon:hover, a.menu-icon:focus {
   color: gray;
}

nav ul {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1%;
}
    
nav li {
  display: block;
  border: 1px #000000;
  }

  
nav li a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding:1%;
    border: 1px #000000;
  }
  
  
nav li a:link, nav li a:visited  {
    color: #000;
    background: #F59C4E;
    border: 2px solid black;
  }
  
nav li a:hover, nav li a:focus {
    color: #000;
    background: #00CBC1;
    border: 2px solid #BE925C;
  }
    
.clear {
    clear: both;
  }

.hero {
  background-image: url("images/hero.jpg");
  background-size: cover;
  height: 600px;
  display: grid;
  grid-template-columns: 11rem 1fr;
  grid-template-rows: 4rem 1fr;
}

section {
  padding: 1.7rem;
  margin: 1.5rem;
  border-radius: .5rem;
  background-color: #F59C4E;
}

section ul {
  padding-left: 1rem;
}

footer {
  border-top: double;
  border-color: #2e29a6;
  margin: 0 auto;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 75% 1fr;
  grid-template-rows: 1fr 70% 1fr;
}

footer div {
  grid-column: 2/3;
  grid-row: 2/3;
}

.container {
  border-radius: .2rem;
  background-color: #f59c4e;
  padding: 1rem;
}

input[type=text], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  resize: vertical;
}

input[type=submit] {
  background-color: #2aa1da;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #00cbc1;
}

.btn {
  background-color: #f59c4e;
  border: none;
  color: #000000;
  padding: 12px 30px;
  cursor: pointer;
  font-size: 20px;
  border-radius: .2rem;
}

.btn:hover {
  background-color: #00cbc1;
}

.button-div {
  text-align: center;
  margin-bottom: 2rem;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 20px;
  z-index: 9999;
}

.popup p {
  margin: 0;
  font-size: 18px;
}

ul {
  list-style-type: disc;
}

ul ul {
  margin-left: 1.5em;
  list-style-type: circle;
}


figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}

figure img {
  max-width: 100%;
  height: auto;
}

.projects-grid {
  max-width: 540px;
  margin: 0 auto;

}


@media (min-width: 600px) {

  h1 {
    font-size: 3rem;
  }

  .subname {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }

  footer {
    display: grid;
    grid-template-columns: 1fr 87% 1fr;
    grid-template-rows: 1fr 70% 1fr;
  }

  footer div {
    grid-column: 2/3;
    grid-row: 2/3;
  } 

  #wrapper {
    width: 90%;
  }

  nav ul {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  nav {
    display: block !important;
  }

  #ham-icon {
    display: none !important;
  }

  #close-icon {
    display: none;
  }

  .grid-container {
  max-width: 600px;
  margin: 0 auto;
  }

} 
/*end 600px formatting*/

@media (min-width: 700px) {


  header {
    grid-template-rows: 8rem 1fr;
  }

  h1 {
    font-size: 4rem;
    grid-row: 1/2;
  }

  body {
    font-size: 18px;
  }

  .instructions img, figcaption {
  display: block;
  }

  footer {
    display: grid;
    grid-template-columns: 1fr 70% 1fr;
    grid-template-rows: 1fr 70% 1fr;
  }

  footer div {
    grid-column: 2/3;
    grid-row: 2/3;
  }

  #wrapper {
    width:80%;
  }

  nav ul {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  nav {
    display: block !important;
  }

  #ham-icon {
    display: none !important;
  }

  #close-icon {
    display: none;
  }

}
/*end 700px formatting*/

@media (min-width: 900px){

  .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    padding: 1rem;
    max-width: 100%;
  }

  .projects-grid img {
    max-width: 100%;
    height: 75%;
  }

  .sonnet-image {
    grid-row: 1/2;
    grid-column: 1/2;
    align-self: start;
  }

  .sonnet-image figure, .recipe-image figure, .narrative-image figure {
    max-width: 100%;
    height: 75%;
  }

  .sonnet-image figure img, .recipe-image figure img, .narrative-image figure img {
    height: 75%;
  }

  .sonnet-text {
    grid-row: 1/2;
    grid-column: 2/3;
  }

  .recipe-image {
    grid-row: 2/3;
    grid-column: 2/3;
    align-self: start;
  }

  .recipe-text {
    grid-row: 2/3;
    grid-column: 1/2;
  }

  .narrative-image {
    grid-row: 3/4;
    grid-column: 1/2;
    align-self: start;
  }

  .narrative-text {
    grid-row: 3/4;
    grid-column: 2/3;
  }

  body {
    font-size: 20px;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 1rem;
    max-width: 850px;
    margin: 0 auto;

  }

  .experience {
    grid-row: 1/2;
    grid-column: 1/2;
  }

  .education {
    grid-row: 2/3;
    grid-column: 1/3;
  }

  .skills {
    grid-row: 1/2;
    grid-column: 2/3;
  }

  .button-div {
  margin-bottom: 2.5rem;
}

}
/*end 900px formatting*/