/* 404 page */

/* Базовые стили */
.body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

.body .container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.body .error-content {
  max-width: 600px;
  padding: 2rem;
  position: relative;
}

.body h1 {
  font-size: 8rem;
  margin: 0;
  color: #ff6b6b;
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.7);
}

.body h2 {
  font-size: 2rem;
  margin-top: 0;
}

.body p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.body .url-path {
  color: #ffd166;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
  border-radius: 5px;
}

.body .actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.body .btn {
  padding: 12px 30px;
  background: #4ecdc4;
  color: #1a1a2e;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.body .btn:hover {
  background: #ff6b6b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Анимация космоса */
.body .space-animation {
  margin-top: 3rem;
  position: relative;
  height: 200px;
}

.body .planet {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #ffd166, #ff9e6d);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 40px rgba(255, 209, 102, 0.6);
}

.body .rocket {
  position: absolute;
  font-size: 3rem;
  top: 30%;
  left: 20%;
  animation: float 4s infinite ease-in-out;
}

.body .stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      #fff,
      rgba(0, 0, 0, 0)
    ),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 80px 40px, #fff, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  animation: twinkle 3s infinite;
}

/* Убираем статичную анимацию shooting-star */
/* Добавляем базовые стили для звезд */
.body .shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px 2px #fff;
  opacity: 0;
  z-index: 10;
}

/* Добавим классы для разных направлений */
.body .shooting-star.top-left {
  animation: star-top-left 1s linear forwards;
}
.body .shooting-star.top-right {
  animation: star-top-right 1s linear forwards;
}
.body .shooting-star.bottom-left {
  animation: star-bottom-left 1s linear forwards;
}
.body .shooting-star.bottom-right {
  animation: star-bottom-right 1s linear forwards;
}

/* Анимации для разных направлений */
@keyframes star-top-left {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-200px, -200px) scale(0.2);
  }
}

@keyframes star-top-right {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(200px, -200px) scale(0.2);
  }
}

@keyframes star-bottom-left {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-200px, 200px) scale(0.2);
  }
}

@keyframes star-bottom-right {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(200px, 200px) scale(0.2);
  }
}

/* Добавим еще 4 диагональных направления */
.body .shooting-star.top-left-diag {
  animation: star-top-left-diag 1s linear forwards;
}
.body .shooting-star.top-right-diag {
  animation: star-top-right-diag 1s linear forwards;
}
.body .shooting-star.bottom-left-diag {
  animation: star-bottom-left-diag 1s linear forwards;
}
.body .shooting-star.bottom-right-diag {
  animation: star-bottom-right-diag 1s linear forwards;
}

/* Вертикальные и горизонтальные направления */
.body .shooting-star.left {
  animation: star-left 1s linear forwards;
}
.body .shooting-star.right {
  animation: star-right 1s linear forwards;
}
.body .shooting-star.top {
  animation: star-top 1s linear forwards;
}
.body .shooting-star.bottom {
  animation: star-bottom 1s linear forwards;
}

@keyframes star-left {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-300px, 0) scale(0.2);
  }
}

@keyframes star-right {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(300px, 0) scale(0.2);
  }
}

@keyframes star-top {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, -300px) scale(0.2);
  }
}

@keyframes star-bottom {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, 300px) scale(0.2);
  }
}

/* Анимации для диагональных направлений */
@keyframes star-top-left-diag {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-300px, -100px) scale(0.2);
  }
}

@keyframes star-top-right-diag {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(300px, -100px) scale(0.2);
  }
}

@keyframes star-bottom-left-diag {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-300px, 100px) scale(0.2);
  }
}

@keyframes star-bottom-right-diag {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(300px, 100px) scale(0.2);
  }
}

/* Анимации */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .body h1 {
    font-size: 6rem;
  }
  .body h2 {
    font-size: 1.5rem;
  }
}
