* {
  bo2x-sizing: border-box;
}


html {
  overflow: hidden;
}

@media (min-width: 1024px) {
  #toggle {
      position: absolute;
      right: 40px;
      z-index: 2000;
      cursor: pointer;
      top: calc( 50vh - 64px );
      width: 128px;
  }
  #toggle img {
     width: 128px;
  }
}

@media (max-width: 1023px) {
  #toggle {
      position: absolute;
      bottom: 50px;
      z-index: 2000;
      cursor: pointer;
      left: calc( 50vw - 32px );
      width: 128px;
  }
  #toggle img {
    width: 64px;
  }
}

body {
  background-color: #000;
  background-image: url("bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

audio {
	width: 300px;
    height: 54px;
}
.card-container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card {
  perspective: 1500px;
  /*position: absolute;
  left: calc(50% - 175px);
  top: calc(45% - 250px);*/
   /* margin: 0 auto;*/
  transition-property: transform;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: initial;
  transform: rotate(75deg) translate(0, 0);
  -webkit-animation: cardIn 1s alternate cubic-bezier(0.87, -0.41, 0.19, 1.44);
  animation: cardIn 1s alternate cubic-bezier(0.87, -0.41, 0.19, 1.44);
}
@media (max-width: 767px) {
  .card {
      /*
    left: calc(50% - 115px);
    top: calc(50% - 164.5px);*/
     /* margin: 0 auto;*/
  }
}
@media (max-width: 479px) {
  .card {/*
    left: calc(50% - 75px);
    top: calc(50% - 107px);*/
     /* margin: 0 auto;*/
  }
}
.card:before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 50px #000;
  transition: all 0.5s ease-in-out;
}

.card.is-opened {
  transform: rotate(85deg) translate(175px, 0);
}

.card.is-open cart-page-bottom p {
   transform: rotate(270deg)!important;
}


@media (max-width: 767px) {
  .card.is-opened {
    transform: rotate(85deg) translate(115px, 0);
  }
}
@media (max-width: 479px) {
  .card.is-opened {
    transform: rotate(85deg) translate(75px, 0);
  }
}
.card.is-opened .cart-page-front {
  transform: rotateY(-180deg);
}

@-webkit-keyframes cardIn {
  0% {
    opacity: 0;
    transform: rotate(75deg) translate(0, -100%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(75deg) translate(0, 0);
  }
}

@keyframes cardIn {
  0% {
    opacity: 0;
    transform: rotate(75deg) translate(0, -100%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(75deg) translate(0, 0);
  }
}
.card,
.card-page {
  width: 305px;
  height: 650px;
}
@media (max-width: 767px) {
  .card,
.card-page {
    width: 160px;
    height: 329px;
  }
}
@media (max-width: 479px) {
  .card,
.card-page {
    width: 120px;
    height: 214px;
  }
}

.card-page {
  transition: transform 1s ease-in-out;
  cursor: pointer;
  position: absolute;
  outline: 1px solid transparent;
}

.cart-page-front {
  transform-origin: 0 50% 0;
  transform-style: preserve-3d;
  transform: rotateY(-20deg);
  z-index: 2;
}

.cart-page-outside,
.cart-page-inside {
  position: absolute;
  -webkit-backface-visibility: hidden;
}

.cart-page-outside {
  border: 10px solid #fbfbfb;
  background: #FFF url("/christmascard_outside.png") no-repeat center;
  background-size: contain;
  width: 100%;
  height: 100%;
}
@media (max-width: 767px) {
  .cart-page-outside {
    border: 5px solid #fbfbfb;
  }
}

.cart-page-inside {
  background: #FFF url("/christmascard_inside_1.png") no-repeat right;
  background-size: contain;
  width: 100%;
  height: 100%;
  border: 20px solid #FFF;
}
.cart-page-bottom {
  background: #FFF url("/christmascard_inside_2.png") no-repeat left;
  background-size: contain;
  width: 100%;
  height: 100%;
  border: 20px solid #FFF;
}
@media (max-width: 767px) {
  .cart-page-inside,
.cart-page-bottom {
    border: 10px solid #FFF;
  }
}

.cart-page-inside {
  transform: rotateY(-180deg);
  border-right: none !important;
  background-position: 43x 6px;
}

.cart-page-bottom {
  z-index: 1;
  border-left: none !important;
  background-position: 0x 5px;
}

.snow {
    position: fixed;
	   height: 100vh;
     width: 100vw;
    top: 0;
    left: 0;
    right: 0;
     bottom:0;
    z-index: -1;
    pointer-events: none;
}



.click-icon {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: 20px;
  -webkit-animation: iconAnimation 1s infinite alternate ease-in-out;
  animation: iconAnimation 1s infinite alternate ease-in-out;
  transition: opacity 0.5s ease-in-out;
  opacity: 1;
}
.click-icon svg {
  width: 96px;
  height: 96px;
}
@media (max-width: 767px) {
  .click-icon svg {
    width: 72px;
    height: 72px;
  }
}
@media (max-width: 479px) {
  .click-icon svg {
    width: 48px;
    height: 48px;
  }
}
.click-icon.is-hidden {
  opacity: 0;
}

@-webkit-keyframes iconAnimation {
  0% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, 10px);
  }
}

@keyframes iconAnimation {
  0% {
    transform: translate(-50%, 0);
  }
  100% {
    transform: translate(-50%, 10px);
  }
}
p {
  font-family: "Mirza", Verdana, Arial, serif;
  font-size: 36px;
  line-height: 1.2em;
  padding-left: 10px;
}
@media (max-width: 767px) {
  p {
    font-size: 24px;
  }
}
@media (max-width: 479px) {
  p {
    font-size: 20px;
  }
}