/* * {
  margin: 0;
  padding: 0;
  border-sizing: border-box;
  font-family: sans-serif;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #000;
} */
.square {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate 6s linear infinite
}

.square:hover span:nth-child(1) {
  background: #31b77b44;
  border: none;
}

.square span:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate 4s linear infinite
}

.square:hover span:nth-child(2) {
  background: #31b77b44;
  border: none;
}

.square span:nth-child(3) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate2 10s linear infinite
}

.square:hover span:nth-child(3) {
  background: #31b77b44;
  border: none;
}

/* SMALL */
.square-small {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.square-small span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate 6s linear infinite
}

.square-small:hover span:nth-child(1) {
  background: #31b77b44;
  border: none;
}

.square-small span:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate 4s linear infinite
}

.square-small:hover span:nth-child(2) {
  background: #31b77b44;
  border: none;
}

.square-small span:nth-child(3) {
  position: absolute;
  top: 0;
  left: 0;
  height: 95%;
  width: 95%;
  border: 2px solid #31b77b44;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  transition: 0.5s;
  animation: animate2 10s linear infinite
}

.square-small:hover span:nth-child(3) {
  background: #31b77b44;
  border: none;
}

/* SMALL */

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate2 {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.content-animation {
  position: relative;
  /* padding: 40px 60px; */
  color: #fff;
  text-align: center;
  transition: 0.5s;
  z-index: 1000;
}

.content-animation a {
  position: relative;
  display: inline-block;
  margin-top: 10px;
  border: 2px solid #fff;
  padding: 6px 18px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}

.content-animation a:hover {
  background: #fff;
  color: #333;
}

@media (max-width: 1024px) {
  .square {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 414px) {
  .square {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 360px) {
  .square {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 280px) {
  .square {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}