* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
}
body {
  font-family: "Poppins", sans-serif;
  color: rgb(23, 23, 24);
}
button {
  font-family: "Poppins", sans-serif;
}
path,
i,
svg {
  pointer-events: none;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
}
input[type="text"] {
  font-size: 1.5rem;
  padding: 1rem;
  margin: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #f3e0bc;
}

.colors {
  min-height: 80vh;
  display: flex;
  color: rgb(201, 190, 190);
}
.color {
  min-height: 80vh;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  overflow: hidden;
}
.color h2 {
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
}

.sliders {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0%;
  padding: 1rem;
  width: 80%;
  border-radius: 1rem 1rem 0 0;
  /* adjustment panel*/
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
  transition: all 0.5s ease-in-out;
  color: black;
  background: white;
}
.sliders.active {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: all;
}
.sliders button,
button.save-close,
button.library-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0 1rem 0 1rem;
  background-color: #0d0d38;
  color: wheat;
  cursor: pointer;
}
.controls {
  display: flex;
  flex-direction: column;
}

.panel {
  min-height: 20vh;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
}
.panel button {
  font-size: 1.4rem;
  margin: 1rem;
  padding: 1rem 2rem;
  border: none;
  background-color: #0d0d38;
  color: wheat;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.panel button:hover {
  background-color: black;
  color: white;
}

.panel p {
  font-size: 1.2rem;
}

.adjust,
.lock {
  font-size: 2rem;
  padding: 1rem 2rem;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.library-panel,
.generate-panel,
.save-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  margin: 1rem 0rem;
  border-radius: 1rem;
  border: none;
  position: relative;
  cursor: pointer;
}

/* hue will always be same for all colors */
.hue-input {
  background: linear-gradient(
    to right,
    rgb(204, 75, 75),
    rgb(204, 204, 75),
    rgb(75, 204, 75),
    rgb(75, 204, 204),
    rgb(75, 75, 204),
    rgb(204, 75, 204),
    rgb(204, 75, 75)
  ) !important;
}

.container {
  position: fixed;
  top: 0%;
  left: 0%;
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
}
.popup {
  display: flex;
  flex-direction: column;
  width: 20%;
  min-width: 30vw;
  min-height: 20vh;
  background: white;
  justify-content: space-around;
  align-items: center;
  border-radius: 1rem;
  transition: all 0.3s ease-in-out;
  transform: translateY(-2rem);
}
.popup h4 {
  font-size: 2rem;
  padding: 1rem;
  margin: 1rem;
}
.container.active {
  opacity: 1;
  pointer-events: all;
}
.popup.active {
  transform: translateY(0rem);
}
button.submit-save {
  border: none;
  padding: 1rem 1.5rem;
  margin: 1rem;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  background-color: #0d0d38;
  color: wheat;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
button.submit-save:hover {
  background-color: black;
  color: white;
}

.color-band {
  display: flex;
  width: 50%;
  margin-bottom: 1rem;
  border-radius: 1rem;
  border-radius: 1rem;
  overflow: hidden;
}
.color-band * {
  flex: 1;
  padding: 1rem 0;
}
.palette-save-status {
  background-color: #0d0d38;
  color: wheat;
  border-radius: 10rem;
  position: relative;
  font-weight: 600;
}
.palette-save-status .status-icon {
  border-radius: 50%;
  font-size: 1.2rem;
  padding: 0.5rem 1.2rem;
  position: absolute;
  top: -5%;
  left: -5%;
  background-color: #e77f1d;
  color: white;
}
.palette-save-status.saved .status-icon {
  background-color: #79ad2b;
  color: white;
  padding: 0.5rem 1rem;
}
.palette-save-status .status-text {
  font-size: 1.2rem;
  padding: 0.3rem 1.5rem;
  margin-left: 2rem;
}

.library-popup {
  max-height: 50vh;
  width: 40%;
  justify-content: flex-start;
  overflow-y: auto;
}
.library-element {
  display: flex;
  width: 100%;
}
.library-element h5,
.library-element .palette-preview {
  display: flex;
  flex: 1;
  font-size: 2rem;
  padding: 1rem 0.5rem;
  margin: 0.5rem;
}
.library-element .palette-preview {
  flex: 2;
}
.library-element h5 {
  align-items: center;
}
.palette-preview .color-band {
  margin: 0;
  flex: 3;
  border-radius: 1rem 0 0 1rem;
  overflow: hidden;
}
button.select-palette {
  border: none;
  border-radius: 0 1rem 1rem 0;
  padding: 0.5rem;
  flex: 1;
  background-color: #0d0d38;
  color: wheat;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}
button.select-palette:hover {
  background-color: black;
  color: white;
}
