@media screen and (max-height: 640px) {
    .container.container-single{
        padding-top: 3px !important;
    }
}
#gamebox {
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  /*height: 500px;
  width: 750px;*/
  height: 440px;
  width: 740px;
  background-color: #000;
  position: relative;
}

#gameArea {
  /*height: 500px;
  width: 750px;*/
  height: 440px;
  width: 740px;
  position: relative;
  background-color: #161c1c;
  /*border: 2px solid #313131;*/
}

.snake-segment {
  width: 20px;
  height: 20px;
  position: absolute;
}

#gamebox .item {
  width: 20px;
  height: 20px;
  position: absolute;
  border-radius: 50%;
}

#gamebox .header {
    position: absolute;
    top: 30px;
    /*width: 750px;*/
    width: 740px;
    text-align: center;
    z-index: 2;
}
#gamebox .header .current{
    font-size: 30px;
    color: #fff;
}
#gamebox .header .record{
    font-size: 16px;
    color: grey;
}

.gameover {
    position: absolute;
    top: 0;
    display: block;
    margin: 0 auto;
    /*width: 750px;
    height: 500px;*/
    width: 740px;
    height: 440px;
    text-align: center;
    vertical-align: middle;
    background-color: rgba(22, 28, 28, 0.95);
    z-index: 2;
    display: none;
}

.gameover p.msg {
    font-family: Arial;
    font-size: 24px;
    color: grey;
    margin: 0 auto;
    margin-top: 150px;
}
.gameover span {
    font-family: Arial;
    font-size: 40px;
    color: white;
    margin: 20px auto;
}

#restartgamebutton {
    display: block;
    margin: 16px auto;
    width: 120px;
    padding: 6px;
    background-color: #00BB00;
    font-family: Arial;
    font-size: 24px;
    color: red;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

#restartgamebutton:hover {
    background-color: #9f8b77;
}