@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

.eb-garamond-normal {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.comic-neue-regular {
    font-family: "Comic Neue", cursive;
    font-weight: 400;
    font-style: normal;
}

body{
	margin: 0;
    font-size: 1.1em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #FFFFFF;
    overflow-x: hidden;
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
ul {
  list-style-type: none;
}
button {
  cursor: pointer;
}

h1 {
  color: white;
}

figure.projectFig, .projectFig > img {
    margin: 0;
    width: 100%;
    height: 100%; 
}

#portFig img {
  width: 30%;
}

main > * {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    transition: transform 0.5s ease-in-out 0.5s;
}

footer {
    color: white;
}

#portfolio {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  padding: 0 10vw;
  align-content: space-between;
}

.project {
  width: 45%;
  padding: 1em 0;
}

.hidden {
  display: none;
}

.project figure {
  border-radius: 0.5em;
  position: relative;
  text-align: center;
}
figure *{
  border-radius: inherit;
}

.project figcaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-around;
  align-items: center;
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

.project h2 {
  margin: 0.5em 0;
  width: 100%;
}

.project figcaption > div {
  padding: 0 1.5em;
}

.project figure:hover figcaption {
  background-color: #2222228f;
  color: white;
  opacity: 1;
}

img.baseImg {
  transition: opacity 0.5s ease-in-out 0.5s;
}

.project:hover img.baseImg {
  opacity: 0;
}

img.hoverImg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.infoButton {
  width: 15em;
  height: 3em;
  background-color: transparent;
  color: white;
  margin: 1em 0;
}

.infoButton:hover {
  background-color: #ffffff80;
}
#filters {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #797D81;
  padding: 0 0 1em 0;
  color: white;
  text-shadow: 1px 1px #8b524e;
}

#filters small {
  color: #cfcfcf;
  text-align: center;
}

#filters > ul {
  display: flex;
  width: auto;
  flex-flow: row wrap;
  justify-content: flex-start;
}

.OOF {
  transform: translate(-100% , 0);
  z-index: -1000;
}

iframe {
  display: block;
}

.reset {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

@media only screen and (max-width: 900px) {
  .project {
    width: 90%;
    padding: 1em 0;
  }
  #portfolio, #filters > ul {
    padding: 0;
  }
  #bodyBack {
    display: none;
  }
}

@media screen and (max-width: 600px) {
    .topnav {
      display: block;
    }
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
      position: absolute;
      right: 0;
      top: 0;
    }
    .topnav.responsive a {
      float: none;
      display: block !important;
      text-align: left;
    }
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
      float: right;
      display: block;
    }
    #filters li {
      font-size: 0.7em;
    }
    #pjDetails {
      padding: 0;
    }
    figure#portFig > img{
      display: none;
    }
  }

  @media screen and (max-width: 360px) {
    figcaption {
      font-size: smaller;
    }
  }