/* Import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap");

/* Variables */
:root {
  /* Fonts */
  --sans-serif: "Poppins", sans-serif;
  --serif: "Playfair Display", serif;
  --cursive: "Caveat", cursive;

  /* Colors */
  --primary: #26a69a;
  --secondary: #4db6ac;
  --dark: #023047;
  --dark-alt: #1d3557;
  --light: #ffffff;
  --light-alt: #e0f2f1;

  /* Shadow */
  --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  outline: none !important;
  box-sizing: border-box;
}
*::selection {
  background: var(--dark);
  color: var(--light);
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--dark);
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--sans-serif);
  background: var(--light);
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
b,
i,
u,
ul,
ol,
li,
span {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
img,
video {
  width: 100%;
}
p {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark-alt);
}
.text-center {
  text-align: center;
}

/* Content */
.section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--light-alt);
  position: relative;
}

header {
  width: 100%;
  height: 80px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 9;
}
header .panel {
  width: 90%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header .panel .logo {
  font-family: var(--serif);
  font-size: 35px;
  font-weight: 700;
  color: var(--dark-alt);
}
header .panel .logo span {
  font-family: var(--cursive);
  font-weight: 100;
  color: var(--secondary);
}
header .panel .buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}
header .panel .buttons button {
  padding: 5px 20px 5px 5px;
  border: 2px solid var(--primary);
  outline: none;
  background: var(--light-alt);
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
header .panel .buttons button i {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50px;
  background: var(--primary);
  font-size: 20px;
  color: var(--light);
}
header .panel .buttons button span {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-alt);
}
header .panel .buttons button.save-btn {
  background: var(--dark);
  border-color: var(--dark);
}
header .panel .buttons button.save-btn span {
  color: var(--light);
}

.palette {
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
.color {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  transition: 0.5s ease all;
}
.color h4 {
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.5s ease all;
}
.color .controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}
.color .controls button {
  outline: none;
  border: 0;
  cursor: pointer;
  background: var(--light);
  box-shadow: var(--shadow);
  width: 50px;
  height: 50px;
  font-size: 22px;
  text-align: center;
  line-height: 50px;
  border-radius: 50px;
  transition: 0.5s ease all;
}
.color.locked .controls button.lock {
  background: var(--dark);
  color: var(--light);
}
.color .controls button i {
  pointer-events: none;
}
.color .options {
  width: 90%;
  padding: 10px 0;
  position: absolute;
  bottom: -500px;
  opacity: 0;
  position: none;
  background: var(--light);
  box-shadow: var(--shadow);
  text-align: left;
  border-radius: 10px;
  transition: 0.5s ease all;
}
.color .options.active {
  bottom: 30px;
  opacity: 1;
  pointer-events: all;
}
.color .options .close {
  border: 0;
  outline: none;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  font-size: 14px;
  background: var(--dark-alt);
  color: var(--light);
  border-radius: 25px;
  cursor: pointer;
}
.color .options .group {
  padding: 0 20px;
  margin: 15px auto;
}
.color .options .group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-alt);
  margin: 15px 0 3px;
}
.color .options .group input {
  width: 100%;
  cursor: pointer;
  appearance: none;
  padding: 5px 0;
  box-shadow: var(--shadow);
  border-radius: 5px;
  position: relative;
}
.color .options .group input::-webkit-slider-thumb {
  appearance: none;
  height: 20px;
  width: 5px;
  border-radius: 5px;
  background: var(--light);
  cursor: move;
  box-shadow: var(--shadow);
}
.color .options .group input::-moz-range-thumb {
  box-shadow: var(--shadow);
  height: 20px;
  width: 5px;
  border-radius: 5px;
  background: var(--light);
  cursor: move;
}
.color .options .group input::-ms-thumb {
  box-shadow: var(--shadow);
  height: 20px;
  width: 5px;
  border-radius: 5px;
  background: var(--light);
  cursor: move;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: #080c33b3;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.5s ease all;
}
.modal.active {
  z-index: 11;
  opacity: 1;
  pointer-events: all;
}
.modal .modal-body {
  min-width: 40%;
  max-width: 70%;
  max-height: 80vh;
  overflow: hidden;
  background: var(--light);
  box-shadow: var(--shadow);
  padding: 50px;
  border-radius: 5px;
  position: relative;
}
.modal .modal-body h4 {
  font-size: 25px;
  font-weight: 700;
  color: var(--dark);
  text-transform: capitalize;
  margin-bottom: 30px;
}
.modal .modal-body img.thumb {
  width: 100px;
}
.modal .modal-body .close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--dark);
  color: var(--light);
  border-radius: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border: 0;
  outline: none;
  cursor: pointer;
  font-size: 20px;
}
.modal .modal-body .form {
  width: 100%;
  background: var(--light);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 2px solid #b5b8c2;
  border-radius: 5px;
}
.modal .modal-body .form button {
  width: 40px;
  height: 40px;
  background: var(--dark);
  border-radius: 5px;
  border: 0;
  outline: none;
  color: var(--light);
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
}
.modal .modal-body .form input {
  width: calc(100% - 50px);
  height: 40px;
  background: var(--light);
  border-radius: 0;
  border: 0;
  outline: none;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.library-modal .palette-select::-webkit-scrollbar-thumb {
  background: var(--light);
}
.library-modal .palette-select {
  width: 100%;
  height: 40vh;
  overflow-y: scroll;
}
.library-modal .palette-select .box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 15px 0;
  padding: 10px;
  background: var(--light);
  border: 2px solid var(--primary);
}
.library-modal .palette-select .box:last-child {
  margin-bottom: 0;
}
.library-modal .palette-select .box h6 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  width: 30%;
}
.library-modal .palette-select .box .preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70%;
}
.library-modal .palette-select .box .preview .item {
  width: 50px;
  height: 50px;
}
.library-modal .palette-select .box button {
  width: 50px;
  height: 50px;
  background: var(--dark);
  margin-left: 15px;
  border: 0;
  outline: none;
  color: var(--light);
  font-size: 20px;
  text-align: center;
  line-height: 50px;
  cursor: pointer;
}
.library-modal .palette-select .box button i {
  pointer-events: none;
}
