* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  max-height: 100vh;
  background-color: #34a016;
  text-align: center;
}

.snakeee {
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 75%;
}
.snakeee:nth-of-type(odd){
  background: #24312a;
}

.snakeee:nth-of-type(even){
  background: #95beba;
}

.snakeee:nth-of-type(20)
{
  height: 10px;
  width: 10px;

  margin-top: -5px;
  margin-left: -5px;
  -webkit-animation: slide 8s ease-in-out infinite;
  animation: slide 8s ease-in-out infinite;

}

.snakeee:nth-of-type(19)
{
  height: 15px;
  width: 15px;

  margin-top: -8px;
  margin-left: -8px;
  -webkit-animation: slide 8s -2.8s ease-in-out infinite;
  animation: slide 8s -2.8s ease-in-out infinite;

}

.snakeee:nth-of-type(18)
{
  height: 20px;
  width: 20px;

  margin-top: -10px;
  margin-left: -10px;
  -webkit-animation: slide 8s -2.6s ease-in-out infinite;
  animation: slide 8s -2.6s ease-in-out infinite;

}

.snakeee:nth-of-type(17)
{
  height: 25px;
  width: 25px;

  margin-top: -13px;
  margin-left: -13px;
  -webkit-animation: slide 8s -2.4s ease-in-out infinite;
  animation: slide 8s -2.4s ease-in-out infinite;

}

.snakeee:nth-of-type(16)
{
  height: 30px;
  width: 30px;

  margin-top: -15px;
  margin-left: -15px;
  -webkit-animation: slide 8s -2.2s ease-in-out infinite;
  animation: slide 8s -2.2s ease-in-out infinite;

}

.snakeee:nth-of-type(15)
{
  height: 35px;
  width: 35px;

  margin-top: -18px;
  margin-left: -18px;
  -webkit-animation: slide 8s -2s ease-in-out infinite;
  animation: slide 8s -2s ease-in-out infinite;

}

.snakeee:nth-of-type(14)
{
  height: 40px;
  width: 40px;

  margin-top: -20px;
  margin-left: -20px;
  -webkit-animation: slide 8s -1.8s ease-in-out infinite;
  animation: slide 8s -1.8s ease-in-out infinite;

}

.snakeee:nth-of-type(13)
{
  height: 45px;
  width: 45px;

  margin-top: -23px;
  margin-left: -23px;
  -webkit-animation: slide 8s -1.6s ease-in-out infinite;
  animation: slide 8s -1.6s ease-in-out infinite;

}

.snakeee:nth-of-type(12)
{
  height: 50px;
  width: 50px;

  margin-top: -25px;
  margin-left: -25px;
  -webkit-animation: slide 8s -1.4s ease-in-out infinite;
  animation: slide 8s -1.4s ease-in-out infinite;

}

.snakeee:nth-of-type(11)
{
  height: 55px;
  width: 55px;

  margin-top: -28px;
  margin-left: -28px;
  -webkit-animation: slide 8s -1.2s ease-in-out infinite;
  animation: slide 8s -1.2s ease-in-out infinite;

}

.snakeee:nth-of-type(10)
{
  height: 60px;
  width: 60px;

  margin-top: -30px;
  margin-left: -30px;
  -webkit-animation: slide 8s -1s ease-in-out infinite;
  animation: slide 8s -1s ease-in-out infinite;

}

.snakeee:nth-of-type(9)
{
  height: 65px;
  width: 65px;

  margin-top: -33px;
  margin-left: -33px;
  -webkit-animation: slide 8s -0.9s ease-in-out infinite;
  animation: slide 8s -0.9s ease-in-out infinite;

}

.snakeee:nth-of-type(8)
{
  height: 70px;
  width: 70px;

  margin-top: -35px;
  margin-left: -35px;
  -webkit-animation: slide 8s -0.8s ease-in-out infinite;
  animation: slide 8s -0.8s ease-in-out infinite;

}

.snakeee:nth-of-type(7)
{
  height: 75px;
  width: 75px;

  margin-top: -38px;
  margin-left: -38px;
  -webkit-animation: slide 8s -0.7s ease-in-out infinite;
  animation: slide 8s -0.7s ease-in-out infinite;

}

.snakeee:nth-of-type(6)
{
  height: 80px;
  width: 80px;

  margin-top: -40px;
  margin-left: -40px;
  -webkit-animation: slide 8s -0.6s ease-in-out infinite;
  animation: slide 8s -0.6s ease-in-out infinite;

}

.snakeee:nth-of-type(5)
{
  height: 85px;
  width: 85px;

  margin-top: -43px;
  margin-left: -43px;
  -webkit-animation: slide 8s -0.5s ease-in-out infinite;
  animation: slide 8s -0.5s ease-in-out infinite;

}

.snakeee:nth-of-type(4)
{
  height: 90px;
  width: 90px;

  margin-top: -45px;
  margin-left: -45px;
  -webkit-animation: slide 8s -0.4s ease-in-out infinite;
  animation: slide 8s -0.4s ease-in-out infinite;

}

.snakeee:nth-of-type(3)
{
  height: 95px;
  width: 95px;

  margin-top: -48px;
  margin-left: -48px;
  -webkit-animation: slide 8s -0.3s ease-in-out infinite;
  animation: slide 8s -0.3s ease-in-out infinite;

}

.snakeee:nth-of-type(2)
{
  height: 100px;
  width: 100px;

  margin-top: -50px;
  margin-left: -50px;
  -webkit-animation: slide 8s -0.2s ease-in-out infinite;
  animation: slide 8s -0.2s ease-in-out infinite;

}

.snakeee:nth-of-type(1)
{
  height: 105px;
  width: 105px;

  margin-top: -53px;
  margin-left: -53px;
  -webkit-animation: slide 8s ease-in-out infinite;
  animation: slide 8s ease-in-out infinite;

}

.containerImage {
  background-color: transparent;
  border: none;
  outline: none;
}

.containerImage img {
  height: 50px;
  width: 100px;
  background: transparent;
  opacity: 1;
  rotate: -90deg;
  margin-top: 3em;
  left:0px;
  top: 0px;
  position: relative;
  animation: slidee 20s ease-in-out infinite;
  transform: scaley(4);
}


.containerImagee {
  background-color: transparent;
  border: none;
  outline: none;
}

.containerImagee img {
  height: 50px;
  width: 100px;
  background: transparent;
  opacity: 1;
  rotate: -90deg;
  margin-top: 6em;
  
  left:0px;
  top: 0px;
  position: relative;
  animation: slidee 20s ease-in-out infinite;
  transform: scaley(4);
}

@keyframes slide {
  0%
  {
    left:3%;
    top:20%
  }
  10%
  {
    left:15%;
    top: 10%
  }
  200%
  {
    left:25%;
    top:20%
  }
  30%
  {
    left:35%;
    top:30%
  }
  40%
  {
    left:45%;
    top:20%;
  }
  50%
  {
    left:55%;
    top:10%;
  }
  60%
  {
    left:65%;
    top:20%;
  }
  70%
  {
    left:75%;
    top:30%;
  }
  80%
  {
    left:85%;
    top:20%;
  }
  90%
  {
    left:95%;
    top:10%;
  }
  100%
  {
    left:98%;
    top:20%;
  }
} 

@-webkit-keyframes slide {
  0%
  {
    left:75%;
    top:75%
  }
  50%
  {
    right:25%;
    top:125%
  }
  100%
  {
    right:75%;
    top:75%;
  }
}
 





  /* main table */
.snakeTable {
  width: 735px;
  height: 735px;
  margin: auto;
  margin-top: 5.5%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 0 1px 1px rgba(0,0,0,0.3);
}
/* all boxes in the table */
.box {
  background: white;
  border: solid 1px #16a085;
  width: 2.1rem;
  height: 2.1rem;
}







.food {
  background: #8e44ad;
}

.snake {
  background: #16a085;
}





/* start window before and after game */
.modul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  margin: auto;
  top: 13%;
  left: 0px;
  height: 75%;
  width: 100%;
  background: rgba(0, 0, 0, 0.683);
  text-align: center;
}
.start {
  background: rgba(256,256,256,1);
  padding: 60px;
  box-shadow: 5px 5px 10px 10px rgba(0,0,0,0.3);
  border-radius: 2px;
}
.start span {
  color: #16a085;
  border: 1px solid;
  border-radius: 2px;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
}
.start span:hover {
  background: #16a085;
  color: white;
}

.hidden {
  display: none;
}






@keyframes slidee {
  0% {
    left: 700px;
    
  }
  
  
  100% {
    left: -700px;
    
  }
} 











.snakeeee {
  border-radius: 50%;
  position: absolute;
  top: 100%;
  left: 100%;
}
.snakeeee:nth-of-type(odd){
  background: #24312a;
}

.snakeeee:nth-of-type(even){
  background: #95beba;
}

.snakeeee:nth-of-type(20)
{
  height: 10px;
  width: 10px;

  margin-top: -5px;
  margin-left: -5px;
  -webkit-animation: slideee 8s ease-in-out infinite;
  animation: slideee 8s ease-in-out infinite;

}

.snakeeee:nth-of-type(19)
{
  height: 15px;
  width: 15px;

  margin-top: -8px;
  margin-left: -8px;
  -webkit-animation: slideee 8s -2.8s ease-in-out infinite;
  animation: slideee 8s -2.8s ease-in-out infinite;

}

.snakeee:nth-of-type(18)
{
  height: 20px;
  width: 20px;

  margin-top: -10px;
  margin-left: -10px;
  -webkit-animation: slideee 8s -2.6s ease-in-out infinite;
  animation: slideee 8s -2.6s ease-in-out infinite;

}

.snakeeee:nth-of-type(17)
{
  height: 25px;
  width: 25px;

  margin-top: -13px;
  margin-left: -13px;
  -webkit-animation: slideee 8s -2.4s ease-in-out infinite;
  animation: slideee 8s -2.4s ease-in-out infinite;

}

.snakeeee:nth-of-type(16)
{
  height: 30px;
  width: 30px;

  margin-top: -15px;
  margin-left: -15px;
  -webkit-animation: slideee 8s -2.2s ease-in-out infinite;
  animation: slideee 8s -2.2s ease-in-out infinite;

}

.snakeeee:nth-of-type(15)
{
  height: 35px;
  width: 35px;

  margin-top: -18px;
  margin-left: -18px;
  -webkit-animation: slideee 8s -2s ease-in-out infinite;
  animation: slideee 8s -2s ease-in-out infinite;

}

.snakeeee:nth-of-type(14)
{
  height: 40px;
  width: 40px;

  margin-top: -20px;
  margin-left: -20px;
  -webkit-animation: slideee 8s -1.8s ease-in-out infinite;
  animation: slideee 8s -1.8s ease-in-out infinite;

}

.snakeeee:nth-of-type(13)
{
  height: 45px;
  width: 45px;

  margin-top: -23px;
  margin-left: -23px;
  -webkit-animation: slideee 8s -1.6s ease-in-out infinite;
  animation: slideee 8s -1.6s ease-in-out infinite;

}

.snakeeee:nth-of-type(12)
{
  height: 50px;
  width: 50px;

  margin-top: -25px;
  margin-left: -25px;
  -webkit-animation: slideee 8s -1.4s ease-in-out infinite;
  animation: slideee 8s -1.4s ease-in-out infinite;

}

.snakeeee:nth-of-type(11)
{
  height: 55px;
  width: 55px;

  margin-top: -28px;
  margin-left: -28px;
  -webkit-animation: slide 8s -1.2s ease-in-out infinite;
  animation: slide 8s -1.2s ease-in-out infinite;

}

.snakeeee:nth-of-type(10)
{
  height: 60px;
  width: 60px;

  margin-top: -30px;
  margin-left: -30px;
  -webkit-animation: slideee 8s -1s ease-in-out infinite;
  animation: slideee 8s -1s ease-in-out infinite;

}

.snakeeee:nth-of-type(9)
{
  height: 65px;
  width: 65px;

  margin-top: -33px;
  margin-left: -33px;
  -webkit-animation: slideee 8s -0.9s ease-in-out infinite;
  animation: slideee 8s -0.9s ease-in-out infinite;

}

.snakeeee:nth-of-type(8)
{
  height: 70px;
  width: 70px;

  margin-top: -35px;
  margin-left: -35px;
  -webkit-animation: slideee 8s -0.8s ease-in-out infinite;
  animation: slideee 8s -0.8s ease-in-out infinite;

}

.snakeeee:nth-of-type(7)
{
  height: 75px;
  width: 75px;

  margin-top: -38px;
  margin-left: -38px;
  -webkit-animation: slide 8s -0.7s ease-in-out infinite;
  animation: slide 8s -0.7s ease-in-out infinite;

}

.snakeeee:nth-of-type(6)
{
  height: 80px;
  width: 80px;

  margin-top: -40px;
  margin-left: -40px;
  -webkit-animation: slideee 8s -0.6s ease-in-out infinite;
  animation: slideee 8s -0.6s ease-in-out infinite;

}

.snakeeee:nth-of-type(5)
{
  height: 85px;
  width: 85px;

  margin-top: -43px;
  margin-left: -43px;
  -webkit-animation: slideee 8s -0.5s ease-in-out infinite;
  animation: slideee 8s -0.5s ease-in-out infinite;

}

.snakeeee:nth-of-type(4)
{
  height: 90px;
  width: 90px;

  margin-top: -45px;
  margin-left: -45px;
  -webkit-animation: slideee 8s -0.4s ease-in-out infinite;
  animation: slideee 8s -0.4s ease-in-out infinite;

}

.snakeeee:nth-of-type(3)
{
  height: 95px;
  width: 95px;

  margin-top: -48px;
  margin-left: -48px;
  -webkit-animation: slideee 8s -0.3s ease-in-out infinite;
  animation: slideee 8s -0.3s ease-in-out infinite;

}

.snakeeee:nth-of-type(2)
{
  height: 100px;
  width: 100px;

  margin-top: -50px;
  margin-left: -50px;
  -webkit-animation: slideee 8s -0.2s ease-in-out infinite;
  animation: slideee 8s -0.2s ease-in-out infinite;

}

.snakeeee:nth-of-type(1)
{
  height: 105px;
  width: 105px;

  margin-top: -53px;
  margin-left: -53px;
  -webkit-animation: slideee 8s ease-in-out infinite;
  animation: slideee 8s ease-in-out infinite;

}




@keyframes slideee {
  0%
  {
    left:3%;
    top:80%
  }
  10%
  {
    left:15%;
    top: 70%
  }
  200%
  {
    left:25%;
    top:80%
  }
  30%
  {
    left:35%;
    top:90%
  }
  40%
  {
    left:45%;
    top:80%;
  }
  50%
  {
    left:55%;
    top:70%;
  }
  60%
  {
    left:65%;
    top:80%;
  }
  70%
  {
    left:75%;
    top:90%;
  }
  80%
  {
    left:85%;
    top:80%;
  }
  90%
  {
    left:95%;
    top:70%;
  }
  100%
  {
    left:98%;
    top:80%; 
  }
} 

@-webkit-keyframes slideee {
  0%
  {
    left:75%;
    top:75%
  }
  50%
  {
    right:25%;
    top:125%
  }
  100%
  {
    right:75%;
    top:75%;
  }
}







.arrow-keys {
 margin-left: 5em;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  width: 100px; /* Adjust as needed */
 
  flex-direction: row;
  justify-content: center;
  align-items: center;
  
}

.arrow-keys div {
  padding-top: 4px;
  margin-left: 10px;
  width: 70px;
  height: 50px;
  background-color: rgba(114, 146, 11, 0.847); /* Adjust as needed */
}

.arrow-up::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 20px solid white; /* Adjust as needed */
  margin: 10px auto;
  
}

.arrow-left::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-right: 20px solid white; /* Adjust as needed */
  margin: auto 10px;
}

.arrow-down::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid white; /* Adjust as needed */
  margin: 10px auto;
 
}

.arrow-right::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid white; /* Adjust as needed */
  margin: auto 10px;
}


.contBox {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 35px;
  margin-left: 9em;

}