@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,700;1,400&display=swap");
* {
  margin: 0;
  padding: 0;
  outline: none;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: "Mulish", sans-serif;
  color: #fff;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #0f172a;
}

::selection {
  color: #fff;
  background: #111;
}

.container {
  width: calc(100% - 30px);
  max-width: 640px;
  text-align: center;
  margin: 15px;
  padding: 20px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  color: #b9e0f2;
  position: relative;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.05);
}

.colors {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
.colors input[type=color] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  width: 100px;
  height: 100px;
  border: none;
  cursor: pointer;
}
.colors input[type=color]::-webkit-color-swatch {
  border-radius: 50%;
  border: 3px solid #111;
}
.colors input[type=color]::-moz-color-swatch {
  border-radius: 50%;
  border: 3px solid #111;
}

.buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}
.buttons button {
  height: 40px;
  width: 40px;
  line-height: 38px;
  background-color: transparent;
  font-size: 2rem;
  border: 2px solid #111;
  border-radius: 50%;
  cursor: pointer;
}
.buttons button:hover {
  color: #5e5e5e;
  border-color: #5e5e5e;
}
.buttons button.active {
  background-color: #111;
  border-color: #111;
  color: #fff;
}
.buttons button.rotate-icon i {
  transform: rotate(45deg);
}

#submit {
  display: block;
  background-color: #111;
  font-family: "Mulish", sans-serif;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  padding: 10px 70px;
  border: 0;
  border-radius: 50px;
  margin: 0 auto 30px;
  cursor: pointer;
}
#submit:hover {
  background-color: #2b2b2b;
}

.output__code {
  background-color: #ddd;
  width: 100%;
  resize: none;
  color: #111;
  border: 0;
  padding: 10px 20px;
  margin-bottom: 15px;
}
.output__copy {
  font-family: "Mulish", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background-color: #111;
  color: #fff;
  border: 0;
  border-radius: 20px;
  padding: 10px 30px;
  cursor: pointer;
}
.output__copy:hover {
  background-color: #2b2b2b;
}

@media (max-width: 480px) {
  .buttons {
    display: block;
  }
  .buttons button {
    margin: 0 10px 10px;
  }

  .output__code {
    height: 70px;
  }
}