/* --------------------------------------------------
Base Styles
-------------------------------------------------- */
.modal {
    -webkit-transition: all 250ms ease;
    -moz-transition: all 250ms ease;
    -ms-transition: all 250ms ease;
    -o-transition: all 250ms ease;
    transition: all 250ms ease;
    display: none;
    opacity: 0;
    box-sizing: border-box;
    padding: 18px;
    background-color: #fff;
    border-radius: 3px;
    width: 60%;
	max-width: 400px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
	text-align:center;
}

.modal p{
padding-top:0px;
margin-top:0px;
}
.modal .close-modal {
    position: absolute;
    top: 0;
    right: 0;
    padding: 18px;
    cursor: pointer;
    color: #ccc;
}
.modal .close-modal:after {
    content: '\2716';
    display: inline-block;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
}
.modal .close-modal:focus {
    outline: none;
}
#modal-background {
    -webkit-transition: all 250ms ease;
    -moz-transition: all 250ms ease;
    -ms-transition: all 250ms ease;
    -o-transition: all 250ms ease;
    transition: all 250ms ease;
    display: none;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    z-index: 9998;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#modal-background.visible {
    opacity: 1;
}

/* --------------------------------------------------
Animation Closed States
-------------------------------------------------- */
.modal.animation-fade {
    -webkit-transform: translate(-50%, -50%) scale(1);
    -moz-transform: translate(-50%, -50%) scale(1);
    -ms-transform: translate(-50%, -50%) scale(1);
    -o-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}
.modal.animation-fade-up {
    -webkit-transform: translate(-50%, 150%) scale(1);
    -moz-transform: translate(-50%, 150%) scale(1);
    -ms-transform: translate(-50%, 150%) scale(1);
    -o-transform: translate(-50%, 150%) scale(1);
    transform: translate(-50%, 150%) scale(1);
}
.modal.animation-fade-right {
    -webkit-transform: translate(-150%, -50%) scale(1);
    -moz-transform: translate(-150%, -50%) scale(1);
    -ms-transform: translate(-150%, -50%) scale(1);
    -o-transform: translate(-150%, -50%) scale(1);
    transform: translate(-150%, -50%) scale(1);
}
.modal.animation-fade-down {
    -webkit-transform: translate(-50%, -150%) scale(1);
    -moz-transform: translate(-50%, -150%) scale(1);
    -ms-transform: translate(-50%, -150%) scale(1);
    -o-transform: translate(-50%, -150%) scale(1);
    transform: translate(-50%, -150%) scale(1);
}
.modal.animation-fade-left {
    -webkit-transform: translate(150%, -50%) scale(1);
    -moz-transform: translate(150%, -50%) scale(1);
    -ms-transform: translate(150%, -50%) scale(1);
    -o-transform: translate(150%, -50%) scale(1);
    transform: translate(150%, -50%) scale(1);
}
.modal.animation-fade-zoom {
    -webkit-transform: translate(-50%, -50%) scale(2);
    -moz-transform: translate(-50%, -50%) scale(2);
    -ms-transform: translate(-50%, -50%) scale(2);
    -o-transform: translate(-50%, -50%) scale(2);
    transform: translate(-50%, -50%) scale(2);
}
.modal.animation-fade-zoom-up {
    -webkit-transform: translate(-50%, 150%) scale(2);
    -moz-transform: translate(-50%, 150%) scale(2);
    -ms-transform: translate(-50%, 150%) scale(2);
    -o-transform: translate(-50%, 150%) scale(2);
    transform: translate(-50%, 150%) scale(2);
}
.modal.animation-fade-zoom-right {
    -webkit-transform: translate(-150%, -50%) scale(2);
    -moz-transform: translate(-150%, -50%) scale(2);
    -ms-transform: translate(-150%, -50%) scale(2);
    -o-transform: translate(-150%, -50%) scale(2);
    transform: translate(-150%, -50%) scale(2);
}
.modal.animation-fade-zoom-down {
    -webkit-transform: translate(-50%, -150%) scale(2);
    -moz-transform: translate(-50%, -150%) scale(2);
    -ms-transform: translate(-50%, -150%) scale(2);
    -o-transform: translate(-50%, -150%) scale(2);
    transform: translate(-50%, -150%) scale(2);
}
.modal.animation-fade-zoom-left {
    -webkit-transform: translate(150%, -50%) scale(2);
    -moz-transform: translate(150%, -50%) scale(2);
    -ms-transform: translate(150%, -50%) scale(2);
    -o-transform: translate(150%, -50%) scale(2);
    transform: translate(150%, -50%) scale(2);
}

/* --------------------------------------------------
Animation Open States
-------------------------------------------------- */
.modal.animation-fade.visible,
.modal.animation-fade-up.visible,
.modal.animation-fade-right.visible,
.modal.animation-fade-down.visible,
.modal.animation-fade-left.visible,
.modal.animation-fade-zoom.visible,
.modal.animation-fade-zoom-up.visible,
.modal.animation-fade-zoom-right.visible,
.modal.animation-fade-zoom-down.visible,
.modal.animation-fade-zoom-left.visible {
    opacity: 1;
    -webkit-transform: translate(-50%, -50%) scale(1);
    -moz-transform: translate(-50%, -50%) scale(1);
    -ms-transform: translate(-50%, -50%) scale(1);
    -o-transform: translate(-50%, -50%) scale(1);
    transform: translate(-50%, -50%) scale(1);
}