*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --select-border: #d1d5db;
  --select-focus: blue;
  --select-arrow: var(--select-border);
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Nunito", sans-serif;
  background-color: black;
}

body {
  font-size: 16px;
}

main {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(to right, #f55a5a, #fbf3ab, #aad1b6, #a626d3);
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  width: 550px;
  height: 550px;
  display: flex;
  flex-direction: column;
  background: #fffdfe;
  color: #1f2937;
  border: 1px solid #1f2937;
  border-radius: .5rem;
}

.section {
  width: 100%;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: .5rem;
  height: 5rem;
  padding: 0 .5rem;
}

.mid {
  height: 414px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.one {
  background: #f55a5a;
}

.two {
  background: #2b283a;
}

.three {
  background: #fbf3ab;
}

.four {
  background: #aad1b6;
}

.five {
  background: #a626d3;
}

.bottom {
  height: 46px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.hex-value {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 400;
}

#color-picker {
  appearance: none;
  height: 42px;
  width: 61px;
  border: 2px solid var(--select-border);
  border-radius: 2px;
  outline: none;
  background: #fffdfe;
  padding: 0;
  margin: 0;
  /* background-clip: text; */
  /* margin: 0 auto 0 0; */
}

.select-container {
  position: relative;
  height: 42px;
  width: 312px;
  border: 1px solid var(--select-border);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 300;
  cursor: pointer;
  background: #fffdfe;
  color: #1f2937;
}

.select-icon {
  width: 12px;
  height: 12px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: auto;
  color: inherit;
}

select {
  position: relative;
  appearance: none;
  background-color: transparent;
  color: inherit;
  border: none;
  outline: none;
  padding: 0.5rem;
  font-weight: inherit;
  margin: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  z-index: 999999;
}

.get-color-btn {
  height: 42px;
  width: 123px;
  border: 1px solid var(--select-border);
  outline: none;
  border-radius: 0.25rem;
  background: #fffdfe;
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 300;
  cursor: pointer;
}

.get-color-btn:hover {
  background-color: var(--select-border);
}


@media only screen and (max-width: 768px) {
  .container {
    width: 80%;
    /* height: 80vh; */
  }
}

/* ----- Animations ----- */
.content {
  opacity: 0;
  transform: translateY(10rem);
  transition: all 0.6s ease-out;
}

.content.slide-up {
  opacity: 1;
  transform: translateY(0);
}