@import url('https://fonts.googleapis.com/css?family=Nunito:300,400,600,700&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-size: 62.5%;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 900px) {
    html, body {
        font-size: 50%;
        
    }
}

body {
    overflow: hidden;
    background: linear-gradient(#F7F7FF, #BDD6DD);
}

.container{
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40.5rem;
    height: 60rem;
    margin-left: -20.25rem;
    margin-top: -30rem;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: rotateReverse 2s infinite linear;
}

.content {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 2s infinite linear;
    transform: rotateX(10deg) rotateZ(0);
    background: #fff;
}

.content:before {
    content: "";
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 5rem 10rem rgba(0, 0, 0, 0.4);
}

.content-img {
    overflow: hidden;
    position: absolute;
    left: -0.55rem;
    top: 3.15rem;
    width: 41.6rem;
    height: 53.7rem;
    transform: translateZ(5rem) scale(0.95);
}

.content-img:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/142996/macbeth.png"); */
    background-image: url(1.gif);
    background-size: cover;
}

.content-img:after {
    content: "";
    z-index: 2;
    overflow: hidden;
    position: absolute;
    left: -20%;
    top: 0;
    width: 80%;
    padding-bottom: 80%;
    border-radius: 50%;
    background: radial-gradient(ellipse farthest-corner at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    transform: translateY(-100%);
    animation: shiny 2s infinite ease-in-out;
}

@keyframes rotate {
    100% {
        transform: rotateX(10deg) rotateZ(360deg);
    }
}

@keyframes rotateReverse {
    100% {
        transform: rotateZ(-360deg);
    }
}

@keyframes shiny {
    25% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(60rem);
    }
    50.1% {
        transform: translate(75%, 60rem);
    }
    75% {
        transform: translate(75%, -100%);
    }
}

.source {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    font-size: 2rem;
}

.tip {
    padding: 1rem;
    font-size: 1.8rem;
}