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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    font-family: 'VT323', 'Courier New', monospace;
    color: #7dd3fc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-top: 60px;
    margin: 0;
    overflow-x: hidden;
}


.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    background-color: #000000;
    border-bottom: 1px solid #333;
    gap: 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.menu-item {
    color: #7dd3fc;
    text-decoration: none;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 24px;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.menu-item:hover {
    color: #00ff00;
    border: 1px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px #00ff00;
    animation: mini-glitch 0.3s ease-in-out;
}

@keyframes mini-glitch {
    0%, 100% {
        transform: translate(0);
        text-shadow: 0 0 5px #00ff00;
    }
    10% {
        transform: translate(-1px, 0);
        text-shadow: 
            -1px 0 0 #00ff00,
            1px 0 0 #008800;
    }
    20% {
        transform: translate(1px, 0);
        text-shadow: 
            1px 0 0 #00ff00,
            -1px 0 0 #006600;
    }
    30% {
        transform: translate(0, -1px);
        text-shadow: 
            0 -1px 0 #00dd00,
            0 1px 0 #00aa00;
    }
    40% {
        transform: translate(-1px, 1px);
        text-shadow: 
            -2px 0 0 #00cc00,
            1px 0 0 #007700;
    }
    50% {
        transform: translate(1px, -1px);
        text-shadow: 
            2px 0 0 #00bb00,
            -1px 0 0 #009900;
    }
}

.menu-item.active {
    color: #00ff00;
    border: 1px solid #00ff00;
    background-color: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px #00ff00;
}

.menu-item.blocked {
    color: #666;
    border: 1px solid #666;
    background-color: rgba(102, 102, 102, 0.1);
    cursor: not-allowed;
    position: relative;
    transition: all 0.3s ease;
}

.menu-item.blocked:hover {
    color: #888;
    border: 1px solid #888;
    background-color: rgba(136, 136, 136, 0.1);
    text-shadow: none;
    animation: none;
}

.popover {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.popover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #333;
}

.menu-item.blocked:hover .popover {
    opacity: 1;
    visibility: visible;
}


.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding: 10px 20px 20px 20px;
    overflow-y: auto;
}


.home-text {
    padding: 20px 40px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 1200px;
    text-align: left;
    width: 100%;
}

.home-intro-block {
    border: 1px solid #00aa00;
    padding: 15px 20px 20px 20px;
    background-color: rgba(0, 255, 0, 0.02);
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 170, 0, 0.3);
    transition: all 0.3s ease;
}


.home-content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    align-content: stretch;
    min-height: 600px;
}

.content-block {
    border: 1px solid #00aa00;
    padding: 0 20px 20px 20px;
    background-color: rgba(0, 255, 0, 0.02);
    box-shadow: 0 0 5px rgba(0, 170, 0, 0.25);
    flex: 1 1 calc(50% - 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.content-block:hover {
    animation: block-glitch 0.5s ease-in-out;
}

@keyframes block-glitch {
    0%, 100% {
        transform: translate(0);
        box-shadow: 0 0 5px rgba(0, 170, 0, 0.25);
        border-color: #00aa00;
    }
    15% {
        transform: translate(-1px, 0);
        box-shadow: 
            0 0 8px rgba(0, 255, 0, 0.4),
            -1px 0 0 rgba(0, 170, 0, 0.6);
        border-color: #00cc00;
    }
    30% {
        transform: translate(1px, 0);
        box-shadow: 
            0 0 6px rgba(0, 255, 0, 0.35),
            1px 0 0 rgba(0, 136, 0, 0.5);
        border-color: #008800;
    }
    45% {
        transform: translate(0, -1px);
        box-shadow: 
            0 0 10px rgba(0, 255, 0, 0.45),
            0 -1px 0 rgba(0, 221, 0, 0.7);
        border-color: #00dd00;
    }
    60% {
        transform: translate(-0.5px, 0.5px);
        box-shadow: 
            0 0 7px rgba(0, 255, 0, 0.3),
            -1px 1px 0 rgba(0, 187, 0, 0.4);
        border-color: #00bb00;
    }
    75% {
        transform: translate(0.5px, -0.5px);
        box-shadow: 
            0 0 9px rgba(0, 255, 0, 0.5),
            1px -1px 0 rgba(0, 153, 0, 0.6);
        border-color: #009900;
    }
}

.content-block:nth-child(2) {
    flex: 1 1 calc(50% - 10px);
}

.content-block:nth-child(3) {
    flex: 1 1 calc(50% - 10px);
}


.home-content-grid h2 {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.content-block ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-left: 0;
}

.content-block ul li {
    list-style: disc;
    padding-left: 0;
    margin-bottom: 8px;
}



@media (max-width: 768px) {
    .home-content-grid {
        flex-direction: column;
        gap: 15px;
        min-height: auto;
    }
    
    .content-block {
        flex: none;
        width: 100%;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .home-intro-block {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .home-intro-block h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .menu {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .menu-item {
        font-size: 20px;
        padding: 6px 12px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 10px 20px;
        margin: 15px 0;
    }
    
    .practice-cta {
        max-width: none;
        margin-left: 0;
        padding: 15px;
    }
    
    .main-content {
        flex-direction: column;
        padding: 15px;
    }
    
    .terminal {
        height: 400px;
        margin-top: 20px;
    }
    
}

.home-text h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
}

.home-text > p:first-of-type {
    text-align: center;
    margin-bottom: 30px;
}

.home-text .cta-button {
    display: block;
    margin: 20px auto;
    text-align: center;
    width: fit-content;
    animation: glitch-button-complex 7s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}


.home-text h1 {
    color: #00ff00;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff00;
    font-weight: 300;
}

.home-text h2 {
    color: #00ff00;
    font-size: 26px;
    margin: 30px 0 15px 0;
    text-shadow: 0 0 5px #00ff00;
    font-weight: 300;
}

.home-text h3 {
    color: #7dd3fc;
    font-size: 22px;
    margin: 20px 0 10px 0;
}

.home-text p {
    margin-bottom: 15px;
    color: #7dd3fc;
}

.home-text ul {
    margin: 10px 0 20px 20px;
    color: #7dd3fc;
}

.home-text li {
    margin-bottom: 8px;
    list-style-type: disc;
}

.home-text hr {
    border: none;
    border-top: 1px solid #333;
    margin: 30px 0;
}

.cta-button {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 24px;
    margin: 20px 0;
    display: inline-block;
    text-shadow: 0 0 5px #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    font-weight: 200;
}

.cta-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 10px #00ff00;
    animation: mini-glitch-button 0.4s ease-in-out;
}

@keyframes mini-glitch-button {
    0%, 100% {
        transform: translate(0);
        text-shadow: 0 0 10px #00ff00;
    }
    12% {
        transform: translate(-1px, 0);
        text-shadow: 
            -1px 0 0 #00ff00,
            1px 0 0 #008800,
            0 0 8px #00aa00;
    }
    25% {
        transform: translate(1px, 0);
        text-shadow: 
            1px 0 0 #00ff00,
            -1px 0 0 #006600,
            0 0 12px #00cc00;
    }
    37% {
        transform: translate(0, -1px);
        text-shadow: 
            0 -1px 0 #00dd00,
            0 1px 0 #00aa00,
            0 0 6px #00ee00;
    }
    50% {
        transform: translate(-1px, 1px);
        text-shadow: 
            -2px 0 0 #00cc00,
            1px 0 0 #007700,
            0 0 14px #00bb00;
    }
    62% {
        transform: translate(1px, -1px);
        text-shadow: 
            2px 0 0 #00bb00,
            -1px 0 0 #009900,
            0 0 9px #00dd00;
    }
    75% {
        transform: translate(-0.5px, 0.5px);
        text-shadow: 
            -1px 0 0 #00aa00,
            1px 0 0 #007700,
            0 0 11px #00ff00;
    }
}

.main-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
    padding-bottom: 20px;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.practice-cta {
    padding: 20px;
    max-width: 400px;
    text-align: center;
}

.practice-cta h2 {
    color: #00ff00;
    font-size: 24px;
    margin: 10px 0;
    text-shadow: 0 0 5px #00ff00;
}

.practice-cta p {
    color: #7dd3fc;
    margin: 8px 0;
    font-size: 16px;
    line-height: 1.4;
}

.practice-cta .cta-button {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 24px;
    margin: 12px 0;
    display: inline-block;
    text-shadow: 0 0 5px #00ff00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    animation: glitch-button-practice 8.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.practice-cta .cta-button:hover {
    background-color: rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 10px #00ff00;
    animation: mini-glitch-button 0.4s ease-in-out;
}

@keyframes glitch-button-practice {
    0%, 12%, 18%, 26%, 34%, 41%, 49%, 56%, 64%, 71%, 78%, 85%, 93%, 100% {
        text-shadow: 0 0 5px #00ff00;
        transform: translate(0) scaleX(1) scaleY(1) skew(0deg);
        filter: blur(0px) brightness(1) contrast(1);
        border-color: #00ff00;
        background-color: rgba(0, 255, 0, 0.1);
        box-shadow: 0 0 0px transparent;
        opacity: 1;
    }
    2% {
        text-shadow: 
            -1px 0 0 #00ff00,
            1px 0 0 #006600,
            -1px 0 0 #00dd00,
            1px 0 0 #008800,
            0 0 8px #00aa00;
        transform: translate(-0.3px, 0px) scaleX(0.996) scaleY(1.004) skew(-0.3deg);
        filter: blur(0px) brightness(1.03) contrast(1.08);
        border-color: #00dd00;
        background-color: rgba(0, 255, 0, 0.13);
        opacity: 0.98;
    }
    4% {
        text-shadow: 
            1px 0 0 #00ff00,
            -1px 0 0 #007700,
            1px 0 0 #00cc00,
            -1px 0 0 #00bb00,
            0 0 9px #00ee00;
        transform: translate(0.4px, -0.2px) scaleX(1.003) scaleY(0.997) skew(0.2deg);
        filter: blur(0px) brightness(0.97) contrast(1.15);
        border-color: #00cc00;
        background-color: rgba(0, 255, 0, 0.16);
        opacity: 0.96;
    }
    6% {
        text-shadow: 
            -1px 0 0 #00aa00,
            0 -1px 0 #00bb00,
            1px 0 0 #007700,
            -1px 0 0 #00ff00,
            0 0 11px #00cc00;
        transform: translate(-0.2px, 0.2px) scaleX(0.998) scaleY(1.002) skew(-0.25deg);
        filter: blur(0px) brightness(1.06) contrast(0.98);
        border-color: #00aa00;
        background-color: rgba(0, 255, 0, 0.18);
        opacity: 0.94;
    }
    8% {
        text-shadow: 
            1px 1px 0 #00dd00,
            -1px 0 0 #006600,
            1px -1px 0 #00bb00,
            -1px 1px 0 #00aa00,
            0 0 13px #00ee00;
        transform: translate(0.3px, -0.3px) scaleX(1.005) scaleY(0.995) skew(0.3deg);
        filter: blur(0px) brightness(1.02) contrast(1.25);
        border-color: #00ff00;
        background-color: rgba(0, 255, 0, 0.12);
        opacity: 0.92;
    }
    14% {
        text-shadow: 
            2px 0 0 #00aa00,
            -1px 0 0 #008800,
            0 1px 0 #00ff00,
            1px -1px 0 #00cc00,
            0 0 7px #00dd00;
        transform: translate(-0.4px, 0.1px) scaleX(0.995) scaleY(1.005) skew(-0.4deg);
        filter: blur(0px) brightness(1.08) contrast(1.05);
        border-color: #00bb00;
        background-color: rgba(0, 255, 0, 0.19);
        opacity: 0.89;
    }
    16% {
        text-shadow: 
            -2px 0 0 #00cc00,
            1px 0 0 #006600,
            0 -1px 0 #00aa00,
            -1px 1px 0 #00ee00,
            0 0 15px #00bb00;
        transform: translate(0.5px, -0.1px) scaleX(1.007) scaleY(0.993) skew(0.35deg);
        filter: blur(0px) brightness(0.92) contrast(1.35);
        border-color: #00ee00;
        background-color: rgba(0, 255, 0, 0.11);
        opacity: 0.87;
    }
    28% {
        text-shadow: 
            0 2px 0 #007700,
            1px -1px 0 #00ff00,
            -2px 0 0 #00aa00,
            1px 1px 0 #00dd00,
            0 0 6px #00cc00;
        transform: translate(-0.1px, 0.4px) scaleX(1.002) scaleY(0.998) skew(-0.15deg);
        filter: blur(0px) brightness(1.12) contrast(0.88);
        border-color: #00cc00;
        background-color: rgba(0, 255, 0, 0.21);
        opacity: 0.95;
    }
    32% {
        text-shadow: 
            0 -2px 0 #00bb00,
            -1px 1px 0 #008800,
            2px 0 0 #00ff00,
            -1px -1px 0 #00aa00,
            0 0 17px #00dd00;
        transform: translate(0.2px, -0.4px) scaleX(0.994) scaleY(1.006) skew(0.4deg);
        filter: blur(0px) brightness(0.89) contrast(1.4);
        border-color: #00dd00;
        background-color: rgba(0, 255, 0, 0.09);
        opacity: 0.91;
    }
}

.terminal {
    flex: 1;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'VT323', 'Courier New', monospace;
    position: relative;
    box-sizing: border-box;
    min-height: 0;
}

.terminal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 0, 0.03) 2px,
            rgba(0, 255, 0, 0.03) 4px
        );
    pointer-events: none;
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.terminal-header {
    display: none;
}

.terminal-title {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.terminal-content {
    flex: 1;
    padding: 10px 20px 20px 20px;
    overflow-y: auto;
    font-size: 20px;
    line-height: 1.4;
    background-color: #000000;
    color: #00ff00;
}

.ascii-art {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 10px;
    white-space: pre;
    position: static;
    color: #00ff00;
    text-shadow: 
        0 0 5px #00ff00,
        0 0 10px #00ff00,
        0 0 15px #00ff00;
    font-family: 'VT323', 'Courier New', monospace;
    animation: 
        textFlicker 0.15s infinite linear alternate,
        chaoticGlitch 12s infinite,
        secondaryGlitch 7.3s infinite;
    filter: brightness(1.2);
    letter-spacing: 1px;
    z-index: 1;
    flex-shrink: 0;
}

.ascii-art::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0, 255, 0, 0.03) 1px,
            rgba(0, 255, 0, 0.03) 2px
        );
    pointer-events: none;
    animation: interference 0.2s infinite linear;
}

@keyframes textFlicker {
    0% { 
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    98% { 
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    99% { 
        opacity: 0.8;
        text-shadow: 
            0 0 3px #00ff00,
            0 0 7px #00ff00;
    }
    100% { 
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
}

@keyframes chaoticGlitch {
    0%, 25%, 100% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    2.1% {
        transform: translate(-3px, 0);
        opacity: 0.3;
        text-shadow: none;
    }
    2.3% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    2.8% {
        transform: translate(2px, 0);
        opacity: 0.6;
        text-shadow: 
            -2px 0 #00ff00,
            2px 0 #00ff00;
    }
    2.9% {
        transform: translate(-1px, 0);
        opacity: 0.8;
    }
    3.1% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    3.6% {
        transform: translate(-2px, 0);
        opacity: 0.4;
        text-shadow: none;
    }
    3.7% {
        transform: translate(1px, 0);
        opacity: 0.7;
        text-shadow: 
            -1px 0 #00ff00,
            1px 0 #00ff00;
    }
    3.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    4.6% {
        transform: translate(3px, 0);
        opacity: 0.2;
        text-shadow: none;
    }
    4.8% {
        transform: translate(-1px, 0);
        opacity: 0.9;
        text-shadow: 
            -3px 0 #00ff00,
            0 0 3px #00ff00;
    }
    4.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    5.7% {
        transform: translate(-2px, 0);
        opacity: 0.5;
        text-shadow: 
            -1px 0 #00ff00,
            1px 0 #00ff00;
    }
    5.8% {
        transform: translate(2px, 0);
        opacity: 0.3;
        text-shadow: none;
    }
    6.0% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    6.6% {
        transform: translate(-1px, 0);
        opacity: 0.7;
        text-shadow: 
            -2px 0 #00ff00,
            2px 0 #00ff00;
    }
    6.7% {
        transform: translate(1px, 0);
        opacity: 0.4;
        text-shadow: none;
    }
    6.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    7.6% {
        transform: translate(2px, 0);
        opacity: 0.6;
        text-shadow: 
            -3px 0 #00ff00,
            3px 0 #00ff00;
    }
    7.7% {
        transform: translate(-2px, 0);
        opacity: 0.2;
        text-shadow: none;
    }
    7.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    8.6% {
        transform: translate(-3px, 0);
        opacity: 0.8;
        text-shadow: 
            -1px 0 #00ff00,
            1px 0 #00ff00;
    }
    8.7% {
        transform: translate(1px, 0);
        opacity: 0.5;
        text-shadow: none;
    }
    8.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
    
    9.6% {
        transform: translate(1px, 0);
        opacity: 0.3;
        text-shadow: none;
    }
    9.7% {
        transform: translate(-2px, 0);
        opacity: 0.9;
        text-shadow: 
            -2px 0 #00ff00,
            2px 0 #00ff00;
    }
    9.9% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 
            0 0 5px #00ff00,
            0 0 10px #00ff00,
            0 0 15px #00ff00;
    }
}

@keyframes secondaryGlitch {
    0%, 90%, 100% {
        filter: brightness(1.2);
    }
    
    13.7% {
        filter: brightness(0.8) contrast(1.3);
    }
    13.9% {
        filter: brightness(1.2);
    }
    
    27.4% {
        filter: brightness(1.5) contrast(0.7);
    }
    27.6% {
        filter: brightness(1.2);
    }
    
    41.1% {
        filter: brightness(0.6) contrast(1.5);
    }
    41.3% {
        filter: brightness(1.2);
    }
    
    54.8% {
        filter: brightness(1.4) contrast(0.9);
    }
    55.0% {
        filter: brightness(1.2);
    }
    
    68.5% {
        filter: brightness(0.9) contrast(1.2);
    }
    68.7% {
        filter: brightness(1.2);
    }
    
    82.2% {
        filter: brightness(1.3) contrast(0.8);
    }
    82.4% {
        filter: brightness(1.2);
    }
}

@keyframes interference {
    0% { 
        transform: translateY(0); 
        opacity: 0.03;
    }
    50% { 
        transform: translateY(1px); 
        opacity: 0.08;
    }
    100% { 
        transform: translateY(2px); 
        opacity: 0.03;
    }
}


.input-line {
    display: flex;
    align-items: baseline;
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    height: auto;
}

.prompt {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 20px;
    white-space: nowrap;
    line-height: 1;
}

.command-input {
    background: transparent;
    border: none;
    outline: none;
    color: #00ff00;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 20px;
    text-shadow: 0 0 5px #00ff00;
    flex: 1;
    margin-left: 0;
    padding: 0;
    text-indent: 0;
    caret-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% - 200px);
    height: 100%;
    line-height: 1;
}

.command-input:disabled {
    opacity: 0.5;
}

.command-input::placeholder {
    color: #008800;
    text-shadow: 0 0 3px #008800;
    opacity: 0.7;
}

.cursor {
    animation: blink 1s infinite;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    line-height: 1;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-bottom: 10px;
    -webkit-user-select: text;
    -moz-user-select: text;
    user-select: text;
}

#terminal-output * {
    text-decoration: none !important;
    -webkit-text-decoration-skip: none;
}

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

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    30% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    40% {
        transform: translate(2px, -2px);
        filter: hue-rotate(360deg);
    }
    50% {
        transform: translate(-2px, 2px);
        filter: hue-rotate(90deg);
    }
    60% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    70% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(-2px, -2px);
        filter: hue-rotate(180deg);
    }
    90% {
        transform: translate(2px, 2px);
        filter: hue-rotate(270deg);
    }
}

@keyframes glitch-ascii {
    0%, 14%, 16%, 18%, 20%, 32%, 34%, 98%, 100% {
        text-shadow: 
            2px 0 0 #00cc00,
            -2px 0 0 #008800,
            0 0 3px #00ff00;
        transform: translate(0) scaleY(1);
        filter: blur(0px) contrast(1);
        opacity: 1;
    }
    1% {
        text-shadow: 
            -3px 0 0 #00cc00,
            3px 1px 0 #006600,
            -1px -1px 0 #00aa00,
            0 0 5px #00ff00;
        transform: translate(-2px, 1px) scaleY(0.98);
        filter: blur(0px) contrast(1.1);
    }
    3% {
        text-shadow: 
            4px 0 0 #00ff00,
            -2px 0 0 #008800,
            1px -1px 0 #00dd00,
            0 0 6px #00cc00;
        transform: translate(1px, -1px) scaleY(1.02);
        filter: blur(0px) contrast(0.95);
    }
    5%, 7% {
        text-shadow: 
            -1px 0 0 #00aa00,
            1px 0 0 #007700,
            -3px 1px 0 #00ee00,
            2px -1px 0 #009900,
            0 0 4px #00ff00;
        transform: translate(2px, 0) scaleY(0.95);
        filter: blur(0px) contrast(1.05);
        opacity: 0.95;
    }
    9% {
        text-shadow: 
            3px 0 0 #00ff00,
            -3px 0 0 #006600,
            0 2px 0 #00bb00,
            0 -2px 0 #00dd00,
            0 0 8px #00cc00;
        transform: translate(-1px, 2px) scaleY(1.05);
        filter: blur(0px) contrast(1.2);
    }
    15% {
        text-shadow: 
            -2px 0 0 #00aa00,
            2px 0 0 #008800,
            1px 1px 0 #00ee00,
            -1px -1px 0 #007700,
            0 0 5px #00ff00;
        transform: translate(0, -1px) scaleY(0.92);
        filter: blur(0px) contrast(1.1);
        opacity: 0.98;
    }
    17% {
        text-shadow: 
            5px 0 0 #00ff00,
            -4px 1px 0 #009900,
            2px -2px 0 #00cc00,
            0 0 10px #00aa00;
        transform: translate(-3px, 1px) scaleY(1.08);
        filter: blur(0px) contrast(0.9);
    }
    19% {
        text-shadow: 
            -1px 0 0 #00bb00,
            1px 0 0 #008800,
            0 0 4px #00dd00;
        transform: translate(1px, 0) scaleY(0.97);
        filter: blur(0px) contrast(1.02);
    }
    33% {
        text-shadow: 
            2px 2px 0 #00ff00,
            -2px -1px 0 #007700,
            3px 0 0 #00cc00,
            -3px 1px 0 #009900,
            0 0 12px #00aa00;
        transform: translate(0, 1px) scaleY(1.12);
        filter: blur(0px) contrast(1.3);
        opacity: 0.9;
    }
}

@keyframes glitch-button-complex {
    0%, 7%, 15%, 23%, 31%, 39%, 47%, 55%, 63%, 71%, 79%, 87%, 95%, 100% {
        text-shadow: 
            1px 0 0 #00cc00,
            -1px 0 0 #008800,
            0 0 3px #00ff00;
        transform: translate(0) scaleX(1) scaleY(1) skew(0deg);
        filter: blur(0px) brightness(1) contrast(1);
        border-color: #00ff00;
        background-color: rgba(0, 255, 0, 0.1);
        box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
        opacity: 1;
    }
    1% {
        text-shadow: 
            -1px 0 0 #00ff00,
            1px 0 0 #006600,
            -1px 0 0 #00dd00,
            1px 0 0 #008800,
            0 0 6px #00aa00;
        transform: translate(-0.3px, 0px) scaleX(0.995) scaleY(1.005) skew(-0.3deg);
        filter: blur(0px) brightness(1.05) contrast(1.1);
        border-color: #00dd00;
        background-color: rgba(0, 255, 0, 0.15);
        box-shadow: 
            0 0 4px rgba(0, 255, 0, 0.3),
            1px 0 0 #00ff00,
            -1px 0 0 #008800;
        opacity: 0.97;
    }
    3% {
        text-shadow: 
            1px 0 0 #00ff00,
            -1px 0 0 #007700,
            1px 0 0 #00cc00,
            -1px 0 0 #00bb00,
            0 0 8px #00ee00;
        transform: translate(0.5px, -0.3px) scaleX(1.005) scaleY(0.995) skew(0.2deg);
        filter: blur(0px) brightness(0.95) contrast(1.2);
        border-color: #00cc00;
        background-color: rgba(0, 255, 0, 0.18);
        box-shadow: 
            0 0 6px rgba(0, 255, 0, 0.4),
            -1px 0 0 #00aa00,
            1px 0 0 #00ff00;
        opacity: 0.95;
    }
    5% {
        text-shadow: 
            -1px 0 0 #00aa00,
            1px 0 0 #009900,
            0 1px 0 #00dd00,
            0 -1px 0 #00bb00,
            1px 0 0 #007700,
            -1px 0 0 #00ff00,
            0 0 9px #00cc00;
        transform: translate(-0.3px, 0.3px) scaleX(0.99) scaleY(1.01) skew(-0.4deg);
        filter: blur(0px) brightness(1.1) contrast(0.95);
        border-color: #00aa00;
        background-color: rgba(0, 255, 0, 0.2);
        box-shadow: 
            0 0 7px rgba(0, 255, 0, 0.5),
            1px 0 0 #00ff00,
            -1px 0 0 #008800;
        opacity: 0.92;
    }
    8% {
        text-shadow: 
            2px 0 0 #00ff00,
            -1px 0 0 #006600,
            1px 1px 0 #00bb00,
            -1px 0 0 #00ee00,
            0 0 10px #00aa00;
        transform: translate(0.5px, -0.3px) scaleX(1.01) scaleY(0.99) skew(0.3deg);
        filter: blur(0px) brightness(1.05) contrast(1.3);
        border-color: #00ff00;
        background-color: rgba(0, 255, 0, 0.14);
        box-shadow: 
            0 0 8px rgba(0, 255, 0, 0.4),
            1px 0 0 #00cc00,
            -1px 0 0 #009900;
        opacity: 0.96;
    }
    24% {
        text-shadow: 
            -1px 0 0 #00dd00,
            1px 0 0 #008800,
            -1px 0 0 #00ff00,
            1px 0 0 #007700,
            0 0 6px #00bb00;
        transform: translate(-0.5px, 0.3px) scaleX(1.003) scaleY(0.997) skew(-0.2deg);
        filter: blur(0px) brightness(0.98) contrast(1.1);
        border-color: #00bb00;
        background-color: rgba(0, 255, 0, 0.13);
        box-shadow: 0 0 6px rgba(0, 255, 0, 0.4);
        opacity: 0.98;
    }
    72% {
        text-shadow: 
            1px 0 0 #00ff00,
            -1px 0 0 #009900,
            1px 0 0 #00aa00,
            -1px 0 0 #00cc00,
            0 0 12px #00dd00;
        transform: translate(0.3px, -0.5px) scaleX(0.995) scaleY(1.005) skew(0.5deg);
        filter: blur(0px) brightness(1.1) contrast(0.98);
        border-color: #00dd00;
        background-color: rgba(0, 255, 0, 0.22);
        box-shadow: 
            0 0 10px rgba(0, 255, 0, 0.6),
            -1px 0 0 #00ff00,
            1px 0 0 #008800;
        opacity: 0.9;
    }
    88% {
        text-shadow: 
            2px 0 0 #00ff00,
            -2px 0 0 #007700,
            1px -1px 0 #00cc00,
            -1px 1px 0 #00aa00,
            0 0 14px #00ee00;
        transform: translate(-0.5px, 0.5px) scaleX(1.015) scaleY(0.985) skew(-0.5deg);
        filter: blur(0px) brightness(1.15) contrast(1.4);
        border-color: #00ee00;
        background-color: rgba(0, 255, 0, 0.25);
        box-shadow: 
            0 0 12px rgba(0, 255, 0, 0.7),
            2px 0 0 #00dd00,
            -2px 0 0 #009900,
            0 1px 0 #00bb00,
            0 -1px 0 #00ff00;
        opacity: 0.88;
    }
}

@keyframes glitch-border {
    0%, 92%, 94%, 96%, 98%, 100% {
        box-shadow: 0 0 5px rgba(0, 170, 0, 0.25);
        border-color: #00aa00;
        transform: translate(0);
    }
    1% {
        box-shadow: 
            0 0 8px rgba(0, 255, 0, 0.4),
            1px 0 0 #00ff00,
            -1px 0 0 #008800;
        border-color: #00ff00;
        transform: translate(1px, 0);
    }
    3% {
        box-shadow: 
            0 0 6px rgba(0, 170, 0, 0.6),
            -1px 0 0 #00cc00,
            1px 0 0 #007700;
        border-color: #00cc00;
        transform: translate(-1px, 0);
    }
    93% {
        box-shadow: 
            0 0 10px rgba(0, 255, 0, 0.5),
            0 1px 0 #00ff00,
            0 -1px 0 #009900;
        border-color: #00dd00;
        transform: translate(0, 1px);
    }
    95% {
        box-shadow: 
            0 0 7px rgba(0, 200, 0, 0.4),
            -1px -1px 0 #00bb00,
            1px 1px 0 #008800;
        border-color: #00bb00;
        transform: translate(-1px, -1px);
    }
    97% {
        box-shadow: 
            0 0 9px rgba(0, 255, 0, 0.6),
            2px 0 0 #00ff00,
            -2px 0 0 #006600;
        border-color: #00ff00;
        transform: translate(2px, 0);
    }
}

::-webkit-scrollbar {
    display: none;
}

.terminal-content {
    scrollbar-width: none;
}

.terminal-content {
    -ms-overflow-style: none;
}


.terminal-footer {
    position: fixed !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: 100% !important;
    height: 80px !important;
    background-color: #111111 !important;
    border-top: 1px solid #333 !important;
    color: #00ff00 !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    font-family: 'VT323', 'Courier New', monospace !important;
}

.terminal-footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.footer-copyright {
    color: #00ff00 !important;
    font-size: 16px !important;
    margin: 0 !important;
    text-shadow: 0 0 5px #00ff00 !important;
    font-weight: normal !important;
}

.footer-links {
    display: flex !important;
    gap: 20px !important;
}

.footer-link {
    color: #00ff00 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    text-shadow: 0 0 5px #00ff00 !important;
    transition: all 0.3s ease !important;
    border: 1px solid transparent !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    background: transparent !important;
}

.footer-link:hover {
    color: #7dd3fc !important;
    text-shadow: 0 0 8px #7dd3fc !important;
    border: 1px solid #00ff00 !important;
    background-color: rgba(0, 255, 0, 0.1) !important;
    animation: mini-glitch 0.3s ease-in-out !important;
}


.section {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-bottom: 40px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .terminal-footer {
        height: 100px !important;
        padding: 10px 15px !important;
    }
    
    .terminal-footer-content {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    
    .footer-copyright {
        font-size: 14px !important;
    }
    
    .footer-link {
        font-size: 14px !important;
        padding: 6px 10px !important;
    }
    
    .section {
        padding-bottom: 60px !important;
    }
}