* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  color: #eee;
}

body {
  height: 100vh;
  background: #0a0a0c;
  display: flex;
  justify-content: center;
  align-items: center;
}

input, button, select {
  outline: none;
  border: none;
}

.container {
  width: 300px;
  padding: 10px;
  background: #232323;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container > .preview {
  width: 100%;
  height: 220px;
  border-radius: 4px;
}

.container > .colors {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 2px;
}

.container > .colors select {
  color: #222;
  background: #eee;
  border-radius: 20px;
  padding: 10px;
  height: 40px;
  font-size: 16px;
  color: #eee;
  background-color: #313131;
}

.container > .colors input {
  height: 30px;
  background-color: transparent;
}

.container .colors input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.container .colors input::-webkit-color-swatch {
  border: 1px solid #eee;
  border-radius: 8px;
}
.container > code {
  width: 100%;
  background: #303030;
  padding: 10px;
  color: #a0a0a0;
  font-family: 'Courier';
  text-align: left;
  font-size: 16px;
  overflow: wrap;
}

.container > .btns {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

.container > .btns > button {
  width: 120px;
  background: #0075ff;
  padding: 10px;
  font-size: 18px;
  border-radius: 4px;
  cursor: pointer;
}

.container #code {
  color: #222;
  position: absolute;
  z-index: -1000;
}

.modal {
  padding: 6px;
  border-radius: 4px;
  background: #eee;
  color: #222;
  font-size: 13px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: visibl .7s linear both;
}

@keyframes visibl {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hidden {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
