img {
    max-width: 100%;
}
.well {
    /* drop-shadow is better than box-shadow as it add a shadow to tooltip arrows arrow as well,
    however drop-shadow dramatically affects the performance of transition animation on Android. */
    /* filter: drop-shadow(0 0 10px rgba(0,0,0,0.3)); */
    display:none;
    margin:1em;
    max-width: 740px;
    min-width: 350px;
    min-height: 350px;
}
.well .popup_close {
    position: absolute;
    top: 0;
    right: 0px;
    border-radius: 2px;
    background: none;
    border: 0;
    font-size: 25px;
    padding: 0 10px;
}
#fadeandscale {
-webkit-transform: scale(0.8);
   -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
        transform: scale(0.8);
}
.popup_visible #fadeandscale {
-webkit-transform: scale(1);
   -moz-transform: scale(1);
    -ms-transform: scale(1);
        transform: scale(1);
}