/* OverLay */
#md-overlay {
    width: 100%;
    height: 100%;
 
    background-color: rgba(0, 0, 0, 0.7);
     
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
    visibility: hidden;
    opacity: 0;

}

/* Modal Block */
#md-block,
#md-block * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
     
    color: #fff;
    font-size: 16px;
    font-family: Tahoma, Verdana, Segoe, sans-serif;
}

#md-block {
    width: 50%;
    max-width: 600px;
    min-width: 320px;
 
    border-radius: 3px;
    background-color: #2980b9;
    box-shadow: rgba(0, 0, 0, 0.3) 0 0 20px;
 
    position: fixed;
    z-index: 1001;
    left: 50%;
    top: 50%;
 
    -webkit-transform: translateX(-30%) translateY(-50%);
    -moz-transform: translateX(-30%) translateY(-50%);
    transform: translateX(-30%) translateY(-50%);
 
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
 
    visibility: hidden;
    opacity: 0;
}

/* Modal Title */
#md-title {
    width: 100%;
    display: block;
 
    margin: 0;
    padding: 20px;
 
    text-align: center;
 
    font-size: 27px;
    font-weight: 300;
    font-family: 'Segoe UI', Tahoma, Verdana, Segoe, sans-serif;
}
 
/* Modal Content */
#md-content {
    width: 100%;
    display: table;
 
    margin: 0;
    padding: 40px;
 
    background-color: rgba(0, 0, 0, 0.1);
}
 
#md-content p { margin: 0; }
#md-content p:not(:last-child) { margin-bottom: 20px; }
 
/* Modal Close */
#md-close {
    display: table;
    margin: 20px auto;
    padding: 10px 20px;
     
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
 
    background-color: rgba(0, 0, 0, 0.1);
}
 
#md-close:hover { background-color: rgba(0, 0, 0, 0.2); }

#md-block.md-show {
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#md-block.md-show,
#md-block.md-show + #md-overlay {
    visibility: visible;
    opacity: 1;
}
