.collapsible-container {
    top: 10px;
    left: 10px;
    min-height: 52px;
    max-width: 250px;
    overflow: hidden;
    z-index: 997;
    position: absolute;
}

.collapsible-button {
    padding: 10px;
    font-size: 16px;
    width: 50px; /* Set width to 55px */
    height: 50px;
    background-color: rgb(48, 91, 117);
    border: 5px solid rgb(190, 232, 241);
    border-radius: 10px;
    box-shadow: #000 2px 2px,#000 2px 2px inset;
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    cursor: pointer;
    position: relative;
}

/* Rotate arrow when active */
.collapsible-button.active::after {
    /*transform: rotate(180deg);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;*/
    transform: translateY(-50%) rotate(180deg);
}

.collapsible-button::after {
    /*content: "▼";
    float: right;
    transition: transform 0.3s;*/
    content: "";
    width: 24px; /* Image size */
    height: 24px; /* Image size */
    background-image: url("/static/assets/arrow.png"); /* Path to your arrow image */
    background-size: 24px 24px; /* Set width and height of the image */
    background-repeat: no-repeat;
    position: absolute;
    right: 8px; /* Adjust if needed */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
    z-index: 999;
}

.collapsible-button:hover {
    border-color: #ffffff; /* Change border color on hover */
    background-color: rgb(87, 128, 154);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgb(48, 91, 117);
    text-align: left;
    color: white;
}

/* Collapsible content style */
.collapsible-content div {
    padding: 10px;
}

.canvas-option img {
    width: 32px; /* Width of the image */
    height: 32px; /* Height of the image */
    margin-right: 10px; /* Space between image and text */
}

.canvas-option {
    font-family: CenturyGothicBold;
    position: relative;
}

.color-picker-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Ensure all elements take the full width of the container */
    height: 52px;
}

.collapsible-content div.canvas-option:hover {
    background-color: rgb(87, 128, 154);
}

.discord-container {
    display: flex;
    align-items: center;
    /*background-color: #2c2f33; /* Discord-like dark background */
    /*border: 2px solid #7289da; /* Discord blue border */
    background-color: rgb(48, 91, 117);
    border: 5px solid rgb(190, 232, 241);
    box-shadow: #000 2px 2px,#000 2px 2px inset;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px; /* Space between each button */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: calc(100% - 20px); /* Full width minus a margin */
    box-sizing: border-box;
}

.discord-container:hover {
    /*background-color: #3c3f43; /* Slightly lighter on hover */
    border-color: #ffffff; /* Change border color on hover */
    background-color: rgb(87, 128, 154);
    transform: scale(1.02); /* Slight zoom on hover */
}

.discord-icon {
    width: 64px; /* Set icon size */
    height: 64px;
    margin-right: 20px; /* Space between icon and text */
    border-radius: 10px; /* Optional: Rounds the image corners */
}

.discord-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    max-width: calc(100% - 84px); /* Ensures text fits next to 128px image with margin */
}

.discord-title {
    font-size: 18px;
    margin: 0;
}

.discord-description {
    font-size: 12px;
    margin: 5px 0 0 0;
}

/* Container styling */
.custom-slider-container {
    padding-top: 15px;
    border-radius: 4px;
    font-family: CenturyGothicBold;
    color: antiquewhite;
    margin-bottom: 10px;
}

/* Labels layout */
.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.label-title {
    font-size: 20px;
    letter-spacing: 1px;
}

/* De Slider zelf */
.instant-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
}

/* De witte lijn (Track) */
.instant-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: #ffffff; /* De witte dunne lijn uit je foto */
    border: none;
}

/* De blauwe bubble (Thumb) - Chrome/Safari/Edge */
.instant-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background-image: url('assets/sliderbutton.png'); /* Pad naar jouw afbeelding */
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: -11px; /* Centreert de afbeelding op de lijn */
    border: none;
}

/* De blauwe bubble - Firefox */
.instant-slider::-moz-range-thumb {
    height: 24px;
    width: 24px;
    background-image: url('assets/sliderbutton.png');
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
}

#custom-hat-adjuster-toggle,
#custom-hat-adjuster,
#custom-lightning-adjuster-toggle,
#custom-lightning-adjuster,
#custom-hair-adjuster-toggle,
#custom-hair-adjuster,
#custom-swift-adjuster-toggle,
#custom-swift-adjuster {
    position: fixed;
    top: 72px;
    right: 18px;
    z-index: 10000;
    font-family: CenturyGothicBold, sans-serif;
}

#custom-hat-adjuster-toggle,
#custom-lightning-adjuster-toggle,
#custom-hair-adjuster-toggle,
#custom-swift-adjuster-toggle {
    padding: 10px 14px;
    color: antiquewhite;
    background: rgb(61, 99, 122);
    border: 4px solid rgb(190, 232, 241);
    border-radius: 10px;
    box-shadow: 0 3px 0 rgb(16, 31, 40);
    cursor: pointer;
}

#custom-hat-adjuster,
#custom-lightning-adjuster,
#custom-hair-adjuster,
#custom-swift-adjuster {
    width: min(290px, calc(100vw - 28px));
    padding: 15px;
    color: antiquewhite;
    background: rgba(45, 79, 100, 0.97);
    border: 4px solid rgb(190, 232, 241);
    border-radius: 12px;
    box-shadow: 0 5px 0 rgb(16, 31, 40), 0 14px 30px rgba(0, 0, 0, 0.45);
}

#custom-lightning-adjuster {
    width: min(320px, calc(100vw - 28px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
}

#custom-swift-adjuster {
    width: min(340px, calc(100vw - 28px));
    max-height: calc(100vh - 92px);
    overflow-y: auto;
}

.custom-swift-adjuster__hint {
    margin: 10px 0 0;
    color: rgb(190, 232, 241);
    font-size: 12px;
    line-height: 1.45;
}

.custom-swift-adjuster__actions {
    position: sticky;
    bottom: 0;
    padding: 10px 0 2px;
    background: rgba(45, 79, 100, 0.97);
}

.custom-layer-group {
    margin-top: 12px;
    padding: 11px;
    border: 1px solid rgba(190, 232, 241, 0.55);
    border-radius: 9px;
    background: rgba(26, 52, 68, 0.35);
}

.custom-layer-group > strong {
    color: rgb(244, 205, 82);
    font-size: 14px;
}

.custom-layer-group .custom-hat-adjuster__control:first-of-type {
    margin-top: 9px;
}

.custom-hat-adjuster__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.custom-hat-adjuster__header strong {
    font-size: 19px;
}

.custom-hat-adjuster__header span {
    color: rgb(190, 232, 241);
    font-size: 12px;
}

.custom-hat-adjuster__control {
    display: block;
    margin-top: 14px;
}

.custom-hat-adjuster__control > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 14px;
}

.custom-hat-adjuster__control input {
    width: 100%;
    accent-color: rgb(98, 179, 197);
}

.custom-hat-adjuster__flip,
.custom-hat-adjuster__actions button {
    min-height: 38px;
    color: antiquewhite;
    background: rgb(75, 116, 141);
    border: 3px solid rgb(190, 232, 241);
    border-radius: 8px;
    box-shadow: 0 2px 0 rgb(16, 31, 40);
    cursor: pointer;
}

.custom-hat-adjuster__flip {
    width: 100%;
    margin-top: 14px;
}

.custom-hat-adjuster__flip.is-active {
    color: white;
    background: rgb(181, 70, 74);
}

.custom-hat-adjuster__actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8px;
    margin-top: 10px;
}

.custom-hat-adjuster__actions #custom-hat-confirm,
.custom-hat-adjuster__actions #custom-hair-confirm,
.custom-hat-adjuster__actions #custom-swift-confirm {
    color: rgb(31, 38, 28);
    background: rgb(244, 205, 82);
    border-color: rgb(255, 232, 151);
}

@media (max-width: 520px) {
    #custom-hat-adjuster-toggle,
    #custom-hat-adjuster,
    #custom-lightning-adjuster-toggle,
    #custom-lightning-adjuster,
    #custom-hair-adjuster-toggle,
    #custom-hair-adjuster,
    #custom-swift-adjuster-toggle,
    #custom-swift-adjuster {
        top: 64px;
        right: 10px;
    }
}
