@import url("https://fonts.googleapis.com/css?family=Mirza&amp;subset=latin-ext");

.optanon-alert-box-wrapper, #WatKSwE-1570790717656 {
    display: none !important;
}

#christmasCard {
    background: url("../img/background-d.jpg?fit=crop&w=1920&h=1280") no-repeat;
    background-size: cover;
    height: 55%;
    margin: 0;
    padding: 170px 0;
/* overflow: scroll;*/
}

a.send-card {
    position: absolute;
    top: 0;
    right: 0;
}

.card {
-webkit-perspective: 1500px;
perspective: 1500px;
position: absolute;
left: calc(50% - 175px);
top: calc(148% - 250px);
transition-property: -webkit-transform;
transition-property: transform, -webkit-transform;
transition-duration: 1s;
transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
transition-delay: initial;
-webkit-transform: rotate(-10deg) translate(0, 0);
transform: rotate(-10deg) 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);
}


.card:before {
content: "";
display: block;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
box-shadow: 0 0 10px #000;
transition: all 0.5s ease-in-out;
}


.card.is-opened {
-webkit-transform: rotate(0deg) translate(175px, 0);
transform: rotate(0deg) translate(175px, 0);
}

.card.is-opened .card-page-front {
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}

@keyframes cardIn {
0% {
    opacity: 0;
    -webkit-transform: rotate(-10deg) translate(0, -100%);
    transform: rotate(-10deg) translate(0, -100%);
}
25% {
    opacity: 1;
}
100% {
    opacity: 1;
    -webkit-transform: rotate(-10deg) translate(0, 0);
    transform: rotate(-10deg) translate(0, 0);
}
}

.card,
.card-page {
width: 350px;
height: 500px;
}


.inner-card {
margin-top: -111px;
float: left;
width: 100%;
padding: 30px;
}

.inner-card p {
font-family: 'Gochi Hand', cursive;
float: left;
font-size: 16px;
width: 100%;
text-align: center;
}


.too {
float: left;
width: 100%;
text-align: left;
}

.too p {
float: left;
width: auto !important;
margin-right: 0.5rem;
}

.card-page {
transition: -webkit-transform 1s ease-in-out;
transition: transform 1s ease-in-out, -webkit-transform 1s ease-in-out;
cursor: pointer;
position: absolute;
outline: 1px solid transparent;
}

.card-page-front {
-webkit-transform-origin: 0 50% 0;
transform-origin: 0 50% 0;
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
-webkit-transform: rotateY(-20deg);
transform: rotateY(-20deg);
z-index: 2;
}

.card-page-outside,
.card-page-inside {
position: absolute;
-webkit-backface-visibility: hidden;
}

.card-page-outside {
border: 10px solid #fbfbfb;
background-size: cover !important;
width: 100%;
height: 100%;
}

.card-page-inside,
.card-page-bottom {
font-family: 'Gochi Hand', cursive;
background: url("../img/60-lines.png?raw=1") #d4d1d0;
border: 20px solid #d4d1d0;
display: -webkit-box;
display: -moz-box;
display: box;
display: -moz-flex;
display: flex;
box-pack: center;
-moz-justify-content: center;
-ms-justify-content: center;
-o-justify-content: center;
justify-content: center;
-ms-flex-pack: center;
box-align: center;
-moz-align-items: center;
-ms-align-items: center;
-o-align-items: center;
align-items: center;
-ms-flex-align: center;
text-align: center;
}

.card-page-inside {
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
border-right: none !important;
background-position: 0 80px;
}

.card-page-bottom {
z-index: 1;
border-left: none !important;
background-position: -22px 80px;
}

.merry-christmas p {
font-size: 14px;
text-align: center;
}

.merry-christmas svg {
width: 50px;
height: auto;
}

.inner-card .merry-christmas {
position: absolute;
bottom: 0;
width: 80%;
}

/*slider*/
.carousel-cell {
    width: 100%;
    margin-right: 10px;
}

.card-view {
    float: left;
    width: 100%;
    min-height:600px;
}


.card-view .card {
    left: 35%;
    top: 50px;
}

.card-view .card,.card-view .card-page {
    width: 320px;
    height: 450px;
}

/*pop up*/
.no-show {
    display: none;
}

.pop-up, .pop-up-donate {
    height: auto;
    width: 660px;
    margin: 4rem auto;
    display: block;
    padding: 1rem;
    background: #fff;
    position: absolute;
    z-index: 5;
    left: 0;
    /* left: 33%; */
    border-radius: 5px;
    box-shadow: 0 0 20px #000;
    right: 0;
    top: 54px;
}

.pop-up span.close, .pop-up-donate span.close-donate {
    border-radius: 3em;
    margin-left: 5px;
    margin-top: 5px;
    height: 30px;
    background: red;
    color: #fff;
    font-size: 1.25em;
    padding: 2px 9px;
    cursor: pointer;
    top: 0;
    width: 30px;
    position: absolute;
    right: 5px;
}

span.wpforms-image-choices-image img {
    float: left;
    width: 150px !important;
    height: 150px;
}


@media (max-width: 768px) {

    #christmasCard {
        min-height: 540px;
        padding: 70px 0;
    }

    .card {
        left: calc(50% - 115px);
        top: calc(25% - 164.5px);
    }

    .card.is-opened {
        -webkit-transform: rotate(0deg) translate(115px, 0);
        transform: rotate(0deg) translate(115px, 0);
    }

    .card,
    .card-page {
        width: 230px;
        height: 329px;
    }

    .card-page-outside {
        border: 5px solid #fbfbfb;
    }

    .card-page-inside,
    .card-page-bottom {
        border: 10px solid #d4d1d0;
    }

    .card-page-inside {
        background-position: 0 30px;
    }

    .card-page-bottom {
        background-position: 85px 30px;
    }

    .merry-christmas svg {
        width: 88px;
    }

    #christmasCard p {
        font-size: 18px;
    }

    .pop-up, .pop-up-donate {
        margin: -13vh auto;
        height: 498px;
        left: 16%;
    }

    .pop-up-text {
        padding: 51px;
    }

    .pop-up.bauble {
        width: 68%;
    }

    .merry-christmas .button-handler button {
        width: 74%;
    }
    .merry-christmas .button-handler {
        left: -22px;
    }

}

@media (max-width: 479px) {

    .card {
        left: calc(50% - 75px);
        top: calc(25% - 107px);
    }

    .card.is-opened {
        -webkit-transform: rotate(0deg) translate(75px, 0);
        transform: rotate(0deg) translate(75px, 0);
    }

    .card,
    .card-page {
        width: 150px !important;
        height: 214px !important;
    }

    .card-page-inside {
        background-position: 0 30px;
    }

    .card-page-bottom {
        background-position: 0 30px;
    }

    .merry-christmas svg {
        width: 28px;
        display: none;
    }

    .merry-christmas .button-handler {
        left: 0;
    }

    #christmasCard p {
        font-size: 12px;
        padding: 0;
        line-height: 25px;
        margin: 0;
    }

    .card-view .card {
        left: 25%;
    }

    .inner-card p {
        float: left;
        font-size: 12px;
        width: 100%;
        text-align: center;

    }

    .inner-card {
        padding: 12px;
        margin-top:0;
    }

    .xmasslider .button-handler {
        bottom: -140px;
        margin-left: -37%;
    }

    span.merry-christmas {
        font-size: 8px
    }

    .sidebar {
        top: 84px;
    }

    .merry-christmas .button-handler button {
        width: 88%;
    }

    .d-flex .button-handler.default {
        left:0;
    }

}

.wpforms-form .hidden {
    display: none;
}

.single-card .flickity-prev-next-button.previous,.single-card .flickity-prev-next-button.next {
    display: none !important;
}


.wpcf7-form .wpcf7-response-output {
    margin: 0 0 25px;
    text-align: center !important;
    padding: 40px !important;
    color: white !important;
    background: #5A1FAC !important;
    font-size: 20px !important;
    border: none !important;
}
