:root {
    --bg-color: #0c0c0c;
    --text-color: #00ff41;
    --glow-color: rgba(0, 255, 65, 0.4);
    --font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal {
    flex: 1;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

#terminal::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

#content {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
    text-shadow: 0 0 5px var(--glow-color);
}

#cursor {
    display: inline-block;
    width: 10px;
    background-color: var(--text-color);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {

    from,
    to {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Scanlines overlay */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg,
            rgba(255, 0, 0, 0.06),
            rgba(0, 255, 0, 0.02),
            rgba(0, 0, 118, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

/* Subtle CRT Flicker */
@keyframes flicker {
    0% {
        opacity: 0.97;
    }

    5% {
        opacity: 0.95;
    }

    10% {
        opacity: 0.9;
    }

    15% {
        opacity: 0.98;
    }

    20% {
        opacity: 0.93;
    }

    25% {
        opacity: 0.97;
    }

    30% {
        opacity: 1;
    }

    35% {
        opacity: 0.96;
    }

    40% {
        opacity: 0.92;
    }

    45% {
        opacity: 0.99;
    }

    50% {
        opacity: 0.94;
    }

    55% {
        opacity: 0.97;
    }

    60% {
        opacity: 0.93;
    }

    65% {
        opacity: 1;
    }

    70% {
        opacity: 0.95;
    }

    75% {
        opacity: 0.99;
    }

    80% {
        opacity: 0.92;
    }

    85% {
        opacity: 0.98;
    }

    90% {
        opacity: 0.94;
    }

    95% {
        opacity: 0.97;
    }

    100% {
        opacity: 1;
    }
}

#terminal {
    animation: flicker 0.15s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #terminal {
        padding: 1rem;
        font-size: 14px;
    }
}

/* Footer styling */
#site-footer {
    margin-top: 100vh;
    /* This ensures it starts exactly one full screen height below whatever comes before it */
    padding: 6rem 2rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    text-align: center;
    background: rgba(12, 12, 12, 0.8);
    backdrop-filter: blur(5px);
}

.footer-content p {
    margin: 10px 0;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-content p:hover {
    opacity: 1;
}

.footer-content strong {
    color: var(--text-color);
    text-shadow: 0 0 10px var(--glow-color);
}

.tweet-container {
    margin-bottom: 2rem;
    display: inline-block;
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tweet-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.tweet-image {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}