.overlay {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1051;
    position: fixed;
    opacity: 0.5;
    background: #222;
}

.overlay__inner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.overlay__content {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 75px;
    height: 75px;
    display: inline-block;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.05);
    border-top-color: #fff;
    animation: spin 1s infinite linear;
    border-radius: 100%;
    border-style: solid;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/**********Pac Man Css************/

.pac-man {
    border-radius: 50%;
    margin: 0 auto;
    margin-top: 8em;
    border-radius: 100em 100em 0 0;
    background: #f00;
    transform-origin: bottom;
    animation: eating-top .5s infinite;
    left: 42%;
    position: absolute;
    top: 30%;
}

.pac-man,
.pac-man::before {
    width: 70px;
    height: calc(35px);
    background: #fed75a;
}

.pac-man::before {
    content: '';
    display: block;
    margin-top: calc(35px);
    position: absolute;
    transform-origin: top;
    border-radius: 0 0 100em 100em;
    transform: rotate(80deg);
    animation: eating-bottom .5s infinite;
}

.pac-man::after {
    position: absolute;
    border-radius: 100em;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    margin-top: calc(25px);
    margin-left: calc(25px);
    transform-origin: center;
    animation: center .5s infinite, ball .5s -0.33s infinite linear;
}

@keyframes eating-top {
    0% {
        transform: rotate(-40deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-40deg);
    }
}

@keyframes eating-bottom {
    0% {
        transform: rotate(80deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(80deg);
    }
}

@keyframes center {
    0% {
        transform: rotate(40deg);
    }

    50% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(40deg);
    }
}

@keyframes ball {
    0% {
        opacity: .7;
        box-shadow: 70px 0 0 0 #fed75a, 120px 0 0 0 #fed75a, 170px 0 0 0 #fed75a, 220px 0 0 0 #fed75a;
    }

    100% {
        box-shadow: 20px 0 0 0 #fed75a, 70px 0 0 0 #fed75a, 120px 0 0 0 #fed75a, 170px 0 0 0 #fed75a;
    }
}
