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

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #fff;
    overflow: hidden;
}

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

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

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

.scp-logo {
    font-size: 80px;
    color: #ff0000;
    animation: pulse 1s infinite;
}

.loading-content h2 {
    color: #fff;
    letter-spacing: 8px;
    margin: 20px 0;
    font-size: 24px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: #333;
    margin: 20px auto;
    border: 1px solid #666;
}

.loading-progress {
    height: 100%;
    background: #ff0000;
    width: 0;
    transition: width 0.3s;
}

.warning-text {
    color: #ff0000;
    margin-top: 10px;
    animation: blink 1s infinite;
}

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

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

#header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff0000;
    z-index: 100;
}

.header-left h1 {
    font-size: 24px;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.classification {
    color: #ff0000;
    font-size: 14px;
    letter-spacing: 2px;
}

.biohazard-icon {
    font-size: 48px;
    color: #ff0000;
    animation: pulse 2s infinite;
}

#controls-panel {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border: 1px solid #666;
    z-index: 100;
    min-width: 200px;
}

#controls-panel h3 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 2px;
}

.control-item {
    font-size: 12px;
    margin: 5px 0;
    color: #ccc;
}

#status-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border: 1px solid #666;
    z-index: 100;
    min-width: 250px;
}

#status-panel h3 {
    color: #00ff00;
    margin-bottom: 10px;
    font-size: 14px;
    letter-spacing: 2px;
}

.status-item {
    font-size: 12px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.status-label {
    color: #999;
}

.status-value {
    color: #00ff00;
    font-weight: bold;
}

.psychological-meter {
    margin-top: 15px;
    border-top: 1px solid #666;
    padding-top: 10px;
}

.meter-label {
    font-size: 11px;
    color: #999;
    margin-bottom: 5px;
}

.meter-bar {
    width: 100%;
    height: 20px;
    background: #222;
    border: 1px solid #666;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: #00ff00;
    width: 0;
    transition: width 0.5s, background-color 0.5s;
}

.meter-time {
    text-align: center;
    font-size: 10px;
    color: #ccc;
    margin-top: 3px;
}

.saline-button {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 1px;
}

.saline-button:hover {
    background: #004400;
}

#doc-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

#doc-button button {
    padding: 12px 20px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #ff0000;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 2px;
}

#doc-button button:hover {
    background: #ff0000;
    color: #000;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a1a;
    padding: 30px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid #ff0000;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 32px;
    color: #ff0000;
    cursor: pointer;
}

.modal-content h2 {
    color: #ff0000;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.doc-section h3 {
    color: #00ff00;
    margin: 20px 0 10px 0;
    letter-spacing: 2px;
    font-size: 14px;
}

.doc-section p {
    margin: 10px 0;
    line-height: 1.6;
    color: #ccc;
    font-size: 13px;
}

.doc-section ul {
    margin: 10px 0 10px 20px;
    color: #ccc;
}

.doc-section ul li {
    margin: 5px 0;
}

.warning-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: flash 0.5s infinite;
}

@keyframes flash {
    0%, 100% { background: rgba(255, 0, 0, 0.9); }
    50% { background: rgba(255, 0, 0, 0.7); }
}

.warning-content {
    text-align: center;
    background: #000;
    padding: 40px;
    border: 4px solid #ff0000;
}

.warning-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.warning-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

#acknowledgeWarning {
    padding: 15px 30px;
    background: #ff0000;
    color: #000;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 2px;
}

.observation-mode {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 100, 0, 0.3);
    border: 2px solid #00ff00;
    padding: 20px;
    z-index: 500;
    pointer-events: none;
}

.camera-label {
    color: #00ff00;
    font-size: 12px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.observation-data {
    font-size: 11px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    color: #00ff00;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
    border-top: 1px solid #333;
    z-index: 100;
}

.footer-content {
    font-size: 11px;
    color: #666;
}

.footer-content a {
    color: #ff6b9d;
    text-decoration: none;
}

.footer-content a:hover {
    color: #ff8fb3;
}

.separator {
    margin: 0 10px;
}

.warning-footer {
    color: #ff0000;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #controls-panel, #status-panel {
        font-size: 10px;
        padding: 10px;
    }
    
    .header-left h1 {
        font-size: 16px;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
}