/* General Styles */
body {
    margin: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #F7F7F7;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #C9E4CA;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #8BC34A;
}

header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

header p {
    margin: 8px 0 0;
    font-size: 1rem;
    color: #666;
}

/* Main Layout */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

section#controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

label {
    font-weight: 600;
    color: #333;
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCC;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

input[type="text"]:focus {
    outline: none;
    border-color: #8BC34A;
}

input[type="range"] {
    width: 100%;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #FFF;
    background-color: #8BC34A;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7AAC3F;
}

button:active {
    background-color: #6C9835;
}

button:disabled {
    background-color: #CCC;
    cursor: not-allowed;
}

.tooltip {
    font-size: 0.875rem;
    color: #666;
    margin-top: -5px;
    margin-bottom: 10px;
}

/* Results Section */
section#results {
    text-align: center;
}

#entropy-output {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

#entropy-output span {
    font-weight: 600;
    color: #666;
}

#entropy-output strong {
    font-weight: 600;
    color: #8BC34A;
}

canvas {
    display: block;
    margin: 0 auto;
    border: 2px solid #C9E4CA;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #FFF;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 20px;
    background-color: #C9E4CA;
    border-top: 2px solid #8BC34A;
    color: #666;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    canvas {
        width: 100%;
    }
}