/* Reset */
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, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 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;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Design basis */
@font-face {
  font-family: 'Cristal Elegance';
  src: url('../fonts/CristalElegance.eot');
  src: local('../fonts/Cristal Elegance'), local('CristalElegance'),
      url('../fonts/CristalElegance.eot?#iefix') format('embedded-opentype'),
      url('../fonts/CristalElegance.woff2') format('woff2'),
      url('../fonts/CristalElegance.woff') format('woff'),
      url('../fonts/CristalElegance.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Bodoni 72';
  src: url('../fonts/BodoniSvtyTwoITCTT-Book.eot');
  src: url('../fonts/BodoniSvtyTwoITCTT-Book.eot?#iefix') format('embedded-opentype'),
      url('../fonts/BodoniSvtyTwoITCTT-Book.woff2') format('woff2'),
      url('../fonts/BodoniSvtyTwoITCTT-Book.woff') format('woff'),
      url('../fonts/BodoniSvtyTwoITCTT-Book.svg#BodoniSvtyTwoITCTT-Book') format('svg'),
      url('../fonts/bodoni-72-book.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

#tekststart, .savethedate, .meerinfo {
  font-family: 'Cristal Elegance';
}

.wij, .datum {
  font-family: "Bodoni 72", serif;
  font-weight: normal;
  font-style: normal;
}

@-moz-keyframes spin { 
  100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
  100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
  100% { 
    -webkit-transform: rotate(360deg); 
    transform:rotate(360deg); 
  } 
}

@-moz-keyframes hartje { 
  0% { -moz-transform: scale(1); }
  50% { -moz-transform: scale(1.1); } 
  100% { -moz-transform: scale(1); } 
}
@-webkit-keyframes hartje { 
  0% { -webkit-transform: scale(1); } 
  50% { -webkit-transform: scale(1.1); } 
  100% { -webkit-transform: scale(1); } 
}
@keyframes hartje { 
  0% { 
    -webkit-transform: translateX(-50%) scale(1); ; 
    transform:translateX(-50%) scale(1); 
  }
  50% { 
    -webkit-transform: translateX(-50%) scale(1.05); ; 
    transform:translateX(-50%) scale(1.05); 
  } 
  100% { 
    -webkit-transform: translateX(-50%) scale(1); ; 
    transform:translateX(-50%) scale(1); 
  } 
}

html {
  background-image: url('../img/bg-save-the-date.jpg');
  background-repeat: no-repeat;
  background-size: 100vh;
}

main {
  opacity: 0;
  transition: opacity 4s;
}

main.intro {
  opacity: 1;
}

/* Tekst start */
#tekststart {
  font-size: 65px;
  line-height: 38px;
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50% , -50%);
}

#tekststart .disable {
  opacity: 0;
}

#tekststart.disable {
  display: none;
}

.blok1 {
  transition: all ease-in-out .3s;
}

.blok2 {
  margin-top: 70px;
  position: relative;
  transition: all ease-in-out .3s;
}

.blok2:before {
  content: "";
  background-image: url('../img/savethedate-hartje.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 167px;
  height: 184px;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -50px;
  -webkit-animation:hartje 3s ease-in-out infinite;
  -moz-animation:hartje 3s ease-in-out infinite;
  animation:hartje 3s ease-in-out infinite;
  transition: all ease-in-out .3s;
  /* transform: translateX(-50%) scale(1); */
}

.blok2a {
  display: block;
  font-size: 36px;
  transition: all ease-in-out .3s;
  transition-delay: 3s;
  transform: translateX(-100vw);
}

.blok2a.hier {
  transform: translateX(0);
}

.blok3 {
  margin-top: 35px;
  transition: all ease-in-out .3s;
}

.blok4 {
  margin-top: 45px;
  width: 100%;
  transition: all ease-in-out 1.5s;
}

/* .blok5 {
  margin-top: 35px;
  font-size: 30px;
  width: 100%;
  transition: all ease-in-out 1.5s;
} */

/* tekst save the date */
#tekst {
  width: 336px;
  max-width: calc(100vw - 30px);
  height: auto; 
  margin: 0 auto;
  text-align: left;
  position: absolute;
  top: 6vh;
  left: 50%;
  transform: translateX(-50%);
  transition: all ease-in-out .3s;
  display: none;
}

#tekst.zichtbaar {
  display: block;
}

.savethedate {
  position: relative;
  font-size: 100px; /*  110px; */
  line-height: 58px; /* 68px; */
  width: 100%;
  max-width: 230px;
  text-align: center;
  margin-right: 0;
  margin-left: auto;
  transition: all ease-in-out .3s;
}

.savethedate:before {
  content: "";
  background-image: url('../img/savethedate-hartje.png');
  background-size: contain;
  background-repeat: no-repeat;
  width: 167px;
  height: 184px;
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -30px;
  transition: opacity 2s;
  opacity: 0;
  -webkit-animation:hartje 3s linear infinite;
  -moz-animation:hartje 3s linear infinite;
  animation:hartje 3s linear infinite;
}

.savethedate.zichtbaar:before {
  opacity: 1;
}

.save {
  transition: opacity 2s;
  opacity: 0;
}

.save.zichtbaar {
  opacity: 1;
}

.thedate {
  transition: opacity 2s;
  opacity: 0;
}

.thedate.zichtbaar {
  opacity: 1;
}

.wij {
  margin-top: 8vh;
  font-size: 60px;
  text-transform: uppercase;
  transition: all ease-in-out 4s;
  transform: translateX(-100vw);
}

.wij.zichtbaar {
  transform: translateX(0);
}

.datum {
  margin-top: 20px;
  font-size: 40px;
  transition: all ease-in-out 4s;
  transform: translateX(-100vw);
}

.datum.zichtbaar {
  transform: translateX(0);
}

.datum span {
  margin: 0px 10px;
  color: #FBC4CB;
  position: relative;
}

.meerinfo {
  margin-top: 10px;
  font-size: 65px;
  line-height: 40px;
  transition: all ease-in-out 4s;
  transform: translateX(-100vw);
}

.meerinfo.zichtbaar {
  transform: translateX(0);
}

#singeltje {
  width: 100%;
  max-width: 50vh;
  height: 50vh; 
  position: fixed;
  left: 30vw; 
  bottom: -25vh; 
  transform: translateY(100vh);
  transition: all ease-in-out 5s;
}

#singeltje img {
  width: 100%;
  height: auto;
}

#singeltje.spin img {
  -webkit-animation:spin 12s linear infinite;
  -moz-animation:spin 12s linear infinite;
  animation:spin 12s linear infinite;
}

#singeltje.zichtbaar {
  transform: translateY(0);
}

#desktop {
  display: none;
}

@media only screen and ( min-width: 501px ) {
  html {
    background-color: #FBC4CB;
    align-items: center;
    background-image: none;
  }

  main {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
  }

  #tekststart, #tekst, #singeltje {
    display: none;
  }

  #desktop {
    display: inline-block;
    font-family: 'Cristal Elegance';
    font-size: 80px;
    line-height: 64px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
}