@charset "UTF-8";
/* CSS Document */
:root {
    --factor: 80%;
}

@media (min-width: 800px) {
    :root {
        --factor: 100%;
    }
}
* {
    margin: 0;
    padding: 0;
}

html, body {
    overflow: hidden;
    background: black;
}

.pista {
    background: transparent;

    border-radius: 10px;
    height: 160px;
    margin: 25px 0;
    padding: 30px 0 0;
    transform: scale(var(--factor));
    position: relative;
}

.pista:before, .pista:after {

    content: "";
    display: block;
    height: 145px;
    position: absolute;
    top: 20px;
    width: 20px;
}

.pista:before {
    left: -10px;
}

.pista:after {
    right: -5px;
}

.luces span {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 100%;


    margin: 45px 4%;
}

.flipped-horizontal {
    transform:scaleX(-1);
}
.flipped-vertical {
    transform:scaleY(-1);
}

.packman {
    /*animation: l2r 2s alternate  infinite linear;*/
	/*speed of pacman across the page*/
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    /*animation-delay: 0s, 2s;*/
    top: 0;
    /*left: 0;*/
    position: absolute;
    height: 100%;
    width: 100%;
}


.comecocos {
    position: absolute;
    top: 30px;
    left: -60px;
    width: 1px;
    height: 1px;
    border-right: 60px solid transparent;
    border-top: 60px solid yellow;
    border-left: 60px solid yellow;
    border-bottom: 60px solid yellow;
    border-radius: 60px;
    z-index: 3;

}

.comecocos:after {

    border-radius: 50%;
    content: "";
    height: 20px;
    left: -10px;
    position: absolute;
    top: -40px;
    width: 20px;
    z-index: 5;
}

.comecocos:before {
    border-color: yellow transparent yellow yellow;
    border-radius: 60px 60px 60px 60px;
    border-right: 60px solid transparent;
    border-style: solid;
    border-width: 60px;
    content: "";
    height: 1px;
    left: -60px;
    position: absolute;
    top: -60px;
    width: 1px;
    z-index: -1;
    animation: boca .95s infinite linear;
}

.tras-come {

    position: absolute;
    width: 100%;
    height: 70px;
    left: 0px;
    top: 60px;
    opacity: 1;
    animation: tras-come 10s infinite linear;

}

.fantasmas {
    left: 0;
    position: absolute;
    top: 70%;
    width: 100%;
    z-index: 1;
    /*animation: fantasmas 10s infinite linear;*/
}

.fantasma {
    border-radius: 50% 50% 0 0;
    height: 133px;
    position: absolute;
    bottom: 0;
    width: 76px;

}

.fantasma:before, .fantasma:after {
    content: '';
    width: 1px;
    height: 1px;
    position: absolute;
    bottom: 0;

    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    animation: patitas .5s infinite linear;
}

.fantasma:before {
    left: 5px;
}

.fantasma:after {
    right: 5px;
}

/*HERE ARE THE SMALL FIGURES*/
.uno {
    background-image: url("../images/buttoncasapacman.png");
    left: 160px;
    animation: ojos 8s infinite linear;
}

.dos {
    background-image: url("../images/buttonsouthernmostpacman.png");
    left: 230px;
    animation: ojos 8s infinite linear;
}

.tres {
    background-image: url("../images/buttonbutterflypacman.png");
    left: 90px;
    animation: ojos 8s infinite linear;
}

/*HERE IS THE SMALL FIGURES EYES which are animated*/

/***************keyframes******************/

@keyframes l2r {
    0% { left: -340px}
    50% { left: 50%;}
    100% { left: 100%}
}
@keyframes r2l {
    0% { right: -340px}
    50% { right: 50%;}
    100% { right: 100%;}
}

/*@keyframes fantasmas {
    0% { left: -10%;}
    50% { left: 50%;}
    100% { left: 100%;}
       }*/
@keyframes patitas {
    0% {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
    }
    25% {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
    50% {
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
    }
    75% {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
    }
    100% {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
    }
}

@keyframes tras-come {
    0% {
        left: -10%;
        width: 0%;
    }
    100% {
        left: 0%;
        width: 100%
    }
}

@keyframes boca {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(-18deg);
    }
    20% {
        transform: rotate(-36deg);
    }
    30% {
        transform: rotate(-54deg);
    }
    40% {
        transform: rotate(-72deg);
    }
    50% {
        transform: rotate(-90deg);
    }
    60% {
        transform: rotate(-72deg);
    }
    70% {
        transform: rotate(-54deg);
    }
    80% {
        transform: rotate(-36deg);
    }
    90% {
        transform: rotate(-18deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes ojos {
    0% {
        transform: rotate(0deg);
        margin-left: -5px;
    }
    50% {
        transform: rotate(180deg);
        margin-left: 10px;
    }
    100% {
        transform: rotate(0deg);
        margin-left: -5px;
    }
}


