/* Контейнер */
div.modal {
    /* Слой перекрытия */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;

    /* Трансформации прозрачности при открытии  */
    -webkit-transition: opacity 500ms ease-in;
    -moz-transition: opacity 500ms ease-in;
    transition: opacity 500ms ease-in;

    /* Скрываем изначально */
    opacity: 0;
    pointer-events: none;
}

/* Показываем модальное окно */
div.modalShow {
    opacity: 1;
    pointer-events: auto;
}

/* Окно */
div.modal-window {
    width: 750px;
    min-height: 230px;
/* Позиционируем окно посередине */
    position: absolute;
    width: 50%;
    top: 50%;
    left: 50%;
    margin: -15% 0 0 -25%;

/* По умолчанию минимизируем анимацию */
    -webkit-animation: minimise 500ms linear;

/* Вид */
    background: #fff;
    padding: 30px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    -webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.9);
    -moz-box-shadow: 0 3px 20px rgba(0,0,0,0.9);
    box-shadow: 0 3px 20px rgba(0,0,0,0.9);
    background: -moz-linear-gradient(#fff, #ccc);
    background: -webkit-gradient(linear, right bottom, right top, color-stop(1, rgb(255,255,255)), color-stop(0.57, rgb(230,230,230)));
    text-shadow: 0 1px 0 #fff;
}

/* Внутренности модалки */
div.modal-header{
    position: absolute;
    top: 0px;
    width: 100%;
/*    background-color: #339cff; */
/*    background-image: linear-gradient(to right, #339cff 0%, transparent 100%); */
    background-image: linear-gradient(to right, transparent 0%, #339cff 100%);
    margin-left: -30px;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(255,255,255,.8);
}

div.modal-content{
    overflow: auto;
    max-height: 495px;
}

/* Создаем кнопку Закрыть */
div.modal span.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    color: transparent;
}

div.modal span.modal-close:after {
    content: 'X';
    display: block;

/* Позиционируем */
    position: absolute;
    right: -10px;
    top: -10px;
    width: 1.5em;
    padding: 1px 1px 1px 2px;

/* Стили */
    text-decoration: none;
    text-shadow: none;
    text-align: center;
    font-weight: bold;
    background: #000;
    color: #fff;
    border: 3px solid #fff;
    -moz-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

div.modal span.modal-close:focus:after,.modal span.modal-close:hover:after {
    -webkit-transform: scale(1.1,1.1);
    -moz-transform: scale(1.1,1.1);
}

div.modal span.modal-close:focus:after {
    outline: 1px solid #000;
}

