* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    width: 100%;
}

.text {
    margin: 1.5rem 0;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: bold;
    background-image: linear-gradient(90deg,
            #F08E03 0%,
            #D74C02 15%,
            #fa233b 30%,
            #ff5f52 45%,
            #c048db 60%,
            #fa233b 75%,
            #D74C02 90%,
            #F08E03 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    padding: 0 1rem;
    animation: gradient-flow 10s linear infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

img {
    max-width: 80%;
    width: min(25rem, 80vw);
    height: auto;
    border-radius: 10px;
    aspect-ratio: attr(width) / attr(height);
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 20rem;
}

.download-button,
.download-button-windows {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-size: cover;
    background-position: center;
    color: white;
    border: none;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 100px;
}

.download-button {
    background-image: url('webp/background.webp');
}

.download-button-windows {
    background-image: url('webp/nbackground.webp');
}

.download-button:hover,
.download-button-windows:hover {
    opacity: 0.8;
}

footer {
    background-color: #111;
    color: #bbb;
    text-align: center;
    padding: 1.5rem 1rem;
    width: 100%;
}

.footer-container {
    max-width: 800px;
    margin: auto;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.mm {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;

    /* Базовые настройки для текста с градиентным фоном */
    background-size: 400% 100%;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Градиентный фон с несколькими цветами, включая новые наборы */
    background-image: linear-gradient(90deg,
            /* Первый набор из исходного примера */
            #fa233b 0%,
            #ff5f52 5%,
            #c048db 10%,

            /* Второй набор из исходного примера */
            #5865F2 20%,
            #7289DA 25%,

            /* Новый набор 1 */
            #C63800 35%,
            #DE5B02 40%,
            #7B0000 45%,

            /* Новый набор 2 */
            #2EB2FF 55%,
            #1C9FFC 60%,
            #7AF9F4 65%,

            /* Повторяем первый набор для плавного цикла */
            #fa233b 75%,
            #ff5f52 80%,
            #c048db 85%,
            #fa233b 100%);

    /* Анимация переливания */
    animation: gradientFlow 15s linear infinite;
}

/* При наведении меняем направление анимации */
.mm:hover {
    animation-play-state: paused;
}

.applemusic-link {
    color: #fa233b;
    text-decoration: none;
    transition: color 0.3s;
}

.applemusic-link:hover {
    color: #c048db;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.windows {
    background: url('webp/nbackground.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.windows:hover {
    background: url('webp/background.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.macos {
    background: url('webp/background.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.macos:hover {
    background: url('webp/nbackground.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rpc {
    background: url('webp/background.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.launcher {
    background: url('webp/nbackground.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.applemusic {
    background: linear-gradient(90deg, #fa233b, #ff5f52, #c048db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discord {
    background: linear-gradient(90deg, #5865F2, #7289DA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
}

.social-links img {
    width: clamp(3rem, 15vw, 5rem);
    height: auto;
    object-fit: contain;
    filter: brightness(0.8);
    transition: 0.3s;
    aspect-ratio: 1 / 1;
}

.social-links img:hover {
    filter: brightness(1);
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 0.8rem;
    }

    .button-container {
        max-width: 90%;
    }
}

@media (min-height: 800px) {
    .content {
        justify-content: center;
    }
}

sup {
    font-size: 0.5em;
    vertical-align: super;
    line-height: 0;
}

.screenshots-section {
    margin-top: 3rem;
    width: 100%;
    max-width: 1000px;
    min-height: 400px; /* Резервируем место */
}

.screenshots-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    background: url('webp/background.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    height: 2.5rem; /* Фиксированная высота для заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshots-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.screenshot {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    text-align: center;
    min-height: 200px; /* Минимальная высота */
    display: flex;
    flex-direction: column;
}

.screenshot img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

/* Новые классы для стилизации обводки скриншотов */
.mac-screenshot {
    border: 3px solid transparent;
    border-radius: 12px;
    background-clip: padding-box;
    position: relative;
    padding: 3px;
}

.mac-screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -3px;
    border-radius: 12px;
    background-image: url('webp/background.webp');
    background-size: cover;
    background-position: center;
}

.win-screenshot {
    border: 3px solid transparent;
    border-radius: 12px;
    background-clip: padding-box;
    position: relative;
    padding: 3px;
}

.win-screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    margin: -3px;
    border-radius: 12px;
    background-image: url('webp/nbackground.webp');
    background-size: cover;
    background-position: center;
}

.screenshot-caption,
.screenshot-caption-win {
    margin-top: 0.8rem;
    font-size: 1rem;
    color: #ddd;
}

/* Стили для описания */
.description-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    padding: 0 1.5rem;
    min-height: 300px; /* Резервируем место */
}

.description-title {
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: bold;
    text-align: center;
    background: url('webp/background.webp') no-repeat center;
    background-size: cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    height: 2.5rem; /* Фиксированная высота для заголовка */
    display: flex;
    align-items: center;
    justify-content: center;
}

.description-text {
    text-align: left;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 1.5rem;
}

.features-list {
    text-align: left;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .screenshots-container {
        flex-direction: column;
        align-items: center;
    }
}