main {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    background-color: rgb(241, 241, 241);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.215);
    padding: 20px;
    width: 80%;
    max-width: 600px;
}

.gradient-controls {
    margin-bottom: 20px;
}

#color-selectors {
    margin-bottom: 20px;
}

#color-selectors label {
    display: block;
    margin-top: 10px;
}

#color-selectors input[type="color"] {
    width: 100px;
    height: 40px;
    margin-top: 5px;
}

button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

button:hover {
    background-color: #45a049;
}

.gradient-box {
    width: 100%;
    height: 200px;
    margin-top: 20px;
    border-radius: 8px;
}

.gradient-display p {
    font-size: 1.2em;
}

#gradient-code {
    font-family: monospace;
    word-wrap: break-word;
}

.color-slider {
    width: 80%;
    margin-top: 5px;
}

.color-slider {
    width: 80%;
    margin-top: 5px;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease-in-out;
}

.color-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid black;
    border-radius: 50%;
    cursor: pointer;
}
