body {
    background-color: #EDE9DE;
    font-family: 'Dancing Script', cursive;
    margin: 0;
    padding: 0;
    -webkit-backface-visibility: hidden;
    /* Chrome, Safari, Opera */
    backface-visibility: hidden;
}

.gift {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate3d(-50%, -50%, 0);
    cursor: pointer;
}

.gift-top {
    position: relative;
    width: 100%;
    height: 25%;
    background: #F54537;
    border-radius: 5px 5px 0 0;
    background-image: linear-gradient(to right, #f2adab 0%, #f2adab 44%, #faebc3 44%, #faebc3 56%, #f2adab 56%, #f2adab 100%);
}

.gift-top.hovered {
    animation: shake 3s infinite;
    -webkit-animation: shake 3s infinite;
    -moz-animation: shake 3s infinite;
    -ms-animation: shake 3s infinite;
    -o-animation: shake 3s infinite;
}

.gift-bottom.fadeout {
    -webkit-animation-name: fadeOutDown;
    animation-name: fadeOutDown;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.gift-top.fadeout {
    -webkit-animation-name: rotateOutUpRight;
    animation-name: rotateOutUpRight;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.gift-top::before,
.gift-top::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 10px solid #faebc3;
    border-radius: 50% 50% 0 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate3d(-100%, -100%, 0) skew(10deg, 10deg);
}

.gift-top::after {
    border-radius: 50% 50% 50% 0;
    transform: translate3d(0, -100%, 0) skew(-10deg, -10deg);
}

.gift-text {
    color: #333333;
    text-align: center;
}

.gift-final-text {
    text-align: center;
    font-size: 33px;
    display: none;
}

.gift-bottom {
    width: 95%;
    height: 75%;
    margin: 0 auto;
    background-image: linear-gradient(to right, #f2adab 0%, #f2adab 45%, #faebc3 45%, #faebc3 55%, #f2adab 55%, #f2adab 100%);
    border-radius: 0 0 5px 5px;
}

.gift-card-text {
    display: none;
    font-size: 33px;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    position: absolute;
    width: 100%;
}

.lbWrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.8);
    padding: 0;
    z-index: 10;
    top: 0;
    left: 0;
    color: #fff;
    display: none;
}

.signupWrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    display: none;
}

.signupWrapper .error {
    display: none;
    color: #ff0000;
    text-align: center;
}

.signupWrapper .signUpTitle {
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
}

.signupWrapper .mlistWrapper {
    text-align: center;
    margin-top: 20px;
}

.signupWrapper input#email {
    width: 150px;
    border: none;
    box-shadow: none;
    padding: 5px;
}

.signupWrapper input.submit {
    padding: 4px 10px;
    cursor: pointer;
}

#snow {
    width: 100%;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    12% {
        transform: rotate(-10deg);
    }
    25% {
        transform: rotate(10deg);
    }
    37% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@-webkit-keyframes shake {
    0% {
        -webkit-transform: rotate(0deg);
    }
    12% {
        -webkit-transform: rotate(-10deg);
    }
    25% {
        -webkit-transform: rotate(10deg);
    }
    37% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(0deg);
    }
}

@-moz-keyframes shake {
    0% {
        -moz-transform: rotate(0deg);
    }
    12% {
        -moz-transform: rotate(-10deg);
    }
    25% {
        -moz-transform: rotate(10deg);
    }
    37% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(0deg);
    }
}

@-ms-keyframes shake {
    0% {
        -ms-transform: rotate(0deg);
    }
    12% {
        -ms-transform: rotate(0deg);
    }
    25% {
        -ms-transform: rotate(10deg);
    }
    37% {
        -ms-transform: rotate(0deg);
    }
    100% {
        -ms-transform: rotate(0deg);
    }
}

@-o-keyframes shake {
    0% {
        -o-transform: rotate(0deg);
    }
    12% {
        -o-transform: rotate(0deg);
    }
    25% {
        -o-transform: rotate(10deg);
    }
    37% {
        -o-transform: rotate(0deg);
    }
    100% {
        -o-transform: rotate(0deg);
    }
}

@-webkit-keyframes fadeOutDown {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

@-webkit-keyframes rotateOutUpRight {
    0% {
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
        opacity: 1;
    }
    100% {
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
        -webkit-transform: rotate3d(0, 0, 1, 90deg);
        transform: rotate3d(0, 0, 1, 90deg);
        opacity: 0;
    }
}

@keyframes rotateOutUpRight {
    0% {
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
        opacity: 1;
    }
    100% {
        -webkit-transform-origin: right bottom;
        transform-origin: right bottom;
        -webkit-transform: rotate3d(0, 0, 1, 90deg);
        transform: rotate3d(0, 0, 1, 90deg);
        opacity: 0;
    }
}


/*Santa CSS*/

.santa-wrapper {
    width: 280px;
    height: 280px;
    background: #a0d5d3;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    margin-top: -60px;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    border: 10px solid #f8e7dc;
    overflow: hidden;
    display: none;
}

.santa {
    position: absolute;
    left: 50%;
    bottom: 0;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.santa .body {
    width: 190px;
    height: 210px;
    background: #de2f32;
    position: relative;
    border-radius: 50%;
    top: 0;
    -webkit-animation: bodyLaugh 4s linear infinite;
    -moz-animation: bodyLaugh 4s linear infinite;
    -ms-animation: bodyLaugh 4s linear infinite;
    -o-animation: bodyLaugh 4s linear infinite;
    animation: bodyLaugh 4s linear infinite;
    -webkit-transform: translateY(50%);
    -moz-transform: translateY(50%);
    -ms-transform: translateY(50%);
    -o-transform: translateY(50%);
    transform: translateY(50%);
}

.santa .body:before {
    content: " ";
    width: 7px;
    height: 7px;
    background: #f7be10;
    border-radius: 50%;
    position: absolute;
    top: 35%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0px -18px 0px #f7be10, 0px 18px 0px #f7be10;
}

.santa .head {
    z-index: 2;
    position: absolute;
    bottom: 90px;
    left: 50%;
    -webkit-animation: headLaugh 4s linear infinite;
    -moz-animation: headLaugh 4s linear infinite;
    -ms-animation: headLaugh 4s linear infinite;
    -o-animation: headLaugh 4s linear infinite;
    animation: headLaugh 4s linear infinite;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.santa .head .face {
    width: 120px;
    height: 130px;
    background: #edcab0;
    background: radial-gradient(#edcab0, #e9a982);
    border-radius: 50%;
    border: 3px solid #f8e7dc;
}

.santa .head .face .redhat .whitepart {
    position: absolute;
    left: 50%;
    top: 0;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 90%;
    height: 32px;
    background: #f8e7dc;
    border-radius: 50px;
    z-index: 4;
    box-shadow: 0px 6px 0px -4px rgba(0, 0, 0, 0.1);
}

.santa .head .face .redhat .redpart {
    width: 120px;
    height: 120px;
    background: #de2f32;
    position: absolute;
    top: -50px;
    left: 15px;
    border-radius: 50%;
    z-index: -1;
}

.santa .head .face .redhat .redpart:before {
    content: " ";
    width: 95px;
    height: 95px;
    position: absolute;
    left: 0;
    top: 12px;
    border-radius: 50%;
    box-shadow: inset -8px -1px 0px -5px rgba(0, 0, 0, 0.05);
}

.santa .head .face .redhat .redpart:after {
    content: " ";
    position: absolute;
    right: 0;
    top: 60px;
    background: #de2f32;
    width: 20px;
    height: 50px;
}

.santa .head .face .redhat .hatball {
    width: 38px;
    height: 38px;
    background: #f8e7dc;
    border-radius: 50%;
    z-index: 5;
    position: absolute;
    right: -20px;
    top: 40px;
    box-shadow: 0px 6px 0px -4px rgba(0, 0, 0, 0.1);
}

.santa .head .face .eyes {
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    top: 57px;
}

.santa .head .face .eyes:before,
.santa .head .face .eyes:after {
    content: " ";
    position: absolute;
    width: 15px;
    height: 9px;
    top: 0;
    border: 5px solid #a8744f;
    border-width: 0;
    border-top-width: 5px;
    border-radius: 50%;
}

.santa .head .face .eyes:before {
    left: -28px;
}

.santa .head .face .eyes:after {
    right: -28px;
}

.santa .head .face .beard {
    width: 55px;
    height: 55px;
    background: #f8e7dc;
    border-radius: 50%;
    position: absolute;
    bottom: -30px;
    left: 50%;
    -webkit-animation: beardLaugh 4s linear infinite;
    -moz-animation: beardLaugh 4s linear infinite;
    -ms-animation: beardLaugh 4s linear infinite;
    -o-animation: beardLaugh 4s linear infinite;
    animation: beardLaugh 4s linear infinite;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.santa .head .face .beard:before,
.santa .head .face .beard:after {
    content: " ";
    width: 80px;
    height: 80px;
    background: #f8e7dc;
    border-radius: 50%;
    position: absolute;
    bottom: 15px;
}

.santa .head .face .beard:before {
    left: -40px;
}

.santa .head .face .beard:after {
    right: -40px;
}

.santa .head .face .beard .nouse {
    width: 25px;
    height: 20px;
    border-radius: 50%;
    background: #edcab0;
    position: absolute;
    z-index: 3;
    box-shadow: inset -3px -3px 0px #e9a982;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    top: -42px;
}

.santa .head .face .beard .mouth {
    background: #a8744f;
    z-index: 3;
    position: absolute;
    width: 15px;
    height: 5px;
    border-bottom-right-radius: 80px 50px;
    border-bottom-left-radius: 80px 50px;
    left: 50%;
    top: 0;
    -webkit-animation: mouthLaugh 4s linear infinite;
    -moz-animation: mouthLaugh 4s linear infinite;
    -ms-animation: mouthLaugh 4s linear infinite;
    -o-animation: mouthLaugh 4s linear infinite;
    animation: mouthLaugh 4s linear infinite;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

.santa .head .ears:before,
.santa .head .ears:after {
    content: " ";
    width: 20px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(#e9a982, #edcab0);
    position: absolute;
    top: 50%;
    z-index: -1;
}

.santa .head .ears:before {
    left: -8px;
    -webkit-transform: rotate(-10deg);
    -moz-transform: rotate(-10deg);
    -ms-transform: rotate(-10deg);
    -o-transform: rotate(-10deg);
    transform: rotate(-10deg);
}

.santa .head .ears:after {
    right: -8px;
    -webkit-transform: rotate(10deg);
    -moz-transform: rotate(10deg);
    -ms-transform: rotate(10deg);
    -o-transform: rotate(10deg);
    transform: rotate(10deg);
}

@-webkit-keyframes bodyLaugh {
    0% {
        top: 0px;
    }
    2% {
        top: -3px;
    }
    4% {
        top: 0px;
    }
    8% {
        top: -3px;
    }
    10% {
        top: 0px;
    }
    12% {
        top: -3px;
    }
    14% {
        top: 0px;
    }
    18% {
        top: -3px;
    }
    20% {
        top: 0px;
    }
    22% {
        top: -3px;
    }
    24% {
        top: 0px;
    }
    28% {
        top: -3px;
    }
    30% {
        top: 0px;
    }
    100% {
        top: 0px;
    }
}

@-moz-keyframes bodyLaugh {
    0% {
        top: 0px;
    }
    2% {
        top: -3px;
    }
    4% {
        top: 0px;
    }
    8% {
        top: -3px;
    }
    10% {
        top: 0px;
    }
    12% {
        top: -3px;
    }
    14% {
        top: 0px;
    }
    18% {
        top: -3px;
    }
    20% {
        top: 0px;
    }
    22% {
        top: -3px;
    }
    24% {
        top: 0px;
    }
    28% {
        top: -3px;
    }
    30% {
        top: 0px;
    }
    100% {
        top: 0px;
    }
}

@-ms-keyframes bodyLaugh {
    0% {
        top: 0px;
    }
    2% {
        top: -3px;
    }
    4% {
        top: 0px;
    }
    8% {
        top: -3px;
    }
    10% {
        top: 0px;
    }
    12% {
        top: -3px;
    }
    14% {
        top: 0px;
    }
    18% {
        top: -3px;
    }
    20% {
        top: 0px;
    }
    22% {
        top: -3px;
    }
    24% {
        top: 0px;
    }
    28% {
        top: -3px;
    }
    30% {
        top: 0px;
    }
    100% {
        top: 0px;
    }
}

@keyframes bodyLaugh {
    0% {
        top: 0px;
    }
    2% {
        top: -3px;
    }
    4% {
        top: 0px;
    }
    8% {
        top: -3px;
    }
    10% {
        top: 0px;
    }
    12% {
        top: -3px;
    }
    14% {
        top: 0px;
    }
    18% {
        top: -3px;
    }
    20% {
        top: 0px;
    }
    22% {
        top: -3px;
    }
    24% {
        top: 0px;
    }
    28% {
        top: -3px;
    }
    30% {
        top: 0px;
    }
    100% {
        top: 0px;
    }
}

@-webkit-keyframes beardLaugh {
    0% {
        bottom: -28px;
    }
    2% {
        bottom: -30px;
    }
    4% {
        bottom: -28px;
    }
    8% {
        bottom: -30px;
    }
    10% {
        bottom: -28px;
    }
    12% {
        bottom: -30px;
    }
    14% {
        bottom: -28px;
    }
    18% {
        bottom: -30px;
    }
    20% {
        bottom: -28px;
    }
    22% {
        bottom: -30px;
    }
    24% {
        bottom: -28px;
    }
    28% {
        bottom: -30px;
    }
    30% {
        bottom: -28px;
    }
    100% {
        bottom: -28px;
    }
}

@-moz-keyframes beardLaugh {
    0% {
        bottom: -28px;
    }
    2% {
        bottom: -30px;
    }
    4% {
        bottom: -28px;
    }
    8% {
        bottom: -30px;
    }
    10% {
        bottom: -28px;
    }
    12% {
        bottom: -30px;
    }
    14% {
        bottom: -28px;
    }
    18% {
        bottom: -30px;
    }
    20% {
        bottom: -28px;
    }
    22% {
        bottom: -30px;
    }
    24% {
        bottom: -28px;
    }
    28% {
        bottom: -30px;
    }
    30% {
        bottom: -28px;
    }
    100% {
        bottom: -28px;
    }
}

@-ms-keyframes beardLaugh {
    0% {
        bottom: -28px;
    }
    2% {
        bottom: -30px;
    }
    4% {
        bottom: -28px;
    }
    8% {
        bottom: -30px;
    }
    10% {
        bottom: -28px;
    }
    12% {
        bottom: -30px;
    }
    14% {
        bottom: -28px;
    }
    18% {
        bottom: -30px;
    }
    20% {
        bottom: -28px;
    }
    22% {
        bottom: -30px;
    }
    24% {
        bottom: -28px;
    }
    28% {
        bottom: -30px;
    }
    30% {
        bottom: -28px;
    }
    100% {
        bottom: -28px;
    }
}

@keyframes beardLaugh {
    0% {
        bottom: -28px;
    }
    2% {
        bottom: -30px;
    }
    4% {
        bottom: -28px;
    }
    8% {
        bottom: -30px;
    }
    10% {
        bottom: -28px;
    }
    12% {
        bottom: -30px;
    }
    14% {
        bottom: -28px;
    }
    18% {
        bottom: -30px;
    }
    20% {
        bottom: -28px;
    }
    22% {
        bottom: -30px;
    }
    24% {
        bottom: -28px;
    }
    28% {
        bottom: -30px;
    }
    30% {
        bottom: -28px;
    }
    100% {
        bottom: -28px;
    }
}

@-webkit-keyframes headLaugh {
    0% {
        bottom: 83px;
    }
    45% {
        bottom: 83px;
    }
    50% {
        bottom: 90px;
    }
    92% {
        bottom: 90px;
    }
    98% {
        bottom: 83px;
    }
    100% {
        bottom: 83px;
    }
}

@-moz-keyframes headLaugh {
    0% {
        bottom: 83px;
    }
    45% {
        bottom: 83px;
    }
    50% {
        bottom: 90px;
    }
    92% {
        bottom: 90px;
    }
    98% {
        bottom: 83px;
    }
    100% {
        bottom: 83px;
    }
}

@-ms-keyframes headLaugh {
    0% {
        bottom: 83px;
    }
    45% {
        bottom: 83px;
    }
    50% {
        bottom: 90px;
    }
    92% {
        bottom: 90px;
    }
    98% {
        bottom: 83px;
    }
    100% {
        bottom: 83px;
    }
}

@keyframes headLaugh {
    0% {
        bottom: 83px;
    }
    45% {
        bottom: 83px;
    }
    50% {
        bottom: 90px;
    }
    92% {
        bottom: 90px;
    }
    98% {
        bottom: 83px;
    }
    100% {
        bottom: 83px;
    }
}

@-webkit-keyframes mouthLaugh {
    0% {
        width: 20px;
    }
    45% {
        width: 20px;
    }
    50% {
        width: 15px;
    }
    92% {
        width: 15px;
    }
    98% {
        width: 20px;
    }
    100% {
        width: 20px;
    }
}

@-moz-keyframes mouthLaugh {
    0% {
        width: 20px;
    }
    45% {
        width: 20px;
    }
    50% {
        width: 15px;
    }
    92% {
        width: 15px;
    }
    98% {
        width: 20px;
    }
    100% {
        width: 20px;
    }
}

@-ms-keyframes mouthLaugh {
    0% {
        width: 20px;
    }
    45% {
        width: 20px;
    }
    50% {
        width: 15px;
    }
    92% {
        width: 15px;
    }
    98% {
        width: 20px;
    }
    100% {
        width: 20px;
    }
}

@keyframes mouthLaugh {
    0% {
        width: 20px;
    }
    45% {
        width: 20px;
    }
    50% {
        width: 15px;
    }
    92% {
        width: 15px;
    }
    98% {
        width: 20px;
    }
    100% {
        width: 20px;
    }
}
/* --- CHÈN THÊM VÀO CUỐI FILE STYLE.CSS --- */
.card-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 280px;
    height: 380px;
    perspective: 1000px;
    z-index: 9999;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-container.show-card {
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card-body.flipped {
    transform: rotateY(-180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card-front {
    background: #F54537;
    color: white;
    border: 4px solid #faebc3;
}

.card-icon { font-size: 50px; margin-bottom: 15px; }

.card-back {
    background: #fff;
    color: #333;
    transform: rotateY(180deg);
    border: 8px double #F54537;
}

.card-back h2 {
    font-family: 'Great Vibes', cursive;
    color: #F54537;
    font-size: 28px;
    margin-bottom: 10px;
}

.signature {
    margin-top: 15px;
    font-weight: bold;
    color: #F54537;
}