/* GALERY DEFAULT */
.galleryContainer {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px;
    display: inline-block;
    justify-content: center;
    vertical-align: top;
    text-align: center;
    border-radius: var(--sunBorderRadius);
}

.galleryImage{
    border-radius: var(--sunBorderRadius);
    object-fit: contain;
}

.galleryImage:hover{
    cursor: pointer;
    box-shadow: 0 0 6px #454f58;
}

.galleryImage.selected{
    border-radius: var(--sunBorderRadius);
    border: 1px solid #ddd;
    box-shadow: 0 0 6px #23282d;
}

#tag-add-gallery {
    margin-top: 1%;
}

.galleries-nav-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
    padding-top: 1%;
}

.galleries-single-tab{
    width: 20%;
    height: 25px;
    background: #fff;
    margin-right: 5px;
    padding: 4px;
    border-top-left-radius: 6px;
    color: #23282d;
    border-top-right-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #e2e2e2;
    white-space: nowrap;
    border-bottom: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.galleries-single-tab:hover{
    cursor: pointer;
    box-shadow: 0 -3px 5px #e6e6e6;
}

.galleries-single-tab-active{
    font-weight: 400;
    background: #f7f7f7;
    box-shadow: 0 -3px 5px #e6e6e6;
    text-decoration: underline;
}

.galleries-content{
    width: 100%;
    position: relative;
    background-color: #f1f1f15c;
    border: 1px solid #ddd;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    border-top-right-radius: 6px;
}

.sun_gallery_images {
    border: 1px solid #ddd;
    border-radius: var(--sunBorderRadius);
    height:540px;
    overflow:auto;
}

#GalleryList {
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

#BackgroundsList{
    width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

#BackgroundsList::-webkit-scrollbar {
    width: 5px;
}

#BackgroundsList::-webkit-scrollbar-track {
    background: #dddddd;
}

#BackgroundsList::-webkit-scrollbar-thumb {
    background: var(--sunDefault);
}

#BackgroundsList::-webkit-scrollbar-thumb:hover {
    border-radius: var(--sunBorderRadius);
    transition: width 2s;
}

#ClipartsList{
    width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

#ClipartsList::-webkit-scrollbar {
    width: 5px;
}

#ClipartsList::-webkit-scrollbar-track {
    background: #dddddd;
}

#ClipartsList::-webkit-scrollbar-thumb {
    background: var(--sunDefault);
}

#ClipartsList::-webkit-scrollbar-thumb:hover {
    border-radius: var(--sunBorderRadius);
    transition: width 2s;
}

#MasksList{
    width:100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

#MasksList::-webkit-scrollbar {
    width: 5px;
}

#MasksList::-webkit-scrollbar-track {
    background: #dddddd;
}

#MasksList::-webkit-scrollbar-thumb {
    background: var(--sunDefault);
}

#MasksList::-webkit-scrollbar-thumb:hover {
    border-radius: var(--sunBorderRadius);
    transition: width 2s;
}

.blankTemplate {
    max-width: 100px;
    max-height: 50px;
    -webkit-box-shadow: 0 10px 18px -1px #f1f1f1;
    -moz-box-shadow: 0 10px 18px -1px #f1f1f1;
    box-shadow: 0 4px 3px 1px #f1f1f1;
}

.blankTemplate:hover{
    cursor: pointer;
}

.blankContainer {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 10px;
    display: inline-block;
    justify-content: center;
    vertical-align: top;
    text-align: center;
}

.blankTemplate.selected{
    border: 2px solid var(--sunDefault);
    border-radius: var(--sunBorderRadius);
}

.blank_caption {
    display: block;
}

#BlanksList{
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

#ChosenBlanks{
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
}

#BlankTemplatesList{
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
}

/* Template Themes */
.sun_template-close, .sun-template-close {
    color: #ff0404;
    display: flex;
    font-size: 25px;
    font-weight: bold;
    position: absolute;
    width: 88%;
    justify-content: flex-end;
}

.sun_template-close:hover,
.sun-template-close:hover,
.sun_template-close:focus,
.sun-template-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.imageAreaThemes{
    width: 100%;
    height: 100%;
    position: relative;
    border: 1px solid #ddd;
    border-radius: var(--sunBorderRadius);
    background: #ffffff;
}

#ThemesList{
    width:100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
}

.templateTheme {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
    /*border: 1px solid var(--sunDefault);*/
    border-radius: var(--sunBorderRadius);
}

.sun_used {
    display: inline-block;
    margin-left: 1em;
    padding: 3px 6px;
    background-color: grey;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
}

.sun_used.positive {
    background-color: limegreen;
}

.sun_template_themes {
    height: 200px;
    overflow: auto;
}

#tableThemeTemplate thead{
    border-bottom: 1px solid #e6e6e6;
    display: table;
    width: 100%;
    table-layout: fixed;
}

#tableThemeTemplate tbody{
    width: 100%;
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    table-layout: fixed;
    max-height: 500px;
    text-align: center;
}

#tableThemeTemplate tbody tr{
    height: 50px;
    table-layout: fixed;
    display: table;
    color: #23282d;
    width: 100%;
}

#tableThemeTemplate tbody::-webkit-scrollbar {
    width: 5px;
}

#tableThemeTemplate tbody::-webkit-scrollbar-track {
    background: #dddddd;
}

#tableThemeTemplate tbody::-webkit-scrollbar-thumb {
    background: var(--sunDefault);
}

#tableThemeTemplate tbody::-webkit-scrollbar-thumb:hover {
    border-radius: 5px;
    transition: width 2s;
}

.sun-template-title{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sun-template-title > .form-section-title{
    padding: 0;
}

.filter-templates:hover{
    cursor: pointer;
    color: var(--sunDefault);
}

.selected-template-name {
    width: 100%;
    padding: 5px;
    text-align: center;
    position: absolute;
    bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}