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

body {
    background: #000;
    font-family: 'VT323', monospace;
    color: #00ff00;
    overflow: hidden;
}

.crt {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, rgba(0, 50, 0, 0.2), #000);
}

.terminal {
    width: 90%;
    max-width: 1000px;
    height: 80%;
    background: #001100;
    position: relative;
    padding: 20px;
    overflow-y: auto;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
}

#intro {
    margin-bottom: 20px;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
}

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

.section {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

h2 {
    font-size: 28px;
    border-bottom: 2px solid #00ff00;
    margin-bottom: 10px;
}

img {
    max-width: 30%;
    height: auto;
    border: 2px solid #00ff00;
    border-radius: 0;
    margin-top: 10px;
    padding: 8px; /* Adds space between the border and the image */
}

p, a {
    font-size: 20px;
    line-height: 1.5;
}

a {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dashed #00ff00;
}

a:hover {
    background: #00ff00;
    color: #000;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(0, 255, 0, 0.1);
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.command-line {
    position: sticky;
    bottom: 0;
    background: #001100;
    padding: 10px 0;
}

#command {
    background: none;
    border: none;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 20px;
    width: 90%;
    outline: none;
}

#command::placeholder {
    color: #00aa00;
}

#snake-section {
            display: none;
            margin-top: 20px;
            text-align: center;
}

#snake-canvas {
    background: #111;
    border: 2px solid #0f0;
    display: block;
    margin: 0 auto;
}
#snake-score {
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 1.5em;
    margin-bottom: 10px;
}
#snake-instructions {
    color: #0f0;
    font-family: 'VT323', monospace;
    font-size: 1em;
    margin-bottom: 10px;
}


@media (max-width: 600px) {
    .terminal {
        width: 95%;
        height: 90%;
        padding: 10px;
    }

    h2 {
        font-size: 24px;
    }

    p, a, #command {
        font-size: 18px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

.terminal::-webkit-scrollbar {
    width: 10px;
    background: #001100;
}

.terminal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff00 40%, #003300 100%);
    border-radius: 5px;
    border: 2px solid #001100;
}

.terminal::-webkit-scrollbar-thumb:hover {
    background: #00ff00;
}

.terminal::-webkit-scrollbar-corner {
    background: #001100;
}

/* Firefox */
.terminal {
    scrollbar-width: thin;
    scrollbar-color: #00ff00 #001100;
}