/*  Text and entity symbols with a spectaculary festive animated glittery background using animated gifs.  Can create some interesting effects with this technique with little effort.  But, I needed glittery text for a friend.  */

/*  Set the background glitter colors - i.e. animated background gifs 
with a default font color fallback. */

.blue {
    color: blue;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/blue_glitter.gif) repeat;
}

.yellow {
    color: yellow;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/yellow_glitter.gif) repeat;
}

.pink {
    color: pink;
    background: url(https://assets.codepen.io/191814/pink_glitter.gif) repeat;
}

.gold {
    color: gold;
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/191814/gold_glitter.gif) repeat;
}

.red {
    color: red;
    background: url(https://assets.codepen.io/191814/red-glitter.gif) repeat;
}

/*  Set the properties for the glitter text */

.gold,
.pink,
.blue,
.green,
.red {
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
}

/*  Override the font size to make some things a bit smaller or bigger. */

.text-50 {
    font-size: 50%;
}

.text-150 {
    font-size: 150%;
}

/*  Set the properties for the glitter text */

.glitter-text {
    font-weight: 800;
    letter-spacing: 3px;

    font-size: 8vw;
    padding: 3vh;

    text-align: center;
    font-family: "Mountains of Christmas", cursive;
}

body {
    background: black;
    padding-bottom: 40vh;

    text-rendering: optimizeLegibility;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-fon-smoothing: grayscale;
}

:root {
    --red: #bb0f0f;
    --white: #FEFEFC;
    --black: #010103;
    --skin: #EF9967;
    --body-background: linear-gradient(90deg, rgba(100, 207, 234, 1) 0%, rgba(252, 101, 118, 1) 33%, rgba(238, 98, 113, 1) 49%, rgba(231, 114, 128, 1) 65%, rgba(215, 158, 172, 1) 75%, rgba(173, 216, 222, 1) 86%, rgba(122, 239, 229, 1) 100%);
    --box-shadow-outer: 0 3px 20px rgba(0, 0, 0, 0.301);
    --box-shadow-inner: rgb(139, 5, 30);
    background: linear-gradient(90deg, rgba(139, 5, 30, 1) 0%, rgba(235, 62, 82, 1) 48%, rgba(241, 218, 221, 1) 100%);
    --box-shadow-inner-dark: inset -2px -4px 20px -1px rgba(0, 0, 0, 0.322);
}

body {
    display: grid;
    width: 100%;
    height: 100vh;
    background: var(--body-background);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
}

h1 {
    text-align: left;
    font-family: "Puppies Play";
    font-size: 10vh;
    color: rgb(139, 5, 30);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.div_santa {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

.santa_ji {
    width: 300px;
    height: 400px;
    border-radius: 10vmin 10vmin 100% 100%;
    background-color: var(--skin);
    position: relative;
    display: flex;
    justify-content: center;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner-dark);
    transform: translateZ(0);
}

.santa_cap {
    position: absolute;
    bottom: 68%;
    display: flex;
    justify-content: center;
}

.cap_body {
    width: 320px;
    height: 280px;
    border-radius: 200px 10px 0 0;
    background-color: var(--red);
    position: relative;
    display: flex;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner);
}

.cap_body::before {
    width: 360px;
    height: 85px;
    border-radius: 1rem;
    background-color: var(--white);
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner-dark);
}

.cap_tail {
    width: 5rem;
    height: 8rem;
    border-radius: 0 0 0 9rem;
    background-color: var(--red);
    position: absolute;
    top: 4.2%;
    left: 85%;
    display: flex;
    justify-content: center;
    transform: rotate(-30deg);
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner-dark);
}

.cap_tail:before {
    height: 7rem;
    width: 7rem;
    border-radius: 100%;
    background-color: var(--white);
    content: '';
    display: block;
    position: absolute;
    top: 85%;
    left: 10%;
    z-index: 1;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner-dark);
}

.santa_eye {
    width: 1.2rem;
    height: 1.5rem;
    border-radius: 100%;
    background-color: var(--black);
    position: absolute;
    top: 40%;
    display: flex;
    justify-content: center;
    z-index: 3;
    animation: blink 2s ease-out infinite;
}

.santa_eye.left {
    left: 30%;
}

.santa_eye.right {
    right: 30%;
}

@keyframes blink {
    1% {
        transform: scaleY(0.1);
    }

    5%,
    100% {
        transform: scaleY(1.2);
    }
}

.eye_brow {
    position: absolute;
    top: 31%;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner);
    z-index: 4;
}

.eye_brow.left {
    width: 5rem;
    height: 2.3rem;
    border-radius: 2rem 2rem 2rem 0;
    background-color: var(--white);
    left: 20%;
}

.eye_brow.right {
    width: 5rem;
    height: 2.3rem;
    border-radius: 2rem 2rem 0 2rem;
    background-color: var(--white);
    right: 20%;
}

.santa_nose {
    width: 5rem;
    height: 4.5rem;
    border-radius: 100%;
    background-color: var(--skin);
    position: absolute;
    top: 42%;
    z-index: 4;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner);
}

.mustache {
    position: absolute;
    top: 50%;
    flex: 1 0 100%;
    display: flex;
    justify-content: center;
    z-index: 3;
}

.mustache:before,
.mustache:after {
    content: '';
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner);
}

.mustache:before {
    width: 22rem;
    height: 5rem;
    border-radius: 20rem 0 20rem 0;
    background-color: var(--white);
    margin-right: -1rem;
}

.mustache:after {
    width: 22rem;
    height: 5rem;
    border-radius: 0 20vmin 0 20vmin;
    background-color: var(--white);
}

.santa_mouth {
    width: 5rem;
    height: 5rem;
    border-radius: 100%;
    background-color: var(--black);
    position: absolute;
    bottom: 28%;
    z-index: 2;
    /* transform-origin: 50% 0;
    transform: scaleY(0.1); */
}

.santa_beard {
    width: 18rem;
    height: 16rem;
    border-radius: 0 0 10rem 10rem;
    background-color: var(--white);
    position: absolute;
    top: 55%;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner-dark);
}

.santa_ear {
    position: absolute;
    top: 35%;
    display: flex;
    justify-content: center;
    z-index: -1;
    box-shadow: var(--box-shadow-outer), var(--box-shadow-inner);
}

.santa_ear.left {
    width: 1rem;
    height: 3.8rem;
    border-radius: 2rem 0 0 2rem;
    background-color: var(--skin);
    right: 100%;

}

.santa_ear.right {
    width: 1rem;
    height: 3.8rem;
    border-radius: 0 2rem 2rem 0;
    background-color: var(--skin);
    left: 100%;

}

.mustache {
    cursor: ew-resize;
    position: relative;
}