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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #eee;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.stats-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 350px;
    z-index: 10;
    pointer-events: none;
}

.stats-overlay pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 12px;
}

#renderStatus {
    color: #ff9900;
    font-weight: bold;
    font-family: monospace;
    margin-top: 10px;
}

canvas {
    display: block;
    background-color: #000;
    cursor: crosshair;
    flex-grow: 1;
    width: 100%;
}

.controls {
    background-color: rgba(30, 30, 30, 0.85);
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #444;
}

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

label {
    font-size: 0.9rem;
    color: #aaa;
}

select, input, button {
    background-color: #333;
    color: #eee;
    border: 1px solid #555;
    padding: 5px 10px;
    border-radius: 4px;
}

button {
    cursor: pointer;
    background-color: #2a5d8a;
    transition: background-color 0.2s;
    margin: 0 5px;
    white-space: nowrap;
}

button:hover {
    background-color: #3a7db0;
}

.julia-params {
    display: flex;
    gap: 10px;
}

.julia-params input {
    width: 70px;
}

#fractalNote {
    margin: 0;
    font-family: monospace;
    font-size: 14px;
    color: #ff9900;
}

.description-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 300px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#fractalDescription {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
    font-size: 13px;
}

.instructions {
    display: none;
}