* {
    margin:0;
    padding:0;
    font-family: sans-serif;
} 
.rotate-in-hor {
	-webkit-animation: rotate-in-hor 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: rotate-in-hor 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}
@-webkit-keyframes rotate-in-hor{
  0%{-webkit-transform:rotateX(360deg);transform:rotateX(360deg);opacity:0}
  100%{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}
}
@keyframes rotate-in-hor{
  0%{-webkit-transform:rotateX(360deg);transform:rotateX(360deg);opacity:0}
  100%{-webkit-transform:rotateX(0deg);transform:rotateX(0deg);opacity:1}
}

body {
  position: relative;
  min-width: 330px;
  overflow-x: hidden;
}

button {
  text-align: center;
  padding:10px;
  border-radius: 2px;
  margin-right: 10px;
  transition: .2s;
}
button:hover {
  /* box-shadow: 3px 3px 3px #00000020; */
}
#buttons {
  margin: 20px;
}
menu {
  position: relative;
  width: 100%;
  height: 40px;
  background-color: #202020;
  z-index: 90;
  /* box-shadow: 0px 0px 100px 0px #736640; */
}
#title-header {
    top:0px;
    position: sticky;
    display:flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:50px;
    background-color: #f2f2f2;
    background-size: cover;
}
header {
    /* width: 100%; */
    height: 46vw;
    max-height: 570px;
}
#headerPhoto {
  position: relative;
  width: 100%;
  height: 100%;
  background: url(images/me.jpg) left top no-repeat;
  background-size: cover;
}
#title {
    font-family: 'Mansalva', cursive;
    font-size: 60px;
    line-height: 65px;
}
#subtitle {
  margin: 0px 0px 8px 20px;
  font-size: 16px;
}
#blurb {
  font-size: 12px;
  margin: 0 0 0 20px;
}
#resume_container {
  display: none;
  position: fixed;
  overflow: auto;
  top: 0px;
  left: 0px;
  width: 100%;
  min-height: 120vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 100;
  padding-right: 15px;
}
#resume {
  background: url(images/resume.png) no-repeat top;
  position: relative;
  /* width: 800px; */
  background-size: contain;
}
#qual {
  width: 100%;
}
#qual img {
  width: 3vw;
  filter: grayscale(1);
  margin: 2px;
  transition: .2s;
}
#qual img:hover {
  width: 3vw;
  filter: none;
  margin: 2px;
}
#info_container {
  position: absolute;
  top: 40px;
  left: 37%;
  height: 46vw;
  max-height: 570px;
  width: 56%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.static {
  position: relative;
  width: 100%;
  height: 5px;
  background-image: url(images/static.gif);
  background-size: cover;
}
#footer {
  background-color:#202020;
  height: 100px;
  color: #dedede;
  text-align: center;
  padding-top:20px;
  font-size: 12px;
}
#ads {
  background-color:#c4c4cf;
  padding:10px 0px;
}
#ads_container {
  display: grid;
  position: relative;
  margin: auto;
  width: 520px;
  grid-template-rows: 175px 186px;
  grid-template-columns: 200px 120px 198px;
  gap: 0px;
  align-items: center;
  justify-items: center;
}
#item-0 {
  grid-row-start: 1;
  grid-column-start: 1;
  grid-row-end: 2;
  grid-column-end: 2;
  
}
#item-1 {
  grid-row-start: 2;
  grid-column-start: 1;
  grid-row-end: 3;
  grid-column-end: 2;
  
}
#item-2 {
  grid-row-start: 1;
  grid-column-start: 2;
  grid-row-end: 3;
  grid-column-end: 3;
  
}
#item-3 {
  grid-row-start: 1;
  grid-column-start: 3;
  grid-row-end: 3;
  grid-column-end: 4;
}
iframe {
  transform: scale(.6);
  top:  0px;
  left: 0px;
  border: none;
}
#gallery {
    padding: 40px 0px 80px 0px;
    background: #E2EAEA;
}
#galleryheader, #exptitle {
  text-align: center;
  font-family: 'Mansalva', cursive;
  font-size: 34px;
}
#gallerysubhead {
  text-align: center;
  font-size: 12px;
  padding-bottom: 20px;
  width: 85%;
  margin: auto;
}
.img_gallery {
    position: relative;
    top: 10px;
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    justify-content: center;
    flex-wrap: wrap;
}
.img_gallery div {
    text-align: center;
    font-size: 30px;
    min-width: 100px;
    background: no-repeat center;
    background-size: contain;
    height: 200px;
    margin: 10px;
    width: 26%;
    min-width: 300px;
  }
  .img_gallery div img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 5px 5px 5px #00000039;
    transition: .2s;
    cursor: pointer;
  }
  .img_gallery div img:hover {
    box-shadow: 3px 3px 3px #817a7a0e;
  }

  /* modal */
  .row > .column {
    padding: 0 8px;
  }
  
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Create four equal columns that floats next to eachother */
  .column {
    float: left;
    width: calc(1/3);
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 0px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
  }

  #close_bkg {
    position: absolute;
    height:100%;
    width:100%;
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    /* max-width: 800px; */
  }
  
  /* The Close Button */
  .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Hide the slides by default */
  .slides {
    display: none;
  }
  .slides img {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: -37px;
    border-radius: 3px 0 0 3px;
  }
  .prev {
    left: -37px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
  }

  /* FEATURED SITES */

  .featured-sites {
    padding: 80px 0;
    background: #ffffff;
  }

  .site-card {
    overflow: hidden;
    transition: 0.3s ease;
    height: 100%;
  }

  .site-card img {
    width: 100%;
    display: block;
  }
  
  /* .site-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
  } */

  .site-info {
    padding: 24px;
  }

  .site-logo {
    position: relative;
    width: 100% !important;
    min-width: 140px;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
  }

  .site-info h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .site-info p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
  }

  .btn-site {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 18px;
    background: #303030;
    color: white;
    border-radius: 2px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: none;
    border: none;
  }

  .btn-site:hover {
    background: #0059bb;
    color: white;
  }

  /* CASE STUDY MODAL */

  .case-study-modal {
    border-radius: 3px;
    overflow: hidden;
  }

  .case-hero {
    margin: 10px auto;
    width: 90%;
    max-width: 350px;
  }

  .case-section {
    margin-bottom: 60px;
  }

  .case-section h3 {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 700;
  }

  .asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
  }

  .asset-grid img {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: .25s ease;
  }

  .asset-grid img:hover {
    transform: translateY(-4px);
  }

  .modal-body {
    padding: 40px;
  }

  .modal-header {
    padding: 24px 40px;
  }

  .wpage {
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
  }

  @media only screen and (max-width: 727px) {
    menu {
      box-shadow: none;
    }
    header {
      width: 100%;
      height: 475px;
    }
    #headerPhoto {
      position: relative;
      width: 100%;
      height: 160px;
      background: url(images/profile_pic.png) no-repeat center;
      background-size: 130px;
    }
    #info_container {
      position: absolute;
      top: 200px;
      left: 0px;
      height: 300px;
      max-height: 570px;
      width: 80%;
      margin: 0px 10%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
    #title {
      font-size: 45px;
      line-height: 65px;
    }
    #subtitle {
      margin: 0px 0px 8px 0px;
      font-size: 16px;
    }
    #blurb {
      font-size: 12px;
      margin: 0px;
    }
    button {
      text-align: center;
      padding:10px;
      font-weight: bold;
      border-radius: 3px;
      margin: 0px 5px;
    }
    #qual {
      margin: auto;
    }
    #qual img {
      width: 20px;
      filter: grayscale(1);
      margin: 2px;
      transition: .2s;
  }
  img.thumbnav {
    display:none;
  }

  #ads_container {
    display: grid;
    position: relative;
    margin: auto;
    width: 320px;
    grid-template-rows: 175px 186px;
    grid-template-columns: 200px 120px;
    gap: 0px;
    align-items: center;
    justify-items: center;
  }
  
  #item-3 {
    display: none;
  }
  }

  @media only screen and (max-width: 450px) {
    header {
      width: 100%;
      height: 545px;
    }
    #headerPhoto {
      position: relative;
      width: 100%;
      height: 160px;
      background: url(images/profile_pic.png) no-repeat center;
      background-size: 130px;
    }
    #info_container {
      position: absolute;
      top: 220px;
      left: 0px;
      height: 300px;
      max-height: 570px;
      width: 80%;
      margin: 0px 10%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
    #title {
        font-family: 'Mansalva', cursive;
        font-size: 45px;
        line-height: 65px;
    }
    #subtitle {
      margin: 0px 0px 8px 0px;
      font-size: 16px;
    }
    #blurb {
      font-size: 12px;
      margin: 0px;
    }
    button {
      width: 140px;
      height: 30px;
      text-align: center;
      padding: 6px;
      font-weight: bold;
      border-radius: 3px;
      margin: 5px 5px;
      cursor: pointer;
    }
    #qual {
      margin: auto;
    }
    #qual img {
      width: 20px;
      filter: grayscale(1);
      margin: 2px;
      transition: .2s;
  }
  
  }
  @media only screen and (max-width: 405px) {
    header {
      width: 100%;
      height: 570px;
      margin-bottom: 20px;
    }
    #headerPhoto {
      position: relative;
      width: 100%;
      height: 160px;
      background: url(images/profile_pic.png) no-repeat center;
      background-size: 130px;
    }
    #info_container {
      position: absolute;
      top: 250px;
      left: 0px;
      height: 300px;
      max-height: 570px;
      width: 80%;
      margin: 0px 10%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      text-align: center;
    }
    #title {
        font-family: 'Mansalva', cursive;
        font-size: 45px;
        line-height: 65px;
    }
    #subtitle {
      margin: 0px 0px 8px 0px;
      font-size: 16px;
    }
    #blurb {
      font-size: 12px;
      margin: 0px;
    }
    button {
      width: 140px;
      height: 100%;
      text-align: center;
      padding: 6px;
      font-weight: bold;
      border-radius: 3px;
      margin: 5px 5px;
      cursor: pointer;
    }
    #qual {
      width: 70%;
      margin: auto;
    }
    #qual img {
      width: 20px;
      filter: grayscale(1);
      margin: 2px;
      transition: .2s;
  }
  
  }