﻿.coin-loader-animation-container {
    display: relative;
    width: 200px;
    height: 300px;
}

.coin-loader-container {
    position: relative;
    top: 30px;
    height: 300px;
    width: 190px;
    transform: scale(0.5) translateX(0) scaleY(0.7);
}

.coin-loader-y-axis-container {
    animation: bounce 2.6s infinite ease-in-out;
}

.coin-loader-shadow {
    animation: scaling 2.6s infinite ease-in-out;
}

.coin-loader-coin {
    position: absolute;
    height: 300px;
    left: 0;
    width: 170px;
    background: gold;
    border-radius: 100%;
    overflow: hidden;
}

.coin-loader-side-coin {
    position: absolute;
    left: 85px;
    height: 300px;
    width: 35px;
    background: #f5b642;
}

.coin-loader-side {
    position: absolute;
    background: #f5b642;
    left: 22px;
    width: 165px;
    height: 304px;
    top: -2px;
}

.coin-loader-coin .shine {
    width: 400px;
    height: 20px;
    background: rgba(255,255,255,0.65);
    transform: rotate(25deg);
    animation: shine 5s infinite;
}

.coin-loader-container .flash {
    z-index: 200;
    position: absolute;
    width: 15px;
    height: 15px;
    background: white;
    top: 30px;
    right: 20px;
    animation: flash 7s infinite;
}

.coin-loader-shadow {
    position: relative;
    left: calc(50% - 60px);
    top: -40px;
    background: rgba(0,0,0,0.2);
    height: 30px;
    width: 100px;
    animation: scaling 2.6s infinite;
    border-radius: 100%;
}

@keyframes bounce {
    20% {
        animation-timing-function: ease-out;
        transform: translateY(-60px);
    }

    50% {
        animation-timing-function: ease-out;
        transform: translateY(-80px);
    }
}

@keyframes scaling {
    20% {
        transform: scale(0.6);
    }

    50% {
        transform: scale(0.5);
    }
}

@keyframes flash {
    0% {
        transform: rotate(0deg) scale(0);
    }

    8% {
        transform: rotate(0deg) scale(0);
    }

    10% {
        transform: rotate(150deg) scale(1.8);
    }

    15% {
        transform: rotate(45deg) scale(0);
    }

    100% {
        transform: rotate(45deg) scale(0);
    }
}


@keyframes shine {
    20% {
        transform: rotate(25deg) translateY(400px);
    }

    100% {
        transform: rotate(25deg) translateY(400px);
    }
}
