* {
  margin: 0;
  padding: 0;
}
#app {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.copy-text {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  width: 100%;
  font-size: 20px;
  font-family: monospace;
  text-transform: uppercase;
  padding: 10px 0;
}
.svg-preview {
  padding: 30px;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  transform-origin: bottom;
  margin: 0 auto;
  border: 2px solid var(--color);
}
.svg-preview.copied {
  animation-name: bounce;
  animation-duration: 1500ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
  animation-fill-mode: forwards;
}
.svg-preview.copied + .copy-text {
  opacity: 1;
}
.svg-preview-wrapper {
  height: calc(100vh - 185px);
  display: grid;
  place-content: center;
  overflow: hidden auto;
  position: relative;
}
.svg-preview-wrapper:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='957 450 539 900 1396 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='957 450 872.9 900 1396 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='-60 900 398 662 816 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='337 900 398 662 816 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1203 546 1552 900 876 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1203 546 1552 900 1162 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='641 695 886 900 367 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='587 900 641 695 886 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1710 900 1401 632 1096 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1710 900 1401 632 1365 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1210 900 971 687 725 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='943 900 1210 900 971 687'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
}
.svg-preview-wrapper:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}
.controls {
  position: relative;
  background: #FAFAFA;
  height: 125px;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0 40px;
  font-family: monospace;
  text-transform: uppercase;
}
.textarea-inner {
  display: flex;
}
input,
textarea {
  font-family: monospace;
  text-transform: uppercase;
}
textarea {
  width: 600px;
  margin: 10px 0 0;
  padding: 10px;
  height: 78px;
  border: 1px solid #ccc;
  resize: none;
  font-size: 12px;
  text-transform: lowercase;
}
textarea:focus {
  outline: none;
}
label {
  display: block;
}
.copy-button {
  display: block;
  border-radius: 0;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-left: none;
  width: 40px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}
.copy-button:hover {
  background-color: #B9F6CA;
}
.copy-button.copied {
  background-color: #69F0AE;
}
.copy-button.copied svg {
  animation-name: lilbounce;
  animation-duration: 1500ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
  animation-fill-mode: forwards;
}
.settings__color {
  display: flex;
  margin: 10px 0;
  border: 1px solid #ccc;
  background: #fff;
}
.settings__color input {
  border-radius: 0;
  border: none;
  background: none;
}
.settings__color input:focus {
  outline: none;
}
.settings__color input[type="text"] {
  padding: 3px 6px;
  font-size: 20px;
}
.settings__color input[type="color"] {
  height: 32px;
}
.settings__size {
  display: flex;
  margin: 10px 0;
}
.settings__size input {
  border-radius: 0;
  border: 1px solid #ccc;
  background: #fff;
  padding: 3px 6px;
  font-size: 20px;
  width: 100%;
}
.settings__size input:focus {
  outline: none;
}
@keyframes bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-20%);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-3%);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
@keyframes lilbounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-10px);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-2px);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
.alt-icons {
  position: absolute;
  top: -35px;
  background: #fafafa;
  border-radius: 10px 10px 0 0;
  padding: 10px;
}
.alt-icon-list {
  list-style: none;
  display: flex;
  gap: 10px;
}
.alt-icon a {
  display: block;
  padding: 5px;
  text-align: center;
  background: #eee;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  font-size: 10px;
  width: 50px;
  text-transform: capitalize;
  position: relative;
}
.alt-icon a:after {
  content: "";
  opacity: 0;
  background-color: var(--color);
  border-radius: 10px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.alt-icon a:hover:after {
  opacity: 0.2;
}
.alt-icon a p {
  line-height: 10px;
}
.alt-icon .fa-secondary {
  opacity: 0.4;
}
.error-body {
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: relative;
  display: grid;
  place-content: center;
}
.error-body .error-inner {
  background: #eee;
  padding: 20px;
  border-radius: 20px;
  border: 2px solid var(--color);
  font-family: monospace;
}
.error-body .error-inner h1 {
  font-size: 30px;
  margin-bottom: 30px;
  text-align: center;
}
.error-body .error-inner p {
  margin-right: 10px;
  font-size: 18px;
}
.error-body .error-inner p strong {
  text-transform: uppercase;
}
.error-body:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900'%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='957 450 539 900 1396 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='957 450 872.9 900 1396 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='-60 900 398 662 816 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='337 900 398 662 816 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1203 546 1552 900 876 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1203 546 1552 900 1162 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='641 695 886 900 367 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='587 900 641 695 886 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1710 900 1401 632 1096 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1710 900 1401 632 1365 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='1210 900 971 687 725 900'/%3E%3Cpolygon fill='rgba(0,0,0,0.1)' points='943 900 1210 900 971 687'/%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  background-position: center bottom;
  pointer-events: none;
}
.error-body:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
}
.fontawesome {
  position: absolute;
  height: 100px;
  width: 100px;
  display: grid;
  grid-template-rows: 1fr 30px;
  border: 2px solid var(--color);
  border-radius: 10px;
  top: 50%;
  left: 20%;
  transition: box-shadow 0.2s ease-in-out;
}
.fontawesome:focus,
.fontawesome:focus-within {
  outline: none;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}
.fontawesome.screenshot {
  height: auto;
  width: auto;
  object-fit: none;
  object-position: center center;
  display: block;
  grid-template-rows: none;
}
.fontawesome.screenshot canvas {
  object-fit: none;
  object-position: center center;
  opacity: 0.8;
}
.fontawesome .opacity-bar {
  background: #fff;
  padding: 10px;
  border-radius: 0 0 10px 10px;
  border-top: 1px solid var(--color);
}
.fontawesome .opacity-bar input {
  display: block;
  width: 100%;
}
.fontawesome .opacity-bar input:focus {
  outline: none;
}
.fontawesome:not(.active) {
  display: none;
}
.fontawesome .close-icon {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #000;
  height: 20px;
  width: 20px;
  border: 2px solid var(--color);
  border-radius: 50%;
  cursor: pointer;
}
.fontawesome .close-icon div {
  position: absolute;
  height: 3px;
  width: 60%;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  background: #fff;
}
.fontawesome .close-icon div:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.fontawesome .close-icon div:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.fontawesome .fac-icon {
  display: grid;
  place-content: center;
  cursor: all-scroll;
  overflow: hidden;
}
.fontawesome .fac-icon i {
  color: var(--color);
  filter: invert(1);
}
.fontawesome .fac-input {
  font-family: monospace;
  font-size: 10px;
  list-style: 10px;
  text-align: center;
}
.fontawesome .fac-input input {
  display: block;
  width: calc(100% - 15px);
  padding-left: 15px;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  text-align: center;
  line-height: 20px;
  background: none;
}
.fontawesome .fac-input input:focus {
  outline: none;
}
.draggable {
  user-select: none;
}
.fontawesome-compare-btn {
  position: absolute;
  top: -20px;
  right: 20px;
  padding: 10px;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
}
.fontawesome-compare-btn:after {
  content: "";
  opacity: 0;
  background-color: var(--color);
  border-radius: 10px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
.fontawesome-compare-btn:hover:after {
  opacity: 0.2;
}
