* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

h1 {
  background-color: rgb(17, 87, 64);
  text-align: center;
  margin-top: 1rem;
  color: #ffffff;
}

.navbar {
  background-color: #334257;
  height: 5rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 20px;
}

#random {
  color: #ffffff;
  font-size: 1.5rem;
}

#random:hover {
  cursor: pointer;
  color: crimson;
}

.slider {
  -webkit-appearance: none;
  width: 80%;
  height: 1rem;
  background: #ffffff;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1rem;
  height: 1rem;
  background: #185adb;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #4c4c6d;
  cursor: pointer;
}

.algo-menu {
  outline: none;
  width: 10rem;
  height: 2rem;
}

.speed-menu {
  height: 2rem;
  width: 5rem;
  outline: none;
}

.start {
  background-color: #546de5;
  border: none;
  color: #ffffff;
  padding: 5px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.start:active {
  transform: translateY(2px);
}

.center {
  margin: 0 auto;
  border: 5px solid #334257;
  width: 900px;
  max-width: 900px;
  height: 450px;
}

#box {
  height: 450px;
}

.array {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.array-vals {
  background-color: #7952b3;
  border: 1px solid #deeeea;
}

@media only screen and (max-width: 900px) {
  .center {
    width: 100%;
    border: 5px solid #0c4271;
  }
  .navbar {
    display: flex;
    flex-wrap: wrap;
  }
}
