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

body {
  margin: 0;
  padding: 0;
  background-color: #f8f6f6;
  min-height: 100vh;
  font-family: "montserrat", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

input,
textarea,
button {
  font-family: inherit;
}

.container {
  background-color: #f8f6f6;
  border-radius: 6px;
  box-shadow: 0 0 25px 5px rgba(82, 86, 94, 0.2);
  display: flex;
}

.color-preview {
  width: 280px;
  height: 250px;
  background-color: #ed145b;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.controls {
  width: 430px;
  height: 250px;
  padding: 60px;
  background-color: #f8f6f6;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.input-box {
  display: flex;
}

.input-box input {
  width: 100%;
  padding: 15px;
  color: #ed145b;
  background: transparent;
  font-size: 22px;
  font-weight: 600;
  border: 2px solid #ed145b;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.input-box .copy-btn {
  padding: 10px 25px;
  color: #f8f6f6;
  background-color: #ed145b;
  font-size: 22px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  cursor: pointer;
}

.generate-btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  color: #f8f6f6;
  background-color: #000000;
  font-size: 22px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:active,
.generate-btn:active {
  opacity: 0.9;
}

.alert-msg {
  width: 400px;
  padding: 15px;
  color: #f8f6f6;
  background-color: #363636;
  font-size: 20px;
  font-weight: 400;
  border-radius: 6px;
  text-align: center;
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

.alert-msg .code {
  font-weight: 700;
}

.slide-effect {
  animation: slideInUp 2s ease-in;
}

/* Create a slideInUp animation */

@keyframes slideInUp {
  0% {
    opacity: 0;
    bottom: -100px;
  }
  20% {
    opacity: 1;
    bottom: 20px;
  }
  90% {
    opacity: 1;
    bottom: 20px;
  }
  100% {
    opacity: 0;
  }
}
:root {
  --clr-neon: hsl(317 100% 54%);
  --clr-bg: hsl(323 21% 16%);
}
.neon-button {
  font-size: 4rem;
  top: 60%;
  
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: var(--clr-neon);
  border: var(--clr-neon) 0.125em solid;
  padding: 0.25em 1em;
  border-radius: 0.25em;

  text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;

  box-shadow: inset 0 0 0.5em 0 var(--clr-neon), 0 0 0.5em 0 var(--clr-neon);

  position: relative;
}

.neon-button::before {
  pointer-events: none;
  content: "";
  position: absolute;
  background: var(--clr-neon);
  top: 120%;
  left: 0;
  width: 100%;
  height: 100%;

  transform: perspective(1em) rotateX(40deg) scale(1, 0.35);
  filter: blur(1em);
  opacity: 0.7;
}

.neon-button::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 0 2em 0.5em var(--clr-neon);
  opacity: 0;
  background-color: var(--clr-neon);
  z-index: -1;
  transition: opacity 100ms linear;
}

.neon-button:hover,
.neon-button:focus {
  color: var(--clr-bg);
  text-shadow: none;
}

.neon-button:hover::before,
.neon-button:focus::before {
  opacity: 1;
}
.neon-button:hover::after,
.neon-button:focus::after {
  opacity: 1;
}

