@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600&display=swap");

:root {
    --primary-clr: rgba(228, 228, 229, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", sans-serif;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: url(https://github.com/ecemgo/mini-samples-great-tricks/assets/13468728/8727c9b1-be21-4932-a221-4257b59a74dd);
    background-repeat: no-repeat;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: slidein 120s forwards infinite alternate;
    overflow-x: hidden;
}

@keyframes slidein {
    0%,
    100% {
        background-position: 20% 0%;
        background-size: 3400px;
    }
    50% {
        background-position: 100% 0%;
        background-size: 2400px;
    }
}

@media (max-width: 640px) {
    @keyframes slidein {
        0%, 100% {
            background-position: 20% 0%;
            background-size: 2200px;
        }
        50% {
            background-position: 100% 0%;
            background-size: 1900px;
        }
    }
}

.album-cover {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
}

.swiper {
    width: 100%;
    padding: 40px 0 100px;

    -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
    );
    mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%
    );
}

.swiper-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 10px;
}

.swiper-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    -webkit-box-reflect: below -5px linear-gradient(transparent 80%, rgba(0, 0, 0, 0.5) 90%, transparent 100%);
    pointer-events: none;
    user-select: none;
}

.swiper-slide-active .overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 22, 37, 0.6);
    border-radius: inherit;
    opacity: 0;
    transition: all 0.4s linear;
}

.swiper-slide:hover .overlay {
    opacity: 1;
}

.swiper-slide .overlay ion-icon {
    opacity: 0;
}

.swiper-slide-active:hover .overlay ion-icon {
    font-size: 4rem;
    color: #eb0b0b;
    opacity: 1;
    cursor: pointer;
}

.site-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    z-index: 10;
    user-select: none;
}

.site-title {
    font-size: 3.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 6px;
    text-transform: uppercase;
    user-select: none;
}

.flicker-word {
    animation: lamp-flicker 10s linear infinite;
}

.site-title .hair-word {
    display: inline-block;
}

.site-title .hair-word span {
    color: #f7b7ff; /* Лавандовая сердцевина */
    font-weight: 400;
    display: inline-block;
    /* Плавный переход при наведении курсора и уходе с него */
    transition: all 0.2s ease-in-out;

    /* Стабильный яркий ультрафиолет по умолчанию */
    text-shadow:
            0 0 4px #fff,
            0 0 10px #d433ff,
            0 0 30px #bd00ff,
            0 0 50px #8600c8;
}

.site-title .hair-word span:hover {
    color: rgba(255, 255, 255, 0.2);
    text-shadow: none;
    cursor: default;
    transform: scale(0.98);
}

.site-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--primary-clr);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(189, 0, 255, 0.4);
}

@keyframes lamp-flicker {
    0%, 50% {
        color: #fff;
        text-shadow:
                0 0 4px #fff,
                0 0 10px #9d4edd,
                0 0 30px #7b2cbf,
                0 0 50px #3c096c;
        opacity: 1;
    }

    51%, 53%, 55% {
        color: rgba(255, 255, 255, 0.1);
        text-shadow: 0 0 2px rgba(157, 78, 221, 0.2);
        opacity: 0.2;
    }
    52%, 54% {
        color: #fff;
        text-shadow: 0 0 4px #fff, 0 0 10px #9d4edd, 0 0 30px #7b2cbf;
        opacity: 1;
    }

    56%, 80% {
        color: rgba(255, 255, 255, 0.15);
        text-shadow: none;
        opacity: 0.2;
    }

    81%, 83% {
        color: rgba(255, 255, 255, 0.1);
        text-shadow: none;
        opacity: 0.2;
    }
    82%, 84% {
        color: #fff;
        text-shadow: 0 0 15px #9d4edd;
        opacity: 0.7;
    }

    85%, 100% {
        color: #fff;
        text-shadow:
                0 0 4px #fff,
                0 0 10px #9d4edd,
                0 0 30px #7b2cbf,
                0 0 50px #3c096c;
        opacity: 1;
    }
}

@media (max-width: 640px) {
    body {
        min-height: 100vh;
        justify-content: flex-start;
        gap: 20px;
        padding-top: 100px;
    }

    .site-header {
        margin-bottom: 10px;
    }
}

@media (max-width: 420px) {
    .site-title {
        font-size: 2.7rem;
        letter-spacing: 4px;
    }

    .site-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 320px) {
    .site-title {
        font-size: 1.8rem;
    }
}