/* main: index.scss*/
/* -----  Reset & Normalization  ---------------------------------------- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

ins {
  text-decoration: none;
}

del {
  text-decoration: line-through;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* main: index.scss*/
/* main: index.scss*/
html {
  width: 100vw;
}

body {
  font-family: "Catamaran", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-smooth: always;
  -moz-osx-font-smoothing: grayscale;
  background: #141414;
  color: #90A0FF;
  text-align: center;
  overflow-y: hidden;
  overflow-x: hidden;
  width: 100vw;
  height: 100%;
}

strong {
  font-weight: 900;
}

main {
  width: 95vw;
  height: 85vh;
  margin: 7.5vh auto;
  transition: all 1s ease-in-out;
  position: relative;
}

header {
  background: url("../images/logo.svg");
  width: 150px;
  margin: 0 auto;
  height: 70px;
  background-size: contain;
  background-repeat: no-repeat;
}

header::after {
  content: '';
  background: url("../images/ekdr-spin.gif");
  width: 200px;
  height: 200px;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  margin: -69px -101px;
  display: none;
  pointer-events: none;
}

header:hover {
  background: none;
}

header:hover::after {
  display: inline;
}

nav {
  width: 50vh;
  height: 40vh;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -21vh -25vh;
}

nav #window {
  width: 100%;
  height: 100%;
  background-image: url("../images/window-paneless.svg");
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9;
}

nav::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: url("../images/window.svg");
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}

nav::after {
  content: '';
  width: 193vh;
  height: 100vh;
  margin-left: -12px;
  background-image: url(../images/shadow.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  pointer-events: none;
  left: 0;
  opacity: .5;
}

nav a {
  width: 50%;
  height: 50%;
  padding: 0;
  margin: 0;
  display: inline-block;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  line-height: 20vh;
  font-size: 20px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  animation: linksfade 0s forwards .25s;
}

nav a#registry:hover {
  background: url("../images/registry.gif");
}

nav a#wedding {
  animation-delay: .35s;
}

nav a#wedding:hover {
  background: url("../images/wedding.gif");
}

nav a#hotels {
  animation-delay: .45s;
}

nav a#hotels:hover {
  background: url("../images/hotel.gif");
}

nav a#xoxo {
  animation-delay: .55s;
}

nav a#xoxo:hover {
  background: url("../images/xoxo.gif");
}

@keyframes linksfade {
  from {
    color: #fff;
  }
  to {
    color: rgba(0, 0, 0, 0);
  }
}

@keyframes disappear {
  from {
    display: inline;
  }
  to {
    display: none;
  }
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
}

footer a {
  font-weight: 900;
  color: #90A0FF;
  font-size: 18px;
  letter-spacing: 1px;
  text-decoration: none;
}

footer p a {
  font-weight: 400;
}

footer #back:hover {
  color: rgba(0, 0, 0, 0);
  background: url("../images/window.svg");
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  background-size: contain;
  position: absolute;
  bottom: -15px;
  left: calc(50% - 25px);
}

h1 {
  font-size: 30px;
  font-weight: 900;
  color: #90A0FF;
  margin: 0 auto 20px;
}

h2 {
  font-size: 22px;
  font-weight: 900;
  color: #90A0FF;
  letter-spacing: 3.5px;
  text-align: center;
  margin-bottom: 16px;
}

h2 span {
  color: #fff;
}

p {
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 400;
}

.div-tooltip {
  display: none;
  position: absolute;
  background: #141414;
  padding: 18px 20px;
  z-index: 7000;
  font-weight: 900;
  color: #90A0FF;
  font-size: 18px;
  margin: -10px 0 0 -20px;
  border: 1px solid #90A0FF;
  pointer-events: none;
  vertical-align: middle;
  box-sizing: border-box;
}

#confetti {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  top: 0;
  pointer-events: none;
  background: url("../images/confetti.gif");
  background-size: cover;
}

section {
  width: 56%;
  height: auto;
  position: absolute;
  top: 50%;
  left: 22%;
  transform: translateY(-50%);
  margin-top: 35px;
}

section p {
  margin-bottom: 22px;
  line-height: 28px;
}

section a {
  font-weight: 900;
  color: #90A0FF;
  display: inline-block;
  text-decoration: none;
  border-bottom: solid #90A0FF 1px;
}

section#david, section#emily {
  top: calc(50% + 12vh);
}

section#david:before, section#emily:before {
  width: 22vh;
  height: 22vh;
  left: calc(50% - 11vh);
  position: absolute;
  content: '';
  top: -26vh;
}

section#david:before {
  background: url("../images/david.jpg");
  background-size: contain;
  background-repeat: no-repeat;
}

section#emily:before {
  background: url("../images/emily.jpg");
  background-size: contain;
  background-repeat: no-repeat;
}

#xoxo section {
  width: 40%;
  left: 10%;
}

#xoxo section:nth-child(2) {
  left: 50%;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  main {
    position: absolute;
  }
  header:hover {
    background: url("../images/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
  }
  header:hover::after {
    display: none;
  }
  nav::after {
    margin-top: 20vh;
  }
}

/* main: index.scss*/
/* -----  Responsive mobile  ---------------------------------------- */
@media screen and (max-width: 767px) {
  _::-webkit-full-page-media, _:future, :root .safari_only {
    padding-bottom: 65px;
  }
}

@media only screen and (max-width: 560px) {
  html {
    overflow-x: hidden;
  }
  body {
    overflow-y: hidden;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
  }
  footer {
    position: fixed;
    bottom: 40px;
    left: 0;
  }
  nav {
    margin: -23.5vh -20vh;
    width: 40vh;
    height: 32vh;
  }
  nav a {
    line-height: 16vh;
  }
  nav::after {
    top: 31vh;
    width: 150vh;
    height: 100vh;
    margin-left: -6  px;
  }
  section {
    width: 95%;
    left: 2.5%;
    transform: translateY(-50%);
    margin-top: -20px;
  }
  section#david, section#emily {
    top: calc(50% + 12vh);
  }
  section#david:before, section#emily:before {
    width: 50vw;
    height: 50vw;
    left: 22.5vw;
    position: absolute;
    content: '';
    top: 2vh;
    z-index: -1;
    opacity: .4;
  }
  #xoxo section {
    width: 100%;
    left: 0;
    top: 35%;
  }
  #xoxo section h1 {
    margin: 0 auto 10px;
  }
  #xoxo section:nth-child(2) {
    left: 0%;
    top: 70%;
  }
  #hotels {
    overflow-y: visible;
    height: auto;
  }
  #hotels section {
    transform: none;
    margin-top: 90px;
    top: 0;
    padding-bottom: 75px;
  }
  #hotels footer a {
    background: #141414;
    padding: 4px 20px;
  }
}
