/*Border animation*/

.card{
  margin: 20px auto;
  padding: 3px;
  width: 70%;
  /*background: #1c1f2b;*/
  text-align: center;
  border-radius: 20px;
  position: relative;
}

@property --angle{
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card::after, .card::before{
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), blue, yellow, Yellow, red, red, green, green, blue/*#ff4545, #00ff99, #006aff, #ff0095, #ff4545*/);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 2px;
  border-radius: 24px;
  animation: 5s spin linear infinite;
}

.card::before{
  filter: blur(1.5rem);
  opacity: 0.4;
}

@keyframes spin{
  from{
    --angle: 0deg;
  }
  to{
    --angle: -360deg;
  }
}