@font-face {
    font-family: 'ChainLinkc';
    src: url('chainlinkc.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: black;
    font-family: 'ChainLinkc', sans-serif;
    overflow: hidden;
}

.logo-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    height: 33.33vh;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

.logo {
    height: 100%;
    width: auto;
}

.text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.main-text {
    font-size: 10vh;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 1s;
    color: white;
}

.info-block {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards 2s;
}

.info-block h2 {
    color: #fff;
    padding: 0 10%;
    font-size: 15px;
}

.app-button {
    position: relative;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    filter: grayscale(100%);
}

.app-button:hover {
    background-color: #ddd;
}

.app-button.login:hover::after {
    content: "В веб-версии не на всех устройствах доступны аудио-каналы и уведомления";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 5px;
}

.mobile-only-note {
    display: none;
    font-size: 0.7em;
    margin-left: 5px;
}

@media (max-width: 768px) {
    .mobile-only-note {
        display: inline;
    }
    .app-button:hover::after {
        display: none;
    }
}

.version-note {
    font-size: 0.6em;
    color: rgba(255,255,255,0.7);
    margin-top: 5px;
}

.info-text {
    font-size: .7em;
    color: white;
    text-align: center;
}

/* Анимация для точек */
@keyframes flash {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Стили для точек */
.dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.5s;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: white;
    border-radius: 50%;
    animation: flash 1.5s infinite;
}

/* Стили для объектов (самолёт/птица/дрон) */
.objects-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 1.5s;
}

.object {
    position: absolute;
    font-size: 20px;
    animation: fly linear infinite;
    filter: grayscale(100%);
    color: white;
}

.elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 2.5s forwards;
    animation-delay: 1s;
}

.element {
    position: absolute;
    font-size: 40px;
    filter: grayscale(100%);
    animation: fly linear infinite;
}

.element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3000px;
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #666 0,
        #666 5px,
        transparent 5px,
        transparent 10px
    );
    transform: translate(-50%, -50%) rotate(var(--angle));
    z-index: -1;
}

.element::after {
    content: attr(data-name);
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translate(20px, -50%);
    background-color: rgba(128, 128, 128, 0.8);
    color: white;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 1;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

@keyframes fly {
    to {
        transform: translate(var(--x-end), var(--y-end));
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}