@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500&family=Raleway&display=swap");
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
}
body {
  background-color: black;
  color: antiquewhite;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15vh 0;
}
.card {
  width: 300px;
  padding: 10px 20px;
  height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
/*The Neon div*/
.card::before {
  content: " ";
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  background: linear-gradient(315deg, #4dff03, #00d0ff);
  border-radius: 8px;
  transform: skewX(15deg);
  transition: 0.5s;
}
/*Making the Neon div glow*/
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50;
  width: 150px;
  height: 100%;
  background: linear-gradient(315deg, #4dff03, #00d0ff);
  border-radius: 8px;
  transform: skewX(15deg);
  filter: blur(30px);
  z-index: -1;
  transition: 0.5s;
}
/*On Hover effects!*/
.card:hover .content {
  height: 370px;
  padding-top: 50px;
}
.card:hover::before,
.card:hover::after {
  transform: skewX(0deg);
  width: 200px;
  height: 120%;
  top: -10%;
}

/*Card content styling*/
.content {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 10px 20px;
  height: 320px;
  transition: 0.5s;
}
h1 {
  margin-bottom: 25px;
  font-family: "Playfair Display", serif;
}
p {
  margin-bottom: 15px;
  font-family: "Raleway", sans-serif;
}

/*Extra glass divs to animate*/
.glassUp {
  width: 50px;
  height: 50px;
  backdrop-filter: blur(10px);
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: 0.5s;
  animation: sway 3s ease-in-out infinite;
}
.glassDown {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(
    30% 0%,
    70% 0%,
    100% 30%,
    100% 70%,
    70% 100%,
    30% 100%,
    0% 70%,
    0% 30%
  );
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: 0.5s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  opacity: 0;
  z-index: 5;
  animation: sway 3s ease-in-out 1s infinite;
}
.card:hover .glassUp {
  top: -70px;
  left: 40px;
  width: 100px;
  height: 100px;
  opacity: 1;
}
.card:hover .glassDown {
  bottom: -70px;
  right: 40px;
  width: 100px;
  height: 100px;
  opacity: 1;
}

/*Changing the neon colours*/
.colorPicker {
  display: flex;
  width: 200px;
  height: 50px;
  margin: 0 auto;
  justify-content: space-around;
  opacity: 0;
  transition: 0.5s;
}
.colorChoice {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid white;
}
#color_1 {
  background: linear-gradient(315deg, #4dff03, #00d0ff);
}
#color_2 {
  background: linear-gradient(315deg, #ffbc00, #ff0058);
}
#color_3 {
  background: linear-gradient(315deg, #03a9f4, #ff0058);
}
.card:hover .colorPicker {
  opacity: 1;
}
.colorChoice:hover {
  border: 1px solid rgb(32, 32, 32);
  cursor: pointer;
}
/*Animation*/
@keyframes sway {
  0%,
  100% {
    transform: translate(10px, 10px);
  }

  50% {
    transform: translate(-10px, -5px);
  }
}
