.rainbow {
  position: relative;
  z-index: 0;
  border-radius: 10px;
  overflow: hidden;
  padding: 8px;
}
.rainbow::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-color: #399953;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(#399953, #399953), linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33), linear-gradient(#377af5, #377af5);
  -webkit-animation: rainbow_rotate 4s linear infinite;
          animation: rainbow_rotate 4s linear infinite;
}
.rainbow::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background: white;
  border-radius: 5px;
  -webkit-animation: rainbow_opacityChange 3s infinite alternate;
          animation: rainbow_opacityChange 3s infinite alternate;
}
@-webkit-keyframes rainbow_rotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes rainbow_rotate {
  100% {
    transform: rotate(1turn);
  }
}
@-webkit-keyframes rainbow_opacityChange {
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

@keyframes rainbow_opacityChange {
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}
.rainbow_blog {
  position: relative;
  z-index: 0;
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  padding: 6px;
}
.rainbow_blog::before {
  content: "";
  position: absolute;
  z-index: -2;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background-color: #399953;
  background-repeat: no-repeat;
  background-size: 50% 50%, 50% 50%;
  background-position: 0 0, 100% 0, 100% 100%, 0 100%;
  background-image: linear-gradient(#399953, #399953), linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33), linear-gradient(#377af5, #377af5);
  -webkit-animation: rainbow_blog_rotate 4s linear infinite;
          animation: rainbow_blog_rotate 4s linear infinite;
}
.rainbow_blog::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 6px;
  top: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  background: white;
  border-radius: var(--bs-border-radius);
}
@-webkit-keyframes rainbow_blog_rotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes rainbow_blog_rotate {
  100% {
    transform: rotate(1turn);
  }
}