* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', Arial, sans-serif;
}

body {
    background-color: #000;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #4CAF50;
    font-size: 32px;
    letter-spacing: 1px;
    font-weight: 600;
}

h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 18px;
}

.parameter-info {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.equation-display {
    font-family: monospace;
    background-color: rgba(30, 30, 30, 0.8);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    border-left: 3px solid #4CAF50;
}

.equation-display p {
    margin: 5px 0;
    font-size: 16px;
}

.controls {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #333;
}

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

.control-info {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4CAF50;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #242424;
    color: #f0f0f0;
    font-family: monospace;
    font-size: 14px;
    transition: all 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    height: 6px;
    background: #333;
    border-radius: 3px;
    margin: 10px 0;
}

.buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    grid-column: 1 / -1;
}

button {
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #3e8e41;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#chaosCanvas {
    width: 100%;
    height: 700px;
    background-color: #000;
    border-radius: 10px;
    cursor: crosshair;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.info {
    margin-top: 20px;
    background: rgba(15, 15, 15, 0.7);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

.info h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.info ul {
    list-style: none;
    margin-top: 5px;
    padding-left: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 5px 20px;
}

.info li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.info li strong {
    color: #4CAF50;
    margin-right: 10px;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

#tValue {
    font-family: monospace;
    font-weight: bold;
    color: #4CAF50;
}

#equationCode {
    font-family: monospace;
    font-weight: bold;
    color: #f9a603;
    letter-spacing: 1px;
}

.featured-codes {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

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

.code-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #2C3E50;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-width: 120px;
    text-align: center;
    letter-spacing: 0.5px;
}

.code-btn:hover {
    background-color: #34495E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.code-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .info ul {
        grid-template-columns: 1fr;
    }
}