﻿.popup-align{
    float: right; 
    text-align: -webkit-right;
    padding-left: 10px;
}

.float-right{
    float:right;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}
.fade.in {
    opacity: 1;
}
.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
}
.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: #000;
    height:5000px;
}
.modal-backdrop.in {
    filter: alpha(opacity=50);
    opacity: .5;
}
.white-div{
    width:50%;
    margin-left:auto;
    margin-right:auto;
    margin-top:50px;
    position:relative; 
    background-color:white; 
    z-index:15;
    direction:rtl;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 0px 20px 5px 20px;
    /*max-height: 95%;*/
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.close-icon {
    margin-top: 9px;
    float: left;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: .2;
}
.close-icon:focus, .close-icon:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    filter: alpha(opacity=50);
    opacity: .5;
}
button.close-icon {
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

@media screen and (max-width: 767px) {
    .white-div {
        width:80%;
        margin-top:35px;
    }
}


@media screen and (max-height: 660px) {
    .white-div {
        margin-top:30px;
        max-height: calc(100vh - 60px);
    }
}

    