.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
    position: fixed;
}
.modal-dialog-centered {
    margin: 0 auto;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
    position: absolute;
    top: 15%;
    left: 25%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
    right: 25%;
    width: 50%;
}
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}
.modal{
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}/*
.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
  }
  .fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
    position: fixed;
  }*/
  .modal.show .modal-dialog {
    transform: none;
  }
  .modal.modal-static .modal-dialog {
    transform: scale(1.02);
  }
  /*
  .modal-dialog-centered {
    margin: 0;
    position: absolute;
    top: 25%;
    left: 25%;
    margin-right: -50%;
    transform: translate(-50%, -50%)
  }*/
  .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
  }
  .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
  }
  .modal-backdrop.fade {
    opacity: 0;
  }
  .modal-backdrop.show {
    opacity: 0.5;
  }

  .modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
  }
  .modal-header .btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
  }
  .modal-title {
    text-align: center;
    margin-bottom: 0;
    line-height: 1.5;
  }
  .modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
  }
  .form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  @media all and (min-width:960px) and (max-width: 1024px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
  }

  @media all and (min-width:801px) and (max-width: 959px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
  }

  @media all and (min-width:769px) and (max-width: 800px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
    .modal-content{
        margin: 0 0;
    }
  }

  @media all and (min-width:569px) and (max-width: 768px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
                .modal-content{
        margin: 0 0;
    }
  }

  @media all and (min-width:481px) and (max-width: 568px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
                .modal-content{
        margin: 0 0;
    }
  }

  @media all and (min-width:321px) and (max-width: 480px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
                .modal-content{
        margin: 0 0;
    }
  }

  @media all and (min-width:0px) and (max-width: 320px) {
    .modal-dialog-centered {
        margin: 0 auto;
            margin-top: 0px;
            margin-right: auto;
            margin-bottom: 0px;
            margin-left: auto;
        position: absolute;
        top: 15%;
        left: 5%;
        /*margin-right: -50%;*/
        /*transform: translate(-50%, -50%);*/
        width: 90%;
    }
                .modal-content{
        margin: 0 0;
    }
  }