body {
  display: grid;
  justify-content: center;
}

#footer {
  margin-top: 40%;
}

#pregame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}

#title {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#colors {
  width: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

#slider {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#evaluateButton,
#submitButton {
  margin-left: 1rem;
}

#dice {
  display: flex;
  justify-content: center;
  background-color: transparent;
}

#diceBox {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  justify-items: center;
  align-items: center;
  width: 100%;
}

#start {
  margin-top: 2rem;
}

#entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  margin: 1rem 0;
  height: 5rem;
}

#setTimer {
  display: flex;
}

#timeAmount {
  width: 3.1rem;
  margin-left: 1rem;
  text-align: center;
}

.die {
  border: 2pt solid black;
  display: grid;
  grid-template: 20px 20px 20px/ 20px 20px 20px;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
  padding: 10px;
  font-size: 24pt;
}

#board {
  display: grid;
  grid-template: auto auto auto auto auto auto auto auto auto auto / auto auto auto auto auto auto auto auto auto auto;
  text-align: center;
  border: 3pt solid black;
  width: 100%;
  height: 100%;
  margin-top: 1rem;
}

.box {
  display: grid;
  border: 1pt solid black;
  font-size: 2rem;
  align-items: center;
  padding: 0 0.5rem;
}

.pulsate {
  -webkit-animation: pulsate 1s ease-out;
  animation: pulsate 1s ease-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  opacity: 0.5;
}
@keyframes pulsate {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

#dice {
  width: 100%;
  margin: 0 2rem;
}

#rollButton {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 2.5rem;
  height: 4rem;
}

#timer {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-left: 1.5rem;
}

@media only screen and (max-width: 768px) {
  #header {
    flex-direction: column;
  }
  #diceBox {
    display: flex;
    justify-content: center;
  }
  .box {
    font-size: 0.5rem;
  }
}
