﻿.santa-container {
    opacity: 1;
    position: fixed;
    z-index: 123;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    align-items: center;
    justify-content: center;
    background-color: red;
}

    .santa-container .text-btn {
        text-align: center;
        padding: 0px 0px 40px 0px;
        color: #fff;
        font-family: 'ChristmasBell', sans-serif;
        font-size: 45px;
        cursor: pointer;
        position: relative;
    }

        .santa-container .text-btn .pick-pointer {
            font-family: Arial, sans-serif;
            font-size: 20px;
            color: #ffeb3b;
            margin-top: 10px;
            position: absolute;
            top: 5px;
            margin-left: 15px;
        }

    .santa-container .participant-name {
        text-align: center;
        color: #fff;
        font-family: 'ChristmasBell', sans-serif;
        font-size: 60px;
        cursor: pointer;
        position: relative;
    }

    .santa-container ul {
        display: table;
        list-style: none;
        margin: 0 auto;
        max-width: 800px;
        padding: 0;
    }

        .santa-container ul li {
            display: inline-block;
            float: left;
        }

    .santa-container .santaclaus {
        text-align: center;
        display: block;
        margin: 0 auto;
        max-width: 500px;
    }

        .santa-container .santaclaus > div {
            margin: 0 auto;
            max-width: 400px;
        }

        .santa-container .santaclaus .chapeu {
            display: block;
            position: relative;
            width: 310px;
            z-index: 99;
        }

            .santa-container .santaclaus .chapeu .cone-1 {
                border-left: 50px solid transparent;
                border-right: 20px solid transparent;
                border-bottom: 70px solid #d32f2f;
            }

            .santa-container .santaclaus .chapeu .cone-2 {
                background-color: #d32f2f;
                border-top: 0px solid transparent;
                border-right: 340px solid #d32f2f;
                border-bottom: 100px solid transparent;
                border-color: transparent;
                box-shadow: -25px 15px 30px -5px rgba(1, 1, 1, 0.3);
                position: relative;
                left: -56px;
                top: 49px;
                -webkit-transform: rotate(-15deg);
                -moz-transform: rotate(-15deg);
                transform: rotate(-15deg);
                -webkit-border-radius: 30% 100% 0 100%;
                -moz-border-radius: 30% 100% 0 100%;
                border-radius: 30% 100% 0 100%;
            }

            .santa-container .santaclaus .chapeu::after, .santa-container .santaclaus .chapeu::before {
                background-color: #fff;
                content: " ";
                display: block;
            }

            .santa-container .santaclaus .chapeu::after {
                box-shadow: 0px -15px 40px -5px rgba(1, 1, 1, 0.4);
                height: 80px;
                margin-left: -15px;
                position: relative;
                width: 340px;
                -webkit-border-radius: 0.8em;
                -moz-border-radius: 0.8em;
                border-radius: 0.8em;
            }

            .santa-container .santaclaus .chapeu::before {
                box-shadow: 20px 20px 40px -5px rgba(1, 1, 1, 0.3);
                height: 80px;
                left: -120px;
                position: absolute;
                top: 80px;
                width: 80px;
                z-index: 111;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                border-radius: 50%;
            }

        .santa-container .santaclaus .face {
            background-color: #ffccbc;
            box-shadow: 0px 0px 30px 5px rgba(1, 1, 1, 0.3);
            content: " ";
            display: block;
            height: 130px;
            position: relative;
            top: -10px;
            width: 300px;
        }

        .santa-container .santaclaus > .orelhas {
            background-color: #eea2ad;
            box-shadow: 0px 0px 30px 5px rgba(1, 1, 1, 0.3);
            display: block;
            height: 60px;
            margin: 0 auto;
            position: relative;
            top: -125px;
            width: 330px;
            z-index: -1;
            -webkit-border-radius: 1em 1em 2em 2em;
            -moz-border-radius: 1em 1em 2em 2em;
            border-radius: 1em 1em 2em 2em;
        }

        .santa-container .santaclaus .face > .eyes {
            display: inline-block;
            height: 0px;
            margin: 20px auto 0;
            max-width: 160px;
            width: 100%;
        }

            .santa-container .santaclaus .face > .eyes::before, .santa-container .santaclaus .face > .eyes::after {
                background-color: #111;
                content: " ";
                display: inline-block;
                float: left;
                height: 20px;
                width: 20px;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                border-radius: 50%;
            }

            .santa-container .santaclaus .face > .eyes::after {
                float: right;
            }

        .santa-container .santaclaus .face > .nariz {
            background-color: #eea2ad;
            height: 50px;
            margin: 0 auto;
            position: relative;
            width: 70px;
            z-index: 111;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
        }

        .santa-container .santaclaus .face > .barba {
            background-color: #ecf0f1;
            box-shadow: -10px 10px 10px -5px rgba(1, 1, 1, 0.3);
            height: 240px;
            margin: 0 auto;
            position: relative;
            top: -30px;
            width: 340px;
            left: -20px;
            -webkit-transform: rotate(-20deg);
            -moz-transform: rotate(-20deg);
            transform: rotate(-20deg);
            -webkit-border-radius: 0% 100% 70% 100%;
            -moz-border-radius: 0% 100% 70% 100%;
            border-radius: 0% 100% 70% 100%;
            -webkit-animation: animaBarba 1.6s ease-in-out infinite alternate;
            -moz-animation: animaBarba 1.6s ease-in-out infinite alternate;
            animation: animaBarba 1.6s ease-in-out infinite alternate;
        }

            .santa-container .santaclaus .face > .barba > .boca {
                height: 50px;
                left: 30px;
                margin: 0 auto;
                position: relative;
                top: 20px;
                width: 60px;
                -webkit-border-radius: 50%;
                -moz-border-radius: 50%;
                border-radius: 50%;
                -webkit-animation: hoho 1.6s ease-in-out infinite alternate;
                -moz-animation: hoho 1.6s ease-in-out infinite alternate;
                animation: hoho 1.6s ease-in-out infinite alternate;
            }

    .santa-container .hohoho {
        height: 0;
        padding-top: 200px;
        width: 150px;
        -webkit-animation: txtHohoho 1.6s ease-in-out infinite alternate;
        -moz-animation: txtHohoho 1.6s ease-in-out infinite alternate;
        animation: txtHohoho 1.6s ease-in-out infinite alternate;
    }

        .santa-container .hohoho h4::before {
            text-shadow: 0px 10px 20px rgba(1, 1, 1, 0.4);
            color: #fff;
            content: "HO";
            font-size: 62px;
            line-height: 1.4em;
        }

        .santa-container .hohoho:last-of-type h4 {
            margin: 0 10px 30px;
            text-align: right;
        }

            .santa-container .hohoho:last-of-type h4:nth-child(2) {
                margin-right: -50px;
            }

            .santa-container .hohoho:last-of-type h4:first-child, .santa-container .hohoho:last-of-type h4:last-child {
                -webkit-animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
                -moz-animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
                animation: txtHohohoRight 1.6s ease-in-out infinite alternate;
            }

        .santa-container .hohoho:first-of-type h4 {
            margin: 0 50px 30px 0;
            text-align: left;
        }

            .santa-container .hohoho:first-of-type h4:nth-child(2) {
                margin-left: -60px;
            }

            .santa-container .hohoho:first-of-type h4:first-child, .santa-container .hohoho:first-of-type h4:last-child {
                -webkit-animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
                -moz-animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
                animation: txtHohohoLeft 1.6s ease-in-out infinite alternate;
            }

        .santa-container .hohoho h4:nth-child(2) {
            -webkit-animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
            -moz-animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
            animation: txtHohohoMiddle 1.6s ease-in-out infinite alternate;
        }

@keyframes txtHohoho {
    from {
        opacity: 0.2;
    }

    to {
        opacity: 1;
    }
}

@-webkit-keyframes txtHohohoMiddle {
    from {
        -webkit-transform: scale(1.5);
    }

    to {
        -webkit-transform: scale(1);
    }
}

@-moz-keyframes txtHohohoMiddle {
    from {
        -moz-transform: scale(1.5);
    }

    to {
        -moz-transform: scale(1);
    }
}

@keyframes txtHohohoMiddle {
    from {
        transform: scale(1.5);
    }

    to {
        transform: scale(1);
    }
}

@-webkit-keyframes txtHohohoLeft {
    to {
        -webkit-transform: scale(1.5);
    }
}

@-moz-keyframes txtHohohoLeft {
    to {
        -moz-transform: scale(1.5);
    }
}

@keyframes txtHohohoLeft {
    to {
        transform: scale(1.5);
    }
}

@-webkit-keyframes txtHohohoRight {
    to {
        -webkit-transform: scale(1.5);
    }
}

@-moz-keyframes txtHohohoRight {
    to {
        -moz-transform: scale(1.5);
    }
}

@keyframes txtHohohoRight {
    to {
        transform: scale(1.5);
    }
}

@-webkit-keyframes animaBarba {
    to {
        -webkit-transform: rotate(-10deg);
    }
}

@-moz-keyframes animaBarba {
    to {
        -moz-transform: rotate(-10deg);
    }
}

@keyframes animaBarba {
    to {
        transform: rotate(-10deg);
    }
}

@-webkit-keyframes hoho {
    0% {
        background-color: #ecf0f1;
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}

@-moz-keyframes hoho {
    0% {
        background-color: #ecf0f1;
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}

@keyframes hoho {
    0% {
        background-color: #ecf0f1;
        box-shadow: 0px 20px 0 0 #111;
        height: 40px;
        width: 60px;
    }

    60% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }

    80% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 50px;
        width: 40px;
    }

    100% {
        background-color: #ecf0f1;
        box-shadow: 0px 60px 0 0 #111;
        height: 60px;
        width: 30px;
    }
}

@media (max-width: 768px) {
    .santaclaus {
        transform: scale(0.7);
        z-index: 10;
    }

    .santa-container ul {
        display: flex;
        justify-content: space-between; /* space left HOHOHO, Santa, right HOHOHO */
        align-items: center; /* vertical center alignment */
        list-style: none;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 20%;
        left: 40px;
    }

        .santa-container ul li:nth-child(1) {
            position: absolute;
            top: 10%;
            left: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .santa-container ul li:nth-child(3) {
            position: absolute;
            top: 10%;
            right: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

    .santa-container .text-btn {
        font-size: 30px;
        padding: 55px 0px 40px 0px;
    }

        .santa-container .text-btn .pick-pointer {
            top: 105px; /* adjust vertical position */
            right: 20px; /* adjust horizontal position */
            transform: rotate(16deg);
        }

    .santa-container .participant-name {
        font-size: 45px;
        cursor: pointer;
        top: 45px;
    }
}

@media (max-width: 480px) {
    .santaclaus {
        transform: scale(0.5);
        z-index: 10;
    }

    .santa-container ul {
        display: flex;
        justify-content: space-between; /* space left HOHOHO, Santa, right HOHOHO */
        align-items: center; /* vertical center alignment */
        list-style: none;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 20%;
        left: 40px;
    }


        .santa-container ul li:nth-child(1) {
            position: absolute;
            top: 10%;
            left: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .santa-container ul li:nth-child(3) {
            position: absolute;
            top: 10%;
            right: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }


    .santa-container .text-btn {
        font-size: 40px;
    }

        .santa-container .text-btn .pick-pointer {
            top: 105px; /* adjust vertical position */
            right: 20px; /* adjust horizontal position */
            transform: rotate(16deg);
        }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.santa-raindeer {
    width: 25px;
    height: 45px;
    bottom: 25%;
    position: fixed;
    /*animation: walk 25s linear infinite;*/
}

@keyframes walk {
    0%, 100% {
        left: 0;
        transform: translatex(-50%) scalex(-1);
    }

    49% {
        left: 100%;
        transform: translatex(-50%) scalex(-1);
    }

    50% {
        left: 100%;
        transform: translatex(-50%) scalex(1);
    }

    99% {
        left: 0;
        transform: translatex(-50%) scalex(1);
    }
}