body {
    background-color: white;
    margin: 0;
}
header {
    width: 100%;
    height: auto;
    background-color: #99b433;
    color: #eff4ff;
    font-size: 2.5em;
    text-align: center;
    padding: 10px;
    text-shadow: 2px 2px 5px #1d1d1d;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.messages {
    text-align: center;
    width: 100%;
    color: #eee8aa;
    transition: all 300ms ease-in;
}

.basenav {
  height: 0;
  width: 100vw;
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
  background-color: #2d89ef;
  overflow-x: hidden;
  transition: 0.5s;
}

.basenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 20px;
  color: #eff4ff;
  display: block;
  transition: 0.3s;
}

.basenav a:hover {
  color: #ffc40d;
}

.basenav .closebtn {
  position: absolute;
  top: 0;
  right: 5px;
  font-size: 36px;
}
.openbtn {
    font-size:20px;
    cursor:pointer;
}
.navOpen {
  height: min(20vh, 250px);
}

.backdrop {
  background-color: rgba(0,0,0,0.4);
}
.game-board {
    width: 100vw;
    height: 100vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2px;
    border: 2px solid #2b5797;
}
.board-space {
    font-size: 1.5em;
    color: black;
    text-align: center;
    font-weight: bold;
}
h3 {
    text-align: center;
    padding: 5px 10px;
}
.controls {
    margin: 10px 0px;
    width: 100vw;
    height: 170px;
    //background-color: #1d1d1d;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
}
.controls .button {
    //margin: 2px;
    padding: 10px 0;
    border-radius: 25px;
    width: 50%;
    text-align: center;
    color: #ffffe0;
    align-self: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px #1d1d1d;
    box-shadow: 3px 3px #90ee90 inset, -3px -3px #006400 inset;
    transition: all 100ms ease-in;
}
.controls .vertical {
    margin: 0 25%;
}
.red-btn {
    background-color: #b91d47;
}
.green-btn {
    background-color: #20b2aa;
}
.start-stop {
    margin: auto;
    width: 100%;
    text-align: center;
    color: #ffffe0;
    align-self: center;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px #1d1d1d;
    box-shadow: 3px 3px #90ee90 inset, -3px -3px #006400 inset;
    transition: all 100ms ease-in;
}
.snake {
    background-color: green;
    transition: all 100ms ease-in;
}
/* snake single element */
.snake-single {
    border-radius: 50%;
    overflow: hidden;
}
/* snake head */
.snake-head-up {
    border-radius: 50% 50% 0 0;
}
.snake-head-down {
    border-radius: 0 0 50% 50%;
}
.snake-head-left {
    border-radius: 50% 0 0 50%;
}
.snake-head-right {
    border-radius: 0 50% 50% 0;
}
/* snake tail */
.snake-tail-up {
    border-radius: 0 0 50% 50%;
}
.snake-tail-down {
    border-radius: 50% 50% 0 0;
}
.snake-tail-left {
    border-radius: 0 50% 50% 0;
}
.snake-tail-right {
    border-radius: 50% 0 0 50%;
}
.no-snake {
    background-color: #eff4ff;
    transition: all 100ms ease-in;
}
.food {
    background-color: #da532c;
    border-radius: 50%;
    transition: all 100ms ease-in;
}

.dialog-container {
    text-align: center;
}
.dialog-list {
    display: inline-block;
    text-align: left;
    width:80%;
}
.dialog-list-item {
    display: flex;
    justify-content: space-between;
}
/* pulsing keyframes for level and high score */
@keyframes pulse {
    0%, 100% {}
    50% {background-color:red;}
}

/* item to pulse */
.item-pulse {
    animation: pulse 0.5s 2;
}