* {
  box-sizing: border-box;
}

body {
  font-family: filson-pro, sans-serif;
  color: #000;
  margin: 0;
  background: #F3EEDF;
  overflow: hidden;
}

#burger, #logo, #rsvp {
  position: absolute;
  z-index: 999;
}

#logo {
  display: block;
  cursor: pointer;
  top: 30px;
  left: 30px;
  width: 223px;
  max-width: 15vw;
  transition: all 0.35s ease-out;
}

@media (max-width: 900px) {
  #logo {
    max-width: 100%;
    width: 150px;
    top: 15px;
    left: 15px;
  }
}

#logo img {
  display: block;
  width: 100%;
  height: auto;
}

#logo:hover {
  transform: scale(1, 1) translate(5px, 0);
  opacity: 0.65;
}

#burger {
  top: 30px;
  right: 30px;
  width: 50px;
  height: 36px;
  cursor: pointer;
  mix-blend-mode: multiply;
  transition: all 0.2s ease-out;
}

@media (max-width: 900px) {
  #burger {
    top: 15px;
    right: 15px;
  }
}

#burger span {
  position: absolute;
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 6px;
  transition: all 0.2s ease-out;
}

#burger span:first-of-type {
  background: #901e5d;
}

#burger span:nth-of-type(2) {
  top: 14px;
  background: #329fa3;
}

#burger span:last-of-type {
  top: 28px;
  background: #323575;
}

@media (min-width: 900px) {
  #burger:hover span:first-of-type {
    margin-top: -5px;
  }
  #burger:hover span:last-of-type {
    margin-top: 5px;
  }
}

@keyframes drift1 {
  0% {
    top: -6%;
  }
  50% {
    top: 6%;
  }
  100% {
    top: -6%;
  }
}

@keyframes drift2 {
  0% {
    top: 6%;
  }
  50% {
    top: -6%;
  }
  100% {
    top: 6%;
  }
}

#bgLogo {
  position: fixed;
  bottom: 20px;
  left: 30px;
  z-index: 2;
  text-align: center;
  transition: opacity 0.2s ease-out;
}

@media (max-width: 900px) {
  #bgLogo {
    bottom: 10px;
    left: 10px;
  }
}

#bgLogo img {
  width: 24vh;
  max-width: 125px;
}

#bgLogo.out {
  opacity: 0;
  pointer-events: none;
}

#bgLogo p {
  color: #a9a9a9;
  text-transform: uppercase;
  margin: 0 0 0 1em;
  line-height: 1;
  font-size: 10px;
}

@media (max-width: 900px) {
  #bgLogo p {
    margin: 0 0 0 1em;
    font-size: 8px;
  }
}

#bgLogo a {
  transition: opacity 0.35s ease-out;
}

#bgLogo a:hover {
  opacity: 0.65;
}

@media (max-width: 900px) {
  #bgLogo img {
    width: 100px;
    height: auto;
  }
}

@media (min-width: 900px) {
  .end #bgLogo.out {
    opacity: 1;
    pointer-events: auto;
  }
}

#rsvp {
  position: fixed;
  display: block;
  width: 100px;
  height: 100px;
  font-size: 25px;
  line-height: 1;
  top: 120px;
  right: -37px;
  color: #FFF;
  text-decoration: none;
  font-weight: 900;
  z-index: 998;
  backface-visibility: hidden;
}

@media (max-width: 900px) {
  #rsvp {
    top: unset;
    bottom: 20px;
    width: 85px;
    height: 85px;
    right: -28px;
    font-size: 20px;
  }
}

#rsvp.loaded {
  transition: height 0.75s ease-out, width 0.75s ease-out, top 0.75s ease-out, right 0.75s ease-out, font-size 0.75s ease-out, margin-top 0.75s ease-out;
}

#rsvp:before, #rsvp:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 100%;
  transition: all 0.3s ease-out;
}

#rsvp:before {
  background: #329fa3;
  top: -6%;
  z-index: 2;
  mix-blend-mode: multiply;
  animation: drift1 2s ease-in-out infinite;
}

#rsvp:after {
  background: #901e5d;
  top: 6%;
  z-index: 1;
  animation: drift2 2s ease-in-out infinite;
}

#rsvp:hover:before, #rsvp:hover:after {
  transform: scale(1.1);
}

#rsvp:hover:before {
  background: #ed5c3e;
}

#rsvp:hover:after {
  background: #329fa3;
}

#rsvp span {
  position: absolute;
  z-index: 3;
  right: 45%;
  top: 50%;
  transform: translateY(-50%);
}

#lockups {
  opacity: 0;
}

#frameNav {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 11;
}

.end #scrollPrompt {
  opacity: 0;
}

@media (min-width: 900px) {
  .end #rsvp {
    width: 45vw;
    height: 45vw;
    top: 50%;
    margin-top: -22.5vw;
    font-size: 11.5vw;
    right: -15vw;
    z-index: 3;
  }
  .end #rsvp:before, .end #rsvp:after {
    animation-duration: 5s;
  }
}

@media (max-width: 1300px) {
  .end #rsvp {
    width: 35vw;
    height: 35vw;
    top: 50%;
    margin-top: -17.5vw;
    font-size: 9vw;
    right: -13vw;
    z-index: 3;
  }
}

@media (max-width: 900px) {
  .end #rsvp {
    width: 25vh;
    height: 25vh;
    font-size: 6vh;
    right: -8vh;
    z-index: 3;
    top: unset;
    margin-top: unset;
  }
  .end #rsvp:before, .end #rsvp:after {
    animation-duration: 3s;
  }
}

iframe, #animWrap, .content {
  position: fixed;
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

iframe {
  border: 0;
  outline: 0;
}

#animWrap {
  z-index: 1;
  transition: height 999999s;
}

.content {
  padding: 100px 30px 100px;
  z-index: 0;
  overflow: auto;
  color: #323575;
}

.content img {
  width: 90%;
  max-width: 500px;
}

@media (orientation: portrait) {
  #desktopAnim {
    display: none;
  }
}

@media (orientation: landscape) {
  #mobileAnim {
    display: none;
  }
}

@keyframes scrollPrompt {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 0;
    transform: translateY(50px);
  }
}

#scrollPrompt {
  position: fixed;
  font-size: 1.25rem;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: opacity 0.2s ease-out;
  color: #323575;
  font-weight: 900;
}

#scrollPrompt p {
  margin: 0 0 0.5rem;
  transition: opacity 0.2s ease-out;
}

@media (max-width: 900px) {
  #scrollPrompt p {
    display: none;
  }
}

#scrollPrompt span span {
  position: relative;
  display: block;
  margin: 5px auto;
  width: 0;
  height: 0;
  opacity: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #323575;
  animation: scrollPrompt 2s ease-in-out infinite;
}

#scrollPrompt span span:nth-child(1) {
  animation-delay: 0.1s;
}

#scrollPrompt span span:nth-child(2) {
  animation-delay: 0.05s;
}

#scrollPrompt.out p {
  opacity: 0;
}

#drawerNav {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  z-index: 3;
  background: rgba(50, 159, 163, 0.95);
  text-align: center;
  transition: width 0.75s ease-out;
}

@media (max-width: 900px) {
  #drawerNav {
    transition: width 0.5s ease-out;
  }
}

#drawerNav .navWrap {
  position: absolute;
  display: flex;
  flex-flow: column;
  justify-content: center;
  width: 100vw;
  height: 100%;
  top: 0;
  right: 0;
}

#drawerNav button {
  font-family: filson-pro, sans-serif;
  display: inline-block;
  font-weight: 900;
  appearance: none;
  -webkit-apperance: none;
  background: transparent;
  color: #FFF;
  border: 0;
  outline: 0;
  font-size: 7vh;
  cursor: pointer;
  transition: color 0.1s ease-out;
}

@media (max-width: 900px) {
  #drawerNav button {
    margin: 0.25em 0;
    line-height: 1.1;
    font-size: 4.5vh;
  }
}

#drawerNav button:hover {
  color: #901e5d;
}

body.open #drawerNav {
  width: 100%;
}

body.open #burger {
  transform: rotate(90deg);
}

body.open #burger span:first-of-type {
  transform: rotate(45deg);
  margin-top: 15px;
}

body.open #burger span:nth-of-type(2) {
  transform: scaleX(0.01);
}

body.open #burger span:last-of-type {
  transform: rotate(-45deg);
  margin-top: -12px;
}
