* { 
    margin: 0; 
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: "Cinzel", serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.bg-full {
    position: fixed;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    background-size: cover;
    background-attachment: fixed;
    z-index: 0;
    top: 0;
    left: 0;
}


#container { 
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    gap: 1.5rem;
}

.controls {
    background: rgba(225, 225, 225, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(74, 64, 64, 0.2);
} 

label {
    color: rgb(74,64,64);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

input[type="text"] {
    padding: 0.7rem 1rem;
    border: 2px solid rgba(74, 64, 64, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95 rem;
    background: rgba(255,255,255,0.9);
    color: rgb(74,64,64);
    min-width: (300px);
    transition: all 0.3s ease;

}

input[type="text"]:focus {
    outline: none;
    border-color: rgba(74, 64, 64, 0.6);
    box-shadow: 0 0 0 3px rgba(74,64,64,0.1);
}

input[type="text"]::placeholder {
    color: rgba(74,64,64,0.5);
}
 
button { 
    padding: 0.7rem 2rem;
    background: rgba(74, 64, 64, 0.8);
    color: white;
    border: 2px solid rgba(74, 64, 64, 0.8);
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

button:hover {
    background:rgba(74, 64, 64, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

select {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(74, 64, 64, 0.3);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    color: rgb(74, 64, 64);
    cursor: pointer;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: rgba(74, 64, 64, 0.6);
}

input[type="color"] {
    width: 50px;
    height: 35px;
    border: 2px solid rgba(74, 64, 64, 0.3);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

input[type="range"] {
    width: 120px;
    height: 6px;
    border-radius: 3px;
    background: rgba(74, 64, 64, 0.2);
    outline: none;
    cursor: pointer;
}


input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height:18px;
    border-radius: 50%;
    background: rgb(74, 64, 64);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgb(74, 64, 64);
    cursor: pointer;
    border: none;

}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: rgb(74, 64, 64);
}

#canvas {
    background: rgba(255,255,255,0.95);
    box-shadow: 
    0 0 0 8px rgba(74, 64, 64, 0.15),
    0 0 0 12px rgba(255, 255, 255, 0.5),
    0 0 0 16px rgba(74, 64, 64, 0.8),
    0 10px 40px rgba(0, 0, 0, 0.2);

    border-radius: 4px;
    position: relative;
}

#canvas::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(74, 64, 64, 0.1) 0%, transparent 50%, rgba(74, 64, 64, 0.1) 100%);
    pointer-events: none;
    z-index: -1;
}

#thickness-value {
    color: rgb(74, 64, 64);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    #container {
        padding: 1rem;
    }

    .controls {
        padding: 0.8rem 1rem;
        width: 100%;
    }
    
    input[type="text"] {
        min-width: 200px;
        width: 100%;
    }

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