@import url('https://fonts.googleapis.com/css2?family=Kelly+Slab&display=swap');

@font-face {
    font-family: "Monocraft";
    src: url("https://cdn.jsdelivr.net/gh/IdreesInc/Monocraft@main/dist/Monocraft-ttf/Monocraft.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
    background-color: #0a0a0a;
    color: #00ff41;
    font-family: 'Kelly Slab', 'Monocraft', 'Courier New', monospace;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

h1, h2, h3, .glitch-text, .ascii-logo pre {
    font-family: 'Kelly Slab', 'Monocraft', monospace;
    letter-spacing: 1px;
}

.online-number, .copy-ip-btn, .server-ip-display, .highlight-ip {
    font-family: 'Monocraft', 'Kelly Slab', monospace;
}


p, li, .stat-card, .warning, .aftertext {
    font-family: 'Kelly Slab', 'Monocraft', monospace;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Контейнер с flex */
div.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Боковая панель */
aside.sidebar {
    width: 260px;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15px 10px;
    border: 2px solid #00ff41;
    border-radius: 12px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    height: fit-content;
    z-index: 10;
}

aside.sidebar img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid #00ff41;
    padding: 10px;
}

aside.sidebar a {
    background-color: #1a1a1a;
    color: #00ff41;
    font-weight: bold;
    padding: 12px;
    margin: 8px 10px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: block;
    border: 1px solid #00ff4133;
}

aside.sidebar a:hover {
    background-color: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 10px #00ff41;
    transform: translateX(-3px);
}

aside.sidebar .join:hover {
    background-color: #00aa00;
    color: #0a0a0a;
}

aside.sidebar .discord:hover {
    background-color: #5865f2;
    color: white;
}

/* Основной контент */
div.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Hero блок */
div.main {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 100%);
    border: 1px solid #00ff4133;
    border-radius: 16px;
}

.ascii-logo {
    margin-bottom: 20px;
}

.ascii-logo pre {
    color: #00ff41;
    font-size: 0.7rem;
    text-shadow: 0 0 3px #00ff41;
    overflow-x: auto;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow:
        0.05em 0 0 rgba(255, 0, 0, 0.5),
        -0.05em -0.025em 0 rgba(0, 255, 0, 0.3);
}

.main p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Онлайн-бейдж */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #0f0f0f;
    border: 2px solid #00ff41;
    padding: 12px 24px;
    margin: 20px 0;
    border-radius: 8px;
}

.online-label {
    font-size: 1.1rem;
}

.online-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: #000000aa;
    padding: 5px 15px;
    border-radius: 5px;
    font-family: monospace;
}

.online-text {
    font-size: 1rem;
}

/* IP контейнер */
.ip-container {
    margin-top: 20px;
}

.copy-ip-btn {
    background: transparent;
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: "Monocraft", monospace;
    font-size: 1.1rem;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.copy-ip-btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 15px #00ff41;
}

.server-version {
    font-size: 0.8rem;
    margin-top: 12px;
    opacity: 0.7;
}

.server-ip-display {
    margin-top: 10px;
    font-family: monospace;
    font-size: 1rem;
}

.blinking-cursor {
    display: inline-block;
    width: 8px;
    height: 1rem;
    background-color: #00ff41;
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Секция статистики */
.stats-section {
    background: #0c0c0c;
    border-left: 4px solid #00ff41;
    padding: 25px;
    border-radius: 12px;
}

.stats-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #00ff41;
    display: inline-block;
}

.chart-container {
    margin: 20px 0;
    background: #0a0a0a;
    padding: 15px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
}

canvas {
    max-height: 350px;
    width: 100%;
}

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    flex: 1;
    background: #000000aa;
    border: 1px solid #00ff41;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;
}

.stats-note {
    font-size: 0.7rem;
    text-align: center;
    opacity: 0.6;
    margin-top: 15px;
}

/* Информационные карточки */
.info-card {
    background: #0c0c0c;
    border-left: 4px solid #00ff41;
    padding: 25px;
    border-radius: 12px;
}

.info-card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #00ff41;
    display: inline-block;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #1a3a1a;
}

.launcher-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 20px 0;
}

.launcher-list li {
    background: #1a1a1a;
    padding: 8px 16px;
    border: 1px solid #00ff41;
    border-radius: 6px;
    font-size: 0.9rem;
}

.warning {
    background: #1a1a00;
    border-left: 6px solid #ffaa00;
    padding: 15px;
    margin: 20px 0;
    color: #f0f0a0;
    border-radius: 8px;
}

.highlight-ip {
    background: #000;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: monospace;
}

.server-ip-info {
    margin-top: 15px;
}

/* Видео секция */
.video-section {
    text-align: center;
    background: #0c0c0c;
    padding: 25px;
    border-radius: 12px;
}

.video-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #00ff41;
    display: inline-block;
}

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

.videobox {
    width: 100%;
    max-height: 400px;
    border-radius: 12px;
    border: 2px solid #00ff41;
}

.video-caption {
    margin-top: 15px;
    opacity: 0.8;
}

/* Галерея */
.gallery-section {
    background: #0c0c0c;
    padding: 25px;
    border-radius: 12px;
}

.gallery-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #00ff41;
    display: inline-block;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 20px;
}

.imagblock {
    flex: 0 1 260px;
    background-color: #1a1a1e;
    border: 1px solid #2a2a40;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.25s ease;
}

.imagblock:hover {
    transform: translateY(-5px);
    border-color: #00ff41;
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

.imagblock img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #333;
}

.imagblock p.maintext {
    font-size: 1rem;
    font-weight: bold;
    margin: 12px 0 5px;
}

.imagblock p.maintext a {
    color: #00ff41;
}

.imagblock p.aftertext {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
}

/* Discord секция */
.discord-section {
    background: #0c0c0c;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.discord-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px dashed #00ff41;
    display: inline-block;
}

.discord-widget {
    background: #181818;
    padding: 25px;
    border: 1px dashed #00ff41;
    border-radius: 16px;
}

.discord-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.discord-widget h3 {
    margin-bottom: 10px;
}

.discord-join-btn {
    background: #5865f2;
    color: white;
    border: none;
    padding: 12px 30px;
    font-family: "Monocraft", monospace;
    font-size: 1rem;
    margin: 15px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.discord-join-btn:hover {
    background: #4752c4;
    transform: scale(1.02);
}

.discord-widget-fake {
    background: #0a0a0a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.voice-channel,
.members {
    padding: 5px;
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid #00ff41;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #00ff41;
}

/* Join оверлей */
.joindiv {
    background: #1a1a1a;
    padding: 30px 40px;
    border-radius: 16px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 2px solid #00ff41;
}

.join-ip {
    font-family: monospace;
    font-size: 1.3rem;
}

.join-copy-btn {
    background: #00ff41;
    color: #0a0a0a;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-family: monospace;
    border-radius: 6px;
}

/* Footer */
footer {
    border-top: 1px solid #00ff4133;
    margin-top: 20px;
    padding: 25px 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.8rem;
}

.footer-links a {
    color: #00ff41;
    margin-right: 15px;
    cursor: pointer;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-tagline {
    opacity: 0.6;
}

/* Адаптив */
@media (max-width: 768px) {
    div.container {
        flex-direction: column;
        padding: 15px;
    }

    aside.sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    aside.sidebar a {
        margin: 5px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .online-badge {
        flex-wrap: wrap;
        gap: 8px;
    }

    .stats-grid {
        flex-direction: column;
    }

    .gallery {
        gap: 15px;
    }

    .lightbox-close {
        font-size: 35px;
        right: 20px;
        top: 10px;
    }
}
