 /* General Body Styling */
 div {
    width: 50%;
    margin: 0 auto;
 }
 body {

    width: auto;
    font-family: 'Arial', sans-serif;
    background-color: #c9a3c8;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;

}

/* Headings */
h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

/* Form Styles */
form {
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

/* Form Label */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

/* Form Input Fields */
input[type="text"], 
input[type="date"], 
input[type="number"], 

select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Color Picker */
input[type="color"] {
    width: 100px;
    height: 50px;
    border: none;
    margin-bottom: 20px;
    cursor: pointer;
    padding: 5px;
}

/* Button Styles */
button {
    background-color: #447bbe;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #434190;
    transform: scale(1.05);
}

button:active {
    background-color: #2C5282;
    transform: scale(0.95);
}

/* Form Container Styling */
form select, form input[type="color"], form input[type="text"], form input[type="date"] {
    margin-top: 5px;
    border-radius: 8px;
}

form label {
    margin-bottom: 5px;
}

/* Live Preview Styling */
#formPreview {
    background-color: #fff;
    border: 2px solid #ccc;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}


/* Code Output Section */
pre {
    background: #000000;
    border: 1px solid #ddd;
    border-left: 3px solid #7972BC;
    color: #ffffff;
    page-break-inside: avoid;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1em 1.5em;
    display: block;
    word-wrap: break-word;
}

/* Form Container Styling */
form select, form input[type="color"], form input[type="text"], form input[type="date"] {
    margin-top: 5px;
}

form label {
    margin-bottom: 5px;
}



/* Responsive Design */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    button {
        width: 100%;
    }
}