@font-face {
  font-family: cheeseburger;
  src: url(../font/cheeseburger.ttf);
}

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

body {
  background-color: black;
}

.container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 150px), -50%);
  padding-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: -1;
}

canvas{
  border: 20px solid green;
}

.instruction {
  width: 300px;
  background-color: #4E9F3D;
  align-self: flex-start;
  color: white;
  text-align: center;
  padding: 20px 20px;
  font-family: Arial, Helvetica, sans-serif;
}

.instruction p{
  font-size: 20px;
  margin-top: 20px;
}

.scoreboard {
  width: 100%;
  height: 50px;
  background-color: #476c2a;
  line-height: 50px;
  padding-left: 20px;
  color: rgb(255, 187, 61);
  font-size: 20px;
  font-family: Arial, Helvetica, sans-serif;
}

canvas {
  background-color: #a9ca4e;
  opacity: 1;
  background-image: repeating-linear-gradient(
      45deg,
      #a0c444 25%,
      transparent 25%,
      transparent 75%,
      #a0c444 75%,
      #a0c444
    ),
    repeating-linear-gradient(
      45deg,
      #a0c444 25%,
      #a9ca4e 25%,
      #a9ca4e 75%,
      #a0c444 75%,
      #a0c444
    );
  background-position: 0 0, 20px 20px;
  background-size: 40px 40px;
}

#startMenu {
  width: 500px;
  background-color: #587dff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0px 0px 1000px 0px black;
  visibility: visible;
}

#startMenu button {
  background-color: #587dff;
  border: none;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
  padding: 20px 0;
  cursor: pointer;
}

#gameOver {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  /* border: 1px solid white; */
  color: white;
  background-color: #a0c444;
  box-shadow: 0px 0px 1000px 0px black;
  border-radius: 10px;
  visibility: hidden;
}

#gameOver * {
  padding: 20px;
  font-size: 20px;
  align-self: center;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

#gameOver .title {
  padding: 20px 0;
  font-size: 40px;
  font-family: cheeseburger;
  font-weight: lighter;
}

#restartButton a {
  text-decoration: none;
  color: white;
  border: 2px solid white;
  border-radius: 10px;
  transition: 0.5s;
  padding: 10px;
}

#restartButton a:hover {
  background-color: rgb(1, 150, 1);
}
