@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;600&display=swap");
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: rgb(30 41 59);
  --color: rgb(245, 238, 238);
  --padding1: 1rem;
  --padding2: 2rem;
  --fontsize: 1.25rem;
  --borderRadius: 0.25rem;
}

body {
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  padding: 3rem;
}

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

.display__color {
  width: 15rem;
  height: 10rem;
  background-color: black;
  border-radius: var(--borderRadius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--fontsize) * 1.5);
  padding: var(--padding1);
  font-weight: 600;
  text-align: center;
}

.main__button-group {
  display: grid;
  grid-template-columns: repeat(5, 10rem);
  gap: 2rem;
  width: 80%;
  justify-content: center;
  align-items: center;
}

button {
  border: none;
  cursor: pointer;
  padding: calc(var(--padding1) / 2) calc(var(--padding2) / 2);

  font-size: calc (var(--fontsize) * 3/4);
  border-radius: var(--borderRadius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

button span:first-child {
  font-weight: 600;
  white-space: none;
}

.custom_color_picker {
  width: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: whitesmoke;
  padding: calc(var(--padding1) / 4) calc(var(--padding2) / 4);
  outline: 1px dashed whitesmoke;
  border-radius: var(--borderRadius);
}

input {
  border: none;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  width: 100%;
  height: 2rem;
  border-radius: var(--borderRadius);
}

.custom_color_picker span {
  text-align: center;
}

.footer-container {
  font-size: calc(var(--fontsize) * 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--color);
}
a {
  text-decoration: none;
  color: var(--color);
}
