
/* ---------- WRAPPER STRUCTURE ---------- */
#wrapper{
    min-height: 150px; 
    padding: 20px;
    border-radius: 20px;
    box-shadow: 2px 2px 15px black;
    width: 100%;
    background-color: #E8E8E7;
    transition: width 0.3s linear, top 0.2s, right 0.2s, bottom 0.2s, left 0.2s;
}

#wrapper.wrapperExpended{
    position: fixed;
    top: 41px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    box-shadow: none;
    border-radius: 0;
}

#wrapper #navbar h5{
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease-in-out;
}

#wrapper #navbar h5:hover{
    font-weight: bold;
}

#wrapper #navbar h5.active{
    font-weight: bold;
}

#wrapper #navbar .fas{
    float: left;
    font-size: 1.2em;
    cursor: pointer;
    margin: 5px;
    transition: transform 0.2s linear;
}

#wrapper #navbar .fas:hover{
    transform: scale(1.5)
}

#wrapperTitleFrame{
    margin: 40px auto;
}

#wrapperTitleFrame p{
    color: whitesmoke;
    text-shadow: 0 1px 1px black;
}

#miniContainer{
    padding: 5px;
    min-height: 150px;
    /*border: 1px solid;*/
    border-radius: 20px;
    background-color: whitesmoke;
    box-shadow: 0 0 5px 1px grey inset;
}


/* ---------- PRODUCTS TAB ---------- */
#productPoolLists{
    padding: 10px;
}

#productPoolLists .fas{
    display: none;
}

#productPoolLists select, #productSearchInput{
    width: 100%;
    display: block
}

#newProductWrapper{
    padding: 10px;
}

#newProductWrapper h5{
    display: none;
    text-align: center;
    margin: auto;
}

#newProductWrapper input, #productPoolLists input{
    width: 100%;
}

#sideListProductsTab #sideListTableHeader{
    width: 100%;
}

#sideListProductsTab #sideListTableHeader td{
    width: 32%;
    text-align: center;
}

#sideListProductsTab{
    max-height: 75vh;
    overflow: auto;
}

#productPoolLists #showHideSideListButton{
    display: none;
    margin: 0px auto 10px auto;
    width: 94%;
}

#sideListProductsTab #sideListTable{
    width: 100%
}

#sideListProductsTab #sideListTable img{
    width: 30px;
    height: 30px;
}

#sideListProductsTab #sideListTable .fa-times{
    transition: transform 0.2s linear;
}
#sideListProductsTab #sideListTable tr:hover .fa-times{
    cursor: pointer;
    transform: scale(1.5);
}

#sideListProductsTab #sideListTable .fa-times:hover{
    color: red;
}

#productsPool{
    max-height: 75vh;
    overflow: auto;
}

.productWrapper{
    display: inline-block;
    padding: 15px;
    margin: 12px;
    max-width: 140px;
    text-align: center;
    direction: rtl;
    border-radius: 10px;
    box-shadow: 0 0 5px 1px grey;
}


.productWrapperAnimated{
    animation: load 0.5s ease-in;
} 
@keyframes load{ 0% {transform: scale(0); opacity: 0;}
                20% {opacity: 1;}
                60% {transform: scale(1.1); }
                100% {transform: scale(1)}
            }


.productWrapperWithWhiteBG{
    background-color: white;
}

.productWrapper p{
    height: 50px;
    line-height: 20px;
}

.productWrapper i{
    position: absolute;
    font-size: 2em;
    opacity: 0;
    color: blue;
    cursor: pointer;
    transition: color 0.2s ease-in, opacity 0.2s ease-out;
}

.productWrapper i:hover{
    color: red;
}

.productWrapper img{
    width: 100%;
    height: 110px;
}


.productWrapper button{
    width: 100%;
    margin: 5px auto;
}

@media only screen and (max-width: 576px) {
    
    #newProductWrapper h5{
        display: block;
    }    
    
    #productPoolLists input#addProductButton{
    display: none;
    }
    
    #productsPool{
        max-height: 70vh;
    }
    
    
    #sideListProductsTab #sideListTable .fa-times{
        color: red;
        transform: scale(1.4);
        margin-right: 10px;
    }

    #productPoolLists #newProductButton{
        display: none;
    }

    #productPoolLists #productSearchInput{
        display: none;
        margin: 5px auto 0;
        width: 100%;
        padding: .375rem .75rem;
        font-size: 1rem;
        line-height: 1.5;
        color: #495057;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid #ced4da;
        border-radius: .25rem;
        transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;    
    }

    #productPoolLists #listToUpdateSelector{
        width: 60%;
        height: 30px;
        display: inline-block;
    }

    #productPoolLists #showHideSideListButton{
        width: 38%;
    }
    
}





/* ---------- LISTS TAB ---------- */
#listWrapper #ListHeader{
    padding: 10px
}

#listWrapper #ListHeader .fas{
    display: none;
}


#listWrapper #ListHeader input{
    width: 100%;
    margin: 0px auto;
}

#listWrapper #newListWizzard{
    padding: 10px;
}

#listWrapper #newListWizzard input{
    width: 100%;
}

#listWrapper #listsTableHeader{
    color: white;
    margin: 7px 0;
    text-align: center;
    background-color: black;
}

#listWrapper #listsPool{
    padding: 15px;
    text-align: center;
}

#listWrapper #listsPool .listRow{
    margin: 5px auto;
}

#listWrapper #listsPool .listRow input{
    padding: 3px 10px;
    margin: 2px;
}

#listWrapper #noProductsInsertedYet{
    color: blue;
    cursor: pointer;
}

#listWrapper #noProductsInsertedYet:hover{
    text-decoration-line: underline;
}

#newListButtonLine{
    color: blue;
    cursor: pointer;
}

#newListButtonLine:hover{
    text-decoration-line: underline;
}

.productsListWrapper{
    width: 100%;
    display: none;
}

.productsListTable{
    width: 100%;
    border: 1px solid;
}

.productsListTable .tableHead{
    background-color: grey;
    color: wheat;
}

.productsListTable .rightTD{
    width: 60%;
    text-align: right;
}

.productsListTable .centerTD{
    width: 20%;
}

.productsListTable .leftTD{
    width: 20%;
}

.productsListTable .leftTD input{
    float: left;
}


#listWrapper .productsListWrapper img{
    height: 50px;
}



@media only screen and (max-width: 992px){
    #wrapper #navbar .fas{
        display: none;
    }
  }


@media only screen and (max-width: 768px) {
    
    .productWrapper {
        padding: 15px;
        margin: 10px;
        max-height: none;
        max-width: 100px;
    }

    .productWrapper h5{
        font-size: 1.1rem;
    }

  }


  @media only screen and (max-width: 576px) {


    #sideListProductsTab{
        display: none;
    }

    
    #wrapperTitleFrame{
        margin: 20px auto 5px auto;
    }

    #wrapperTitleFrame h2{
        font-size: 1.5em;
    }

    
    #wrapperTitleFrame p{
        font-size: 0.65em;
    }   
    
    #navbar .navSelects{
        margin: auto;
        width: 33%;
    }
    
    #listsTableHeader{
        display: none;
    }

    #listWrapper #ListHeader .fas{
        display: block;
    }    

    #listWrapper #ListHeader input[type="button"]{
        display: none;
    }

    #listWrapper #listsPool .listRow{
        margin: 10px auto;
    }

    #listWrapper #listsPool .listsnames{
        font-weight: bold;
    }
    
    #productPoolWrapper{
        padding-bottom: 10px;
    }

    #productsPool{
        margin-left: -15px;
    }

    #productPoolLists .fas{
        display: block;
    }
    

    #sideListProductsTab{
        display: block;
    }

    #sideListProductsTab #sideListTableHeader{
        background: black;
        color: white;
        position: sticky;
        z-index: 2;
        top: 0;    
    }

    #sideListProductsTab #sideListTableHeaderWrapper{
        display: none;
        border-top: 1px solid;
        border-bottom: 1px solid;
        padding-bottom: 5px; 
        background-color: white;   
    }

    #productPoolLists #showHideSideListButton{
        display: inline-block;
    }
    
    .productWrapper {
        max-width: 50%;
        margin: 0px;
        border: 1px solid;
        border-radius: 0;
        box-shadow: none;
    }

    #sideListProductsTab #sideListTable img{
        margin-right: 10px;
    }

  }
  
  @media only screen and (max-width: 350px) {
    .productWrapper {
        padding: 15px;
        margin: 6px;
        max-height: none;
        max-width: 45%;
    }

    .productWrapper h5{
        font-size: 1.1rem;
    }
  }

  @media only screen and (max-width: 320px) {
    .productWrapper {
        padding: 15px;
        margin: 5px;
        max-height: none;
        max-width: 45%;
        }

    .productWrapper h5{
        font-size: 1.1rem;
    }
}



  /* ---------- PROFILE TAB ---------- */

  #profileWrapper{
      padding: 10px;
      text-align: right;
  }

  #profileWrapper i{
      display: none;
  }

  #profileWrapper .profileInputWrapper{
      padding: 5px;
  }

  #profileWrapper .profileInputWrapper input{
      width: 100%;
      padding: 2px 7px
  }

  #profileWrapper #profileFormButtons{
    margin-top: 115px;  
    padding: 15px 10px 5px 10px;
  }

  #profileWrapper #profileFormButtons input{
      width: 49%;
  }

  #profileWrapper #profileEmail{
      background: none;
      border: none; 
      outline: none;
  }

  #profileWrapper .userPreferencesRow{
      margin-top: 9px;
  }

  #profileWrapper #userPreferences input[type="checkbox"]{
      margin: 5px;
      transform: scale(1.6);
  }

  #profileWrapper #profileImage{
    float: left;
    width: auto;
    width: 100%;
    max-height: 275px;
    border-radius: 20px;
  }

  @media only screen and (max-width: 768px) {
    #profileWrapper #profileFormButtons{
        margin-top: 0px;
    }

    #profileWrapper #profileImage{
        max-width: none;
        width: 100%;
        max-height: none;
        margin-top: 10px;
    }
  }

  @media only screen and (max-width: 576px){
    #profileWrapper i{
        display: inline-block;
    }  
  }
