.transition{
  transition-timing-function: cubic-bezier(0.175, 0.665, 0.320, 1), linear;
  transition: all 0.3s;
}

.absoluteCentering{
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.uiEditor_templateExplorer {
    
  &_ground{
    opacity: 0.7;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    .transition;
  }
  
  &_root{
    position: relative;
    display: flex;
    flex-direction: column;
    & when not(@preferences-flat) {
      background-color: rgb(75, 75, 75);
    }
    & when (@preferences-flat) {
      background-color: white;
    }
    height: 700px;
    width: 813px;
    cursor: pointer;
  }
  
  &_header{
    & when not(@preferences-flat) {
      background-color: rgb(55, 55, 55);
    }
    & when (@preferences-flat) {
      background-color: #BFBDB8;
    }
    min-height: 40px;
    max-height: 40px;
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
  }
  
  &_divider{
    width: 100%;
    & when not(@preferences-flat) {
        min-height: 1px;
    }
    & when (@preferences-flat) {
        max-height: 0px;
    }
  }
  
  &_content{
    min-height: 596px;
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-flow: wrap row;
    overflow: auto;
    align-content: flex-start;
    padding: 0px 0px 10px 0px;
    
    &_loader{
        position: absolute;
        width: 25%;
        height: 25%;
        margin: auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }
  }
  
  &_templateItem{
    
    &_root{
      position: relative;
      height: 386px;
      width: 177px;
      margin-left: 20px;
      margin-top: 20px;
      display: flex;
      flex-flow: column wrap;
    }
    
    &_addIcon{
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
      width: 36px;
      height: 36px;
      color: #373737;
      .transition;
      background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABGdBTUEAALGPC/xhBQAAAIpJREFUSA1jYCAD/P//X4IMbeRrAVr4FYi5yDGBiRxNlOgZtZCS0MOqdzRIsQYLJYKjQUpJ6GHVS/cgZYQWxHexOge3ICdQ6jtuaZwyyowgKTIK4tdAbXJATJKljIyM30D2kQxGawt8QUb3VDpqIb7oIEtuNEjJCjZ8moZ/kOLzPU45aA2DUx6fBADWbx9gPNwMcwAAAABJRU5ErkJggg==');
      background-size: 85% 85%;
      background-position: center center;
      background-repeat: no-repeat;
      border: solid 1px white;
      border-radius: 18px;
    }
    
    
    &_hoverItem{
      position: absolute;
      left: 0;
      & when not(@preferences-flat) {
        top: 40px;
      }
      & when (@preferences-flat) {
        top: 41px;
      }
      right: 0;
      height: 316px;
      width: 100%;
      background-color: #4097D2;
      opacity: 0;
      .transition;
      
      &:hover{
        opacity: 0.8;
      }
      
      &_textView {
        line-height: 20px;
        font-size: 20px;
        .absoluteCentering;
        padding-bottom: 120px;

        
        div {
          color: white;
          height: 20px;
          text-align: center !important;
        }
      }
    }
    
    &_content{
      background-color: white;
      background-repeat: no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
      max-height: 316px;
      flex-grow: 1;
      .transition;
      
      div {
        height: 128px;
        background-color: #4097D2;
        display: flex;
      }
      
      & when (@preferences-flat) {
        border: 1px solid #DAD9D9;
      }
      
      &_textView {
        height: 90%;
        line-height: 20px;
        font-size: 20px;
        vertical-align: bottom;
        align-self: flex-end;
        margin-bottom: 10px;

        div {
          color: white;
          height: 20px;
          text-align: center;
        }
      }
    }
    
    &_textView{
      user-select: none;
      flex-grow: 1;
      display: table;
      justify-content: center;
      align-content: center;
      width: 100%;
      & when not(@preferences-flat){
        color: #9D9D9D;
      }
      & when (@preferences-flat){
        color: #847F7F;
      }
      max-height: 40px;
      min-height: 40px;
      
      div {
        display: table-cell;
        text-align: left;
        vertical-align: middle;
        font-family: avenir,helvetica;
      }
    }
    
    &_title{
      font-size: 15px;
    }
    
    &_description{
      font-size: 12px;
    }
  
  }
  
  &_button{
    align-self: center;
    width: 100px;
    height: 40px;
    margin-right: 10px;
    font-family: Helvetica;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    border-radius: 2px;
    user-select: none;
    cursor: default;
    opacity: 0.8;
    
    &_delete{
      background-color: transparent;
      width: 40px;
      margin-right: 0px;
      color: rgb(155, 155, 155);
    }
    
    &:hover{
        opacity: 1;
    }
  }
  
}

.dividerDark{
  background-color: rgb(46, 45, 43);
}

.dividerLight{
  background-color: rgb(86, 86, 86);
}
