/* modpack.css */
.container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
}

.window {
    background: rgba(30, 30, 30, 0.95); /* Тёмный фон с лёгкой прозрачностью */
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Усиленная тень для тёмной темы */
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    overflow: visible;
    min-height: 150px;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #ff70bb, #f9a8d4); /* Спокойный градиент сохранён */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

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

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.2); /* Более тёмный прозрачный бордер */
    border-top: 4px solid #ff70bb; /* Цвет лого сохранён */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button {
    background: linear-gradient(45deg, #ff70bb, #f9a8d4); /* Спокойный градиент сохранён */
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* Тень для тёмной темы */
    display: block;
    margin: 0 auto 1.5rem;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5); /* Усиленная тень при наведении */
}

.version-item {
    background: #2a2a2a; /* Тёмный фон для элементов версии */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Тень для тёмной темы */
}

.version-table {
    width: 100%;
    border-collapse: collapse;
}

.version-table th,
.version-table td {
    padding: 0.75rem;
    text-align: left;
    color: #e5e7eb; /* Светлый текст для тёмной темы */
    font-size: 1rem;
}

.version-table th {
    font-weight: bold;
    color: #ff70bb; /* Акцентный цвет сохранён */
    width: 40%;
}

.version-table td {
    width: 60%;
}

.version-table tr {
    border-bottom: 1px solid #3f3f3f; /* Тёмная граница */
}

.version-table tr:last-child {
    border-bottom: none;
}

.footer {
    text-align: center;
    font-size: 0.9rem;
    color: #d1d5db; /* Светлый текст для футера */
    padding: 1.5rem;
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
}

.footer p.footer-text {
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    display: block;
    visibility: visible;
    text-align: center;
}

.footer code {
    background-color: #3f3f3f; /* Тёмный фон для кода */
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: #e5e7eb; /* Светлый текст */
}

.footer a {
    display: block;
    margin-top: 1rem;
    color: #ff70bb; /* Цвет лого сохранён */
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    color: #db2777; /* Тот же цвет при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
    }

    .window {
        padding: 1rem;
        min-height: 200px;
    }

    h1 {
        font-size: 2rem;
    }

    .button {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .version-table th,
    .version-table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .footer {
        font-size: 0.8rem;
        padding: 1rem;
    }

    .footer p.footer-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .footer a {
        font-size: 0.8rem;
    }
}

.modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(30, 30, 30, 0.95); /* Тёмный фон для модального окна */
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); /* Усиленная тень */
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 300px;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.progress-bar-container {
    width: 100%;
    background: #3f3f3f; /* Тёмный фон для прогресс-бара */
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    background: linear-gradient(45deg, #ff70bb, #f9a8d4); /* Спокойный градиент сохранён */
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}