body {
    margin: 0;
    padding: 0;
}

.modelpopup-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px #e0e0e0 dashed;
}

.modelpopup-sub-title {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
}

    .modelpopup-sub-title span {
        color: #F00;
    }

.modelpopup-modal-footer {
    text-align: right;
    padding-right: 20px;
    margin-top: 15px;
}

    .modelpopup-modal-footer button {
        border: none;
        cursor: pointer;
        padding: 7px 10px;
    }

        .modelpopup-modal-footer button:hover {
            background-color: #666;
            color: #fff;
        }

.modelpopup-inner select {
    min-width: 50%;
    padding: .375rem .75rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    margin-top: 10px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-change-group {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
/* Overlay Styles */
.overlayPopUp {
    background: rgba(0, 0, 0, 0.8);
    opacity: 0.8;
    filter: alpha(opacity=80);
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
}
/* modelpopup */
.modelpopup {
    position: fixed;
    top: 15%!important;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 101;
    width: 500px;
    /*Change your width here*/
    /* min-height: 40%;
  height:inherit;
  Change your height here*/
    margin: 30px auto;
    /* modelpopup Inner */
}

    .modelpopup .modelpopup-inner {
        position: relative;
        padding: 1em;
        background: white;
        height:auto;
        overflow-y:scroll;
    }

        .modelpopup .modelpopup-inner input.s3-btn-close {
            position: absolute;
            top: -0.5em;
            right: -0.5em;
            background: black;
            border: solid 2px white;
            color: white;
            cursor: pointer;
            border-radius: 15px;
            outline: none;
        }
/*************
  S3 Button
*************/
input.s3-btn {
    background: #f1f1f1;
    border: none;
    width: 200px;
    height: 50px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

@media (min-width: 1200px) and (max-width: 1366px) {
    .modelpopup {
        top: 18%;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .modelpopup {
        top: 10%;
    }
}

@media (max-width: 767px) {
    .modelpopup {
        width: 90%;
    }

    .modelpopup-inner select {
        width: 100%;
    }

    .modelpopup-modal-footer {
        text-align: left;
    }
}

@media (min-width: 768px) and (max-width: 1368px) {
    .modelpopup .modelpopup-inner {
        position: relative;
        padding: 1em;
        background: white;
        height: 400px!important;
        overflow-y: scroll;
    }

    .modelpopup .modelpopupinnnerDetails {
        position: relative;
        padding: 1em;
        background: white;
        height: 400px !important;
        overflow-y: auto;
    }
}
