@font-face {
    font-family: 'Cenios';
    src: url('/fonts/Cenios-Regular.otf') format('truetype');
}
:root {
    --primary-color: #e6d0b8;
    --secondary-color: #5d4037;
}
body {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: row;
    font-family: 'Cenios', sans-serif;
    background-color: var(--primary-color);
    min-height: 100vh;
    box-sizing: border-box;
}
.left-panel {
    width: 100%;
    padding-right: 10px;
}
.right-panel {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}
canvas {
    border: 1px solid var(--secondary-color);
    background-color: var(--primary-color) !important;
}
.instructions {
    margin: 0px 0;
    padding: 0px;
    display: flex;
    flex-direction: column;
    /* background-color: #fff; */
    border-radius: 0px;
    max-width: 100%;
    /* border: 1px solid var(--secondary-color); */
}
button:focus {
    outline: none;
}
h1 {
    color: var(--secondary-color);
    font-size: 40px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0;
}
.controls {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
button {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Cenios', sans-serif;
}
button:hover {
    background-color: #4e342e;
}
.file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

#customUploadBtn {
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Cenios', sans-serif;
    transition: background 0.2s;
}
#customUploadBtn:hover {
    background-color: #4e342e;
}

#fileName {
    font-size: 14px;
    color: var(--secondary-color);
    font-family: 'Cenios', sans-serif;
}

#imageUpload {
    display: none;
}

#imagePreview {
    max-width: 200px;
    max-height: 150px;
    margin-top: 10px;
    display: none;
    border: 1px solid var(--secondary-color);
}
#canvas-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.slider-container {
    width: 100%;
    margin-bottom: 15px;
}

#densitySlider {
    width: 100%;
    height: 8px;
    margin: 10px 0;
    -webkit-appearance: none;
    background: #d7c0a1;
    border-radius: 4px;
    outline: none;
}

#densitySlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
}

#densitySlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--secondary-color);
    cursor: pointer;
    border: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--secondary-color);
}

.button-group {
    display: flex;
    gap: 10px;
}