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

@font-face {
  font-family: "ops";
  src: url(./fonts/OpenSansCondensed-Light.ttf);
}

body {
  font-family: "ops", sans-serif;
  color: #1f1f1f;
}

button {
  font-family: "ops";
}

svg,
path,
i {
  pointer-events: none;
}

nav {
  height: 8vh;
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

nav img {
  height: 3rem;
}

nav h4 {
  font-size: 2rem;
  padding: 0 1rem;
}

.colors {
  height: 72vh;
  display: flex;
  color: rgb(211, 211, 211);
}

.color {
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  overflow: hidden;
}

.color h2 {
  font-size: 2rem;
  cursor: pointer;
}

.sliders {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 0%;
  background: rgb(255, 255, 255);
  opacity: 0;
  padding: 1rem;
  width: 80%;
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
  pointer-events: none;
  transform: translateY(100px);
  transition: all 0.5s ease-in-out;
}

.sliders.active {
  opacity: 1;
  transform: translateY(0px);
  pointer-events: all;
}

.sliders button,
.close-save,
.close-library {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  border: none;
  background: rgb(82, 82, 82);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.sliders button:hover,
.close-save:hover,
.close-library:hover {
  background: rgb(255, 55, 55);
}

.controls {
  display: flex;
  flex-direction: column;
}

.panel {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 20vh;
}

.panel button {
  font-size: 1.2rem;
  margin: 1rem;
  padding: 1rem 2rem;
  background: rgb(33, 31, 39);
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.panel button:hover {
  background: rgb(73, 73, 73);
}

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

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

.adjust,
.lock {
  font-size: 2rem;
  border: none;
  background: none;
  cursor: pointer;
  margin: 2rem 0rem;
  color: #1f1f1f;
}

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

.copy-container,
.save-container,
.library-container {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.copy-popup,
.save-popup,
.library-popup {
  margin: 1rem;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  border-radius: 2rem;
  transition: transform 0.5s ease;
  transform: translateY(-2rem);
  min-width: 30%;
  min-height: 30vh;
}

.copy-popup h4,
.copy-popup h3,
.save-popup h4,
.library-popup h4 {
  font-size: 2rem;
  padding: 2rem;
  text-align: center;
}

.copy-container.active,
.save-container.active,
.library-container.active {
  opacity: 100%;
}

.copy-popup.active,
.save-popup.active,
.library-popup.active {
  transform: translateY(0rem);
  pointer-events: all;
}

.save-name {
  font-size: 1.5rem;
  padding: 1rem;
  margin: 0 2rem;
}

.save-popup input {
  max-width: 90%;
  margin: auto;
}

.submit-save {
  margin: 2rem;
  padding: 0.5rem 2rem;
  background: rgb(70, 119, 255);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-save:hover {
  background: rgb(112, 150, 255);
}

/* Library*/
.library-popup {
  max-width: 40%;
  padding: 1rem;
  justify-content: flex-start;
  overflow-y: scroll;
  max-height: 50vh;
}

.custom-palette {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  flex-wrap: wrap;
}

.small-preview {
  min-width: 60%;
  display: flex;
  flex: 1;
}

.custom-palette h4 {
  flex: 1;
  min-width: 90%;
  margin: auto;
}

.small-preview div {
  height: 5rem;
  flex: 1;
}

.pick-palette-btn {
  height: 5rem;
  border: 0;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  background: rgb(32, 32, 32);
  color: white;
}

@media screen and (max-width: 900px) {
  .sliders {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 70vw;
    margin: 0 15vw;
    z-index: 3;
  }
  .library-popup {
    min-width: 80%;
  }
}

@media screen and (max-width: 600px) {
  .color {
    height: 50%;
    flex: 0 0 50%;
  }
  .colors {
    flex-wrap: wrap;
  }
  nav {
    justify-content: center;
  }
}
