@font-face {
    /* Это имя ты будешь использовать в CSS */
    font-family: 'Minecrafter'; 
    /* Укажи пути к файлам в папке fonts */
    src: url('/fonts/minecrafter.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    /* Это имя ты будешь использовать в CSS */
    font-family: 'Pixelpurl'; 
    /* Укажи пути к файлам в папке fonts */
    src: url('/fonts/pixelpurl.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #43b581; /* Зеленый (Online) */
    --accent: #7289da;  /* Discord blue */
    --bg-dark: #202225;
    --glass: rgba(32, 34, 37, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(45deg, #1a1c1e, #2c2f33, #23272a);
    background-size: 400% 400%;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* УДАЛИТЕ ИЛИ ЗАКОММЕНТИРУЙТЕ overflow: hidden; */
    /* overflow: hidden; <--- УДАЛИТЬ или закомментировать! */
    animation: bgAnimation 15s ease infinite;
    /* Добавьте небольшой вертикальный отступ на всякий случай */
    padding: 20px 0;
}

@keyframes bgAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Частицы */
.particles {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
}
.square {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    animation: float 10s infinite linear;
}
@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Карточка */
.container {
    background: var(--glass);
    padding-left: 3rem;
    padding-right: 3rem;
    padding-bottom: 2rem;
    padding-top: 1rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s forwards;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

h1 {
    font-family: 'Minecrafter', 'Press Start 2P', cursive;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.5;
}

p.desc {
    color: #b9bbbe;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Статус */
.status-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}
.status-box:hover {
    background: rgba(0, 0, 0, 0.5);
}

.ip-address {
    font-family: "Pixelpurl", 'Press Start 2P', cursive;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}
.status-box:hover .ip-address { color: var(--primary); }

.hint-text {
    font-size: 0.7rem; 
    color: #777;
}

.online-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #f04747;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 5px #f04747;
}
.online-indicator.active {
    background-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Кнопка */
.download-buttons {
    display: flex;
    flex-direction: column; /* Размещаем элементы вертикально */
    gap: 16px; /* Отступ 12px между кнопками */
    margin-bottom: 2rem; /* Добавляем отступ под кнопками, если нужно */
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #43b581, #2d7d58);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
    border: none;
    cursor: pointer;
    /* Убедимся, что кнопка занимает всю доступную ширину */
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Добавление отступа справа для всех иконок внутри кнопок */
.btn i {
    margin-right: 8px;
}

/* Дополнительные цветовые вариации для разнообразия (Опционально) */
.btn-lite {
    background: linear-gradient(90deg, #4CAF50, #2E7D32); /* Светло-зеленый */
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-standard {
    background: linear-gradient(90deg, #2196F3, #1565C0); /* Синий */
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-full {
    background: linear-gradient(90deg, #FF9800, #EF6C00); /* Оранжевый/Золотой */
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-lite:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(67, 181, 129, 0.5);
}

.btn-standard:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 151, 241, 0.3);
}

.btn-full:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(240, 148, 11, 0.3);
}

/* Toast уведомление */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    bottom: 30px;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

/* =========================================
   СТИЛИ МОДАЛЬНОГО ОКНА (ВСПЛЫВАЮЩЕЙ ТАБЛИЦЫ)
   ========================================= */

/* Стили для новой кнопки */
.btn-secondary {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px; /* Отступ от кнопок скачивания */
    background: linear-gradient(90deg, #7c858e, #5a626a); /* Серый цвет */
    box-shadow: 0 4px 15px rgba(124, 133, 142, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(124, 133, 142, 0.5);
}

/* Контейнер модального окна */
.modal-container {
    display: none; /* По умолчанию скрыто */
    position: fixed;
    z-index: 100; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Темный полупрозрачный фон */
    backdrop-filter: blur(5px);
    padding-top: 50px;
}

/* Содержимое модального окна */
.modal-content {
    background-color: var(--bg-dark);
    margin: 5% auto; /* Центрируем по вертикали */
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 800px; /* Ограничиваем ширину */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Кнопка закрытия */
.close-btn {
    color: #aaa;
    float: right;
    font-size: 38px;
    font-weight: bold;
    transition: color 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

/* Заголовок модального окна */
.modal-content h2 {
    font-family: 'Press Start 2P', cursive;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Стили для таблицы */
.mods-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
    table-layout: fixed; /* Фиксированная ширина столбцов */
}

.mods-table th {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid var(--primary);
}

.mods-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
}

.mods-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.mods-table a {
    color: var(--accent); /* Цвет ссылки */
    text-decoration: none;
    transition: color 0.3s;
}

.mods-table a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Обертка для прокрутки таблицы на маленьких экранах */
.mods-table-wrapper {
    overflow-x: auto;
}

/* =========================================
   СТИЛИ МЕТОК В ТАБЛИЦЕ
   ========================================= */
.badge {
    display: inline-block;
    padding: 3px 6px;
    margin-right: 5px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.3);
}

.badge-lite {
    background-color: #4CAF50; /* Зеленый */
}

.badge-standard {
    background-color: #2196F3; /* Синий */
}

.badge-full {
    background-color: #FF9800; /* Оранжевый */
}

/* =========================================
   АДАПТАЦИЯ К МОБИЛЬНЫМ УСТРОЙСТВАМ (max-width: 600px)
   ========================================= */
@media (max-width: 600px) {
    content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 2rem;
        padding-top: 1rem;
    }

    /* Уменьшаем шрифты для лучшей читаемости */
    h1 {
        font-size: 1.2rem;
    }

    p.desc {
        font-size: 0.9rem;
    }
    
    /* Делаем кнопку поменьше */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Уменьшаем отступ между кнопками */
    .download-buttons {
        gap: 10px;
    }
    
    /* Уменьшаем шрифты в IP-блоке */
    .ip-address {
        font-size: 0.7rem;
    }
    .hint-text {
        font-size: 0.6rem;
    }

    /* На маленьких экранах убираем сложные анимации, чтобы не перегружать ЦП */
    .particles {
        display: none;
    }
    
    /* Уменьшаем отступы модального окна */
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }

    /* Адаптация таблицы модов на маленьких экранах */
    .mods-table th, .mods-table td {
        padding: 8px;
        /* Уменьшаем размер шрифта в таблице */
        font-size: 0.8rem;
    }

    /* Метки версий (LITE/FULL) */
    .badge {
        font-size: 0.6rem;
        padding: 2px 4px;
        margin-right: 3px;
    }
}