/* --- CORE STYLES --- */
body { 
    font-family: 'Courier New', monospace; 
    background: #001a33; 
    color: #00d9ff; 
    margin: 0; 
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

#main-layout { display: flex; width: 100%; }

/* --- SIDEBAR / GMAIL --- */
#inbox-panel { 
    width: 280px; 
    background: #002b52; 
    border-right: 2px solid #00d9ff; 
    padding: 20px; 
    overflow-y: auto; 
}

.mail-item { 
    background: #004080; 
    padding: 10px; 
    border: 1px solid #00d9ff; 
    margin-bottom: 8px; 
    font-size: 0.8rem; 
    animation: fadeIn 0.3s ease;
}

/* --- MAIN CANVAS --- */
#game-canvas { flex-grow: 1; padding: 30px; text-align: center; overflow-y: auto; }

.stats-bar { 
    background: #002b52; 
    padding: 15px; 
    margin-bottom: 20px; 
    display: flex; 
    gap: 25px; 
    justify-content: center; 
    border: 2px solid #00d9ff; 
    box-shadow: 4px 4px 0px #00d9ff; 
}

#console-stage { height: 320px; margin: 20px 0; }
#console-icon { 
    max-height: 220px; 
    filter: drop-shadow(0 0 15px #00d9ff); 
    image-rendering: pixelated; 
}

/* --- BUTTONS --- */
button { 
    padding: 12px 20px; 
    cursor: pointer; 
    background: transparent; 
    color: #00d9ff; 
    border: 2px solid #00d9ff; 
    font-weight: bold; 
    margin: 5px; 
    text-transform: uppercase;
}

button:hover { background: #00d9ff; color: #001a33; }

.special-btn { 
    border-color: #f59e0b; 
    color: #f59e0b; 
    display: block; 
    margin: 20px auto;
    font-size: 1.2rem;
}

/* --- MODALS & WORKSHOP --- */
.hidden-screen { 
    position: fixed; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: rgba(0, 0, 0, 0.9); 
    display: none; 
    align-items: center; 
    justify-content: center; 
    z-index: 100; 
}

.menu-card { 
    background: #002b52; 
    padding: 30px; 
    border: 3px solid #00d9ff; 
    text-align: center; 
    width: 450px;
}

.slider-container { margin: 25px 0; }
input[type="range"] { width: 100%; accent-color: #00d9ff; }

.config-option { 
    margin: 15px 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

select, input[type="color"] { 
    background: #001a33; 
    color: #00d9ff; 
    border: 1px solid #00d9ff; 
    padding: 5px; 
}

/* --- GALLERY GRID --- */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); 
    gap: 15px; 
    max-height: 350px; 
    overflow-y: auto; 
    margin: 20px 0;
    padding: 10px;
    background: #001a33;
}

.gallery-item { 
    border: 1px solid #00d9ff; 
    padding: 10px; 
    background: #002b52; 
    font-size: 0.7rem; 
}

/* --- CREDITS --- */
.Credits {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #004080;
}

.Credits p {
    font-size: 0.75rem;
    color: #0080ff;
    line-height: 1.5;
}

.Credits a { color: #00d9ff; text-decoration: none; }
.Credits a:hover { color: #f59e0b; text-decoration: underline; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.coding-card { width: 80%; max-width: 600px; background: #000; border: 2px solid #10b981; }
#code-terminal { 
    width: 100%; 
    height: 200px; 
    background: #000; 
    color: #10b981; 
    font-family: 'Courier New'; 
    border: 1px solid #10b981; 
    padding: 10px; 
    outline: none; 
    resize: none;
}
#awards-list div {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid #f59e0b;
    padding: 5px;
    margin-top: 5px;
    text-transform: uppercase;
    animation: glowText 2s infinite alternate;
}

@keyframes glowText {
    from { text-shadow: 0 0 2px #f59e0b; }
    to { text-shadow: 0 0 10px #f59e0b; }
}
.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns looks best on this width */
    gap: 12px;
    margin-top: 15px;
}

.research-item {
    background: #001a33;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
}

.research-item button {
    font-size: 0.7rem;
    padding: 5px;
    margin-top: 5px;
    width: 100%;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
}

.research-item {
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    transition: transform 0.2s;
}

.research-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 217, 255, 0.2);
}