@import url('https://fonts.googleapis.com/css?family=Press+Start+2P');

body {
  margin: 0;
  font-family: 'Press Start 2P', cursive;
  font-size: 2vw;
  color: white;
  overflow: hidden;
}

button {
  outline: none;
  cursor: pointer;
  border: none;
  box-shadow: 3px 5px 0px rgba(0, 0, 0, 0.75);
  padding: 10px;
  background-color: white;
}

#counter {
  position: absolute;
  top: 2%;
  right: 5%;
  font-size: 1.5em;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 8px;
}

#end {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.5);
}

#end button {
  background-color: red;
  color: white;
  font-family: inherit;
  font-size: 1em;
  padding: 15px 30px;
  border-radius: 10px;
}

#controlls {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5%;
}

#controlls div {
  display: grid;
  grid-template-columns: 60px 60px 60px;
  grid-template-rows: auto auto;
  gap: 10px;
}

#controlls button {
  width: 100%;
  height: 60px;
  background-color: white;
  border: 1px solid lightgray;
}

#controlls svg {
  width: 100%;
  height: 100%;
}

#controlls button:first-of-type {
  grid-column: 1 / 4;
}

@media (max-width: 600px) {
  body {
    font-size: 4vw;
  }

  #controlls div {
    grid-template-columns: 50px 50px 50px;
    gap: 8px;
  }

  #controlls button {
    height: 50px;
  }

  #end button {
    font-size: 0.8em;
    padding: 10px 20px;
  }
}
