
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    font-family: arial;
    background: #2ecc71;
    background-image: linear-gradient(to top left, #228B22, #32CD32, #2E8B57);
    position: relative;
    text-align: center;
  }
  
  header {
    text-align: center;
    font-size: 32px;
    letter-spacing: 10px;
    padding: 20px 10px;
    color: white;
  }
  
  .snakeTable {
    width: 210px;
    height: 230px;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    box-shadow: 0 0 1px 2px rgba(0,0,0,0.3);
  }
  @media only screen and (min-width: 768px) {
    .snakeTable {
      width: 315px;
      height: 345px;
    }
  }
  
  .box {
    background: white;
    border: solid 1px #777;
    width: 10px;
    height: 10px;
  }
  @media only screen and (min-width: 768px) {
    .box {
      width: 15px;
      height: 15px;
    }
  }
  
  .food {
    background: #000;
  }
  
  .snake {
    background: #660099;
  }
  
  .status {
    background: white;
    color: #000;
    border: solid 1px #000;
    width: 210px;
    height: 20px;
  }
  @media only screen and (min-width: 768px) {
    .status {
      width: 315px;
      height: 30px;
    }
  }
  
  .score {
    float: right;
    padding: 0 5px;
    line-height: 20px;
  }
  @media only screen and (min-width: 768px) {
    .score {
      padding: 0 10px;
      line-height: 30px;
      font-size: 20px;
    }
  }
  
  .hidden {
    display: none !important;
  }
  
  .modul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.5);
    text-align: center;
  }
  .start {
    background: rgba(256,256,256,1);
    padding: 60px;
    box-shadow: 0 0 2px 3px rgba(0,0,0,0.3);
    border-radius: 2px;
  }
  .start span {
    color: #008000;
    border: 1px solid;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
  }
  .start span:hover {
    background: #004000;
    color: white;
  }

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.side-btns {
    display: flex;
    justify-content: space-between;
    width: 120px;
}

.control-btn {
    background: #ffffff;
    border: 1px solid #008000;
    border-radius: 5px;
    color: #008000;
    font-size: 24px;
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover {
    background: #004000;
    color: #ffffff;
}
.control-btn:active {
    background: #003300;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

@media only screen and (min-width: 768px) {
    .controls {
        margin: 20px 0;
    }
    .side-btns {
        width: 180px;
    }
    .control-btn {
        width: 70px;
        height: 70px;
        font-size: 32px;
        margin: 10px;
    }
}
  
  footer {
    padding: 5px;
    color: white;
    font-size: 14px;
  }
  
  footer a {
    color: #333;
    text-decoration: none;
  }
  
  footer a:hover {
    color: white;
    text-decoration: underline;
  }  