/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #2c3e50;
    font-size: 2rem;
}

/* Основной контент */
main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.simulation-container {
    display: flex;
    gap: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#simulation-canvas {
    flex: 1;
    min-height: 500px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.controls-panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
}

.buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.buttons button {
    flex: 1;
    padding: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.buttons button:hover {
    background-color: #2980b9;
}

.buttons #stop-btn {
    background-color: #e74c3c;
}

.buttons #stop-btn:hover {
    background-color: #c0392b;
}

.buttons #reset-btn {
    background-color: #95a5a6;
}

.buttons #reset-btn:hover {
    background-color: #7f8c8d;
}

.info-panel {
    background-color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
}

.info-panel h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.info-panel ul {
    list-style-type: none;
}

.info-panel li {
    padding: 5px 0;
    border-bottom: 1px solid #bdc3c7;
}

.info-panel li:last-child {
    border-bottom: none;
}

.instructions {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.instructions h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.instructions ul {
    list-style-position: inside;
}

.instructions li {
    padding: 5px 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .simulation-container {
        flex-direction: column;
    }
    
    .controls-panel {
        width: 100%;
    }
    
    #simulation-canvas {
        min-height: 400px;
    }
}