/* General Reset and Base Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

header {
    text-align: center;
    padding: 2rem;
    background-color: #2a2a2a;
    border-bottom: 2px solid #00ff00;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    color: #c0c0c0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

#controls {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e0e0e0;
}

.control-group label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    gap: 0.5rem;
}

input[type="button"] {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background-color: #00ff00;
    color: #1a1a1a;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

input[type="button"]:disabled {
    background-color: #666;
    cursor: not-allowed;
}

input[type="button"]:hover:not(:disabled) {
    background-color: #00cc00;
    transform: scale(1.05);
}

input[type="range"] {
    width: 150px;
    cursor: pointer;
}

#speed-val {
    font-weight: bold;
    color: #00ff00;
}

#visualization {
    margin-top: 2rem;
    border: 2px solid #00ff00;
    padding: 1rem;
    background-color: #1a1a1a;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

canvas {
    display: block;
    border: 3px solid #00ff00;
    background-color: #000;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2a2a2a;
    border-top: 2px solid #00ff00;
    color: #c0c0c0;
    font-size: 0.9rem;
}
