/* using code from https://christopheraue.net/design/fading-pages-on-load-and-unload to fade a rectangle in and out to mimic fading content.*/
#fader {
  position: absolute; /*to be able to use with js*/
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
  z-index: 999999;
  pointer-events: none;
  background: #5b564e;
  animation-duration: 500ms;
  animation-timing-function: ease-in-out;
}
#fader:before {
  content: 'fade'
}
@keyframes fade-out {
  from { opacity: 1 }
  to { opacity: 0 }
}
@keyframes fade-in {
  from { opacity: 0 }
  to { opacity: 1 }
}
#fader.fade-out {
  opacity: 0;
  animation-name: fade-out;
}
#fader.fade-in {
  opacity: 1;
  animation-name: fade-in;
}

body{
  background-color: #5b564e;
  color: #818d7d;
  font-family: Helvetica Neue;
  position: relative;
}
a{
  will-change: color;
  color: #818d7d;
  text-decoration: none;
}
a:hover{
  color: #d33440;
  transition: color 0.3s ease-out;
}

h1{
  color: #333333;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: normal;
  text-align: right;
  padding: 0 0 4vh 0;
}
img{
  width: 100%; 
}

.imgeffect{
  object-fit: cover; /*must be in class to work*/
  /*transition: filter 0.3s ease-out, border 0.3s, box-shadow 0.3s;
  /*box-shadow: 0 0 0 rgba(0, 0, 0, 0); /* Initial shadow is invisible */
}
.imgeffect:hover{
  /*box-shadow: 0 0 0 2px #d33440;*/
}

.header{
  position: fixed;
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  padding: 5vh 3.1vw;
  top: 0;
  left: 0;
  width: 100%;
  transition: top 0.5s, opacity 0.5s ease-out;
  font-size: 1.5em;
  opacity: 1;
}

.nav-div{
  padding: 0 6.2vw; /*the .2 here and adjustment above ("3.1vw") added to have elements line up with image and header*/
  word-spacing: 0.5vw;
  font-size: 0.8em;
}

@media screen and (max-width: 600px) {
  .nav-div{
     font-size: 0.6em;
  }
}

.content{
  padding: 100px 2.5vw;
}

.container{
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
.container div{
  width: 70vw; 
}
.iframe-container{
  gap: 2em;
  width: 100%;
}