html {
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  background-color: black;
  user-select: none;
}

canvas {
  border-bottom: 1px solid white;
}

.interface {
  height: 150px;
  padding-top: 1em;
  margin-left: 2em;
  margin-right: 2em;
}

.flex-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-content: space-around;
  align-items: center;
  justify-content: space-around;
}

#play-button,
#random-button,
#clear-button {
  font-size: 1.2em;
  width: 200px;
  height: 50px;
  flex-shrink: 1;
}

#play-button,
#random-button {
  margin-right: 30px;
}

#generation-text {
  padding: 10px;
  margin-right: 30px;
  font-size: 1.5em;
  border: 1px solid white;
  color: white;
  flex-shrink: 0;
}

#hexagons-size,
#game-speed {
  margin-right: 30px;
}

#hexagons-size span,
#game-speed span {
  font-size: 1.2em;
  color: white;
}

#hexagons-size input,
#game-speed input {
  width: 15em;
}

#change-rules {
  width: 120px;
  height: 40px;
  font-size: 1em;
}

.rules-container {
  display: block;
  position: relative;
  visibility: hidden;
  width: 400px;
  height: 380px;
  color: white;
  border-radius: 8px;
  bottom: 60vh;
  left: 0;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  background-color: rgba(83, 83, 87, 0.75);
}

.rules-container h1,
.rules-container h2 {
  text-transform: uppercase;
  margin: 0;
}

.rules-container h1 {
  text-align: center;
}

#alive-conditions,
#birth-conditions {
  border-top: 1px solid white;
  border-bottom: 1px solid white;
  padding: 25px 0;
}

.values-range {
  display: flex;
  padding-top: 20px;
  justify-content: space-evenly;
}

.input-container {
  font-size: 1.3em;
}

.input-container span {
  display: inline-block;
  margin-right: 15px;
}

.min-input-container span {
  margin-right: 18px;
}

.input-container input {
  width: 50px;
  font-size: 0.9em;
}

.close-button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#close-button {
  font-size: 1.1em;
  width: 110px;
  height: 40px;
}
