@font-face {
  font-family: "Newsreader";
  src:
    local("Newsreader"),
    url("fonts/NewsreaderText-Light.woff2") format("woff2"),
    url("fonts/NewsreaderText-Light.woff") format("woff");
}

@font-face {
  font-family: "Newsreader-Italic";
  src:
    local("Newsreader"),
    url("fonts/NewsreaderText-LightItalic.woff2") format("woff2"),
    url("fonts/NewsreaderText-LightItalic.woff") format("woff");
}

@font-face {
  font-family: "Newsreader-Bold";
  src:
    local("Newsreader"),
    url("fonts/NewsreaderText-Bold.woff2") format("woff2"),
    url("fonts/NewsreaderText-Bold.woff") format("woff");
}


body {
  font-family: Newsreader, serif;
  background-color: rgb(32,32,32);
  padding: 8px;
  font-size: 18px;
  line-height: 1.2;
}

nav {
  display: flex;
  /*max-width: 800px; */
  margin: auto; 
  /*align-items: center;*/
  /*justify-content: center;*/
  /*flex-wrap: wrap;*/
  flex-direction: row;
}

button {
  border: 0;
  border-radius: 20px;
  margin: 0 0px 8px 4px;
  height: 100px;
  background-color: #fefefe;
}

button {
  cursor: pointer;
}

button img {
  height: 100%;
  top: 50%;
  left: 50%;
}

.infoBtn {
  display: block;
  font-size: 50px;
  height: 100px;
  width: 100px;
  color: white;
  background-color: rgb(32,32,32);;
  border: 4px solid  #fefefe;
  border-radius: 100%;
  margin-right: 2px;
  /*padding: 0 .5em;*/
}

.infoBtn img {
  width: 30px;
}

body.modal-open {
  overflow: hidden;
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

/* Modal Content */
.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto auto 3em auto;
  padding: 0;
  border: 2em solid  #fefefe;
  border-radius: 2em;
  width: 80%;
  max-width: 1500px;
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
  -webkit-animation-name: animatetop;
  -webkit-animation-duration: 0.4s;
  animation-name: animatetop;
  animation-duration: 0.4s
}

.modal-content img {
  width: 100%;
}

/* The Close Button */
.close {
  display: table;
  margin: .2em auto;
  font-size: 60px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}


.modal-header {
  padding: 2px 16px;
}

.modal-body {
    padding: 16px 16px;
    /*max-width: 800px;*/
}

.modal-body img {
    max-width:100%;

}
.modal-footer {
  padding: 2px 16px;
}

.hero-img {
  border-radius: 1.2em;
}

.project-info {
  display: flex;
  flex-direction: row;
  margin: 16px 0 48px 1.2em;
  max-width: 800px;
}

.project-caption {
  width: 30%;
}

h2, h3 {
  font-weight: inherit;
}

.project-caption h2 {
  font-size: 16px;
  font-family: Newsreader-Bold;
}

.project-caption p, h2 {
  margin: 0;
}

.project-caption p {
  font-family: Newsreader-Italic;
  /*font-style: italic;*/
}

.project-description {
  width: 70%;
}

.project-description p {
    margin: 0;
}

i {
  font-family: Newsreader-Italic;
  font-style: normal;
}

.close::after {
  content: "✕";
}

.cv {
  border-bottom: 1px solid grey;
  padding-bottom: 16px;
}

.cv-item {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  margin-bottom: 16px;
}

.cv h2 {
  margin-left: calc(20% + 10px);
  margin-top: 36px;
  margin-bottom: 8px;
  font-size: inherit;
  font-family: Newsreader-Bold;
  text-transform: uppercase;
}

.cv h3  {
  font-size: inherit;
  font-style: inherit;
  margin: 0;
  display: inline-block;
}


.cv h3::after {
  content: "\00a0|\00a0";
}


.cv p {
  margin: 0;
}

.cv ul {
  /*list-style: none;*/
  margin: 0;
  padding: 0;
}

.dates {
  width: 20%;
  font-family: sans-serif;
  font-size: 15px;
  font-style: bold;
  text-align: right;
}

.cv-text {
  width: 60%;
}

.cv-text .cv-title {
  font-family: Newsreader-Bold;
}

@media (max-width: 700px) {
  body {
    padding: 4px 8px 4px 4px;
    margin: 0;
  }

  nav {
    flex-direction: column-reverse;
  }

  button {
    width: 100%;
    height: auto;
  }

  button img {
    height: auto;
    max-height: 7em;
  }

  .infoBtn {
    font-family: Newsreader;
    position: relative;
    width: 100%;
    /*margin-top: -6px;*/
    left: 0;
    border-radius: 20px;
  }

  .infoBtn:after {
    content: "About"
  }

  .infoBtn img {
    display: none;
  }


  .openBtn {
    margin-left: 0;
  }

  .modal-content {
    border: 2px;
    border-radius: 20px;
    width: 100%;
    margin-bottom: 100px;
  }

  .modal-header {
    padding: 1px 8px;
  }

  .modal-body {
      padding: 8px 8px 1px 8px;
  }

  .modal-body img {
      max-width:100%;

  }
  .modal-footer {
    padding: 1px 8px;
  }

  .project-info {
    flex-direction: column;
    margin-right: 1.2em;
    /*width: 100%;*/
  }

  .project-caption {
    width: 100%;
  }


  .project-description {
    width: 100%;
  }

  .cv {
    padding: 16px;
  }

  .cv-item {
    flex-direction: column;
  }

  .cv-item h3 {
    display: block;
  }

  .cv h3::after {
    content: "";
  }

  .cv h2 {
    margin-left: 0;
  }

  .dates {
    width: 100%;
    text-align: left;
  }

  .cv-text {
    width: 100%;
  }

  .cv ul {
    margin-left: 14px;
    padding: 0;
  }
}
/* Add Animation */
@-webkit-keyframes animatetop {
  from {top:300px; opacity:0} 
  to {top:0; opacity:1}
}

@keyframes animatetop {
  from {top:300px; opacity:0}
  to {top:0; opacity:1}
}
