/* General Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #1e1e2f;
    color: #edf2f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #8ecae6;
    margin-bottom: 10px;
}

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

/* Main Section Styling */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

/* Controls Section */
#controls {
    background: #2b2d42;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    margin-bottom: 20px;
}

#controls h2 {
    color: #8ecae6;
    margin-bottom: 15px;
}

#controls label {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

#controls input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    border: 1px solid #8ecae6;
    border-radius: 5px;
    background: #edf2f4;
    color: #2b2d42;
}

#controls button {
    background: #8ecae6;
    color: #1e1e2f;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#controls button:hover {
    background: #219ebc;
}

/* Canvas Section */
#canvas-container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

#canvas-container h2 {
    color: #8ecae6;
    margin-bottom: 10px;
}

canvas {
    border: 2px solid #8ecae6;
    border-radius: 5px;
    background: #edf2f4;
    display: block;
    margin: 0 auto;
}

/* Footer Styling */
footer {
    text-align: center;
    margin-top: 30px;
}

footer p {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    #controls {
        width: 90%;
    }

    #canvas-container {
        width: 100%;
    }

    canvas {
        width: 100%;
        height: auto;
    }
}