@font-face {
    font-family: 'Doto';
    src: url('../fonts/Doto-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Doto';
    src: url('../fonts/Doto-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Doto';
    src: url('../fonts/Doto-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Doto', monospace;
    background-color: #1e1e1e;
    color: #c9c9c9;
    height: 100vh;
}

.title {
    font-size: 18px;
    position: relative;
    z-index: 2;
    margin-bottom: 10px;
    user-select: text;
    -webkit-user-select: text;
    caret-color: transparent;
}

.version-trigger {
    position: fixed;
    bottom: 0;
    left: 0;
    padding: 15px 15px;
    font-size: 12px;
    color: #c9c9c9;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.title-wrapper {
    position: relative;
    display: inline-block;
    margin: 15px;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #2a2a2a;
    padding: 10px 0;
    text-align: left;
    transform: translateY(-20px);
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    z-index: 10;
    user-select: none;
}

.dropdown-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.dropdown-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-panel li {
    padding: 8px 16px;
    color: #aaa;
    font-size: 14px;
    white-space: nowrap;
}

.menu-item {
    padding: 8px 16px;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: #3a3a3a;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fixed-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 160px;
    height: 100vh;
    background: #2a2a2a;
    padding: 1rem;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 10;
}

.fixed-sidebar.active {
    transform: translateX(0);
}

.page-content {
    margin-left: 160px;
    padding: 1.5rem;
    flex: 1;
    overflow: auto;
}

.ascii-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.ascii-scaler {
    transform-origin: top center;
    display: inline-block;
}

.ascii-art {
    font-family: monospace;
    white-space: pre;
    color: #8f8f8f;
    background-color: #1e1e1e;
    font-size: 14px;
    line-height: 1.1;
    text-align: left;
    margin: 0 auto 0 auto;
    padding: 1rem 1rem 2rem 1rem;
    display: inline-block;
}

.fade-lines p {
    opacity: 0;
    transform: translateY(10px);
    animation: appearLine 0.4s ease forwards;
}

.fade-lines p:nth-child(1) { animation-delay: 0.3s; }
.fade-lines p:nth-child(2) { animation-delay: 0.5s; }
.fade-lines p:nth-child(3) { animation-delay: 0.7s; }
.fade-lines p:nth-child(4) { animation-delay: 0.9s; }

@keyframes appearLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-line {
    opacity: 0;
    transform: translateY(10px);
    animation: appearLine 0.4s ease forwards;
}

@keyframes appearLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centered-text p {
    margin: 0 auto;
    display: inline-block;
    text-align: center;
}

@media (max-width: 639px) {
    .fixed-sidebar {
        display: none;
    }

    .page-content {
        margin-left: 0;
        padding: 1rem;
    }

    .content-inner {
        max-width: 100%;
    }

    .ascii-art {
        font-size: 2.5vw; /* авто-масштаб по ширине экрана */
        text-align: left;
        padding: 0 0 2rem 0;
    }

    .ascii-wrapper {
        transform: scale(var(--scale-factor));
        transform-origin: top center;
    }

    .fade-lines p {
        text-align: left;
    }
}