@import 'https://fonts.googleapis.com/css?family=Karla|Slackey|Sriracha';
body {
  
  background: #ffffff;
  perspective: 1000px;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}
body, html, canvas{
  width: 100%; height: 100%; position: relative; margin: 0; padding: 0;  
} 
/* St
/* body::after,
body::before{
  content: '';
 position: absolute;
  top: 0;
  left: 0; 
  height: 100vh;
  width: 50vw;
  background: url('../images/flower1.png')   no-repeat;
  z-index: -1;
}
body::after {
  top: 0;
  left: auto;
  right: 0px;
  
  background: url(../images/flower2.png) no-repeat;
  background-position: right;
} */

* {
  outline: none;
}

.invitation {
  width: 500px;
  position: absolute;
  top: 25%;
  left: 0px;
  bottom: 0px;
  right: 0px;
  margin: auto;
 
}
@media   (max-width: 600px) {
  .invitation {
    transform: translate(-67%, -53%);
    transform: scale(0.8);
    left: 0px;
    top: 25vh; 
  }
}
.envelope {
  background: #506021;
  width: 100%;
  height: 307.6923076923px;
  position: relative;
  z-index: 1;
}
.envelope.is-open:before, .envelope.is-open:after {
  z-index: -2;
}

.envelope:before,
.envelope:after {
  content: "";
  position: absolute;
  bottom: 0;
}

.envelope:before {

  right: 0;
  border-bottom: 0px solid transparent;
  border-top: 307.6923076923px solid transparent;
  border-right: 500px solid #9ab941;
  z-index: 1;
}

.envelope:after {

  left: 0;
  border-bottom: 0px solid transparent;
  border-top: 307.6923076923px solid transparent; 
  border-left: 500px solid #7b923a;
  z-index: 1;
}

.flap {
  border-right: 250px solid transparent;
  border-top: 153.8461538462px solid #c0d973;
  border-left: 250px solid transparent;
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 50% 0%;
  z-index: 2;
}

.mask {
  box-sizing: border-box;
  -webkit-clip-path: inset(0 0 50% 0);
          clip-path: inset(0 0 50% 0);
  overflow: hidden;
  position: relative;
  width: 480px;
  height: 2010px;
  z-index: 0;
  margin: auto;
  top: 50%;
  transform: translate(0, -50%);
  perspective: 1200px;
}

.card {
  position: relative;
  width: 480px;
  height: 670px;
  margin: auto;
  transform-style: preserve-3d;
  transform-origin: 50% 10%;
  transform: translate(0, 128%) rotateY(0deg);
}

.face {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  background: transparent 50% 100%/auto 100% no-repeat;
  box-shadow: 0 3px 6x rgba(0, 0, 0, 0.3);
}
.face:last-of-type {
  transform: translateZ(-3px) rotateY(180deg);
  background-size: 130% auto;
}

.front {
  background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/39132/poke-bg.gif);
}
.front h1 {
  position: relative;
  font: normal 3em/0.9 "Slackey", sans-serif;
  letter-spacing: -2px;
  color: #ffce00;
  padding: 30px 0 0;
  margin: 0;
  -webkit-font-smoothing: subpixel-antialiased;
}
.front h1 img {
  width: 90%;
  display: block;
  margin: auto;
}
.front h1 span {
  display: block;
  text-align: center;
  margin-top: 40px;
  padding: 0 20%;
  margin: auto;
  line-height: 1.3;
}
.front h1 .extrude {
  text-shadow: 0 1px 0 #e6b900, 0 2px 0 #cca500, 0 3px 0 #b39000, 0 4px 0 #997c00, 0 5px 0 #806700, 0 6px 1px rgba(0, 0, 0, 0.0980392), 0 0 5px rgba(0, 0, 0, 0.0980392), 0 1px 3px rgba(0, 0, 0, 0.298039), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.247059);
}

.face.back {
  background:white;
  color: #000;
  overflow: hidden;
  height: 107%;
}
.face.back img {
  position: absolute;
  top: 60px;
  display: inline-block;
  width: 90%;
  left: 50%;
  transform: translate(-50%, 0);
}

button {
  
  font: normal 1.25em "Karla", sans-serif;
  padding: 15px 30px;
  background: #8a1313;
  color: #ffffff;
  border: none;
  position: absolute;
  box-shadow: 0 1px 2px rgb(0 0 0 / 30%);
  left: 50%;
  top: 170px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease-out, color 0.3s ease-out;
  height: 179px;
  border-radius: 111px;
  font-family: Forte;
}
button.invert {
  
  color: #ffffff;
  background: #7a0351;
  height: auto;
  top: 285px;
}
/* 

*/
#home {
  clip-path: url(#cache);
}

#red {
  fill: none;
  opacity: 0.15;
  stroke: #CE1B5F;
  stroke-width: 12;
  stroke-miterlimit:10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out; 
}

#blue {
  fill: none;
  opacity: 0.15;
  stroke: #06A1C4;
  stroke-width: 12;
  stroke-miterlimit:10;
  animation: show 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

#light-blue {
  fill: none;
  opacity: 0.15;
  stroke: #06A1C4;
  stroke-width: 6;
  stroke-miterlimit:10;
  stroke-dasharray: 200;
  stroke-dashoffset: 800;
  animation: draw 4s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;    
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
 }
    }

@keyframes show {
  0% {
    opacity: 0.15;
 }
  50% {
    opacity: 0.2;
 }
  100% {
    opacity: 0.15;
 }
    }




