Шаблон:MinisterialInfo/newStyles.css

Материал из МК14 | Space Station 14 Wiki
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d1117;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 5vh;
    font-family: 'Trebuchet MS', sans-serif;
}

.panel-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 900px;
    padding: 1rem 2%;
    background: linear-gradient(#1a1d1a, #1a1d1a) padding-box,
    linear-gradient(270deg, black, orange, black) border-box;
    background-size: 100% 100%, 200% 200%;
    border-radius: 1rem;
    border: 2px solid transparent;
    animation: borderMove 7s linear infinite, innerGlow 7s linear infinite;
    box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
    position: relative;
    flex-wrap: wrap;
}

.panel-left,
.panel-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.all_not_real {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #3e443e;
    font-size: 1.25rem;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.panel-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 0.9rem;
    color: #f0f0f0;
    text-shadow: 0 0 0.25rem rgba(255, 255, 255, 0.4);
    cursor: pointer;
    background: linear-gradient(#1a1d1a, #1a1d1a) padding-box,
    linear-gradient(270deg, #ff6600, #ffcc00, #ff6600) border-box;
    background-size: 100% 100%, 250% 250%;
    box-shadow: 0 0.375rem 0.9375rem rgba(0, 0, 0, 0.5),
    0 0 0.5rem rgba(255, 165, 0, 0.4) inset;
    transition: transform 0.2s, box-shadow 0.3s, color 0.2s, text-shadow 0.2s;
    animation: borderMove 7s linear infinite;
}

.panel-button:hover {
    transform: scale(1.06);
    color: #ffd580;
    text-shadow: 0 0 0.625rem #ffd580, 0 0 1.125rem #ff8c00;
    box-shadow: 0 0.625rem 1.375rem rgba(0, 0, 0, 0.7),
    0 0 1.125rem rgba(255, 165, 0, 0.7) inset,
    0 0 2rem rgba(255, 140, 0, 0.5);
    animation: borderMove 6s linear infinite, neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes borderMove {
    0% { background-position: 0% 50%, 0% 50%; }
    50% { background-position: 0% 50%, 100% 50%; }
    100% { background-position: 0% 50%, 0% 50%; }
}

@keyframes neonGlow {
    0%, 100% {
        box-shadow: 0 0.625rem 1.375rem rgba(0, 0, 0, 0.7),
        0 0 0.75rem rgba(255, 165, 0, 0.5) inset,
        0 0 1.5625rem rgba(255, 140, 0, 0.4);
    }
    50% {
        box-shadow: 0 0.75rem 1.5625rem rgba(0, 0, 0, 0.8),
        0 0 1.25rem rgba(255, 165, 0, 0.8) inset,
        0 0 2.5rem rgba(255, 140, 0, 0.6);
    }
}

@keyframes innerGlow {
    0%, 100% {
        box-shadow: inset 0 0 0.625rem rgba(0, 0, 0, 0.4),
        0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: inset 0 0 1.25rem rgba(255, 165, 0, 0.5),
        0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .panel-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .panel-left,
    .panel-right {
        justify-content: center;
        gap: 0.5rem;
    }

    .all_not_real {
        font-size: 1rem;
    }
}