video {
    z-index: -999;
    position: fixed;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-size: cover;
    object-fit: cover;
}

* {
    margin: 0;
    box-sizing: border-box;
    padding: 0;
    font-family: "new", sans-serif;
    user-select: none;
}

#result {
    color: white;
    font-size: 1.2rem;
    font-weight: normal;
    letter-spacing: 4px;
    text-shadow: 1px 1px 4px black;
}

body {
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
}

@font-face {
    font-family: "new";
    src: url(assets/lazer_game_zone/Lazer\ Game\ Zone.ttf);
}

button {
    width: 120px;
    padding: 10px;
    font-size: 1.2rem;
    border-radius: 8px;
    border: none;
    outline: none;
    background: linear-gradient(180deg, #000000d3, #600160ce);
    cursor: pointer;
    box-shadow: 2px 2px 5px 2px black;
    color: white;
    transition: all 0.2s ease-in-out;
    letter-spacing: 3px;
}

button:hover {
    transform: scale(1.09);
}

h1 {
    text-align: center;
    color: white;
    letter-spacing: 5px;
    font-size: 3.5rem;
    text-shadow: 1px 2px 10px #ab00df;
}

#container {
    margin: 0 auto;
    height: 350px;
    border: 3px solid #a09d9d98;
    border-radius: 5px;
    align-items: center;
    display: flex;
    box-shadow: 2px 2px 5px 4px #000000ea;
    justify-content: center;
    width: 350px;
    transition: all 0.2s ease-in-out;
}

#winning-image {
    border-radius: 10px;
    backdrop-filter: blur(4px);
    width: 350px;
    height: 350px;
    display: none;
    animation: win 1.3s forwards;
}

@keyframes win {
    0% {
        transform: scale(0.5);
    }

    100% {
        transform: scale(1);
    }
}

.row {
    display: grid;
    overflow: hidden;
    grid-template-rows: repeat(3, 1fr);
    grid-template-columns: repeat(3, 1fr);
}

.box {
    cursor: pointer;
    margin: 5px;
    font-size: 3rem;
    width: 100px;
    height: 100px;
    border: 2px solid black;
    position: relative;
    background-color: #1e1d1fc4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.4s ease-in-out;
    border-radius: 10px;
}

.box:hover {
    border: 5px solid rgb(119, 4, 119);
    transform: scale(.95);
    box-shadow: 1px 2px 5px 1px white;
}

img {
    width: 100%;
    height: 100%;
    position: absolute;
}

.king {
    display: none;
}



@media (max-width:678px) {
    #container {
        margin: 0 40px;
        width: 300px;
        height: 300px;
    }

    .box{
        width: 80px;
        height: 80px;
    }
    #winning-image {
        width: 300px;
        height: 300px;
    }
}
