* {
  padding: 0;
  margin: 0;
  text-decoration: none;
}

body {
  width: 100%;
  height: 100vh;
  background: linear-gradient(90deg, #0639fd, #2d54ee, #9205e4, #ab19ff);
  background-size: 400% 400%;
  animation: background_anim 10s ease infinite;
  color: #f3d9ff;
  overflow: hidden;
  font-family: Arial;
  user-select: none;
}

@keyframes background_anim {
  0% {
    background-position: 30% 50%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 70% 50%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 30% 50%;
  }
}

.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
  max-width: 500px;
}

.button-container a {
  flex: 1 1 calc(50% - 20px); /* Задает ширину кнопок в 50% с учетом отступов */
  text-align: center;
  max-width: 200px; /* Ограничивает максимальный размер кнопок */
}

.button-container .btn {
  padding: 1rem 2.5rem;
  font-size: 1.5rem;
  background-color: transparent;
}

.btn {
  text-decoration: none;
  border: 1px solid rgb(146, 148, 248);
  position: relative;
  overflow: hidden;
  color: #f4f4f4;
  padding: 1rem 3rem;
  text-transform: uppercase;
  border-radius: 7px;
  font-size: 2rem;
  background-color: transparent;
  transition: 0.3s ease-in-out;
  animation: btn_effect 5s ease-in-out infinite;
}

@keyframes btn_effect {
  0% {
    ransform: scale(1.0);
    box-shadow: 0 0 10px rgba(146, 148, 248, 0.5);
  }
  25% {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(146, 148, 248, 0.6);
  }
  50% {
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(146, 148, 248, 0.8);
  }
  75% {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(146, 148, 248, 0.6);
  }
  100% {
    transform: scale(1.0);
    box-shadow: 0 0 10px rgba(146, 148, 248, 0.5);
  }
}

.btn:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(146, 148, 248, 0.4), transparent);
  transition: all 750ms;
}

.btn:hover:before {
  left: 100%;
}

a {
  font-size: 2rem;
  padding: 1rem 3rem;
  color: #f4f4f4;
  text-transform: uppercase;
  border-radius: 7px;
}

h1 {
  font-size: 2rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  color: #f4f4f4;
  letter-spacing: 1px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.row {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.text {
  font-weight: bold;
  font-size: 27px;
}

.copyright {
  position: fixed;
  padding: 0.5rem 3rem;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 17px;
  font-family: 'Roboto', sans-serif;
  color: #f4f4f4;
}

canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.anim_text {
  font-weight: bold;
  font-size: 27px;
  color: #f3d9ff;
  display: inline-block;
  white-space: pre-wrap;
  overflow: hidden;
  position: relative;
}

.anim_text::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background-color: #f4f4f4;
  border-radius: 2px;
  position: absolute;
  right: 0;
  top: 0;
  animation: border_anim 1s ease-in-out infinite;
}

@keyframes border_anim {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
