@import "~react-image-crop/dist/ReactCrop.css";
@import "~react-bootstrap-modal/lib/css/rbm-complete.css";

/** Common Element **/

.text-center{
  text-align: center;
}

.hologram-btn{
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 10px 32px;
  text-align: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
}

.crop-button{
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  background-color: #F78500;
  border: 1px solid white;
  color: white;
  padding: 10px 32px;
  text-align: center;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
}

.upload-btn{
  background-color: #F78500;
  border: 0;
}

.modal {
  text-align: center;
  padding: 0!important;

  .loader {
    margin-left: auto;
    margin-right: auto;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

.modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  margin-right: -4px;
}

.modal-dialog {
  display: inline-block;
  text-align: left;
  vertical-align: middle;
}

/** Message modal **/
#message{
  font-size: 24px;
  text-align: center;

  .loading-icon{
    margin-left: auto;
    margin-right: auto;

    img{
      display: block;
      max-width: 100%;
    }
  }
}

/** dropzone **/

.dropzone{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-left: 1em;
  margin-right: 1em;

  .hologram-btn{
    display: inline-block;
    margin-right: 1em;

    @media screen and (max-width: 768px){
      margin-right: auto;
    }
  }

  .upload-button-wrapper{
    text-align: right;
    margin-right: 80px;

    @media screen and (max-width: 768px){
      text-align: center;
      margin-right: auto;
    }
  }

  .images-area{
    p{
      @media screen and (max-width: 768px){
        display: none;
      }
    }
  }

  .images-list{
    border: 3px dashed #fff;
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 1em;
    padding: 1em;

    @media screen and (max-width: 768px){
      margin-left: 1em;
      margin-right: 1em;
    }
  }
  .images{
    display: flex;
    flex-wrap: wrap;
  }

  .dropzone-tips{
    margin-top: 1.5em;
    font-size: 1.5em;
    font-weight: bold;
    color:#717171;

    @media screen and (max-width: 768px){
      display: none;
    }

    p{}

    .dropfile-icon{
      margin-left: 1em;
    }
  }

  .dropzone-image{
    position: relative;
    width: 200px;
    height: 200px;
    margin-left: 1em;
    display: inline-block;
    border: 3px dashed #fff;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 1em;

    .remove-icon{
      position: absolute;
      top: 5px;
      right: 5px;
      font-size: 17px;
      font-weight: bold;
      border-radius: 50%;
      width: 25px;
      height: 26px;
      color: #fff;
      background-color: #000;
      -webkit-transition: all .3s;
      transition: all .3s;
      border: 2px solid;
      z-index: 999;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;

      &:hover{
        color: black;
        background-color: white;
      }
    }

    .cropper-icon{
      margin: auto;
      position: absolute;
      z-index: 10;
      top: 35%;
      left: 0;
      right: 0;
      width: 50px;
    }

    .image-wrapper{
      width: 100%;
      height: 100%;

      &:hover{
        .preview{
          opacity:0.5;
        }
      }
    }

    .preview{
      overflow: hidden;
      width:100%;
      height:100%;
      object-fit: cover;
      border-radius: 10px;
      -webkit-transition: all 0.3s;
      transition: all 0.3s;
    }
  }
}
