@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
*{
    padding: 0;
    margin: 0;
}

.body{
    background-color: rgba(145, 0, 0, 0.479);
    background-repeat: no-repeat;
    display: flex;
    height: 100vh !important;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.scores{
    display: flex;
    flex-direction: row;
    margin-top: 10px;
}

#scoreBox{
        font-size: 25px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    margin-right: 30px;
    position: relative;
}

#hiscoreBox{
    font-size: 25px;
    font-weight: bold;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

#board{
    /* background: linear-gradient(rgb(170, 236, 170), rgb(236, 236, 167)); */
    background-color: rgb(238, 236, 236);
    border-radius: 12px;
    width: 80vmin;
    height: 82vmin;
    resize: both;
    overflow: auto;
    box-shadow: rgba(0, 0, 0, 0.301) 1px 1px 15px;
    display: grid;
    position: relative;
    grid-template-rows: repeat( 18, 1fr);
    grid-template-columns: repeat(18, 1fr);
}


.head{
    background:rgb(209, 7, 7);
   border-radius: 50% 50% 20% 20%;
     box-shadow: -0px 4px 0px 2px rgb(219, 223, 3),
                -0px 10px 0px 4px rgb(209,7,7);
}

.snake{
    background-color: rgb(252, 42, 70);
    border-radius: 30% 30% 50% 50%;
}

.food{
background: linear-gradient(rgb(1, 204, 255), rgb(14, 154, 197));
border-radius: 50% 60% 80% 10%;
transform: rotate(45deg);   
box-shadow: 3px -3px 0px 2px rgb(0, 60, 255),
            2px -16px 0px 1px rgb(110, 204, 255),
            16px -2px 0px 1px rgb(110, 204, 255);

}

@media only screen and (max-width: 600px) {
    #scoreBox{
        font-size: 20px;
    }
    #hiscoreBox{
        font-size: 20px;
    }
  }











  .bubbles{
    position:absolute;
    width:100%;
    height: 100%;
    z-index:0;
    overflow:hidden;
    top:0;
    left:0;
  }
  .bubble{
    position: absolute;
    bottom:-100px;
    width:40px;
    height: 40px;
    background:red;
    border-radius:50%;
    opacity:0.5;
    animation: rise 10s infinite ease-in;
  }
  .bubble:nth-child(1){
    width:40px;
    height:40px;
    left:10%;
    animation-duration:20s;
  }
  .bubble:nth-child(2){
    width:20px;
    height:20px;
    left:20%;
    animation-duration:8s;
    animation-delay:1s;
  }
  .bubble:nth-child(3){
    width:50px;
    height:50px;
    left:35%;
    animation-duration:13s;
    animation-delay:2s;
  }
  .bubble:nth-child(4){
    width:80px;
    height:80px;
    left:50%;
    animation-duration:30s;
    animation-delay:0s;
  }
  .bubble:nth-child(5){
    width:35px;
    height:35px;
    left:55%;
    animation-duration:11s;
    animation-delay:1s;
  }
  .bubble:nth-child(6){
    width:45px;
    height:45px;
    left:65%;
    animation-duration:14s;
    animation-delay:3s;
  }
  .bubble:nth-child(7){
    width:90px;
    height:90px;
    left:70%;
    animation-duration:20s;
    animation-delay:2s;
  }
  .bubble:nth-child(8){
    width:25px;
    height:25px;
    left:80%;
    animation-duration:12s;
    animation-delay:2s;
  }
  .bubble:nth-child(9){
    width:15px;
    height:15px;
    left:70%;
    animation-duration:10s;
    animation-delay:1s;
  }
  .bubble:nth-child(10){
    width:90px;
    height:90px;
    left:25%;
    animation-duration:20s;
    animation-delay:4s;
  }
  @keyframes rise{
    0%{
      bottom:-100px;
      transform:translateX(0);
    }
    50%{
      transform:translate(100px);
    }
    100%{
      bottom:100vh;
    }
  }