html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#main {
  position: absolute;
  top: 0;
  left: 0;
  
  color: white;
  font-family: 'Montserrat', sans-serif;
}

#main .section {
  position: relative;
  top: 0;
  height: 100vh;
  min-height: 850px;
  width: 100vw;
  overflow: hidden;
}

#main .section.start {
  background: #42A;
  height: 90vh;
  z-index: 2;
  box-shadow: rgba(0,0,0,0.5) 0 0 50px;
}

#main .section.start h1 {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-size: 4em;
  font-weight: 100;
  margin: 0;
}

#main .section.start h1 span {
  font-weight: 700;
}

#main .section.start .dovah {
  position: absolute;
  right: -10%;
  bottom: 15%;
  width: 60%;
  opacity: 0.75;
  transform: rotate(-10deg);
}

#main .section.sec2 {
  background: #128;
  height: 90vh;
}

#main .section.sec2 h2 {
  position: absolute;
  top: 50%;
  right: 5%;
  max-width: 40vw;
  transform: translateY(-50%);
  font-size: 4em;
  font-weight: 100;
  text-align: right;
  margin: 0;
  white-space: nowrap;
}

#main .section.sec2 h2 span {
  font-weight: 700;
}

#main .section.sec2 .examples {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  height: 28vw;
  width: 40vw;
}

#main .section.sec2 .examples img {
  position: absolute;
  width: 80%;
  top: 0%;
  left: 0%;
  box-shadow: black 0 0 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: 200ms;
}

#main .section.sec2 .examples img:hover {
  box-shadow: white 0 0 8px;
  transform: scale(1.025);
}

#main .section.sec2 .examples img.example1 {
  top: 20%;
  left: 20%;
}

#main .section.sec2 .examples img.example2 {
  top: 10%;
  left: 10%;
}

#main .section.sec2 .examples img.example3 {
  top: 0%;
  left: 0%;
}


#imgview {
  position: fixed;
  top:0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0,0,0,0.5);
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transition: opacity 100ms, visibility 100ms;
}


#main .section.sec3 {
  background: #112;
}

#main .section.sec3 h3 {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2vw;
  opacity: 0.5;
  white-space: nowrap;
}

#main .section.sec3 .projects {
  position: absolute;
  top: 55%;
  left: 10%;
  height: 60vh;
  width: 25%;
  max-width: 500px;
  transform: translateY(-50%);
  border: solid 1px rgba(255,255,255,0.5);
  box-shadow: rgba(255,255,255,0.5) 0 0 8px;
  border-radius: 4px;
}

#main .section.sec3 .examples {
  position: absolute;
  top: 55%;
  right: 10%;
  width: 40%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-around;
}

#main .section.sec3 .examples div {
  width: 45%;
  padding: 5px 10px;
  border-radius: 4px;
}

#main .section.sec3 .examples div .title {
  margin: 10px;
  font-weight: bold;
}

#main .section.sec3 .examples div.PST {
  background: #e6e7f9;
}

#main .section.sec3 .examples div.PST .title {
  color: black;
}

#main .section.sec3 .examples video {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  outline: none;
}

#main .section.sec3 .examples .nonPST .kanye {
  border: #D80 solid 2px;
}

#main .section.sec3 .examples .nonPST .kanyecomment {
  height: 0;
  margin: 0;
  font-size: 10px;
  font-weight: normal;
  opacity: 0.5;
}

#main .section.sec3 .openDirComment {
  position: absolute;
  left: 32px;
  bottom: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  opacity: 0.75;
}

#main .section.sec3 .openDirComment a {
  color: #0DF;
  text-shadow: black 0 0 2px;
  font-weight: bold;
}


#main .section.gallery {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  height: 500px;
  min-height: 500px;
  background: #111;
  padding: 0;
}

#main .section.gallery * {
  width: calc(100vw / 8);
  cursor: pointer;
  transition: box-shadow 200ms;
}

#main .section.gallery *:hover {
  box-shadow: white 0 0 4px;
}

#main .section.end {
  background: #DDD;
}

#main .section.end .textbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 60%;
  color: black;
}

#main .section.end .textbox h2 {
  font-size: 3.5em;
}

#main .section.end .textbox p {
  font-size: 1em;
}

#main .section.end .textbox p span {
  display: inline-block;
  background: #222;
  border-radius: 2px;
  color: #DDD;
  font-family: 'Courier New', Courier, monospace;
  padding: 2px 4px;
}

#imgview.active {
  visibility: visible;
  opacity: 1;
}

#imgviewimage {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 80vw;
  max-height: 80vh;
  transform: translate(-50%,-50%);
}

@media screen and (orientation: portrait) {

  #main .section.start .dovah {
    opacity: 1;
    width: 80%;
  }

  #main .section.sec2 h2 {
    position: absolute;
    top: 10%;
    right: 50%;
    max-width: 100vw;
    transform: translateX(50%);
    font-size: 4em;
    text-align: center;
  }

  #main .section.sec2 .examples {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    height: 28vw;
    width: 40vw;
  }

  #main .section.sec3 h3 {
    font-size: 3.5vw;
  }

  #main .section.sec3 .projects {
    display: none;
  }

  #main .section.sec3 .examples {
    position: absolute;
    top: 50%;
    right: 50%;
    width: 95%;
    transform: translate(50%, -50%);
    display: flex;
    justify-content: space-around;
  }

  #main .section.sec3 .examples div .title {
    font-size: 2em;
  }

  #main .section.sec3 .openDirComment {
    position: absolute;
    left: 32px;
    bottom: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25em;
    opacity: 0.75;
  }

  #main .section.end .textbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 80%;
    color: black;
  }

  #main .section.end .textbox p {
    font-size: 1.8em;
  }
}