*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d4c0 100%);
    min-height: 100vh;
}

.wrapper{
    background-color: #faf6f1;
    width: 80vmin;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(139, 90, 43, 0.15), 0 2px 8px rgba(139, 90, 43, 0.1);
}

label{
    display: block;
    color: #5c4033;
    font-weight: 500;
}

span{
    position: relative;
    font-size: 22px;
    bottom: -1px;
    color: #6d6d6d;
}

.opt-wrapper{
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

button{
    background-color: #c9764d;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(201, 118, 77, 0.2);
}

button:hover{
    background-color: #b8604b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 118, 77, 0.3);
}

input[type="color"]{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    width: 70px;
    height: 40px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

input[type="color"]:hover{
    transform: scale(1.05);
}

input[type="color"]::-webkit-color-swatch{
    border-radius: 8px;
    border: 3px solid #c9764d;
    box-shadow: 0 3px 10px rgba(201, 118, 77, 0.2);
}
input[type="color"]::-moz-color-swatch{
    border-radius: 8px;
    border: 3px solid #c9764d;
    box-shadow: 0 3px 10px rgba(201, 118, 77, 0.2);
}

.gridCol{
    height: 1em;
    width: 1em;
    border: 1px solid #e0d0c0;
    transition: box-shadow 0.2s ease;
}

.gridCol:hover{
    box-shadow: inset 0 0 4px rgba(201, 118, 77, 0.2);
}

.gridRow{
    display: flex;
}

.slider{
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

input[type="range"]{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #e0d0c0, #d4bfaa);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(139, 90, 43, 0.1);
}

input[type="range"]::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #c9764d, #b8604b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(201, 118, 77, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 2px solid #faf6f1;
}

input[type="range"]::-webkit-slider-thumb:hover{
    box-shadow: 0 5px 15px rgba(201, 118, 77, 0.4), 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb{
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #c9764d, #b8604b);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(201, 118, 77, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: 2px solid #faf6f1;
}

input[type="range"]::-moz-range-thumb:hover{
    box-shadow: 0 5px 15px rgba(201, 118, 77, 0.4), 0 2px 5px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track{
    background: transparent;
    border: none;
}

@media only screen and (max-width: 768px){
    .gridCol{
        height: 0.8em;
        width: 0.8em;
    }
}