/*### Constant variables ###*/
:root {
    --dressupHeight: 500px;
    --dressupHeightMinusTabs: 453px;
    --layerDisplayContainerWidth: 100px;
    --dividerWidth: 35px;
    --borderWidth: 2px;
    --thinBorderWidth: 1px;
    --fatBorderWidth:3px;
    --borderRadius: 10px;
    --paddingDefault: 5px;
    --framePadding: 20px;
    --standardBorder: var(--borderWidth) solid var(--primaryColor);
    --selectedTabBorder: var(--borderWidth) solid var(--primaryColor);
    --unselectedTabBorder: var(--borderWidth) solid var(--secondaryColor);
    --lightBorder: var(--thinBorderWidth) dotted var(--lightOutlineColor);
    --primaryColor: #f4b3ff;
    --secondaryColor: #C1FFF1;
    --tertiaryColor: #F5FFC4;
    --secondaryColorDarker: #fffec4b6;
    --pickerBackingColor: rgb(249, 255, 226, .5);
    --offWhite: #EEE;
    --charcoal: #444A;
    --borderMultiply: #00244d15;
    --darkenedBackground: #777;
    --lighterDarkenedBackground: #999;
    --lightOutlineColor: #AAA7;
    --layerUpArrow: url('../img/_frameElements/doubleChevron.png');
    --layerDownArrow: url('../img/_frameElements/doubleChevron.png');
    --saveImageIcon: url('../img/_frameElements/saveIcon.png');
    --layerRemove: url('../img/_frameElements/deleteIcon.png');
    --backgroundImage: url('../img/_frameElements/widened\ splatter\ background.png');
    --howToBackground: url('../img/_frameElements/howTo_marked.jpeg');
    --dislyteGradient: linear-gradient(to bottom, #f4b3ff, #C1FFF1 , #F5FFC4);
}


/*### Boostrap Border Test*/
.gradientBackground {
  /*background: var(--dislyteGradient);*/
  color: #444A;
  border: 1em solid transparent;
}

.gradientBorder {
    border-image-source: var(--dislyteGradient);
}


/*### Decoration and Misc ###*/
.bordered {
    border: var(--standardBorder);
}

.layerControlSidebar {
    background-color: var(--primaryColor);
    width:var(--dividerWidth);
    height: var(--dressupHeight);
}


/*### Frame and img elements ###*/
#contentFrameTop {
    height:35px;
    width: 100%;
    background-image: var(--dislyteGradient);
}

#contentFrameBottom {
    height:35px;
    background-image: var(--dislyteGradient);
}

#firstDivider {
    background-image: var(--frameFirstDividerUrl);
    min-width:var(--dividerWidth);
    height: var(--dressupHeight);
}

#secondDivider {
    background-image: var(--frameSecondDividerUrl);
    min-width:var(--dividerWidth);
    height: var(--dressupHeight);
}

#leftBorder {
    background-image: var(--frameLeftBorderUrl);
    min-width:var(--dividerWidth);
    height: var(--dressupHeight);
}

#rightBorder {
    background-image: var(--frameRightBorderUrl);
    min-width:var(--dividerWidth);
    height: var(--dressupHeight);
}

/*### Main Dressup Display ###*/
#mainContent {
    display: flex;
    flex-wrap: wrap;
    flex-direction: ltr;
    padding: 0px;
    margin: 0px;
    color: #444A;
    border: 1em solid transparent;
    justify-content: flex-start;
    gap: 10px 25px;
}

#mainContentFrame {
    padding: var(--framePadding);
    background-image: var(--dislyteGradient);
    width: 99%;
    height: 565;
    padding: 0px;
    margin: 2px;
    border: 3px solid var(--charcoal);
}

#characterImageContainer {
    margin: 0px;
    display: flex;
    background: var(--offWhite);
    border: 2px solid var(--borderMultiply);
}


/*### Layer Display ###*/
#layerSidebar {
    display: flex;
    height: var(--dressupHeight)
}

#layerDisplayContainer {
    display: grid;
    overflow-y: auto;
    overflow-x: hidden;
    height: var(--dressupHeight);
    min-width: var(--layerDisplayContainerWidth);
    background-color: var(--offWhite);
    border: 2px solid var(--borderMultiply);
}

.selectedLayerButton {
    background-color: var(--lighterDarkenedBackground);
}

#layerControlsContainer {
    display: flex;
    flex-direction: column;
    align-self: center;
    width: var(--dividerWidth);
    gap: 15px;
}

#layersContainer {
    display:flex;
    max-height: var(--dressupHeight);
    gap: 15px;
    flex-direction: ltr;
    max-width: 155px;
    min-width: 140px;
}

.panelSpacer {
    display:flex;
    /*background-image: var(--frameControlsBackgroundUrl);*/
    max-height: var(--dressupHeight);
}

.shiftLayerUp {
    background-image: var(--layerUpArrow);
    background-color: var(--secondaryColorDarker);
    text-align: center;
    rotate: -90deg;
    border: 1px solid var(--secondaryColorDarker);
}

.shiftLayerDown {
    background-image: var(--layerDownArrow);
    background-color: var(--secondaryColorDarker);
    text-align: center;
    rotate: 90deg;
    border: 1px solid var(--secondaryColorDarker);
}

.removeLayerButton {
    background-image: var(--layerRemove);
    background-color: var(--tertiaryColor);
    text-align: center;
    border: 1px solid var(--secondaryColorDarker);
}

.saveImageButton {
    background-image: var(--saveImageIcon);
    background-color: var(--tertiaryColor);
    text-align: center;
    height: 35px !important; 
    border: 1px solid var(--secondaryColorDarker);
}

.infoButton {
    background-color: var(--tertiaryColor);
    text-align: center;
    height: 35px !important; 
    border: var(--fatBorderWidth) solid var(--primaryColor);
    border-radius: 18px;
    font-weight: 900;
    color: var(--charcoal)
}

.controlButton {
    height: 37px;
    width: 35px;
    background-size: 33px;
}

.controlButton:hover {
    background-color: var(--secondaryColor);
}

.sidebarLayerDisplay .layerButton {
    display: grid;
    height: 92px;
    background-color: var(--primaryColor);
    border: 1px solid var(--primaryColor);
}

.selected {
    background-color: var(--secondaryColor);
}

.layerButtonThumbnail {
    height: 75px;
    width: 75px;
    border: var(--lightBorder);
}




/*###  Picker Display  ###*/

#tabButtonsContainer {
    overflow-x: scroll;
    width: auto;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 1px;
    rotate: 180deg;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primaryColor);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--charcoal);
    border-radius: 8px;
    border: var(--thinBorderWidth);
    max-width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.selectedGarmentTypeContainer {
    display: grid;
    width:auto;
    overflow: auto;
    height: 452px;
    background-color: var(--pickerBackingColor);
}

.unselectedGarmentTypeContainer {
    display: grid;
    width:auto;
    overflow: scroll;
    max-height: var(--dressupHeightMinusTabs);
    background-color: var(--secondaryColor);
}

#articlePickerContainer {
    background-color: var(--offWhite);
    border: 2px solid var(--borderMultiply);
    padding: 0px;
}

.pickerTabUnselected {
    display: flex;
    padding: var(--paddingDefault);
    border-radius: var(--borderRadius);
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background-color: var(--secondaryColor);
    border: 1px dotted var(--charcoal);
    rotate: 180deg;
    white-space: nowrap;
}

.pickerTabSelected {
    display: flex;
    padding: var(--paddingDefault);
    border-radius: var(--borderRadius);
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background-color: var(--tertiaryColor);
    border: 1px solid var(--tertiaryColor);
    rotate: 180deg;
    white-space: nowrap;
}

.garmentImageButton {
    height: 75px;
    border: var(--lightBorder);
    background-color: var(--offWhite);
    margin: 3px;
}

.garmentImageButton .active {
    height: 75px;
    border: var(--lightBorder);
    background-color: var(--darkenedBackground);
    margin: 3px;
}


/*### Modal Credits ###*/
#modal {
    display: none; /* Hidden by default */
    align-items: center;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

#modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 50%; /* Could be more or less, depending on screen size */
    border-radius: 6px;
}

#howto {
    height: 90%;
    width: 90%;
}

#howto > img {
    width: 100%; 
    margin: 10px;
}

#credits {
    margin-top: 1%;
    text-align: center;
}

#closeInfo {
    border: var(--fatBorderWidth) solid var(--primaryColor);
    border-radius: 12px;
    background: var(--secondaryColorDarker);
    width: 75px;
}

#closeInfo:hover {
    border: var(--fatBorderWidth) solid var(--primaryColor);
    border-radius: 12px;
    background: var(--secondaryColor)
}
