:root {
  --settingsWidth: 33vw;
}
.settings-upper {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: row-reverse;
}
.all-settings {
  flex-basis: 80%;
  display: flex;
  margin-top: 3vh;
  justify-content: center;
}

.settings-container {
  position: absolute;
  right: 0vw;
  opacity: 0;
  width: 0%;
  height: 100%;
  background-color: var(--YBlue);
  /* display: none; */
  justify-content: center;
  flex-direction: column;
}

.settings {
  width: 90%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  overflow-x: hidden;
}

.settings-categories {
  display: none;
  flex-basis: 15%;
  max-width: 150px;
  border: 1px solid var(--SilverLakeBlue);
  border-bottom-left-radius: 25px;
  background-color: var(--SilverLakeBlue);
  flex-direction: column;
  padding: 0.55vw;
}

.settings-container.slideIn .settings-categories {
  display: flex;
}

.icon:not(.settingsButtonMobile > .icon) {
  filter: invert(9%) sepia(28%) saturate(1054%) hue-rotate(169deg)
    brightness(95%) contrast(99%);
  width: 64px;
  aspect-ratio: 1 / 1;
  margin-top: 2vh;
}

.icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.icon:hover {
  cursor: pointer;
}

.activeIcon {
  filter: invert(100%) sepia(13%) saturate(296%) hue-rotate(20deg)
    brightness(100%) contrast(77%) !important;
}

.settingName {
  text-align: center;
  font-size: 24pt;
  margin-bottom: 1vh;
}

.setting {
  width: 100%;
  position: relative;
  margin-bottom: 3vh;
}

.setting > h3 {
  margin-top: 0;
  margin-bottom: 2vh;
  font-size: 22pt;
  text-align: center;
}

.input-container {
  display: flex;
  justify-content: center;
}

.selectedValue {
  text-align: center;
  padding-bottom: 5px;
}

.slideIn {
  animation-name: slideIn;
  animation-duration: var(--slideInDuration);
  animation-iteration-count: 1;
  width: var(--settingsWidth);
  opacity: 1;
}

.vanish {
  transition: all 1s ease;
  opacity: 0;
  pointer-events: none !important;
}

.wq-container {
  margin-top: 4vh;
  display: flex;
  justify-content: center;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: var(--settingsWidth);
  }
}

input[type='checkbox'] {
  cursor: pointer;
  display: grid;
  place-content: center;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  height: min(50px, 10vh);
  border: 2px solid var(--OxfordBlue);
  border-radius: 15px;
  background-color: var(--SilverLakeBlue);
}

input:not(.searchSection > input, .form-input-container > input) {
  width: max(200px, 15vw);
}

input[type='checkbox']::before {
  content: '';
  width: 1.25em;
  aspect-ratio: 1 / 1;
  transform: scale(0);
  border: 2px solid var(--Platinum);
  box-shadow: inset 1.5em 1.5em var(--Platinum);
  transition: all 240ms ease;
  background-color: var(--Platinum);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type='checkbox']:checked::before {
  transform: scale(1);
}

input[type='checkbox']:checked {
  transform: scale(1);
  background-color: var(--OxfordBlue);
}

input[type='range'] {
  margin: 1.5vh;
  background-color: transparent;
  appearance: none;
}
input[type='range']:focus {
  outline: none;
}
input[type='range']::-webkit-slider-runnable-track {
  background: #e0e1dd;
  border: 0.9px solid #e0e1dd;
  border-radius: 15.1px;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  margin-top: -5px;
  width: 31px;
  height: 16px;
  background: #0d1b2a;
  border: 1px solid #0d1b2a;
  border-radius: 15px;
  cursor: pointer;
  -webkit-appearance: none;
}
input[type='range']:focus::-webkit-slider-runnable-track {
  background: #ecedeb;
}
input[type='range']::-moz-range-track {
  background: #e0e1dd;
  border: 0.9px solid #e0e1dd;
  border-radius: 15.1px;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}
input[type='range']::-moz-range-thumb {
  width: 31px;
  height: 16px;
  background: #0d1b2a;
  border: 1px solid #0d1b2a;
  border-radius: 15px;
  cursor: pointer;
}
input[type='range']::-ms-track {
  background: transparent;
  border-color: transparent;
  border-width: 3.8px 0;
  color: transparent;
  width: 100%;
  height: 8.4px;
  cursor: pointer;
}
input[type='range']::-ms-fill-lower {
  background: #d4d5cf;
  border: 0.9px solid #e0e1dd;
  border-radius: 30.2px;
}
input[type='range']::-ms-fill-upper {
  background: #e0e1dd;
  border: 0.9px solid #e0e1dd;
  border-radius: 30.2px;
}
input[type='range']::-ms-thumb {
  width: 31px;
  height: 16px;
  background: #0d1b2a;
  border: 1px solid #0d1b2a;
  border-radius: 15px;
  cursor: pointer;
  margin-top: 0px;
  /*Needed to keep the Edge thumb centred*/
}
input[type='range']:focus::-ms-fill-lower {
  background: #e0e1dd;
}
input[type='range']:focus::-ms-fill-upper {
  background: #ecedeb;
}

input[type='text'],
input[type='number'] {
  background-color: var(--Platinum);
  border: 4px solid var(--Platinum);
  border-radius: 15px;
  text-align: center;
  font-size: 14pt;
  padding: 5px;
}

input[type='text']:focus,
input[type='number']:focus {
  outline: 4px solid var(--richBlack);
}
.settingsOpen {
  animation-name: settingsFlash;
  opacity: 1;
  animation-duration: 3s;
}

/* landscape oriented phones */

@media screen and (max-width: 1000px) {
  :root {
    --settingsWidth: 100vw;
  }
  input[type='checkbox']::before {
    width: 0.8em;
  }
  #cityTitle {
    margin-left: 2px;
  }
  .settingName {
    font-size: 18pt;
  }
  select {
    font-size: 14pt;
    padding: 5px;
  }
  .icon:not(.settingsButtonMobile > .icon) {
    width: 48px;
  }
  input[type='number'] {
    font-size: 10pt;
    border: 2px;
  }
}

@media screen and (max-width: 600px) {
  .icon:not(.settingsButtonMobile > .icon) {
    width: 48px;
  }
  input[type='number'] {
    font-size: 18pt;
  }
  select, input[type='checkbox'] {
    padding: 8px;
  }
}