@import url('https://fonts.googleapis.com/css2?family=Moirai+One&family=Quicksand:wght@300..700&display=swap');



body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Quicksand", sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
}

h1 {
  font-family: 'Moirai One', cursive;
  color: #333;
  font-size: 3rem;
  margin-bottom: 20px;
}


button {
  padding: 10px 15px;
  cursor: pointer;
  border: none;
  background-color: #333;
  color: white;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #252525;
}

#rainbowBtn {
  position: relative;
  border: 0px solid;
  border-image: linear-gradient(45deg, red, orange, yellow, green, cyan, blue, violet) 1;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
}

#rainbowBtn::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 400%;
  animation: animateBorder 15s linear infinite;
  border-radius: 8px;
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
}

@keyframes animateBorder {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 400% 50%;
  }
}


.container {
  display: flex;
  flex-wrap: wrap;
  width: 500px;
  height: 500px;
  border: 1px solid #e4e4e4;
  margin-top: 50px;
  background-color: white;
}


.square {
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.square:hover {
  background-color: black;
}
