.background {
    background-image: url("img/bg.png");
    -webkit-background-size: 100% 100%;
    -moz-background-size: 100% 100%;
    -o-background-size: 100% 100%;
    background-size: 100% 100%;
}

.center {
    margin: auto;
    padding: 10px;
    text-align: center;
}

.center-root { 
    height: 100%;
    position: relative;
}
  
.center-child {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

table {
    background-color: #c9c9c9c2;
}

.table-border {
    border: 10px solid rgb(47 60 41);
    display: inline-block;
}
.box {
    width: 30px;
    height: 30px;
}

.box-body {
    background-image: url("img/body.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.res-box {
    display: inline-block;
}

.obox-body {
    background-image: url("img/obox.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.box-dead {
    background-color: rgb(129, 129, 129);
    border: 1px solid #000;
    border-radius: 30px;
}

.bolt {
    background-image: url("img/bolt.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.food-0 {
    background-image: url("img/food-0.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.food-1 {
    background-image: url("img/food-1.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.food-2 {
    background-image: url("img/food-2.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.food-3 {
    background-image: url("img/food-3.png"); 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.box-char {
    background-color: bisque;
    border-radius: 30px;
    font-weight: bolder;
    font-size: 20px;
    text-align: center;
    animation: blinker 2s linear infinite;
}

.bug-0 {
    background-image: url("img/bug-0.png"); 
}
.bug-1 {
    background-image: url("img/bug-1.png"); 
}
.bug-2 {
    background-image: url("img/bug-2.png"); 
}
.bug-3 {
    background-image: url("img/bug-3.png"); 
}
.bug-4 {
    background-image: url("img/bug-4.png"); 
}
.bug-5 {
    background-image: url("img/bug-5.png"); 
}
.bug-6 {
    background-image: url("img/bug-6.png"); 
}
.bug-7 {
    background-image: url("img/bug-7.png"); 
}
.bug-8 {
    background-image: url("img/bug-8.png"); 
}
.bug-9 {
    background-image: url("img/bug-9.png"); 
}
.bug-10 {
    background-image: url("img/bug-10.png"); 
}
.bug-11 {
    background-image: url("img/bug-11.png"); 
}
.bug-12 {
    background-image: url("img/bug-12.png"); 
}
.bug-13 {
    background-image: url("img/bug-13.png"); 
}

.box-bug-0 {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
.box-bug-1 {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transform: rotate(180deg);
}
.box-bug-2 {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transform: rotate(270deg);
}
.box-bug-3 {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    transform: rotate(90deg);
}

.sn {
    background-image: url("img/sn.png");
}

.snd {
    background-image: url("img/snd.png");
}
  
@keyframes blinker {
    50% {
      opacity: .5;
    }
}

.scoreboard {
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    margin: 10px;
    padding: 10px;
    color: #fff;
    min-height: 100px;
}

.scoreboard-child {
    background-color: #222c1f;
    width: 500px;
    display: inline-block;
    border: 2px solid #000;
}

.scoreboard-block-one {
    display: inline-block;
    text-align: left;
    width: 50%;
}

.game-hint {
    text-align: center;
    padding: 0px;
    margin: 0px;
    font-size: 20px;
    font-weight: 600;
    margin: 10px;
    padding: 10px;
    color: rgb(88, 88, 88);
    opacity: 0.6;
}

.score {
    text-align: center;
}

.controller {
    text-align: center;
    width: 100%;
}
.controller-pc{
    display: block;
}

.controller-mob{
    display: none;
}

.controller-btn {
    display: inline-block;
    background-color: blueviolet;
    padding: 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
}

.container-text {
    text-align: center;
    color: #fff;
}

.menu {
    position:absolute;
    top: 40%;
    text-align: center;
    width: 100%;
}

.menu-title {
    width: 50px;
    padding: 5px;
    border-radius: 20px;
    color: #fff;
    opacity: 0.7;
    font-size: 28px;
    display: inline-block;
    font-family: "Times New Roman", Times, serif;
}

.menu-option {
    padding: 20px;
    background-color: rgb(68, 68, 68);
    border-radius: 20px;
    color: #fff;
    width: 100px;
    height: 100px;
    opacity: 0.7;
    font-size: 40px;
    display: inline-block;
    cursor: pointer;
}

.menu-option-text {
    font-size: 10px;
}

.game-play-instruction {
    width: auto; 
    height: auto; 
    font-size: 14px; 
    opacity: 1;
    margin-top: 20px;
    font-weight: 800;
}

.highlights {
    background-color: bisque;
    padding: 5px;
}

.time-limit {
    position: absolute;
    top: 40%;
    text-align: center;
    width: 100%;
    font-size: 80px;
    font-weight: 600;
    color: rgb(0, 111, 0);
    opacity: 0.3;
}

.time-limit-blink {
    animation: blinker 2s linear infinite;
    color: rgba(255, 0, 0, 0.441);
}

@media (max-width: 479px) {
    .box {
        width: 15px;
        height: 15px;
    }

    .box-food {
        background-color: rgb(242, 255, 59);
        border-radius: 30px;
        animation: blinker 2s linear infinite;
    }
    
    .box-char {
        background-color: bisque;
        border-radius: 20px;
        font-weight: bolder;
        font-size: 12px;
        text-align: center;
        animation: blinker 2s linear infinite;
    }

    .controller-pc{
        display: none;
    }

    .controller-mob{
        display: block;
    }

    .controller-btn {
        display: inline-block;
        background-color: blueviolet;
        padding: 15px;
        border-radius: 20px;
        color: #fff;
        font-size: 30px;
        font-weight: 800;
    }
}