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

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

body {
    font-family: 'VT323', monospace;
    background: #000011;
    color: #39FF14;
    overflow: hidden;
}

#scene-container {
    width: 100vw;
    height: 100vh;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#system-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(74, 20, 140, 0.8);
    border: 2px solid #00FFFF;
    padding: 15px;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.terminal-text {
    font-size: 16px;
    line-height: 1.4;
    color: #39FF14;
    text-shadow: 0 0 10px #39FF14;
}

#controls {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.retro-btn {
    background: linear-gradient(45deg, #4A148C, #E91E63);
    border: 2px solid #00FFFF;
    color: #39FF14;
    font-family: 'VT323', monospace;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px #39FF14;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.retro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.5);
    background: linear-gradient(45deg, #E91E63, #4A148C);
}

.retro-btn:active {
    transform: translateY(0);
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000011;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-text {
    font-size: 24px;
    color: #39FF14;
    text-shadow: 0 0 20px #39FF14;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 300px;
    height: 20px;
    border: 2px solid #00FFFF;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4A148C, #E91E63, #00FFFF);
    width: 0%;
    animation: loading 2s ease-in-out forwards;
}

@keyframes glow {
    from { text-shadow: 0 0 20px #39FF14; }
    to { text-shadow: 0 0 40px #39FF14, 0 0 60px #39FF14; }
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #system-info {
        top: 10px;
        left: 10px;
        right: 10px;
        font-size: 14px;
        padding: 10px;
    }
    
    #controls {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        gap: 10px;
    }
    
    .retro-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .loading-text {
        font-size: 18px;
    }
    
    .loading-bar {
        width: 250px;
    }
}

/* Hover effects for 3D objects */
canvas {
    cursor: crosshair;
}

/* Additional retro effects */
#ui-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 255, 0.03) 2px,
        rgba(0, 255, 255, 0.03) 4px
    );
    pointer-events: none;
    z-index: -1;
}