body.life-game {
    margin: 0;
    padding: 0;
}

.life-game-app {
    display: flex;
    justify-content: center;
}

.life-game-app .game-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #2a2a2a;
    border-radius: 10px;
    width: 800px;
    height: 600px;
    box-sizing: border-box;
}

/* Canvas Styling */
.life-game-app #gameCanvas {
    background-color: #000;
    border: 1px solid #333;
    width: 580px;
    height: 580px;
    box-sizing: border-box;
}

/* Control Panel */
.life-game-app .control-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 190px;
    padding: 10px;
    background-color: #333;
    border-radius: 8px;
    box-sizing: border-box;
    height: 580px;
    overflow-y: auto;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Make all text elements in control panel use the same font */
.life-game-app .control-panel span,
.life-game-app .control-panel label,
.life-game-app .control-panel p,
.life-game-app .random-controls span,
.life-game-app .mutation-slider label,
.life-game-app .info-display p {
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Remove any specific font overrides */
.life-game-app .random-controls span {
    min-width: 35px;
    text-align: right;
}

.life-game-app label {
    color: #ddd;
}

.life-game-app .mutation-slider label {
    color: #ff6b6b;
    font-weight: bold;
}

.life-game-app button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #4a4a4a;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Pattern Selection */
.life-game-app .pattern-library select {
    width: 100%;
    padding: 6px;
    border: 1px solid #3d3d3d;
    border-radius: 4px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.life-game-app .pattern-library select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Buttons */
.life-game-app .simulation-controls {
    display: flex;
    gap: 10px;
    width: 100%;
}

.life-game-app .simulation-controls button {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    text-align: center;
}

/* Random Controls */
.life-game-app .random-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-game-app .random-controls button {
    width: auto;
    min-width: 70px;
    flex-shrink: 0;
}

.life-game-app .random-controls input[type="range"] {
    flex: 1;
    margin: 0;
}

.life-game-app .population-size {
    margin-top: 5px;
}

/* Draw Mode Controls */
.life-game-app .draw-mode-controls {
    display: flex;
    justify-content: center;
}

.life-game-app .mode-add {
    background-color: #2ecc71;
}

.life-game-app .mode-remove {
    background-color: #e74c3c;
}

/* Sliders */
.life-game-app .speed-control,
.life-game-app .grid-size {
    margin-top: 10px;
}

.life-game-app input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.life-game-app input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
}

.life-game-app input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Checkboxes */
.life-game-app .checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.life-game-app .checkbox input[type="checkbox"] {
    margin-right: 5px;
}

/* Information Display */
.life-game-app .info-display {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #4a4a4a;
}

.life-game-app .info-display p {
    margin: 5px 0;
}

/* Mutation Controls */
.life-game-app .mutation-controls {
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 6px;
}

.life-game-app .mutation-slider {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.life-game-app #mutation {
    accent-color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 800px) {
    .life-game-app .game-container {
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 0 10px;
    }

    .life-game-app #gameCanvas {
        width: 100%;
        height: auto;
    }

    .life-game-app .control-panel {
        width: 100%;
    }
} 