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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

#game-container {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#ui {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

#stage-info h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #4ecdc4;
}

#stage-info p {
    font-size: 14px;
    color: #b0b0b0;
}

#evidence-counter {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
}

#gravity-indicator {
    font-size: 18px;
    color: #ff6b6b;
}

#gravity-direction {
    font-size: 24px;
    display: inline-block;
    transition: transform 0.3s ease;
}

#game-canvas {
    display: block;
    border: 2px solid #4ecdc4;
    border-radius: 5px;
    background: #0f0f1e;
    image-rendering: pixelated;
}

#controls {
    margin-top: 15px;
    text-align: center;
}

#controls p {
    margin-bottom: 10px;
    color: #b0b0b0;
    font-size: 14px;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

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

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #4ecdc4;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.3);
}

.modal-content h2 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 32px;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 18px;
}
