/* Imports font  */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap");

/* Color variables  */
:root {
  --dark-gray: #EEEAE4;
  --light-gray: #F9F9F9;
  --vert-light-gray: #d1d5db;
  --gray: #F9F9F9;
  --white: #111111;
  --red: #A55A43;
  --black: #ffffff;
}

* {
  font-family: "Poppins", sans-serif;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  overflow-x: hidden;
  color: var(--white);
  background-color: var(--dark-gray);
}
body {
  padding: 80px 120px 1px 120px;
  max-width: 1440px;
  margin: auto;
}
/* Heading  */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 3rem;
}
p {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
}

/* Drag and Drop area  */
.top-block {
  display: flex;
  gap: 30px;
}
.top-left-block {
  width: 28%;
  border: 1px dashed var(--light-gray);
  border-radius: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  background-color: var(--light-gray);
  padding: 30px;
  gap: 30px;
}
.top-left-block img {
}
.top-left-block p {
  color: var(--vert-light-gray);
  font-weight: 300;
}
.top-left-block .browse-btn {
}
.browse-btn input {
  display: none;
}
.browse-btn label {
  padding: 9px 24px;
  font-size: 1.5rem;
  font-weight: 500;
  border-radius: 4px;
  background-color: var(--dark-gray);
  color: var(--white);
  display: block;
  width: fit-content;
  cursor: pointer;
  transition: all 300ms ease-in-out;
  border: 1px solid var(--dark-gray);
}
.browse-btn label:hover {
  background-color: var(--light-gray);
  color: var(--white);
}

/* Image  */
.top-right-block {
  width: 72%;
  padding: 16px;
  background-color: var(--light-gray);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.top-right-block img {
  width: 100%;
  height: auto;
  cursor: crosshair;
  border-radius: 4px;
}

/* COlor Palette  */

.bottom-block {
  background-color: var(--gray);
  border-radius: 12px;
  border: 1px solid var(--gray);
  padding:20px;
}
.bottom-block .head {
  height: 44px;
  background-color: var(--light-gray);
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--light-gray);
  gap: 4px;
}
.head .dropdown {
  display: flex;
  position: relative;
}
.head .label {
}
.head .dropdown-btn {
  display: flex;
  background-color: var(--dark-gray);
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 6px;
  gap: 5px;
  cursor: pointer;
  position: relative;
  transition: all 300ms;
}
.head .dropdown-btn:hover {
  transform: rotate(6deg);
}
.head .dropdown-btn img {
  transition: all 300ms;
}
.dropdown-btn p {
  letter-spacing: 0;
}
.dropdown-menu {
  transition: all 300ms ease-in-out;
  opacity: 0;
  position: absolute;
  top: 32px;
  left: 112px;
  background: var(--light-gray);
  border-radius: 4px;
  border: 1px solid var(--white);
  z-index: 1;
}
.dropdown-menu .option {
  padding: 4px 8px;
  transition: all 100ms;
  cursor: pointer;
}
.dropdown-menu .option:first-child {
  border-bottom: 1px solid var(--white);
}
.dropdown-menu .option:hover {
  opacity: 0.4;
}
.head .remove-btn {
  cursor: pointer;
}

.remove-btn p {
  color: var(--red);
  font-size: 1rem;
  transition: all 300ms ease-in-out;
}
.head .remove-btn:hover p {
  color: white;
}
.bottom-block .colors {
  display: grid;
  grid-template-columns: repeat(auto-fit, 134px);
  gap: 18px;
  justify-items: center;
  padding: 20px;
  justify-content: space-around;
}
.colors .color {
  background-color: var(--light-gray);
  border-radius: 12px;
  padding: 0 10px 10px 10px;
  width: 100%;
}

.color .color-top {
  position: relative;
  display: flex;
  justify-content: flex-end;
  top: -3px;
  left: 14px;
}
.color .color-top img {
  transition: all 300ms ease-in-out;
  opacity: 0;
  cursor: pointer;
}
.color:hover .color-top img {
  opacity: 1;
}
.color-top img:hover {
  transform: scale(1.2);
}
.color-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.color-bottom .preview {
  width: 100px;
  height: 100px;
  border-radius: 4px;
}
.color-bottom .code {
  display: flex;
  gap: 6px;
}
.color-bottom p {
}
.color-bottom img {
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
.color-bottom img:hover {
  transform: scale(0.8);
}
.bottom-text {
}
.bottom-text p {
  font-size: 1rem;
  font-weight: 300;
}

/* Footer  */
footer {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  gap: 2px;
}
footer p {
}
footer p a {
  color: var(--white);
}

/* Eye Dropper  */
#canvas {
  display: none;
}

#magnifier-glass-container {
  position: absolute;
  border-radius: 50%;
  cursor: none;
  border: 8px solid black;
  box-sizing: content-box;
  width: 100px;
  height: 100px;
  display: none;
  margin: 30px;
}

#magnifier-glass {
  width: 100%;
  border: 4px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  padding: 1px 0 0 1px;
  overflow: hidden;
}
#magnifier-glass div {
  background: transparent;
  border-radius: 50%;
  border: 1px solid white;
  width: 14px;
  height: 14px;
}
