:root {
    --fall-height: 500px;
    --rain-fall-height: calc(var(--fall-height) * var(--media-scale-factor))
}

.rain-container {
    /* position: relative; */
    height: 500px;
    width: 100%;
    display: flex;
    justify-content: center;
    -webkit-animation: animateColor 5s linear infinite;
    animation: animateColor 5s linear infinite;
}

@-webkit-keyframes animateColor {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes animateColor {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.rain-container .cloud {
    position: relative;
    width: 200px;
    /* height: var(--rain-fall-height); */
    z-index: 100;
    filter: drop-shadow(0 0 35px var(--clr));
}

.rain-container .cloud h2 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #000;
    font-size: 2em;
    z-index: 1000;
    font-weight: 400;
    padding: 0 10px;
    border-radius: 10px;
    text-transform: uppercase;
    background: var(--clr);
    cursor: default;
}

.rain-container .cloud h2::before {
    content: "";
    position: absolute;
    top: -115px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 100px;
    width: 120%;
    height: 100px;
    background: var(--clr);
}

.rain-container .cloud h2::after {
    content: "";
    position: absolute;
    top: -150px;
    left: 25px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--clr);
    box-shadow: 120px -30px 0 10px var(--clr);
}

.rain-container .cloud .drop {
    position: absolute;
    top: 80px;
    height: 20px;
    line-height: 20px;
    color: var(--clr);
    transform-origin: bottom;
    -webkit-animation: animate 2s linear infinite;
    animation: animate 2s linear infinite;
    cursor: default;
}

@-webkit-keyframes animate {
    0% {
        transform: translateY(0) scaleY(0);
        transform-origin: top;
    }

    10% {
        transform: translateY(0) scaleY(0.25);
        transform-origin: top;
    }

    20% {
        transform: translateY(0) scaleY(1);
        /* transform-origin: top; */
    }

    70% {
        transform: translateY(var(--rain-fall-height)) scaleY(1);
        transform-origin: bottom;
    }

    80% {
        transform: translateY(var(--rain-fall-height)) scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: translateY(var(--rain-fall-height)) scaleY(0);
        transform-origin: bottom;
        text-shadow: -180px 0 0 var(--clr), 180px 0 var(--clr);
    }
}

@keyframes animate {
    0% {
        transform: translateY(0) scaleY(0);
        transform-origin: top;
    }

    10% {
        transform: translateY(0) scaleY(0.25);
        transform-origin: top;
    }

    20% {
        transform: translateY(0) scaleY(1);
        /* transform-origin: top; */
    }

    70% {
        transform: translateY(var(--rain-fall-height)) scaleY(1);
        transform-origin: bottom;
    }

    80% {
        transform: translateY(var(--rain-fall-height)) scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: translateY(var(--rain-fall-height)) scaleY(0);
        transform-origin: bottom;
        text-shadow: -180px 0 0 var(--clr), 180px 0 var(--clr);
    }
}