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

body {
  margin: 0;
  padding: 0;
  color: #f5f5f5;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #2c3e50;
}

button {
  outline: none;
  cursor: pointer;
  border: none;
  background-color: #3498db;
  color: #ecf0f1;
  box-shadow: 3px 5px 0px 0px rgba(0, 0, 0, 0.75);
}

a,
a:visited {
  color: #ecf0f1;
}

#score {
  position: absolute;
  font-family: "Press Start 2P", cursive;
  font-size: 1.1em;
  color: #ecf0f1;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  max-width: 120px;
  text-align: center;
  line-height: 1.6em;
}

#controls {
  position: absolute;
  bottom: 50px;
  left: 50px;
  display: none;
}

#controls #buttons {
  width: 80px;
  opacity: 0;
  transition: opacity 2s;
}

#controls #instructions {
  margin-left: 20px;
  max-width: 300px;
  background-color: rgba(44, 62, 80, 0.8);
  padding: 20px;
  opacity: 0;
  transition: opacity 2s;
}

#controls button {
  width: 100%;
  height: 40px;
  background-color: #ffffff;
  border: 1px solid #000000;
  margin-bottom: 10px;
}

#speed-controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  background-color: rgba(44, 62, 80, 0.8);
  padding: 10px;
  border-radius: 10px;
}

#speed-controls label {
  margin-right: 10px;
  color: #ecf0f1;
}

#speed-controls input[type="range"] {
  margin-right: 10px;
}

#speedValue {
  color: #ecf0f1;
}

#results {
  position: absolute;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  background-color: rgba(20, 20, 20, 0.9);
  display: none;
  z-index: 51;
}

#results .content {
  max-width: 350px;
  padding: 50px;
  border-radius: 20px;
  background-color: #042749;
}

@media (min-height: 425px) {
  #score {
    font-size: 1.5em;
    max-width: 150px;
  }

  #controls {
    display: flex;
  }
}
