@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@300&family=Source+Sans+Pro:wght@300&display=swap');

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

.typewritter {
  margin: 0;
  font-family:'Source Sans Pro', sans-serif;
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  background-color: white;
}

.typewritter h1 {
  font-size: clamp(1rem, 3vw + 1rem,3rem);
  position:relative;
  font-family: 'Source Code Pro', monospace;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  margin-top: 2.5rem;
}

.typewritter h1::before,
.typewritter h1::after {
  content:"";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}

.typewritter h1::before {
  background-color: white;
  animation: typewritter 6s steps(24) 0.5s forwards;
}

.typewritter h1::after {
  width: 0.11em;
  background-color: black;
  animation: typewritter 6s steps(24) 0.5s forwards,
             blinks 700ms steps(24) infinite;

}

@keyframes typewritter {
  to {left: 100%;}
}

@keyframes blinks {
  to {background: transparent;}
}

.container{
  max-width: 100vw;
  height: 100vh;
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.nav-container {
  font-family: 'Rubik Dirt', cursive;
  display: flex;
  flex-direction: row;
}

.drop-down {
  min-width: 10rem;
  position: relative;
  margin: 2rem 0.5rem;
}

.drop-down * {
  box-sizing: border-box;
}

.select {
  background:white;
  color:black;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border: 2px solid black;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.selected-clicked {
  border: 2px solid black;
  box-shadow: 0 0 0.8 black; 
}

.select:hover {
  background-color: black;
  color:white;
  transition: ease-out 600ms;
}

.caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid black;
  transition: 0.3s;
}

.caret-colorChanging {
  border-top: 8px solid white;
}

.caret-rotate {
  transform: rotate(180deg);
}

.menu {
  list-style-type: none;
  padding: 0.2rem 0.5rem;
  background:white;
  border: 1px solid black;
  box-shadow: 0 0.3rem 1rem black;
  border-radius: 1rem;
  position: absolute;
  margin-top: 0.5rem;
  left: 50%;
  width: 100%;
  transform:translateX(-50%);
  display: none;
}

.menu li {
  padding: 0.7rem 0.5rem;
  margin: 0.3rem 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu li:hover {
  background-color: black;
  color: white;
  transition: ease-out 400ms;
}

#slider-nav li {
  text-align: center;
}

#slider-nav li:hover {
  text-align: center;
  background-color: white;
}

.menu-open {
  display: block;
  opacity: 1;
}

.bars_container{
  display: flex;
  flex-direction: row;
  margin-top: 0.3rem;
  gap: 5px;
}

.bar{
  width: 15px;
  background-color: white;
  /* margin: 0 2px; */
  border-radius: 2px;
  border: 1px solid black;
}

.two-button {
  display: flex;
  flex-direction: row;
  gap: 8rem;
  place-items: center;
  margin-bottom: 4rem;
  background-color: white;
}

#randomize_array_btn {
  border: 4px solid white;
  padding: 2.3rem 1rem;
  border-radius: 50%;
  background-color: black;
  color: white;
  font-family: 'Rubik Dirt', cursive;
  font-size: 0.7rem;
  outline: black solid 2px;
}

#randomize_array_btn:hover {
  background-color: rgb(242, 98, 98);
  transition: color ease-out 600ms;
  cursor: pointer;
  border: 6px solid white;
  transition: border ease-out 600ms; 
}

#sort_btn {
  border: 4px solid white;
  padding: 2.3rem 1.5rem;
  border-radius: 50%;
  background-color: black;
  color: white;
  font-family: 'Rubik Dirt', cursive;
  font-size: 0.7rem;
  outline: black solid 2px;
}

#sort_btn:hover {
  background-color: rgb(242, 98, 98);
  transition: color ease-out 600ms;
  cursor: pointer;
  border: 6px solid white;
  transition: border ease-out 600ms;
}

#pause_button {
  border: 4px solid white;
  padding: 2.3rem 1.2rem;
  border-radius: 50%;
  background-color: black;
  color: white;
  font-family: 'Rubik Dirt', cursive;
  font-size: 0.7rem;
  outline: black solid 2px;
}

#pause_button:hover {
  background-color: rgb(242, 98, 98);
  transition: color ease-out 600ms;
  cursor: pointer;
  border: 6px solid white;
  transition: border ease-out 600ms;
}

body{
  background-color: white;
}

.buttons_container > button, select{
  width: 200px;
  height: 30px;
  background-color: #677685;
  border: none;
  border-radius: 5px;
  color: black;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition:  0.2s ease-in-out;
}

button:hover{
  background-color: #56697b;
}
