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

/* Body Styling */
body {
    background-color: #f4f7f6;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
h1 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: #444;
}

/* Input Section Styling */
label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

textarea, input, select {
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background-color: #fff;
}

button {
    padding: 10px 20px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* Canvas Container Styling */
canvas {
    margin-top: 20px;
    max-width: 80%;
    max-height: 600px;
    height: auto !important;
    width: auto !important;
}

/* Centering the Chart */
.chart-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Flex Container for Inputs */
input, select {
    display: block;
}

input[type="number"], input[type="color"] {
    max-width: 200px;
}

input[type="text"], textarea {
    max-width: 500px;
}

button {
    max-width: 500px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    input, select, button, textarea {
        max-width: 100%;
        width: 100%;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}
