
/*
  стили для модального окна
*/

.md-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 2000;
    opacity: 0;
    background: rgba(0,0,0,.55);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-modal-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 800px;
    width: auto;
    height: auto;
    z-index: 2500;
    visibility: hidden;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

.md-show {
    visibility: visible;
}

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

.md-show .info {
    background: #2c3041;
    padding: 20px;
}
/* Content styles */
.md-content {
    color: white;
    background: #2c3041;
    position: relative;
    margin: 0 auto;
}

.md-content h1{
    margin-top: 10px;
}

.md-content button {
    display: block;
    margin: 0 auto;
    font-size: 0.8em;
    outline: none;
}

.md-content .md-close {
    position: absolute;
    z-index: 1;
    right: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border: none;
    background: url(../images/icons/close-icon.png) no-repeat 50%/18px auto;
    border-radius: 50%;
    cursor: pointer;
}

/* Effect 1: Fade in and scale up */
.md-effect-1 .md-content {
    -webkit-transform: scale(0.7);
    -moz-transform: scale(0.7);
    -ms-transform: scale(0.7);
    transform: scale(0.7);
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.md-show.md-effect-1 .md-content {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    opacity: 1;
}