* {
  bo2x-sizing: border-box;
}


html {
  overflow: hidden;
}

@font-face {
  font-family: 'Univers57BoldOblique';
  src: url('/fonts/Univers57CondensedBoldOblique.woff2') format('woff2'), url('/fonts/Univers57CondensedBoldOblique.woff') format('woff'), url('/fonts/Univers57CondensedBoldOblique.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

@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: 25px;
      z-index: 2000;
      cursor: pointer;
      width: 128px;
  }

  #toggle img {
    width: 64px;
    background: #BE1E2D;
}
}

body {
  background-color: rgba(0, 0, 0, 0);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Univers57BoldOblique', Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.page-container {
  position: relative;
  width: 100%;
  height: 100%;
}

audio {
	width: 300px;
    height: 54px;
}

.svg-background {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.card-container {
    width: 100%;
    height: 100vh;
    z-index: 2 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card {
  perspective: 1500px;
  /*position: absolute;
  left: calc(50% - 175px);
  top: calc(45% - 250px);*/
   /* margin: 0 auto;*/
   z-index: 2;
  transition-property: transform;
  transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition-delay: initial;
  transform: rotate(90deg) 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);
  animation-fill-mode: forwards;
}
@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 cardIn2 {
  0% {
    opacity: 0;
    transform: rotate(10deg) translate(0, -200%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(10deg) translate(0, 0);
  }
}

@keyframes cardIn2 {
  0% {
    opacity: 0;
    transform: rotate(10deg) translate(0, -200%);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotate(10deg) translate(0, 0);
  }
}

@-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: 140px;
    height: 290px;
  }
}

.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: 20px 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: 10px 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;
  }
}


@keyframes twinkle{
  0%,100%{
      opacity:1;
  }
  50%{
      opacity:0;
  }
}

@keyframes snowfall{
  0%{
      transform:translate(0px,0px);
      opacity:1;
 }

  100%{
      opacity:0;
      transform: translate(80px, 150px) ;
  }
}
@keyframes lightson{
  from{opacity:0;}
  to{opacity:1;}
}
@keyframes dimlight{
  0%, 100%{opacity:1;}
  50%{opacity:0.95;}
}
@keyframes sleighpath{
  0%{
      opacity:0 ;
      transform:translate(-3000px,1000px);
  }

  30%{
      opacity:1 ;
      transform:translate(0,0px);
  }
  31%{
      opacity:1;
      transform:translate(0px,0px) ;
  }
  35%{
      opacity:1 ;
      transform:translate(0,-5px);
  }
  40%{
      opacity:1 ;
      transform:translate(0,5px);
  }
  45%{
      opacity:1 ;
      transform:translate(0,0);
  }
  50%{
      opacity:1 ;
      transform:translate(0,5px);
  }
  55%{
      opacity:1 ;
      transform:translate(0,0);
  }
  60%{
      opacity:1 ;
      transform:translate(0,5px);
  }
  65%{
      opacity:1 ;
      transform:translate(0,0);
  }
  70%{
      opacity:1 ;
      transform:translate(0,5px);
  }
  75%{
      opacity:1 ;
      transform:translate(0,0);
  }
  80%{
      opacity:1 ;
      transform:translate(0,0);
  }
  100%{
      opacity:0 ;
      transform:translate(3000px,-1000px);
  }
}
#moon{
  animation: dimlight 4s ease infinite;
}
#Layer_15, #OBJECTS{
      opacity:0;
      animation: lightson 1s ease 5s forwards;
}
#star1{
  animation: twinkle 2s ease infinite ;
}

#star2{
  animation: twinkle 4s ease 1s infinite ;
}

#star3{
  animation: twinkle 4s ease 0.5s infinite ;
}

#star4{
  animation: twinkle 3s ease 2s infinite ;
}
#sleigh{
  opacity:0;
  animation: sleighpath 5s ease 1s forwards  ;
}
#snow1{
  animation: snowfall 2s infinite;
}
#snow2{
  animation: snowfall 1s  0.25s infinite;
}
#snow3{
  animation: snowfall 1s  0.5s infinite;
}
#snow4{
  animation: snowfall 1s  1s infinite;
}
#snow5{
  animation: snowfall 2s 1.25s infinite ;
}
#snow6{
  animation: snowfall 1.5s 1.5s infinite ;
}
#snow7{
  animation: snowfall 0.5s  0.4s infinite;
}
#snow8{
  animation: snowfall 0.5s 1s infinite ;
}
#snow9{
  animation: snowfall 1.5s 0.5s infinite ;
}
#snow10{
  animation: snowfall 1.5s 1s infinite ;
}
#snow11{
  animation: snowfall 0.5s 0.25s infinite ;
}


.container-svg{
width:100%;
overflow:hidden;
}

@media screen and (max-width:700px){
.container-svg{
text-align:center ;
height: 100vh ;
}
.container-svg > svg{
height:100vh;
}

svg.svg-background {
  height: 65vh;
}
}
