@media (prefers-color-scheme:light) {
  :root {
    --colorbordercolor: #c2bcb8;
    --inputBackgroundColor: #e6ddd9;
    --buttoncolor: #ede8e6;
    --buttoncolorhover: #f9f2ef;
  }
}
@media (prefers-color-scheme:dark) {
  :root {
    --colorbordercolor: #313433;
    --inputBackgroundColor: #232625;
    --buttoncolor: #272a29;
    --buttoncolorhover: #464a48;
  }
}
@media (orientation:landscape) {
  :root {
    --savedWidth: 20em;
    --savedHeight: 12em;
  }
  .paletteColor {
    height: 100vh;
  }
  .copyright, .copyright a {
    color: var(--whitetextcolor);
  }
  #back {
    top: 5em;
  }
  svg {
    fill: var(--textcolor);
  }
  #back svg {
    fill: var(--whitetextcolor);
  }
  .desktopButtons {
    position: absolute;
    display: flex;
    flex-direction: row;
    top: 1em;
    right: 1em;
    z-index: 10;
    gap: 2em;
  }
}
@media (orientation:portrait) {
  :root {
    --backgroundcolor: #000000;
    --savedWidth: 9em;
    --savedHeight: 5em;
  }
  .paletteColor {
    width: 100vw;
  }
  .copyright, .copyright a {
    color: var(--blacktextcolor);
  }
  #back {
    top: 1em;
  }
  .title h1{
    position: absolute;
    z-index: 100;
    right: 0.5em;
    top: 0.5em;
  }
  h1 {
    font-family: system-ui, Arial, Helvetica, sans-serif;
    color: var(--whitetextcolor);
  }
  #palettes {
    top: 0;
  }
  svg {
    fill: var(--whitetextcolor);
  }
  .scrollerButtons {
    position: absolute;
    right: 1.25em;
    bottom: 1.5em;
    display: flex;
    flex-direction: column;
    width: 2em;
    gap: 2em;
  }
  .scrollerButtons p {
    all: unset;
    display: flex;
    font-family: system-ui, Arial, Helvetica, sans-serif;
    font-size: 0.75em;
    text-align: center;
    margin: 0;
    margin-top: 0.5em;
    color: var(--whitetextcolor);
    text-shadow: none;
  }
  .scrollerButtons a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
.palette {
  position: absolute;
  /* top: 4em; */
  left: 0;
  z-index: -1;
  height: 100vh;
  width: 100vw;
}
#palettesNext {
  top: 100vh;
}
#palettesPrev {
  top: -100vh;
}
#techdetails {
  display: none;
}
html {
  overflow: hidden;
}
.paletteColor {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.paletteColor p {
  opacity: 0.9;
  text-align: center;
}
.paletteColor div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#more {
  position: absolute;
  bottom: 0;
}
#back {
  position: fixed;
  z-index: 10;
  left: 1em;
}
#options {
  display: none;
}
#download {
  display: none;
}
.popupBackground {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
}
.popupBox {
  position: relative;
  background-color: var(--backgroundcolor);
  padding: 1em 3em 1em 1em;
  z-index: 5;
  border-radius: 0.5rem;
  border: 2px solid var(--colorbordercolor);
  box-shadow: 0.25em 0.5em 1em var(--shadowcolor);
  min-width: 18em;
  min-height: 10em;
  max-height: 70vh;
  pointer-events: all;
  overflow: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
}
.popupBox * svg {
  fill: var(--textcolor);
}
form {
  display: flex;
  flex-direction: column;
}
label {
  display: inline-flex;
  font-size: var(--textsize);
  font-family: 'BlenderPro', monospace;
  color: var(--textcolor);
  margin-bottom: 0.25em;
}
select {
  appearance: none;
  background-color: var(--inputBackgroundColor);
  height: 1.5em;
  width: 10em;
  font-size: var(--textsize);
  font-family: 'BlenderPro', monospace;
  padding: 0 0.25em;
  color: var(--textcolor);
  border: 2px solid var(--colorbordercolor);
  border-radius: 0.25rem;
  outline: none;
  margin: 0 0 0.5em 0.5em;
}
input {
  background-color: var(--inputBackgroundColor);
  height: 1.25em;
  width: 2em;
  font-size: var(--textsize);
  font-family: 'BlenderPro', monospace;
  padding: 0 0.25em;
  color: var(--textcolor);
  border: 2px solid var(--colorbordercolor);
  border-radius: 0.25rem;
  outline: none;
  margin: 0 0 0.5em 0.5em;
}
#topFade {
  position: absolute;
  z-index: 1;
  width: 100vw;
  height: 5em;
  background-image: linear-gradient(#000000ff, #00000000);
  pointer-events: none;
}
svg {
  height: 1.75em;
  width: 1.75em;
  transition: 0.3s;
}
#likeButtonFill {
  display: none;
  transition: 0.3s;
}
#saved {
  display: none;
}
#savedBox {
  width: 80vw;
}
#savedList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}
.savedPaletteContainer {
  border: 2px solid var(--colorbordercolor);
  border-radius: 0.25em;
}
.savedPalette {
  display: flex;
  width: var(--savedWidth);
  height: var(--savedHeight);
}
.savedPaletteSettings {
  margin: 0.5em 0.5em 0.25em 0.5em;
  width: 100;
}
button {
  background: var(--buttoncolor);
  border: 2px solid var(--colorbordercolor);
}
button:hover {
  background: var(--buttoncolorhover);
  border: 2px solid var(--colorbordercolor);
}
.xButton {
  all: unset;
  position: absolute;
  right: 1em;
  top: 1em;
  transition: 0.3s;
}
button.xButton:hover {
  all: unset;
  position: absolute;
  right: 1em;
  top: 1em;
  scale: 1.1;
}
.xButton svg {
  width: 1.5em;
  height: 1.5em;
}
input[type="checkbox"] {
  display: none;
}
.checkbox {
  position: relative;
  margin: 0 0.5em 0.5em 0.5em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 0.1rem;
}
#luminanceConstantBox {
  background-color: var(--inputBackgroundColor);
}
#saturationConstantBox {
  background-color: var(--inputBackgroundColor);
}
#showOKLCHbox {
  background-color: var(--greentextcolor);
}
.checkbox svg {
  width: 2em;
  height: 2em;
  fill: var(--whitetextcolor);
}
.checkbox::after {
  content: "";
  position: absolute;
  top: calc(-0.1em + -2px);
  left: calc(-0.1em + -2px);
  width: 0.75em;
  height: 0.75em;
  padding: 0.1em;
  border: 2px solid var(--colorbordercolor);
  border-radius: 0.25rem;
}
input[type="range"] {
  width: 6em;
}
.rangeValue {
  margin-left: 0.5em;
  opacity: 0.5;
}