* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('textures/metal-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.game-container {
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    background-color: rgba(45, 45, 45, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #666;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('textures/metal-texture.png');
    opacity: 0.1;
    pointer-events: none;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #4CAF50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    position: relative;
    z-index: 1;
}

.reactor-display {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.reactor-core {
    flex: 1;
    height: 300px;
    background-color: #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #444;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.reactor-core::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('textures/metal-texture.png');
    opacity: 0.2;
    pointer-events: none;
}

.temperature-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #ff0000, #ff4500, #ff8c00, #ffd700);
    opacity: 0.3;
    transition: opacity 0.3s;
}

.water-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50%;
    background-color: #1e90ff;
    transition: height 0.3s;
    background-image: url('textures/water-texture.png');
    background-size: 100px;
    opacity: 0.8;
}

.plutonium-rods, .graphite-rods {
    position: absolute;
    width: 20px;
    height: 100%;
    background-color: #666;
    transition: transform 0.3s;
    background-image: url('textures/metal-texture.png');
    background-size: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.plutonium-rods {
    left: 30%;
}

.graphite-rods {
    right: 30%;
}

.status-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    background-color: rgba(51, 51, 51, 0.8);
    padding: 1rem;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
}

.status-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('textures/metal-texture.png');
    opacity: 0.1;
    pointer-events: none;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: rgba(51, 51, 51, 0.8);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #444;
}

.control-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('textures/metal-texture.png');
    opacity: 0.1;
    pointer-events: none;
}

input[type="range"] {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: #333;
    border-radius: 5px;
    outline: none;
    border: 1px solid #444;
    background-image: url('textures/metal-texture.png');
    background-size: 20px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border: 1px solid #45a049;
}

.game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over-screen.hidden {
    display: none;
}

.game-over-screen h2 {
    color: #ff0000;
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

#restart-game {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    border: 1px solid #45a049;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

#restart-game:hover {
    background-color: #45a049;
}

.score-display {
    background-color: rgba(51, 51, 51, 0.8);
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    border: 1px solid #444;
    position: relative;
    z-index: 1;
}

.score-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('textures/metal-texture.png');
    opacity: 0.1;
    pointer-events: none;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.highscores-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #45a049;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.highscores-button:hover {
    background-color: #45a049;
}

.highscores-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.highscores-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
}

.highscores-content h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.scores-list {
    margin-bottom: 1.5rem;
}

.score-item {
    display: grid;
    grid-template-columns: 50px 1fr 100px 100px;
    gap: 1rem;
    padding: 0.5rem;
    color: #fff;
    border-bottom: 1px solid #333;
}

.score-item:last-child {
    border-bottom: none;
}

.score-item .rank {
    color: #4CAF50;
    font-weight: bold;
}

.score-item .name {
    color: #fff;
}

.score-item .score {
    color: #4CAF50;
    text-align: right;
}

.score-item .date {
    color: #888;
    text-align: right;
}

.no-scores {
    color: #888;
    text-align: center;
    padding: 1rem;
}

#close-highscores {
    display: block;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

#close-highscores:hover {
    background-color: #45a049;
}

.score-input {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

.score-input h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.score-input input {
    padding: 0.5rem;
    margin-right: 0.5rem;
    border: 1px solid #333;
    border-radius: 3px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 1rem;
}

.score-input button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

.score-input button:hover {
    background-color: #45a049;
}

@keyframes rodGlow {
    0% {
        box-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(255, 100, 0, 0.5);
    }
}

.plutonium-rods, .graphite-rods {
    animation: rodGlow 2s infinite;
}

@keyframes steamRise {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(0);
        opacity: 0;
    }
}

.steam-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: steamRise 2s forwards;
}

@keyframes heatWave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.heat-particle {
    position: absolute;
    background-color: rgba(255, 100, 0, 0.6);
    border-radius: 50%;
    animation: heatWave 1s infinite;
}

.highscores-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.highscores-content {
    background-color: #2d2d2d;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #666;
    max-width: 600px;
    width: 90%;
}

.highscores-content h2 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.highscores-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.highscores-content th,
.highscores-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.highscores-content th {
    color: #4CAF50;
    font-weight: bold;
}

.highscores-content tr:hover {
    background-color: rgba(76, 175, 80, 0.1);
}

.close-highscores {
    display: block;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.close-highscores:hover {
    background-color: #45a049;
}

.score-input {
    text-align: center;
    margin-top: 1rem;
}

.score-input input {
    padding: 0.5rem;
    margin: 0.5rem;
    border: 1px solid #666;
    border-radius: 5px;
    background-color: #333;
    color: white;
}

.score-input button {
    padding: 0.5rem 1rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.score-input button:hover {
    background-color: #45a049;
}

.start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.start-button {
    padding: 2.5rem 5rem;
    font-size: 3rem;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid #45a049;
    box-shadow: 0 0 40px rgba(76, 175, 80, 0.8);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    min-width: 400px;
    text-align: center;
}

.start-button:hover {
    background-color: #45a049;
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(76, 175, 80, 1);
}

.alarm-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alarm-light {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #333;
    border: 2px solid #444;
    transition: all 0.3s ease;
}

.alarm-light.active {
    background-color: #ff0000;
    box-shadow: 0 0 10px #ff0000;
    animation: alarmPulse 1s infinite;
}

@keyframes alarmPulse {
    0% {
        box-shadow: 0 0 10px #ff0000;
    }
    50% {
        box-shadow: 0 0 20px #ff0000;
    }
    100% {
        box-shadow: 0 0 10px #ff0000;
    }
} 