/* Общие стили для всех страниц */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #000000 0%, #2d1b69 50%, #8b0000 100%);
    min-height: 100vh;
    color: white;
    position: relative;
}

/* Анимированные пули на фоне */
.bullet {
    position: fixed;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}

.bullet:nth-child(1) {
    top: 20%;
    left: -100px;
    animation: fly1 8s linear infinite;
}

.bullet:nth-child(2) {
    top: 60%;
    left: -100px;
    animation: fly2 12s linear infinite;
    animation-delay: 2s;
}

.bullet:nth-child(3) {
    top: 80%;
    left: -100px;
    animation: fly3 10s linear infinite;
    animation-delay: 4s;
}

.bullet:nth-child(4) {
    top: 40%;
    left: -100px;
    animation: fly4 15s linear infinite;
    animation-delay: 6s;
}

.bullet:nth-child(5) {
    top: 10%;
    left: -100px;
    animation: fly5 9s linear infinite;
    animation-delay: 1s;
}

@keyframes fly1 {
    0% {
        transform: translateX(-100px) rotate(90deg);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) rotate(90deg);
    }
}

@keyframes fly2 {
    0% {
        transform: translateX(-100px) rotate(90deg) scale(0.8);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) rotate(90deg) scale(0.8);
    }
}

@keyframes fly3 {
    0% {
        transform: translateX(-100px) rotate(90deg) scale(1.2);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) rotate(90deg) scale(1.2);
    }
}

@keyframes fly4 {
    0% {
        transform: translateX(-100px) rotate(90deg) scale(0.6);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) rotate(90deg) scale(0.6);
    }
}

@keyframes fly5 {
    0% {
        transform: translateX(-100px) rotate(90deg) scale(0.9);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) rotate(90deg) scale(0.9);
    }
}

/* Заголовок */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Контейнер */
.container {
    margin: 0 auto;
    max-width: 800px;
}

/* Состояния загрузки и ошибок */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
}

.error {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    color: #ffcccc;
    text-align: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }
}