@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Rubik+Moonrocks&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wrapper{
    height: 100vh;
    transform-style: preserve-3d;
    width: 100%;
    background-color: rgb(1, 4, 12);
    display: flex;
    justify-content: center;
    align-items: center;
}

.game{
    height: 500px;
    width: 1200px;
    margin-top: 5em;
    border: 2px solid black;
    background-color: rgb(230, 230, 230);
    position: relative;
    display: flex;
    transition: 1s ease;
}

.transform{
    transform: perspective(1300px) rotateY(20deg) translateX(-200px) translateZ(310px) scale(0.5);
}

#img1{
    position: absolute;
    object-fit: fill;
    opacity: 0.5;
    width: 60%;
    /* transform: translateY(-150px) scale(0.7); */
}

#img2{
    position: absolute;
    object-fit: fill;
    opacity: 0.5;
    width: 60%;
    right:0; 
    /* transform: translateY(-150px) scale(0.7); */
}

.player{
    height: 80px;
    width: 20px;
    /* background-color: black;     */
    bottom: 0;
    left: 160px;
    position: absolute;
    z-index: 1;
}

.animate{
    animation: player 0.5s linear;
}

.block{
    height: 40px;
    width: 40px;
    /* background-color: aqua; */
    bottom: 0;
    right:0;
    position: absolute;
    animation: blocks 2s infinite linear;
    z-index: 1;
    transform: scale(2);
}

@keyframes blocks {
    from{
        right: 0%;
    }
    to{
        right: 100%;
    }
}

@keyframes player {
    0%{
        bottom: 0em;
    }
    30%{
        bottom: 5em;
        
    }
    70%{
        
        bottom: 5em;
    }
    100%{
        bottom: 0em;
    }
}

.end{
    color: aliceblue;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* transform: translateX(-170px); */
    display: none;
    transform-style: preserve-3d;
    transition: 0.5s ease;
    border-radius: 2px;
    cursor: pointer;
}

.block1{
    display: block;
    animation: move 1s ease linear forwards;
    /* animation-delay: 1s; */
}

@keyframes move {
    form{
        right: 0;
    }
    to{
        right: 10px;
    }
}

.end:hover{
    background-color: aliceblue;
}

.end a:hover{
    color: black;

}

.end p{
    font-family: 'Press Start 2P', cursive;
    margin: 5px;
    padding: 3px;
    font-size: 2rem;
}

.end a{
    text-decoration: none;
    color: aliceblue;
    transition: 1s ease;
}


/* mediaqueries for 600 px> */

.title{
    display: flex;
    position: absolute;
    color: aliceblue;
    z-index: 10;
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    height: 20vh;
    align-items: center;
    /* background-color: rebeccapurple; */
    font-family: 'Rubik Moonrocks', serif;
    letter-spacing: 10px;
    line-height: 3em;
    font-size: 3em;
}

.score{
    position: absolute;
    color: aliceblue;
    z-index: 10;
    height: 40vh;
    margin-top: 60vh;
    font-size: 1.5rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    display: none;
}