img {
  border-radius: 50%;
}

.profile-picture {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5%;
  height: auto;
  max-width: 100px;
}

.profile-name {
  text-align: center;
  padding: 10px;
  font-family: "Dosis", sans-serif;
  color: white;
  font-size: 22px;
  letter-spacing: 2px;
}

.profile-about {
  text-align: center;
  padding: 2px;
  font-family: "Dosis", sans-serif;
  color: white;
  font-size: 15px;
  letter-spacing: 2px;
}

.links {
  background-color: rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  border: 0.5px solid rgb(255, 255, 255);
  border-width: 1px;
  width: 490px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 40px;
  font-family: "Dosis", sans-serif;
  position: relative;
  font-size: 20px;
  letter-spacing: 3px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  transition: color 1s;
}
.links:hover {
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  text-decoration: none;
}

.ad {
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  width: 490px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 40px;
  font-family: "Dosis", sans-serif;
  position: relative;
  font-size: 25px;
  letter-spacing: 3px;
  text-decoration: none;
  color: rgb(255, 255, 255);
  background: transparent;
  transition: color 0.5s, background 0.5s;
  background-color: rgba(0, 0, 0, 0.3);
}

.ad:hover {
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  text-decoration: none;
  animation: none;
}

/* Градиентная обводка вместо белой */
.ad::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px; /* Толщина градиентной обводки */
  border-radius: 40px; /* Совпадает с кнопкой */
  background: linear-gradient(
    45deg,
    #ff0000,
    #ff7300,
    #fffb00,
    #48ff00,
    #00ffd5,
    #002bff,
    #7a00ff,
    #ff00c8,
    #ff0000
  );
  background-size: 400%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glowing-border 12s linear infinite;
  z-index: 0;
}

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


.links-in {
  padding: 5px;
  border: 0.5px solid rgba(255, 255, 255, 0);
  border-width: 1px;
  width: 30px;
  display: block;
  border-radius: 40px;
  left: 20px;
  position: absolute;
  font-size: 20px;
}

.hover {
  text-decoration: none;
  color: rgb(255, 255, 255);
  transition: color 1s;
}

.hover:hover {
  color: rgb(0, 0, 0);
  background: rgb(255, 255, 255);
  text-decoration: none;
}

.bottom-text {
  text-decoration: none;
  text-align: center;
  margin-top: 30px;
  font-size: 20px;
  color: rgb(255, 255, 255);
  font-family: "Handlee", cursive;
}

.link-hide {
  text-decoration: none;
}
.link-hide:hover {
  text-decoration: none;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#desktop-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#desktop-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
}

.black-bg {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  background-image: 
    linear-gradient(0deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  animation: moveGrid 15s linear infinite;
  z-index: -1;
}

@media (max-width: 548px) {
  .video-container {
    display: none;
  }

  .black-bg {
    display: block;
  }

  .links {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    border: 0.5px solid rgb(255, 255, 255);
    border-width: 1px;
    width: 290px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 40px;
    font-family: "Dosis", sans-serif;
    font-size: 20px;
    position: relative;
  }

  .ad {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-width: 1px;
    width: 290px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 40px;
    font-family: "Dosis", sans-serif;
    position: relative;
  }

  .profile-picture {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10%;
    height: auto;
    max-width: 100px;
  }
  .profile-name {
    text-align: center;
    padding: 10px;
    font-family: "Dosis", sans-serif;
    color: white;
    font-size: 30px;
    letter-spacing: 1px;
  }

  .profile-about {
    text-align: center;
    padding: 2px 50px;
    font-family: "Dosis", sans-serif;
    color: white;
    font-size: 20px;
    letter-spacing: 1px;
  }
}

.links-footer {
  padding: 4px;
  border: 0.5px solid rgb(255, 255, 255);
  border-width: 1px;
  width: 40px;
  display: inline-block;
  border-radius: 30px;
  font-size: 20px;
  text-align: center;
  margin: 10px;
  margin-top: 10px;
}

@keyframes moveGrid {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 150px 150px;
  }
}

@keyframes pulse-scale {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(2);
    opacity: 2;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fast-telegram {
  /* animation: pulse-scale 1.5s infinite; */
  text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff;
}
