@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1 {
    margin-top: 0;
    color: #2c3e50;
    font-weight: 600;
}

.preview-box {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #dfe4ea;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}

.control-group label {
    font-weight: 600;
}

.control-group.colors input[type="color"] {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    padding: 0;
}

.control-group.colors input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.control-group.colors input[type="color"]::-webkit-color-swatch {
    border: 2px solid #e0e0e0;
    border-radius: 50%;
}

select {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-family: 'Poppins', sans-serif;
}

input[type="range"] {
    width: 60%;
    cursor: pointer;
}

.output {
    position: relative;
}

textarea {
    width: 100%;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    resize: none;
    box-sizing: border-box; /* Ensures padding is inside the width */
    background-color: #e9ecef;
    color: #495057;
}

button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #0056b3;
}

button:active {
    transform: scale(0.95);
}