* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-size: 0;
}

@font-face {
  font-family: MarckScript;
  src: url(../add/fonts/MarckScript-Regular.ttf);
}
h2 {
  margin-left: 20px;
  color: white;
  font-size: 200px;
}

p {
  margin-top: 40px;
  color: white;
  font-size: 20px;
  font-family: sans-serif;
  text-align: center;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(#000000, #01042d);
  font-family: MarckScript, sans-serif;
  padding: 100px 0;
}

.contaner {
  display: flex;
  flex-flow: row wrap;
  gap: 100px;
  width: 100%;
  justify-content: center;
}

.box {
  cursor: pointer;
  position: relative;
  height: 450px;
  flex: 0 1 350px;
  background-color: #040a20;
}

.contaner > :nth-child(1) :before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(#ff0000, #0037ff);
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.contaner > :nth-child(2) :before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(DarkTurquoise, Fuchsia);
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.contaner > :nth-child(3) :before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(Maroon, red);
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.contaner > :nth-child(4) :before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(blueviolet, lightskyblue);
  transform: skew(2deg, 2deg);
  z-index: -1;
}

.box:hover h2 {
  animation-name: my_animation;
  animation-duration: 3s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
}

@keyframes my_animation {
  0% {
    color: white;
  }
  10% {
    color: aqua;
  }
  20% {
    color: darkred;
  }
  30% {
    color: greenyellow;
  }
  40% {
    color: Fuchsia;
  }
  50% {
    color: pink;
  }
  60% {
    color: PowderBlue;
  }
  70% {
    color: snow;
  }
  80% {
    color: MediumPurple;
  }
  90% {
    color: CornflowerBlue;
  }
  100% {
    color: green;
  }
}

/*# sourceMappingURL=style.css.map */
