* {
  margin: 0;
  user-select: none;
  font-family: 'Pangolin', cursive;
}

body {
  background-color: black;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  transition: background 0.3s ease-in-out;
  overflow-y: scroll;
  overflow-x: hidden;
}

h1,
h3,
h4 {
  transition: color 1s ease-in-out;
  font-weight: bold;
  color: white;
}

h1 {
  font-size: 5rem;
  margin-top: 1rem;
}

h3 {
  font-size: 2rem;
  margin-top: 1rem;
}

h4 {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  color: wheat;
  font-size: 0.8rem;
}

p {
  color: white;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

button {
  padding: 2rem;
  border-radius: 15px;
  background-color: #ffffff;
  cursor: pointer;
}

button:hover {
  opacity: 80%;
}

button:active {
  opacity: 50%;
}

ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

li {
  color: wheat;
  font-size: 1.1rem;
}

input[type='range'] {
  appearance: none;
  -webkit-appearance: none;
  width: 15rem;
  height: 7px;
  background: rgba(255, 255, 255, 0.523);
  border-radius: 5px;
}

input[type='range']::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: #ffffff;
  cursor: ew-resize;
  transition: background 0.3s ease-in-out;
}

input[type='range']::-webkit-slider-runnable-track {
  box-shadow: none;
  border: none;
  background: transparent;
}

input[type='checkbox'] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  color: white;
  width: 3em;
  height: 3em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  cursor: pointer;
}

input[type='checkbox']::before {
  content: '';
  width: 2.65em;
  height: 2.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
}

input[type='checkbox']:checked::before {
  box-shadow: inset 1em 1em 1em 1em blue;
  transform: scale(1);
}

input[type='checkbox']:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

input[type='checkbox']:disabled::before {
  width: 2.95em;
  height: 2.95em;
  transform: scale(1);
  box-shadow: inset 0.9em 0.9em 0.9em 0.9em rgba(128, 128, 128, 0.654);
}

.btnRow,
.btnRowTop,
.settings {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.btnRow {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
}

.btnRowTop {
  flex-direction: row;
}

.settings {
  position: fixed;
  justify-content: start;
  height: 100vh;
  width: 100vw;
  background-color: rgba(96, 96, 96, 0.975);
  z-index: 10;
  overflow-y: scroll;
  justify-content: center;
  align-items: center;
}

.row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.errorText {
  color: red;
}

.slidecontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 20rem;
}

.checkboxDiv {
  display: flex;
  flex-direction: column;
  width: 15rem;
  justify-content: space-between;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 35rem;
  width: 35rem;
}

#headerText {
  position: absolute;
  top: 0;
}

#hotkeyContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#gridSizeText {
  color: blue;
  font-weight: bold;
}

#colorSelect {
  width: 5rem;
  height: 5rem;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

#gridSizeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 25px;
  background: #ffffff;
  outline: none;
  opacity: 0.6;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

#gridSizeSlider:hover {
  opacity: 1;
}

#gridSizeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: blue;
  cursor: pointer;
  border-radius: 0;
}

#gridSizeSlider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: blue;
  border-radius: 0;
  cursor: pointer;
}

#clearSlider {
  width: 36rem;
  height: 25px;
  background: #ffffff;
  outline: none;
  opacity: 0.6;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  cursor: pointer;
}

#clearSlider:hover {
  opacity: 1;
}

#clearSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 30px;
  background: red;
  cursor: pointer;
  border-radius: 0;
}

#clearSlider::-moz-range-thumb {
  width: 20px;
  height: 30px;
  background: red;
  border-radius: 0;
  cursor: pointer;
}

#inkAmountContainer {
  width: auto;
  height: 1rem;
  justify-content: center;
  align-items: center;
  border-radius: 0px 10px 10px 0px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    transparent 90%,
    rgb(140, 140, 140) 96%,
    #aaa9ad
  );
  border-top: 0.3rem solid gray;
  border-bottom: 0.3rem solid gray;
  border-left: 0.2rem solid gray;
}

#inkAmount {
  width: 80%;
  height: 100%;
  border-radius: 0px 10px 10px 0px;
  background-color: blue;
}

#colorSelect::-webkit-color-swatch-wrapper {
  padding: 0;
}

.hidden {
  display: none;
}

@media (max-width: 1000px) {
  #container {
    margin-top: 25rem;
  }
  #clearSlider {
    margin-bottom: 20rem;
  }
}
