@import url('https://fonts.googleapis.com/css2?family=New+Tegomin&display=swap');



*{
    padding: 0;
    margin: 0;
}

  .main-container {
    width: 100%;
    display: flex;
    flex-direction: row;
  }

  .main-container .leftside {
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-container .main {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


.body{
    background: url("../img/bg1.jpeg"); 
    min-height: 100vh;
    margin: 20px 0;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

#scoreBox{
    margin-left: 40px;
    font-size: 39px;
    font-weight: bold;
    font-family: 'New Tegomin', serif;
}

#hiscoreBox{
    margin-left: 50px;
    font-size: 39px;
    font-weight: bold;
    font-family: 'New Tegomin', serif;
}

#board{
    background: linear-gradient(rgb(170, 236, 170), rgb(236, 236, 167));
    width: 90vmin;
    height: 92vmin;
    border: 2px solid black;
    display: grid;
    grid-template-rows: repeat(18, 1fr);
    grid-template-columns: repeat(18, 1fr);
}

.head{
    background: linear-gradient(rgb(240, 124, 124), rgb(228, 228, 129));
    border: 2px solid rgb(34, 4, 34); 
    transform: scale(1.02);
    border-radius: 9px;
}

.snake{
    background-color: purple;
    border: .25vmin solid white;
    border-radius: 12px;
}

.food{
    background: linear-gradient(red, purple);
    border: .25vmin solid black;
    border-radius: 8px;
}


.congrats{
    position: fixed;
    top: 45vh;
    height: 50px;
    width: 100%;
    background: linear-gradient(red, purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.congrats .greets p{
    font-size: 22px;
    font-weight: bolder;
    text-decoration: underline;
    color: white;
    padding-bottom: 5px;
}

.hide{
    display: none;
}

.reset{
    margin: 0 23px;
    padding: 3px 18px;
    padding-bottom: 5px;
    background: linear-gradient(rgb(240, 124, 124), rgb(228, 228, 129));
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 15px;
    font-weight: bolder;
    border: 1px solid #854985;
}

  
  .main-container .main .banner {
    
    margin: 20px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .main-container .main .atag {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: max-content;
  }

  span{
    text-align: center;
  }
  
  .main-container .rightside {
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    
  }
  
  
  @media screen and (max-width: 800px) {  

    .body{
        flex-direction: column;
        align-items: center;
    }

    #scoreBox{
        margin-left: 0px;
    }
    
    #hiscoreBox{
        margin-left: 0px;
    }

      .main-container {
        flex-direction: column;
      }
    
      .main-container .main {
        width: 100%;
      }
    
      .main-container .leftside {
        width: 100%;
        position: fixed;
        left: -1000px;
        /* margin-left: -1000px; */
      }
    
      .main-container .rightside {
        width: 100%;
        position: fixed;
        right: -1000px;
        /* margin-right: -1000px; */
      }
    }
    
