body {
    /* margin: unset !important;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-height: 100vh;
    box-sizing: border-box;
    justify-content: center; */
    display: flex;
    flex-direction: column;
    max-height: 100vh;
}

body::after {
    content: "";
    display: none;
    background-image: url('/img/ui/page-forward-highlighted.png');
}

#wardrobe-container {
    margin-top: 1rem;
    margin-bottom: 1rem;
    gap: 20px;
    justify-content: center;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#center-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 2%;
}

#center-container > * {
    min-height: 0;
}

#skin_container {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    border-radius: 0.5rem;
    border: 1px solid var(--accent-color);
}

.controls {
    flex: 1;
    overflow-y: auto;
}

/* @media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    #skin_container {
        width: 100%;
        height: 400px;
        top: 0;
    }

    .controls {
        padding-right: 0;
    }
    #canvas_warp {
        top: 0px;
        background: rgba(255, 255, 255, 0.6);
        position: sticky;
        backdrop-filter: blur(10px);
        padding-bottom: 10px;
        width: 300px;
        max-width: 30vw;
        aspect-ratio: 1 / 3;
    }
} */

.control-section {
    /* height: 20%; */
    flex: 20;
    border: 1px solid var(--accent-color);
    margin-bottom: 20px;
    padding: 15px 1rem 15px 1rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
}

#character-settings {
    width: 30%;
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    padding: 1rem;
    max-width: fit-content;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.control-section h1 {
    margin-top: 0;
    font-size: 1.2em;
}

.control {
    margin: 5px 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #eee;
}

#category-container{
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    width: 5%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#category-container {
    overflow-y: auto;
}

#category-container .category {
    background-color: var(--bg-color-secondary);
    border-radius: 0.5rem;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#category-container .category p{
    margin: 5px;
    text-align: center;
    line-height: 1;
}

#category-container .category button{
    aspect-ratio: 1;
    width: 100%;
    padding: 0.5rem;
    
}

#category-container .category button img{
    /* width: 80px;
    image-rendering: pixelated; */
    width: 100%;
    max-width: 80px;
    image-rendering: pixelated;
    height: auto;
}

.side-panel {
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 0.5rem;
    padding: 20px;
    width: 15%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item-container {
    background-color: transparent;
    width: 100%;
    height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

*::-webkit-scrollbar, #category-container::-webkit-scrollbar {
width: 10px;

}

*::-webkit-scrollbar-track, #category-container::-webkit-scrollbar-track {
background: transparent; /* or match your div background */
margin: 10px;
}

*::-webkit-scrollbar-thumb,  #category-container::-webkit-scrollbar-thumb {
background-color: #888;
border-radius: 10px;
border: 2px solid transparent; /* gives spacing effect */
background-clip: content-box;
}

.item {
    background-color: var(--bg-color-secondary);
    border-radius: 0.5rem;
    padding: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-details {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 10px;
}

.item-details h2 {
    margin: 5px;
    text-align: center;
    line-height: 1;
}


.item-details img{
    background-color: transparent;
    width: 50%;
}


.catalog-item .move-item {
    image-rendering: pixelated;
    min-width: 44px;
    aspect-ratio: 11 / 17;
    border: none;
    background-image: url('/img/ui/page-forward.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
}

.catalog-item .move-item:hover{
    background-image: url('/img/ui/page-forward-highlighted.png');
}

.selected-item .move-item {
    image-rendering: pixelated;
    min-width: 44px;
    aspect-ratio: 11 / 17;
    border: none;
    background-image: url('/img/ui/page-backward.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
    padding: 10px;
}

.selected-item .move-item:hover{
    background-image: url('/img/ui/page-backward-highlighted.png');
}

.selected-item .move-item-up{
    image-rendering: pixelated;
    min-width: 44px;
    aspect-ratio: 11 / 7;
    border: none;
    background-image: url('/img/ui/move-up.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
}

.selected-item .move-item-up:hover{
    background-image: url('/img/ui/move-up-highlighted.png');
}

.selected-item .move-item-down{
    image-rendering: pixelated;
    min-width: 44px;
    aspect-ratio: 11 / 7;
    border: none;
    background-image: url('/img/ui/move-down.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
}

.selected-item .move-item-down:hover{
    background-image: url('/img/ui/move-down-highlighted.png');
}

.selected-item .enable-disable-item{
    image-rendering: pixelated;
    min-width: 44px;
    aspect-ratio: 1;
    border: none;
    background-image: url('/img/ui/checkbox.png');
    background-size: cover;
    background-color: transparent;
    cursor: pointer;
}

.custom-checkbox {
    display: block;
    position: relative;
    margin-bottom: 52px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input {
    accent-color: var(--accent-color);
}

.custom-checkbox input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    aspect-ratio: 1;
    image-rendering: pixelated;
    background-image: url('/img/ui/checkbox.png');
    background-size: cover;
}

.custom-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}
.custom-checkbox input:checked ~ .checkmark {
    image-rendering: pixelated;
    background-image: url('/img/ui/selected-checkbox.png');
    background-size: cover;
}

.custom-checkbox:after {
  content: "";
  position: absolute;
  display: none;
}
.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}
.custom-checkbox .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.selected-item .layer-controls {
    width: min-content;
}

.color-wrapper {
    min-width: 2.5rem;
    aspect-ratio: 1;
    image-rendering: pixelated;
    background-image: url('/img/ui/color-picker-background.png');
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-wrapper input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    inset: 12%;
    width: 73%;
    height: 73%;

    border: none;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.color-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-wrapper input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 0;
}

.color-wrapper input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 0;
}

/* input[type="color"] {
    border: none;
    image-rendering: pixelated;
    background-image: url('/img/ui/color_picker_background.png');
    background-color: transparent;
    background-size: cover;
    width: 5.5rem;
    height: 5.5rem;
    padding: 8%;
    cursor: pointer;
    border-radius: 3px;
    padding: 2px;
    padding: 0;
    margin: 0;
}

input[type="color"]::-webkit-color-swatch { 
    border: none;
    width: 90%;
    aspect-ratio: 1;
} */

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.color-container {
    margin-right: 10px;
}

#canvas-controls {
    /* height: 78%; */
    flex: 78;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.eye-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#skin-color-div{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-label {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem 0 1rem;
}

#uniform-eyebrow-label{
    width: 100%;
}

#canvas_warp {
    /* width: 100%; */
    top: 0px;
    /* background: rgba(255, 255, 255, 0.6); */
    position: sticky;
    backdrop-filter: blur(10px);
    /* padding-bottom: 10px; */
    width: 70%;
    height: 100%;
    /* max-width: 30vw; */
    /* aspect-ratio: 1 / 2; */
}

#media-controls{
    display: flex;
    gap: 10px;
    justify-content: center;
}
