/* ----------------------------------------------------------- */
/* == tingle v0.13.2 */
/* ----------------------------------------------------------- */

.tingle-modal * {
  box-sizing: border-box;
}
.docs-buttons   {display: flex;
    justify-content: center;}
.docs-buttons .btn{  
  border:none;
  background-color: transparent;    background-color: transparent;
    padding: 5px;
    width: 45px;
    box-shadow: none;
    margin: 10px;    color: #000;}
.tingle-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  visibility: hidden;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(0, 0, 0, .8);
  opacity: 0;
  cursor: pointer;
  -webkit-transition: -webkit-transform .2s ease;
  transition: -webkit-transform .2s ease;
  transition: transform .2s ease;
  transition: transform .2s ease, -webkit-transform .2s ease;
}

/* confirm and alerts
-------------------------------------------------------------- */

.tingle-modal--confirm .tingle-modal-box {
  text-align: center;
}

/* modal
-------------------------------------------------------------- */

.tingle-modal--noOverlayClose {
  cursor: default;
}

.tingle-modal--noClose .tingle-modal__close {
  display: none;
}

.tingle-modal__close {
  position: fixed;
  top: 10px;
  right: 28px;
  z-index: 1000;
  padding: 0;
  width: 5rem;
  height: 5rem;
  border: none;
  background-color: transparent;
  color: #f0f0f0;
  font-size: 6rem;
  font-family: monospace;
  line-height: 1;
  cursor: pointer;
  -webkit-transition: color .3s ease;
  transition: color .3s ease;
}

.tingle-modal__closeLabel {
  display: none;
}

.tingle-modal__close:hover {
  color: #fff;
}

.tingle-modal-box {
  position: relative;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
  width: 60%;
  max-width: 600px; // lduo
  border-radius: 4px;
  background: #fff;
  opacity: 1;
  cursor: auto;
  -webkit-transition: -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
  transition: -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275);
  transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
  -webkit-transform: scale(.8);
  -ms-transform: scale(.8);
  transform: scale(.8);
}

.tingle-modal-box__content {
  padding:2rem 3rem 4rem 3rem;
}

.tingle-modal-box__footer {
  padding: 1.5rem 2rem;
  width: auto;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
  background-color: #f5f5f5;
  cursor: auto;
      justify-content: center;
}

.tingle-modal-box__footer::after {
  display: table;
  clear: both;
  content: "";
}

.tingle-modal-box__footer--sticky {
  position: fixed;
  bottom: -200px; /* TODO : find a better way */
  z-index: 10001;
  opacity: 1;
  -webkit-transition: bottom .3s ease-in-out .3s;
  transition: bottom .3s ease-in-out .3s;
}

/* state
-------------------------------------------------------------- */

.tingle-enabled {
  position: fixed;
  overflow: hidden;
  left: 0;
  right: 0;
}

.tingle-modal--visible .tingle-modal-box__footer {
  bottom: 0;
  text-align:center
}

.tingle-enabled .tingle-content-wrapper {
  -webkit-filter: blur(8px);
  filter: blur(8px);
}

.tingle-modal--visible {
  visibility: visible;
  opacity: 1;
}

.tingle-modal--visible .tingle-modal-box {
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

.tingle-modal--overflow {
  overflow-y: scroll;
  padding-top: 8vh;
}

/* btn
-------------------------------------------------------------- */

.tingle-btn {
  display: inline-block;
  margin: 0 .5rem;
  padding: 1rem 2rem;
  border: none;
  background-color: grey;
  box-shadow: none;
  color: #fff;
  vertical-align: middle;
  text-decoration: none;
  font-size: inherit;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
  -webkit-transition: background-color .4s ease;
  transition: background-color .4s ease;
}

.tingle-btn--primary {
  background-color: #3498db;
}

/*.tingle-btn--danger {
  background-color: #e74c3c;
}*/

.tingle-btn--default {
  background-color: #34495e;
}

.tingle-btn--pull-left {
  float: left;
}

.tingle-btn--pull-right {
  float: right;
}

/* lduo */

.cropper-container {
	max-height: 436px;
  	overflow: hidden;
}

.popbox {
  max-height: 470px !important;
}


/* responsive
-------------------------------------------------------------- */

@media (max-width : 540px) {
  .canvas-container{    margin: 40% auto 0 auto;
    -webkit-transform: translateY(-15%); transform: translateY(-15%);}
     .cropcontent {
    background: #fff;
    width: 90%;
    float: left;
    text-align: center;
    position: absolute;
      bottom: 14%;
    height: 60px;
    line-height: 14px;
    font-size: 15px;    -webkit-transform: translateY(-15%); transform: translateY(-15%);
}
  .docs-buttons {
    width: 100%;
    height: 60px;
    position: absolute;
    left: 0;
    bottom:24%;
    display: flex;      -webkit-transform: translateY(-16%); transform: translateY(-15%);
    justify-content: space-between;
  }
    .docs-buttons .btn{    background-color: transparent;    background-color: transparent;
    padding: 5px;
      width: 100%;
/*     width: 34px; */
    box-shadow: none;
    margin: 10px;    
    color: #000;
      display: flex;
      justify-content: center;
	align-items: center;
}
  .docs-buttons .btn img {
  	width: 30px;
    height: 30px;
  }
.tingle-modal-box__content {
/*     padding: 3rem 3rem 0rem; */
  width: 100%;
  height: calc(100% - 50px);
  box-sizing: border-box;
  padding: 1rem;
}
  .tingle-modal {
    top: 0px;
    display: block;
    padding-top: 0;
    width: 100%;
   	height: 100%; // lduo
/*     max-height: 100vh; */
    overflow: auto;
  }

  .tingle-modal-box {
    width: 100%; // lduo - auto
    border-radius: 0;
    height: 100%;
    position: relative; // lduo
    z-index: 1;
    box-sizing: border-box;
  }

  .tingle-modal-box__content {
    overflow-y: scroll;
  }

  .tingle-modal--noClose {
    top: 0;
  }

  .tingle-modal--noOverlayClose {
    padding-top: 0;
  }
  
  .tingle-modal-box__footer {
    width: 100%;
  	position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0;
    
  }

  .tingle-modal-box__footer .tingle-btn {
    display: block;
/*     float: none; */
/*     margin-bottom: 1rem; */
    width: 100%;
    /*// lduo - 43%*/
/*     float: left; */
  }

  .tingle-modal__close {
    top: 0;
    right: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 60px;
    border: none;
    background-color: #2c3e50;
    box-shadow: none;
    color: #fff;
    line-height: 55px;
  }

  .tingle-modal__closeLabel {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  }

  .tingle-modal__closeIcon {
    display: inline-block;
    margin-right: .5rem;
    vertical-align: middle;
    font-size: 4rem;
  }
  
  // lduo
  .tingle-modal-box__footer .tingle-btn {
  	margin: 0;
    padding: 0;
    height: 50px;
  }
  .cropper-container {
  	height: 100% !important;
    max-height: 100%;
  	overflow: hidden;
  }
  
  .popbox {
    max-height: 100% !important;
  }
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
  .tingle-modal {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  @media (max-width : 540px) {
    .tingle-modal {
      -webkit-backdrop-filter: blur(8px);
      backdrop-filter: blur(8px);
    }
  }

  .tingle-enabled .tingle-content-wrapper {
    -webkit-filter: none;
    filter: none;
  }

}
@media (max-width : 321px) {    .docs-buttons {  transform: translateY(63%);}
     .cropcontent{ transform: translateY(70%)}
} 