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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 900px;
    height: 660px;
    background: #1a1a2e;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

#game-header {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 3px solid #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#peebedu-link {
    position: absolute;
    left: 20px;
    font-family: 'Alfa Slab One', cursive;
    font-size: 24px;
    color: #ffffff;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#peebedu-link:hover {
    color: #ffd700;
    transform: scale(1.05);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

#game-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    letter-spacing: 1px;
}

#gameCanvas {
    position: absolute;
    top: 60px;
    left: 0;
}

#ui-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
}

#level-info {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

#level-title {
    font-size: 24px;
    margin-bottom: 5px;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#level-instruction {
    font-size: 14px;
    color: #e0e0e0;
}

#stats {
    position: absolute;
    top: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    min-width: 150px;
}

#stats.hidden {
    display: none;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: white;
    font-size: 16px;
}

.stat-label {
    font-weight: bold;
    color: #a0a0a0;
}

#atp-count {
    color: #ff6b6b;
    font-weight: bold;
}

#glucose-count {
    color: #feca57;
    font-weight: bold;
}

#oxygen-count {
    color: #48dbfb;
    font-weight: bold;
}

#methane-count {
    color: #32c832;
    font-weight: bold;
}

#formaldehyde-count {
    color: #c864c8;
    font-weight: bold;
}

#info-panel {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

#info-panel.hidden {
    display: none;
}

.info-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#info-title {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

#info-text {
    color: #34495e;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

#info-evidence {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#info-evidence.hidden {
    display: none !important;
}

#info-evidence h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

#evidence-list {
    list-style-type: none;
    padding-left: 0;
}

#evidence-list li {
    color: #34495e;
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

#evidence-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

#continue-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.reaction-bubble {
    position: absolute;
    pointer-events: none;
    animation: bubble-rise 2s ease-out forwards;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1);
        opacity: 0;
    }
}

.molecule-label {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    pointer-events: none;
}

.sunlight-effect {
    background: linear-gradient(90deg,
        rgba(255, 251, 235, 0.3) 0%,
        rgba(255, 251, 235, 0.1) 50%,
        transparent 50%,
        transparent 100%);
}