* {
    user-select: none;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    box-sizing: border-box;
}

#game-board {
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 600px;
    width: 600px;
}

img {
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 13px;
}

.bg-grid {
    position: absolute;
    height: 600px;
    width: 600px;
    border-radius: 13px;
    background-color: #000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 11px;
}

.bg-grid span {
    background-color: #484848;
    border-radius: 13px;
    height: 137px;
    width: 137px;
    display: flex;
    margin: 0 0 10px 0;
}

#scoreText {
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    position: absolute;
    height: 137px;
    width: 137px;
    left: 11px;
    top: 11px;
    border-radius: 12px;
    text-align: center;
    line-height: 137px;
    font-size: 27px;
    color: white;
    font-weight: 800;
    transition: margin 0.1s linear, background 0.1s linear, transform 0.1s linear;
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
} 

.swiper-container {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    z-index: 10;
}

@media (max-width: 799px) and (min-width:500px) {
    #game-board {
        width: 470px;
        height: 470px;
    }
    .box {
        height: 105px;
        width: 105px;
    }
    .bg-grid {
        padding: 10px;
        width: 470px;
        height: 470px;
    }
    .bg-grid span {
        margin: 0 0 10px 0;
        height: 105px;
        width: 105px;
    }
}

@media (max-width: 499px) {
    #game-board {
        width: 371px;
        height: 371px;
    }
    .box {
        height: 84px;
        width: 84px;
        left: 10px;
        top: 10px;
    }
    .bg-grid {
        padding: 10px;
        width: 371px;
        height: 371px;
    }
    .bg-grid span {
        margin: 0 0 5px 0;
        height: 84px;
        width: 84px;
    }
}