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

body {
  font-family: "Muli", sans-serif;
  color: white;
}

button {
  font-family: "Muli", sans-serif;
}

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

.adjust, .lock {
  cursor: pointer;
}

.colors {
  display: flex;
  min-height: 80vh;
}

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

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

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

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

.sliders button, .close-save, .close-library {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.35rem;
  border-top-left-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
  border: none;
  cursor: pointer;
  background-color: #222;
  color: #ddd;
  font-weight: bold;
}

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

.controls button {
  font-size: 1.25rem;
  background-color: transparent;
  border: none;
  margin: 1rem;
}

.panel {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: space-evenly;
  height: 20vh;
  background-color: #222;
}

.panel button {
  font-size: 1.2rem;
  margin: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  color: white;
  background-color: #226;
  border-radius: 1rem;
  cursor: pointer;
}

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

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

.copy-container, .save-container, .library-container {
  position: fixed;
  top: 0%;
  left: 0%;
  background-color: 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.5s ease;
}

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

.copy-popup h4, .save-popup h4, .library-popup h4 {
  font-size: 125%;
  padding: 0 1rem 0 1rem;
  margin: 1.5rem;
}

.copy-container.active, .save-container.active, .library-container.active {
  opacity: 1;
  pointer-events: all;
}

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

/* tooltip on clipboard copy */

*[data-tooltip] {
  position: relative;
}

*[data-tooltip]::after {
  content: attr(data-tooltip);
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  text-align: center;
  pointer-events: none;
  transition: opacity .2s ease-in;
  background: #fefdcd;
  padding: 0.15rem 0.3rem;
  border: 1px solid #c0c0c0;
  border-radius: 0.5rem;
  box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.4);
  font-family: "Muli", sans-serif;
  font-size: 50%;
  color: black;
  opacity: 0;
  z-index: 100;
}

*[data-tooltip]:hover::after {
  opacity: 1;
}

.close-save, .close-library {
  border-top-left-radius: 0rem;
  padding: 0.5rem;
}

.save-name {
  font-size: 1rem;
  padding: 0.25rem;
}

.submit-save {
  border: none;
  background-color: #226;
  color: white;
  padding: 0.5rem 1rem;
  margin: 1rem;
  cursor: pointer;
  border-radius: 0.35rem;
}

.library-popup {
  min-width: 50%;
  min-height: 50%;
  overflow-y: auto;
  width: 60vw;
}

.custom-palette {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  margin: 0.125rem;
  width: 80%;
  margin-bottom: 1.5rem;
}

.custom-palette h4 {
  margin: 0.125rem;
  padding: 0.25rem;
  min-width: 35%;
  max-width: 35%;
}

.small-preview {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.small-preview div {
  flex: 1;
  height: 100%;
}

.select-palette-button {
  border: none;
  background-color: #222;
  color: white;
  cursor: pointer;
  max-height: 100%;
  padding: 0.15rem 0.45rem;
  transition: 0.2s background-color ease-out;
}

.select-palette-button:hover {
  background-color: #0a0a;
}


.remove-palette-button {
  border: none;
  background-color: #222;
  color: white;
  cursor: pointer;
  max-height: 100%;
  padding: 0.15rem 0.45rem;
  transition: 0.2s background-color ease-out;
}

.remove-palette-button:hover {
  background-color: #a00a;
}


.clear-all-button {
  margin-left: 1rem;
  border: none;
  color: #226;
  background-color: #0000;
  cursor: pointer;
  transition: 0.2s background-color ease-out;
}

.clear-all-button:hover {
  background-color: #f00a;
}
