@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Press Start 2P", system-ui;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
}

#canvas {
    width: 1000px;
    height: 850px;
    background-color: rgb(66, 0, 66);
    background-color: transparent;
    border-left: solid rgb(56, 0, 56) 5px;
    border-right: solid rgb(56, 0, 56) 5px;
    border-bottom: solid rgb(56, 0, 56) 5px;

    overflow: hidden;
    position: relative;
    margin: auto !important;
}

.center {
    position: absolute;
    top: 50% ;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.gameStartMenu{
    padding: 2rem 3rem ;
    display: flex;
    flex-direction: column;
    justify-content: center ;
    align-items: center;
    gap : 4rem;
}

.menu, .gameState {
    background-color: purple;
    padding: 2rem 3rem ;
    display: flex;
    flex-direction: column;
    justify-content: center ;
    align-items: center;
    gap : 4rem;
    box-shadow:
        4px 4px 0px 0px black,
        10px 10px 0 0 white  ;
}

h2 {
    display: flex;
    justify-content:center ;
    align-items: center;
}
.gameIcon {
    width: 64px !important ;
    animation : appear .6s ease-in-out  ;
}

@keyframes appear {
    0% {
        opacity: 0;
        scale: 0;
    }

    50% {
        opacity: .5;
        scale: 2;
    }

    100% {
        scale: 1;
        
    }
}


.menu div {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.layer {
    /* z-index: 10; */
    position: absolute;
    width: 100%;
    height: 100%;
}

.info {
    display: flex;
    margin: auto;
}



button {
    all: unset;
    font-size: 14px;
    background-color: wheat;
    width: fit-content;
    padding: 10px;
    border: 4px black solid;
    cursor: pointer;
    transition: 0.3s all;
    /* z-index: 10000; */
}

button:hover {
    scale: 1.1;
    transform: translateY(-1px);
}

.counterDown{
    /* border: solid red; */
    color: purple;
    /* font-weight: bolder; */
    font-size: 5rem;
}

.overLay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    backdrop-filter: blur(5px);
    /* background-color: red; */
    z-index: 4;
}

.hide{
    display: none;
}

.layer1 {
    z-index: -1;
}
.layer2 {
    z-index: -2;
}

.layer1 .img1 {
    width: 100%;
    height: 100%;
    left : 0;
    position: absolute;
    transform: translateY(0%);
    animation: 5s linear infinite moveDown1 ;
}

.layer1 .img2 {
    width: 100%;
    height: 100%;
    left : 0;
    position: absolute;
    transform: translateY(-100%) ;
    animation: 5s linear infinite moveDown2 ;
}

.layer2 .img1 {
    width: 100%;
    height: 100%;
    left : 0;
    position: absolute;
    transform: translateY(0%);
    animation: 25s linear infinite moveDown1 ;
}

.layer2 .img2 {
    width: 100%;
    height: 100%;
    left : 0;
    position: absolute;
    transform: translateY(-100%) ;
    animation: 25s linear infinite moveDown2 ;
}

.bullet{
    /* border: solid red 1px; */
    position: absolute;
    overflow: hidden;
}
.bullet img {
        /* border: solid yellow 1px; */
    position: absolute;
}

.fliker {
    animation : fliker 1s ease-out infinite;
}

.dangerZone{
    width: 100%;
    height: 150px;
    background-color: transparent ;
    opacity: 0.6;
    position: absolute;
    bottom: 0;
    z-index: 2;
}

.enemy {
    position: absolute;
}

.gameUi {
    padding: 10px 1rem;
    position: absolute;
    color: white;
    width:  100%;
    display: flex;
    font-size: 14px;
    gap: 50px;
    justify-content: space-between;
}

.gameState {
    width: max-content;
}

.gameState .message {
    color: black;
    font-size: 150%;
}

/* .gameStats {
    color: rgb(0, 0, 122);
    span {
        color: rgb(151, 151, 151);
    }
} */

.gameStartMenu{
    background-color: purple;
}

@keyframes fliker {
    to {
        box-shadow: 0px 0px 30px 1px rgba(255,0,0,0.8) inset;
    }
}

@keyframes moveDown2 {
    from{
        transform: translateY(-100%) ;
    }
    to {
        transform: translateY(0%);
    }
}

@keyframes moveDown1 {
    from{
        transform: translateY(0%) ;
    }
    to {
        transform: translateY(100%);
    }
}




@media screen and (max-width: 600px) {
    /* .canvas {
        display: none;
    } */
}