*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
}

body {
  height: 100vh;
}

.title {
  color: #ffffff;
  display: flex;
  justify-content: center;
  position: relative;
  top: 9rem;
  font-family: "Rubik", sans-serif;
}

.labels {
  position: relative;
  display: flex;
  justify-content: space-around;
  padding-bottom: 9px;
  color: #4e4d4dbf;
}

.container {
  background-color: #ffffff;
  width: 400px;
  padding: 50px 30px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 10px;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.25);
}

.container *:not(i) {
  font-family: "Rubik", sans-serif;
}

.colors {
  width: 100%;
  display: flex;
  justify-content: space-around;
}

input[type="color"] {
  -webkit-appearance: none;
  background-color: transparent;
  width: 100px;
  height: 45px;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch {
  border-radius: 20px;
  border: none;
}

.buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}

.buttons button {
  width: 35px;
  height: 35px;
  background-color: transparent;
  border: 1.8px solid #d5d5dc;
  color: #d5d5dc;
  border-radius: 40px;
  cursor: pointer;
}

.rotate-icon i {
  transform: rotate(45deg);
}

.buttons .active {
  border: none;
  background-color: #4e4d4d;
  color: #ffffff;
}

.buttons .active:hover {
  background-color: #4e4d4dbf;
}

#submit {
  display: block;
  background-color: #4e4d4d;
  color: #ffffff;
  font-size: 16px;
  padding: 12px 70px;
  border-radius: 25px;
  margin: 0 auto 30px auto;
  cursor: pointer;
}

#submit:hover {
  background-color: #4e4d4dbf;
}

.output {
  background-color: #f0f2fc;
}

#code {
  width: 100%;
  resize: none;
  color: #30304a;
  padding: 10px 20px;
  background-color: transparent;
}

#copy {
  font-size: 14px;
  background-color: #4e4d4d;
  color: #ffffff;
  position: relative;
  left: 85%;
  bottom: 10px;
  border-radius: 3px;
  padding: 5px;
  cursor: pointer;
}

#copy:hover {
  background-color: #4e4d4dbf;
}
