
.frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    margin-top: -200px;
    margin-left: -200px;
    border-radius: 2px;
    box-shadow: 4px 8px 16px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333;
    font-family: 'Open Sans', Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: grey;
}

.center {
    display: contents;
    flex-direction: column;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle {
    position: relative;
    overflow: hidden;
    /*clip-path: circle(90px at 90px 90px);*/
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.sky {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: #7DDFFC;
    animation: sky-turns-black 4s cubic-bezier(.4,0,.49,1) infinite;
    transition: all 2s ease-in;
}

.sun {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:  #FFEF00;
    top: 80px;
    left: 40px;
    transform-origin: 350% 300%;
    animation: sun-goes-down 4s cubic-bezier(.4,0,.49,1) infinite;
}

.side-left {
    position: absolute;
    top: 213px;
    left: 116px;
    height: 89px;
    width: 113px;
    background: #F4F4F4;
    clip-path: polygon(0% 100%, 100% 100%, 50% 0%);
    animation: pyramide-shading 4s cubic-bezier(.4,0,.49,1) infinite;
}

.side-right {
    position: absolute;
    top: 213px;
    left: 173px;
    height: 88px;
    width: 57px;
    background: #DDDADA;
    clip-path: polygon(30% 100%, 100% 100%, 0% 0%);
    animation: pyramide-shading 4s cubic-bezier(.4,0,.49,1) infinite reverse;
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: #F0DE75;
}

.shadow {
    position: absolute;
    z-index: 2;
    top: 300px;
    left: 2px;
    height: 30px;
    width: 360px;
    background: rgba(0,0,0,0.2);
    transform-origin: 50% 0%;
    clip-path: polygon(115px 0%, 231px 0%, 80% 100%);
    animation: shadow-on-the-floor 4s cubic-bezier(.4,0,.49,1) infinite;
}


@keyframes sky-turns-black {
    0% {
        background: #272C34;
    }

    30% {
        background: #7DDFFC;
    }

    70% {
        background: linear-gradient(to top right, #7DDFFC 40%, #ff921d);
    }

    100% {
        background: #272C34;
    }
}

@keyframes sun-goes-down {
    0% {
        background: #F57209;
        transform: rotate(-70deg);
    }

    30% {
        background: #FFEF00;
        transform: rotate(0deg);
    }

    70% {
        background: #FFEF00;
        transform: rotate(70deg);
    }

    100% {
        background: #F57209;
        transform: rotate(140deg);
    }
}

@keyframes pyramide-shading {
    0% {
        background: #272C34;
    }

    30% {
        background: #F4F4F4;
    }

    70% {
        background: #DDDADA;
    }

    100% {
        background: #272C34;
    }
}

@keyframes shadow-on-the-floor {
    0% {
        transform: scaleY(0);
        clip-path: polygon(115px 0%, 231px 0%, 100% 100%);
    }

    30% {
        transform: scaleY(1);
        clip-path: polygon(115px 0%, 231px 0%, 80% 100%);
    }

    55% {
        transform: scaleY(.4);
    }

    75% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
        clip-path: polygon(115px 0%, 231px 0%, 0% 100%);
    }
}
