@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

.c64-terminal {
    background: #40318D;
    color: #7C70DA;
    width: 100%;
    height: 600px;
    padding: 20px;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.2;
    border-radius: 12px;
    border: 8px solid #2D2D2D;
    box-shadow: 
        0 0 20px rgba(0, 0, 0, 0.8),
        inset 0 0 100px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: relative;
    cursor: text;
}

/* Scanline effect */
.c64-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.1) 2px,
        rgba(0, 0, 0, 0.1) 4px
    );
    pointer-events: none;
    z-index: 1;
}

/* Subtle glow effect */
.c64-terminal::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #40318D, #7C70DA);
    border-radius: 14px;
    z-index: -1;
    opacity: 0.5;
    blur: 2px;
}

.retro-button {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: bold;
    border: 2px solid;
    box-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.3),
        inset 1px 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.1s;
}

.retro-button:hover {
    transform: translate(1px, 1px);
    box-shadow: 
        1px 1px 0 rgba(0, 0, 0, 0.3),
        inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.retro-button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

/* Custom scrollbar */
.c64-terminal::-webkit-scrollbar {
    width: 12px;
}

.c64-terminal::-webkit-scrollbar-track {
    background: #2D2D2D;
}

.c64-terminal::-webkit-scrollbar-thumb {
    background: #7C70DA;
    border-radius: 6px;
}

.c64-terminal::-webkit-scrollbar-thumb:hover {
    background: #9A8FE8;
}

/* Text selection */
.c64-terminal ::selection {
    background: #7C70DA;
    color: #40318D;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .c64-terminal {
        height: 500px;
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
        border-width: 4px;
    }
}

@media (max-width: 480px) {
    .c64-terminal {
        height: 400px;
        padding: 10px;
        font-size: 12px;
        border-radius: 6px;
        border-width: 3px;
    }
}