:root {
    --posts-gap: 30px;
    --media-width: 800px;
    --media-height: 459px;
    /*Настройки звезды с орбитой*/
    --star-size: 240px;      /* Размер звезды */
    --orbit-radius: 150px;   /* Радиус орбиты текста */
    --text-size: 15px;       /* Размер шрифта */
    --rotation-speed: 40s;   /* Скорость вращения */
}

@font-face {
    font-family: "Pips";
    src: url("assets/fonts/PIPS.ttf") format("truetype");
}

html {
    width: 100%;
    height: 100%;
    font-family: "Pips", sans-serif;
    user-select: none;
    background-color: black;
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

span {
    color: white;
    font-size: 25px;
}

.max-width {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 50px auto 0;
}

/*Стили баннера*/
.banner {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999;
    background: #0000008c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-container {
    max-width: 1000px;
    height: fit-content;
    padding: 40px;
    margin: 40px;
    background: linear-gradient(0deg,
    #5baef5 0%,
    #3d7ebc 20%,
    #1851a5 50%,
    #1F3571 75%,
    #1D2152 100%);
    border-radius: 20px;
    box-shadow: 0 0 10px 5px #ffffff5e;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 10px;
    border: none;
    background: none;
    color: white;
    font-size: 56px;
    padding: 0;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
}

.close-button:hover {
    color: #e41749;
    background: none;
    border: none;
    font-size: 66px;
}

.banner-vk-link {
    text-decoration: underline;
    color: white;
    font-size: 25px;
}

/*Стили для заголовков*/
.header-title {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
}

h1 {
    color: white;
    font-size: 50px;
    text-align: center;
    margin: 0;
}

.h1-small {
    color: white;
    font-size: 25px;
    text-align: center;
}

h2 {
    color: white;
    font-size: 30px;
    text-align: center;
    margin: 0;
}

.text-decoration {
    text-decoration: underline;
}

/* Анимированные тени с разными цветами для заголовков */
.dynamic-shadow-title {
    animation: colorFlowShadow 4s linear infinite;
    text-shadow:
            0 5px 15px rgba(0, 0, 0, 0.1),
            0 0 20px currentColor;
}

@keyframes colorFlowShadow {
    0% {
        text-shadow:
                0 5px 15px rgba(255, 255, 255, 0.3),
                0 0 20px rgba(255, 255, 255, 0.7);
    }
    25% {
        text-shadow:
                0 5px 15px rgba(132, 172, 250, 0.3),
                0 0 20px rgba(132, 172, 250, 0.7);
    }
    50% {
        text-shadow:
                0 5px 15px rgba(100, 100, 255, 0.3),
                0 0 20px rgba(100, 100, 255, 0.7);
    }
    75% {
        text-shadow:
                0 5px 15px rgba(225, 124, 254, 0.3),
                0 0 20px rgba(225, 124, 254, 0.7);
    }
    100% {
        text-shadow:
                0 5px 15px rgba(98, 245, 219, 0.3),
                0 0 20px rgba(98, 245, 219, 0.7);
    }
}

/*Конец стилей для заголовков*/

/*Анимированный фон со звездочками*/
/* Фоновый слой с градиентом и звездочками */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Отправляем на задний план */
    pointer-events: none;

    /* Градиентный фон: слева темно-синий, переходящий в голубой */
    background: linear-gradient(0deg,
    #5baef5 0%,
    #3d7ebc 20%,
    #1851a5 50%,
    #1F3571 75%,
    #1D2152 100%);
}

/* Контейнер для звездочек */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Общие стили для звездочек */
.star {
    position: absolute;
    background-color: transparent;
    transition: all 0.5s ease;
    transform-origin: center;
}

/* Форма звезды через clip-path */
.star::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    clip-path: polygon(
            50% 0%,
            61% 35%,
            98% 35%,
            68% 57%,
            79% 91%,
            50% 70%,
            21% 91%,
            32% 57%,
            2% 35%,
            39% 35%
    );
    filter: drop-shadow(0 0 3px currentColor);
}

/* Размеры звездочек */
.star.small {
    width: 15px;
    height: 15px;
}

.star.medium {
    width: 20px;
    height: 20px;
}

.star.large {
    width: 25px;
    height: 25px;
}

/* Цвета звездочек */
.star.pink {
    color: #e17cfe;
}

.star.blue {
    color: #84acfa;
}

.star.mint {
    color: #62f5db;
}

.star.white {
    color: #ffffff;
}
/*Конец анимированного фона со звездочками*/

/*Блок спонсоров*/
.sponsors-icon-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    padding-top: 30px;
}

.sponsors-icon-img {
    height: 60px;
    transition: 1s;
}

.sponsors-icon-img:hover {
    height: 150px;
    cursor: pointer;
}
/*Конец блока спонсоров*/

/*Анимированная звездочка с орбитой из текста*/
.scene {
    position: relative;
    width: calc(var(--orbit-radius) * 2.5);
    height: calc(var(--orbit-radius) * 2.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Звезда в центре */
.orbit-star {
    position: absolute;
    width: var(--star-size);
    height: var(--star-size);
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: running-glow 3s ease-in-out infinite;
}

@keyframes running-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))
        drop-shadow(-5px -5px 10px rgba(255, 255, 255, 0.6));
    }
    25% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))
        drop-shadow(5px -5px 10px rgba(132, 172, 250, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))
        drop-shadow(5px 5px 10px rgba(100, 100, 255, 0.6));
    }
    75% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))
        drop-shadow(-5px 5px 10px rgba(225, 124, 254, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))
        drop-shadow(-5px -5px 10px rgba(98, 245, 219, 0.6));
    }
}

.orbit-star img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Вращающаяся орбита с текстом */
.text-orbit {
    position: absolute;
    width: calc(var(--orbit-radius) * 2);
    height: calc(var(--orbit-radius) * 2);
    border-radius: 50%;
    animation: rotate-orbit var(--rotation-speed) linear infinite;
}

/* Текст, распределенный по окружности */
.text-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: 0 var(--orbit-radius);
    font-size: var(--text-size);
    font-weight: bold;
    color: white;
    text-shadow: 0 0 8px rgba(225, 124, 254, 0.8);
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    height: var(--text-size);
    line-height: var(--text-size);
}

/* Анимация вращения */
@keyframes rotate-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/*Конец анимированный звездочки с орбитой из текста*/

/*Новый анимированный логотип*/
/*.logo {*/
/*    width: 350px;*/
/*    padding-top: 100px;*/
/*    padding-bottom: 30px;*/
/*    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));*/
/*    animation: running-glow 3s ease-in-out infinite;*/
/*}*/

/*@keyframes running-glow {*/
/*    0% {*/
/*        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))*/
/*        drop-shadow(-5px -5px 10px rgba(255, 255, 255, 0.6));*/
/*    }*/
/*    25% {*/
/*        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))*/
/*        drop-shadow(5px -5px 10px rgba(132, 172, 250, 0.6));*/
/*    }*/
/*    50% {*/
/*        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))*/
/*        drop-shadow(5px 5px 10px rgba(100, 100, 255, 0.6));*/
/*    }*/
/*    75% {*/
/*        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))*/
/*        drop-shadow(-5px 5px 10px rgba(225, 124, 254, 0.6));*/
/*    }*/
/*    100% {*/
/*        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8))*/
/*        drop-shadow(-5px -5px 10px rgba(98, 245, 219, 0.6));*/
/*    }*/
/*}*/
/*Конец стилей нового анимированного логотипа*/

/*Стили текстовых блоков*/
.description-festival {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    background-color: #0000001c;
    border-radius: 20px;
    padding: 20px;
}
/*Конец стилей текстовых блоков*/

/*Блок местоположения фестиваля*/
.location {
    display: flex;
    flex-direction: column;
    gap: var(--posts-gap);
    align-items: center;
    width: 100%;
}

.location-span {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location iframe {
    border-radius: 20px;
}
/*Конец блока местоположения фестиваля*/

/*Блок жюри*/
#description-container {
    scroll-margin-block-start: 40vh;
    opacity: 0;
    transition: 0.5s;
}

.jury-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--posts-gap);
    text-align: center;
}

.main-jury-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 200px;
    row-gap: var(--posts-gap);
}

.main-jury {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--posts-gap);
    text-align: center;
    text-decoration: none;
}

.jury-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 80px;
    row-gap: var(--posts-gap);
}

.jury {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.jury-img {
    width: 200px;
    border-radius: 50%;
    transition: 0.5s;
    margin-bottom: 10px;
}

.chairman-jury-img {
    width: 250px;
    border-radius: 50%;
    transition: 0.5s;
    margin-bottom: 10px;
}

.jury-active .jury-img {
    box-shadow: 0 0 20px white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: running-glow 3s ease-in-out infinite;
}

.jury-active .chairman-jury-img {
    box-shadow: 0 0 15px white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
    animation: running-glow 3s ease-in-out infinite;
}

.jury-span {
    font-size: 20px;
}

.chairman-jury-span {
    font-size: 20px;
}
/*Конец блока жюри*/

/*Блок twitch трансляции фестиваля*/
.live-broadcast {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--posts-gap);
    text-align: center;
}

.twitch-stream iframe {
    width: var(--media-width);
    height: var(--media-height);
    border-radius: 20px;
}
/*Конец блока twitch трансляции фестиваля*/

/*Блок голосования*/
.vote-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--posts-gap);
    text-align: center;
}

.vote {
    width: 350px;
    height: 350px;
}

.vote-img {
    width: 100%;
}

.vote-link {
    font-size: 20px;
    text-decoration: underline;
}

.vote-link:hover {
    text-decoration: none;
}
/*Конец блока голосования*/

/*Блок таблиц с критериями участия*/
.table-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--posts-gap);
}

.info-table {
    color: white;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
}

.info-table-line:hover {
    background-color: #0000001c;
}

.info-table-cell-angle {
    border: 1px solid white;
    transform: rotate(40deg);
    line-height: 1.5;

    span {
        text-decoration: overline;
    }
}

.info-table-cell-header {
    padding: 20px;
    font-size: 25px;
    border: 1px solid white;
    text-align: center;
}

.info-table-cell {
    padding: 20px;
    font-size: 25px;
    border: 1px solid white;
    text-align: left;
}
/*Конец блока таблиц*/

/*Блок архивных фото и видео с фестиваля 2025*/
.crystal-stars-2025 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--posts-gap);
}

/*Стили слайдера фото*/
.viewer {
    position: relative;
    max-width: var(--media-width);
    width: 100%;
}

.photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#current-photo {
    width: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(0 0 0 / 0%);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 60px;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    border-radius: 20px;
}

#prev-btn {
    left: 10px;
    justify-content: left;
}

#next-btn {
    right: 10px;
    justify-content: right;
}

.counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/*Стили для iframe ВК видео*/
.vk-video {
    width: var(--media-width);
    height: var(--media-height);
    border-radius: 20px;
}
/*Конец архивных фото и видео с фестиваля 2025*/

/*Блок инструкции по регистрации участников*/
.documents {
    display: flex;
    /*display: none;*/
    flex-direction: column;
    align-items: center;
    gap: var(--posts-gap);
    text-align: center;
}

.registration-mail {
    color: white;
}

.registration-mail:hover {
    text-decoration: none;
}

.documents-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding-top: 50px;
}

.doc-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 150px;
    text-decoration: none;

}

.doc-link:hover {
    .doc-span {
        font-size: 23px;
    }
}

.doc-img {
    width: 100px;
}

.doc-span {
    font-size: 20px;
    transition: 0.5s;
}
/*Конец блока инструкции для регистрации участников*/

/*Стили картинки хрустальных звездочек*/
.main-icon {
    width: 500px;
    margin-bottom: 50PX;
}
/*Конец стилей картинки хрустальных звездочек*/

/*Стили футера*/
footer {
    width: 100%;
    background-color: rgb(0 0 0 / 24%);
    z-index: 999;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
}

.footer-span {
    font-size: 13px;
    padding: 0;
    color: white;
}
/*Конец стилей футера*/

/*Стили блока прошедших в полуфинал*/
.winners {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--posts-gap);
}

.winners-photo {
    width: var(--media-width);
    border-radius: 20px;
}

.winners-description {
    width: var(--media-width);
}
/*Конец стилей блока прошедших в полуфинал*/

/*Адаптация под мобильные устройства*/
@media (max-width: 1000px) {
    :root {
        --posts-gap: 50px;
        --media-width: 900px;
        --media-height: 507px;

        --star-size: 450px;
        --orbit-radius: 300px;
        --text-size: 30px;
    }

    span {
        font-size: 40px;
    }

    .max-width {
        padding: 30px;
        gap: 150px;
    }

    /*Баннер*/
    .close-button {
        font-size: 100px;
        height: 110px;
        width: 110px;
    }

    .close-button:hover {
        font-size: 110px;
    }

    .banner-vk-link {
        font-size: 40px;
    }

    /*Блок спонсоров мероприятия*/
    .sponsors-icon-img {
        height: 140px;
    }

    .sponsors-icon-img:hover {
        height: 140px;
    }

    /*Анимированный логотип звездочки с орбитой*/
    .scene {
        padding-top: 50px;
    }

    /*Новый анимированный логотип*/
    /*.logo {*/
    /*    width: 700px;*/
    /*    padding-top: 200px;*/
    /*}*/

    /*Стили заголовков*/
    h1 {
        font-size: 80px;
    }

    .h1-small {
        font-size: 50px;
    }

    h2 {
        font-size: 50px;
    }

    /*Стили блока местоположения фестиваля*/
    .location iframe {
        height: 500px;
    }

    /*Блок жюри*/
    .jury-list {
        flex-wrap: wrap;
    }

    .main-jury-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 80px;
        row-gap: var(--posts-gap);
    }

    .jury-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 80px;
        row-gap: var(--posts-gap);
    }

    .jury-img {
        width: 350px;
    }

    .jury-span {
        font-size: 30px;
    }

    .chairman-jury-span {
        font-size: 35px;
    }

    .chairman-jury-img {
        width: 350px;
    }

    /*Блок twitch трансляции фестиваля*/
    .twitch-stream iframe {
        width: var(--media-width);
        height: var(--media-height);
    }

    /*Таблица критерий для участия*/
    .info-table-cell-header {
        font-size: 40px;
    }

    .info-table-cell {
        font-size: 36px;
    }

    /*Блок голосования*/
    .vote {
        width: 600px;
        height: 600px;
    }

    .vote-link {
        font-size: 30px;
    }

    /*Блок архивных фото и видео с фестиваля 2025*/
    .viewer {
        max-width: var(--media-width);
    }

    .vk-video {
        width: var(--media-width);
        height: var(--media-height);
    }

    /*Блок информации по регистрации на мероприятии*/
    .doc-link {
        max-width: none;
    }

    .doc-img {
        width: 150px;
    }

    .doc-span {
        font-size: 30px;
    }

    /*Стили картинки Хрустальных звёздочек*/
    .main-icon {
        width: 70%;
        padding-top: 50px;
    }

    /*Стили футера*/
    footer {
        background-color: rgb(0 0 0 / 68%);
    }

    .footer-span {
        font-size: 25px;
    }

    /*Стили блока прошедших в полуфинал*/
    .winners-description {
        width: auto;
    }
    /*Конец стилей блока прошедших в полуфинал*/
}
