@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Imperial Script';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/imperial-script-v6-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/quicksand-v31-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body
{
    margin: 0;
    box-sizing: border-box;
    min-height: 100%;
    background: -webkit-gradient(linear, left top, left bottom, from(#39f), to(#0063a9)) fixed;
}
html, body {
    margin: 0;
    height: 100%;

}
.background-img{
  width:100%;
  background-image: url("img/christianmas_background.jpg");
  background-repeat: no-repeat;
  height:100%;
  position:fixed;
  left:0;
  z-index:-2;
  background-size: cover;
  background-position: center center;
}
h1,h2,h3,p{
  font-family: 'Raleway', sans-serif;
}
h2{
  font-weight:400;
}
/* title graphic */
.title {
  display: flex;
  align-items: center;
  justify-content: center;
}
.title img {
width: 60%;
    height: auto;
    margin-bottom: 50px;
}
/* mobile first grid layout */
.grid-1 {
  display: grid;
  width: 100%;
  max-width: 900px;
  margin: 0% auto;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  grid-gap: 25px;
  grid-template-areas:    "t        t       t"
                          "d23      d20     d12"
                          "d2       d14     d4"
                          "d5       d22     d16"
                          "d1       d7      d9"
                          "d10      d11     d18"
                          "d13      d3      d15"
                          "d6       d17     d8"
                          "d19      d24     d21";
}
/* media query */
@media only screen and (min-width: 500px) {
.grid-1 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-areas:
             "t     t    t     t      t      t"
             "d8     d20    d3     d9      d6      d10"
             "d2     d1    d21     d5      d11     d18"
             "d19     d14     d15     d23     d17      d12"
             "d24    d7    d4   d22     d16     d13";
  align-content: center;
  display:grid;
  height:100vh;
  }
}
/* individual items */
  .title {
    grid-area: t;
  }
  .day-1 {
  grid-area: d1;
  }

  .day-1 .back {
    background: url("img/animated/day1.gif");
  }
  .day-2 {
    grid-area: d2;
  }
  .day-2 .back {
    background: url("img/animated/day2.jpg");
  }
  .day-3 {
    grid-area: d3;
  }
  .day-3 .back {
    background: url("img/animated/day3.jpg");
  }
  .day-4 {
    grid-area: d4;
  }
  .day-4 .back {
    background: url("img/animated/day4.jpg");
  }
  .day-5 {
    grid-area: d5;
  }
  .day-5 .back {
   background: url("img/animated/day5.jpg");
  }
  .day-6 {
    grid-area: d6;
  }
  .day-6 .back {
    background: url("img/animated/day6.jpg");
  }
  .day-7 {
    grid-area: d7;
  }
  .day-7 .back {
    background: url("img/animated/day7.jpg");
  }
  .day-8 {
    grid-area: d8;
  }
  .day-8 .back {
     background: url("img/animated/day8.gif");
  }
  .day-9 {
    grid-area: d9;
  }
  .day-9 .back {
    background: url("img/animated/day9.gif");
  }
  .day-10 {
    grid-area: d10;
  }
  .day-10 .back {
     background: url("img/animated/day10.jpg");
  }
  .day-11 {
    grid-area: d11;
  }
  .day-11 .back {
     background: url("img/animated/day11.jpg");
  }
  .day-12 {
    grid-area: d12;
  }
  .day-12 .back {
    background: url("img/animated/day12.jpg");
  }
  .day-13 {
    grid-area: d13;
  }
  .day-13 .back {
     background: url("img/animated/day13.jpg");
  }
  .day-14 {
    grid-area: d14;
  }
  .day-14 .back {
      background: url("img/animated/day14.jpg");
  }
  .day-15 {
    grid-area: d15;
  }
  .day-15 .back {
     background: url("img/animated/day15.gif");
  }
  .day-16 {
    grid-area: d16;
  }
  .day-16 .back {
     background: url("img/animated/day16.jpg");
  }
  .day-17 {
    grid-area: d17;
  }
  .day-17 .back {
      background: url("img/animated/day17.gif");
  }
  .day-18 {
    grid-area: d18;
  }
  .day-18 .back {
   background: url("img/animated/day18.gif");
  }
  .day-19 {
    grid-area: d19;
  }
  .day-19 .back {
     background: url("img/animated/day19.gif");
  }
  .day-20 {
    grid-area: d20;
  }
  .day-20 .back {
     background: url("img/animated/day20.jpg");
  }
  .day-21 {
    grid-area: d21;
  }
  .day-21 .back {
     background: url("img/animated/day21.jpg");
  }
  .day-22 {
    grid-area: d22;
  }
  .day-22 .back {
     background: url("img/animated/day22.gif");
  }
  .day-23 {
    grid-area: d23;
  }
  .day-23 .back {
     background: url("img/animated/day23.jpg");
  }
  .day-24 {
    grid-area: d24;
  }
.day-24 .back {
     background: url("img/animated/day24.gif");
  }

.back span{
  padding: 5px;
  top: 0px;
  position: inherit;
  font-size: 15px;
  color: black;
  text-shadow: none;
}

.back {
  justify-content: end !important;
}

/* door styles */
.grid-1 input {
  display: none;
}
label {
  perspective: 1000px;
  transform-style: preserve-3d;
  cursor: pointer;
  display: flex;
  min-height: 100%;
  width: 100%;
  height: 120px;
}
/* door styles */
.door {
  width: 100%;
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
  display: flex;
  min-height: 100%;
  height: 120px; /* Original label height */
  border: 2px dashed #ffffff38;
  border-radius: 10px;
  transition: transform 300ms;
}

.door:hover {
  border-color: #fff !important;
  background-color: #299cff2b;
}

.door.flipped {
  transform: rotateY(180deg);
}

.door div {
  position: absolute;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Raleway', sans-serif;
  color: #fff;
  font-size: 2em;
  text-shadow: 0px 1px 3px rgb(0, 0, 0);
}

.door .back {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #fff;
  transform: rotateY(180deg);
}

  label:hover .door {
    border-color: #fff !important;
  background-color: #299cff2b;
  }
  :checked + .door {
    transform: rotateY(180deg);
  }
/* footer styles */
footer {
  text-align: center;
  padding: 2em 0;
}
footer a {
  color: #2e313d;
}
footer a:hover {
  text-decoration: none;
}
#modal {
  position: fixed;
  display: none;
  z-index: 1;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,99,169,0.7);
  top: 0px;
}
#modal.active{
  display:block;
}
#modal .wrapper {
    height:100%;
    width:100%;
    display:block;
    transition: width 2s;
}
#modal .wrapper .content {
  display: block;
  height: auto;
  width: 100%;
  margin: auto;
  text-align: center;
  background: white;
  border-radius: 50px;
  margin-top: 3px;
  transition: width 2s;
  max-width:900px;
}
#modal .wrapper .content .close {
  height: 50px;
  width: 50px;
  float: right;
  display: block;
  height: 1.5em;
  width: 1.5em;
  position: sticky;
  top: 0;
  z-index: 99;
  display: block;
  font-size: 2rem;
  background-color: #39f;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-family: 'Raleway';
  cursor:pointer;
  border-radius: 0 10px 0 0;
  opacity:1!important;
}
.close {
color: #fff!important;
}
#modal .wrapper .content .close:before {
          content:'';
          display:block;
          position:absolute;
          left:50%;
          margin-left:-1px;
          height:0%;
          width:2px;
          background:rgba(255,255,255,.7);
}
#modal .wrapper .content .close:after {
          content:'';
          display:block;
          position:absolute;
          top:50%;
          margin-top:-1px;
          width:0%;
          height:2px;
          background:rgba(255,255,255,.7);
}
#modal .wrapper .content .box {
padding: 20px 50px;
max-width: 900px;
background: white;
border-radius: 50px;
margin: 0 auto;
}
#modal .wrapper .content .box h2 {
font-size:24px;
line-height:30px;
font-weight:400;
margin-bottom:25px;
color:#0063a9;
text-align:left;
}
#modal .wrapper .content .box h3 {
text-align: left;
font-size: 21px;
color: #0063a9;
}
#modal .wrapper .content .box p {
font-size:14px;
line-height:24px;
margin-bottom:25px;
color:#333;
text-align:left;
}
#modal .wrapper .content .box p:last-of-type {
            margin-bottom:25px;
}
#modal .wrapper .content .box a.button {
            display:inline-block;
            padding:15px;
            color:white;
            text-decoration:none;
            background-color:#305dd4;
            border-radius:5px;
            margin-top:25px;
            box-shadow:inset 0 0 0 darken(#305dd4,20%);
}
#modal .wrapper .content .box a.button:hover {
              box-shadow:inset 500px 0 0 darken(#305dd4,20%);
            }
    #xmas {
        width: 100%;
        height: 100%;
        position: fixed;
        z-index: 0;
    top:0;
    left:0;
    }
  .video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 0;
    height: 0;
    overflow: hidden;
    pointer-events: auto; /* Klicks im Video erlauben */
}
.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
@media only screen and (max-width: 500px) {
  .video-container {
      border-radius: 0px 0px 22px 22px;
  }
  #modal .wrapper .content .box {
      padding: 23px;
  }
}
#xmas {
opacity: 0.7;
}
button, input, optgroup, select, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    border-radius: 5px;
    border: 1px solid #3399ff59;
    background-color: #3399ff12;
}
.box label{
      margin-bottom: -70px;
}
.checkboxclass{
width:15px!important}
input#open {
  display: none;
}
.card-front {
  position: relative;
  background-color: #fff;
  width: 500px;
  height:750px;
  overflow: hidden;
  transform-origin: left;
  box-shadow: inset 100px 20px 100px rgba(0,0,0,.13), 30px 0 50px rgba(0,0,0,0.1);
background:linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  transition: .3s;
}
.card-inside {
  position: absolute;
  background-color: #fff;
  width: 500px;
  height:750px;
  z-index:7;
  left:0;
  top:0;
  background:linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  box-shadow: inset 100px 20px 100px rgba(0,0,0,0.2);
}
.open {
  position: absolute;
  width: 500px;
  height:750px;
  left:0;
  top:0;
  background-color: transparent;
  z-index:6;
  cursor: pointer;
}
.card-front:before {
content: "";
    position: absolute;
    width: 95%;
    height: 97%;
    background-color: #c94038;
    top: 1.5%;
    left: 2.5%;
	  background-image: url("img/christmascard_front.png");
}
.text {

    position: relative;
    color: white;
    top: 20%;

    text-align: center;
    font-size: 15px;

	  -moz-transform:    scaleX(-1); /* Gecko */
  -o-transform:      scaleX(-1); /* Opera */
  -webkit-transform: scaleX(-1); /* Webkit */
  transform:         scaleX(-1); /* Standard */

  filter: FlipH;                 /* IE 6/7/8 */
	
}

.text img{
	width: 60%;
}

.text p{
	font-size: 120px;}

.card-inside:before {
content: "";
    position: absolute;
    width: 95%;
    height: 97%;
    background-color: #c94038;
    top: 1.5%;
    left: 2.5%;
		  background-image: url("img/christmascard_back.png");
}
.title-card {
  color: #fff;
  font-size:55px;
  line-height: 25px;
  text-align: center;
  top:35px;
  width:100%;
		 font-family:'Imperial Script';
}
.wishes {
    width: 84%;
    text-align: center;
    line-height: 28px;
    font-size: 20px;
    color: #fff;
    height: 300px;
margin:auto;
	  font-family: 'Quicksand';
}
.card-inner{
  position:relative;
  margin-top:10%;
}
.video{
      width: 82%;
    text-align: center;
    margin: auto;
    margin-top: 25px;
    border: 4px solid #fff;
    border-radius: 5px;
    margin-bottom: 25px;
}
button label{
  width:auto;
  height:0px;
  text-align:left;
}
.btn-primary {
  position:absolute;
  z-index: 6;
}
/* Card front - initially visible */
.card-front {
  position: relative;
  background-color: #fff;
  width: 100%;
  height: 100%;
  transform-origin: left;
  box-shadow: 10px 7px 10px rgb(28 28 28 / 71%), 30px 0 50px rgb(0 0 0 / 29%);;
  background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  transition: transform 1s ease;
	    border-radius: 0px 5px 5px 0px;
}
/* Card inside - revealed upon opening */
.card-inside {
  position: absolute;
  background-color: #fff;
  width: 100%;
  height: 100%;
  z-index: 7;
  left: 0;
  top: 0;
  background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  box-shadow: 10px 7px 10px rgb(28 28 28 / 71%), 30px 0 50px rgb(0 0 0 / 29%);;
	    border-radius: 0px 5px 5px 0px;
}
/* Opening and closing animations */
.zoom-in .card-front {
  transform: rotateY(-155deg); /* Open to reveal inside */
}
.zoom-out .card-front {
  transform: rotateY(0deg); /* Closed position */
}
#christmas-card-container {
  display: none;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: rgba(16, 16, 43, 0.69);
  align-content: center;
  justify-content: center;
}
.christmas-card {
  position: relative;
  width: 500px;
  height:750px;
  transform-style: preserve-3d;
  transform: perspective(2500px);
  transition: 3s;
  margin:auto;
  pointer-events: auto; /* Klicks in der Karte erlauben */
}

.christmas-card{
  animation: zoom-in-zoom-out 1s ease ;
}

@keyframes zoom-in{
  0% {
    scale: 0%;
  }
  50% {
    scale: 50%;
  }
  100% {
    scale: 100%;
  }
}


.glow {
  font-size: 80px;
  color: #fff;
  text-align: center;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 15px #fff, 0 0 30px #ffbe76, 0 0 40px #ffbe76, 0 0 50px #ffbe76, 0 0 60px #ffbe76, 0 0 70px #ffbe76;
  }
  to {
    text-shadow: 0 0 15px #fff, 0 0 20px #f0932b, 0 0 40px #f0932b, 0 0 50px #f0932b, 0 0 60px #f0932b, 0 0 70px #f0932b, 0 0 80px #f0932b;
  }
}

.wishes {
width: 84%;
text-align: center;
line-height: 23px;
font-size: 16px;
color: #fff;
height: 300px;
margin: auto;
font-family: 'Quicksand';
}