@import url("https://fonts.googleapis.com/css?family=Press+Start+2P");

body {
  margin: 0;
  display: flex;
  font-family: "Press Start 2P", cursive;
  background: #000;
  color: #fff;
  overflow: hidden;
}

canvas.game {
  display: block;
}

#controls {
  position: absolute;
  bottom: 20px;
  min-width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#controls div {
  display: grid;
  grid-template-columns: 50px 50px 50px;
  gap: 10px;
}

#controls button {
  width: 100%;
  height: 40px;
  background-color: #d9d9d9;
  color: #111;
  border: 1px solid #7a7a7a;
  box-shadow: 3px 5px 0px 0px rgba(255, 255, 255, 0.15);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-icon {
  width: 0;
  height: 0;
  border-style: solid;
}

.arrow-up {
  border-width: 0 8px 12px 8px;
  border-color: transparent transparent #111 transparent;
}

.arrow-down {
  border-width: 12px 8px 0 8px;
  border-color: #111 transparent transparent transparent;
}

.arrow-left {
  border-width: 8px 12px 8px 0;
  border-color: transparent #111 transparent transparent;
}

.arrow-right {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #111;
}

#controls button:first-of-type {
  grid-column: 1 / -1;
}

#controls button:hover {
  background-color: #f0f0f0;
}

#score {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 2em;
  color: #fff;
  text-shadow: 2px 2px 0 #333;
}

#result-container {
  position: absolute;
  min-width: 100%;
  min-height: 100%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.5);
}

#result-container #result {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border: 2px solid #8c8c8c;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

#result-container button {
  background-color: #d9d9d9;
  color: #111;
  border: 1px solid #7a7a7a;
  padding: 20px 50px;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  margin-top: 10px;
}
