@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
* {
  box-sizing: border-box;
  font-size: 1rem;
}
p, li{
  line-height: 2;
}

a {
  color: #999; 
  text-decoration: underline;
}

a:hover {
  color: #fff; 
}
body {
  background-color: #000; 
  color: #fff;
  font-family: "Press Start 2P";
  padding: 0 5px;
  text-align: justify;
}

#game-board {
  background-color: #333;
  width: 80vh;
  height:80vh;
  max-width: 100%;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(40, 1fr);
  grid-template-rows: repeat(40, 1fr);
  margin: auto;
}

#game-board div {
  background-color: #999;
}

#game-board .alive {
  background-color: #0f0;
}

#game-description {

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game.retro-style {
  margin-top: 25vh ;
  display: flex;
}
.game>div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.retro-style {
 
  background-color: #222; 
  border: 2px solid #666; 
  padding: 20px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3); 
}
#stepsValue, #intervalValue {
  color: red;
}

.retro-style {
  font-family: 'Courier New', Courier, monospace;
}

.retro-style .btn {
  font-weight: bold;
  border: 2px solid transparent;
  background-color: #c0c0c0; 
  color: #333;
  box-shadow: inset -4px -4px 0px 0px rgba(0, 0, 0, 0.2); 
  transition: all 0.3s ease;
}

.retro-style .btn:hover {
  background-color: #a0a0a0;
}

.retro-style .btn:active {
  box-shadow: inset 2px 2px 0px 0px rgba(0, 0, 0, 0.2); 
  transform: translate(1px, 1px);
}

.retro-style .btn-primary {
  background-color: #0000AA; 
  color: #FFFFFF;
}

.retro-style .btn-warning {
  background-color: #FFAA00; 
  color: #333;
}

.retro-style .inputs input[type="range"] {
  cursor: pointer;
  background: #c0c0c0;
  appearance: none;
  height: 16px;
  border-radius: 0; 
}

.retro-style .inputs input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 0; 
  cursor: pointer;
}

.retro-style .inputs input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 0; 
  cursor: pointer;
}


button {
  font-family: "Press Start 2P";
  background-color: #444; 
  color: #fff; 
  font-size: 14px;
  border: none;
  padding: 8px;
  margin: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); 
  transition: all 0.3s ease;
}

.controllers button:hover {
  background-color: #666; 
}
input[type=range] {


  margin: 10px 0;
  width: 100%;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  box-shadow: 0px 0px 0px #000000;
  background: #B6B6B6;

  border: 1px solid #8A8A8A;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 1px 1px 1px #828282;
  border: 1px solid #8A8A8A;
  height: 24px;
  width: 35px;
  border-radius: 6px;
  background: #DADADA;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: #B6B6B6;
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  box-shadow: 0px 0px 0px #000000;
  background: #B6B6B6;
  border: 1px solid #8A8A8A;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 1px 1px 1px #828282;
  border: 1px solid #8A8A8A;
  height: 24px;
  width: 35px;
  background: #DADADA;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 16px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: #B6B6B6;
  border: 1px solid #8A8A8A;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-fill-upper {
  background: #B6B6B6;
  border: 1px solid #8A8A8A;
  border-radius: 50px;
  box-shadow: 0px 0px 0px #000000;
}
input[type=range]::-ms-thumb {
  margin-top: 1px;
  box-shadow: 1px 1px 1px #828282;
  border: 1px solid #8A8A8A;
  height: 24px;
  width: 35px;
  border-radius: 6px;
  background: #DADADA;
  cursor: pointer;
}
input[type=range]:focus::-ms-fill-lower {
  background: #B6B6B6;
}
input[type=range]:focus::-ms-fill-upper {
  background: #B6B6B6;
}


@media (max-width:768px) {
  * {font-size: 0.7rem;
  }
  #game-board {
    width: 80vw;
    height:80vw;
  }
  
}