/* General styles for the modal */

/* 
Styles for the html/body for special modal where we want 3d effects
Note that we need a container wrapping all content on the page for the 
perspective effects (not including the modals and the overlay).
*/
.md-perspective,
.md-perspective body {
    height: 100%;
    overflow: hidden;
}

.md-perspective body  {
    background: #222;
    -webkit-perspective: 600px;
    -moz-perspective: 600px;
    perspective: 600px;
}
.modal_background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    background: linear-gradient(to right, rgba(255, 255, 255, .7), rgba(255, 255, 255, .7));
}
.md-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    max-width: 1000px;
    min-width: 320px;
    height: auto;
    z-index: 2000;
    visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-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-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    visibility: hidden;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    background: rgba(143,27,15,0.8);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}*/

.md-show ~ .md-overlay {
    opacity: 1;
    visibility: visible;
}

/* Content styles */
.md-content {
    max-width: 1000px;
    width: 100%;
    padding: 3px;
    position: absolute;
    top: -260px;
    left: 0;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    box-shadow: 0px 2px 6px rgba(0,0,0,1);
    background: #fff;
    border-width: 2px;
    border-style: solid;
    border-color: #E75F58;
    border-radius: 7px;
}

.md-content .Content {
    position: initial;
    overflow: auto;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 2px;
    height: 450px;
}
.md-content .CardHead {
    background: #e75f58;
    white-space: nowrap;
    padding: 0px 6px;
    color: #FFF;
    font-size: 23px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    text-transform: uppercase;
    margin: 0 auto;
}
.md-content .Content .col > *:first-child {
    width: 80%;
}
.md-content .Content .col > * {
    padding: 10px;
}
.md-content p {
    font-size: 15px;
    margin: 0;
    line-height: 1.4em;
}
.md-content .Content .col > *:last-child {
    width: 44%;
}
.md-content h2 {
    color: #e75f58;
    margin: 0;
    font-weight: 400;
}
.md-content .TrialBanner {
    text-align: center;
    border: 1px solid #DDD;
    background-color: #F9F9F9;
    padding: 10px;
}
.md-content .Button {
    line-height: normal;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 17px;
    border: solid 1px #E3AB24;
    padding: 2px 10px;
    border-radius: 4px;
    color: #FFF;
    background-color: #E3AB24;
    transition-property: background, color;
    transition-duration: .23s;
    transition-timing-function: ease;
}
.md-content .Button:hover {
    border-color: #E3AB24;
    color: #E3AB24;
    background-color: #FFF;
}



/* Effect 9: 3D flip vertical */
.md-effect-9.md-modal {
    -webkit-perspective: 1300px;
    -moz-perspective: 1300px;
    perspective: 1300px;
}

.md-effect-9 .md-content {
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: rotateX(-70deg);
    -moz-transform: rotateX(-70deg);
    -ms-transform: rotateX(-70deg);
    transform: rotateX(-90deg);
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.8s;
    opacity: 0;
}

.md-show.md-effect-9 .md-content {
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    transform: rotateX(0deg);
    opacity: 1;
}


@-webkit-keyframes rotateRightSideFirst {
    50% { -webkit-transform: translateZ(-50px) rotateY(5deg); -webkit-animation-timing-function: ease-out; }
    100% { -webkit-transform: translateZ(-200px); }
}

@-moz-keyframes rotateRightSideFirst {
    50% { -moz-transform: translateZ(-50px) rotateY(5deg); -moz-animation-timing-function: ease-out; }
    100% { -moz-transform: translateZ(-200px); }
}

@keyframes rotateRightSideFirst {
    50% { transform: translateZ(-50px) rotateY(5deg); animation-timing-function: ease-out; }
    100% { transform: translateZ(-200px); }
}


@-webkit-keyframes OpenTop {
    50% { 
        -webkit-transform: rotateX(10deg); 
        -webkit-animation-timing-function: ease-out; 
    }
}

@-moz-keyframes OpenTop {
    50% { 
        -moz-transform: rotateX(10deg); 
        -moz-animation-timing-function: ease-out; 
    }
}

@keyframes OpenTop {
    50% { 
        transform: rotateX(10deg); 
        animation-timing-function: ease-out; 
    }
}

@media screen and (max-width: 32em) {
    body { font-size: 75%; }
}