﻿/**
 * gModal
 * A modal library made with raw js
 * 
 * @version 2.0.0
 * 
 * @license MIT
 * 
 * @author Javier Sanahuja <bannss1@gmail.com>
 * 
 * https://github.com/jsanahuja/gModal
 */
body.gmodal-active {
    overflow: hidden !important;
}

.gmodal-wrapper {
    display: none;
    overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4000;
}

    .gmodal-wrapper.gmodal-active {
        display: block;
        z-index: 4000;
    }

.gmodal-backdrop {
    z-index: 999999998;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #000;
    opacity: 0.5;
}

.gmodal-dialog {
    z-index: 999999999;
    position: absolute;
    top: 2em;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 50em;
    margin: 0 auto 2em auto;
    box-sizing: border-box;
    background: #FFF;
    box-shadow: 0px 0px 2px 2px #6B6B6B;
}

.gmodal-close-in, .gmodal-close-out {
    position: absolute;
    right: 1em;
    top: 1em;
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.gmodal-close-in:hover, .gmodal-close-out:hover {
        opacity: 1;
}

.gmodal-close-in:before, .gmodal-close-in:after, .gmodal-close-out:before, .gmodal-close-out:after {
        position: absolute;
        left: 15px;
        content: ' ';
        height: 33px;
        width: 2px;
}

.gmodal-close-in:before, .gmodal-close-in:after {
        background-color: #333;
}

.gmodal-close-out:before, .gmodal-close-out:after {
        background-color: #CCC;
}

.gmodal-close-in:before, .gmodal-close-out:before {
        transform: rotate(-45deg);
}

.gmodal-close-in:after, .gmodal-close-out:after {
        transform: rotate(45deg);
}

.gmodal-title {
    padding: 1em;
    text-align: center;
    font-size: 1.25em;
    box-sizing: border-box;
}

.gmodal-body {
    padding: 1em;
    overflow: auto;
    max-height: 50%;
    box-sizing: border-box;
}

.gmodal-buttons {
    box-sizing: border-box;
    text-align: center;
}

.gmodal-button {
    padding: 0.6em 1em;
    border: 0;
    margin: 1em 0.5em;
    color: #FFF;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.gmodal-button-red {
    background-color: #e51c23;
}

.gmodal-button-blue {
    background-color: #007aff;
}

.gmodal-button-green {
    background-color: #00ca3c;
}

.gmodal-button-gray {
    background-color: #969696;
}

@media only screen and (max-width:53em) {
    .gmodal-dialog {
        width: auto;
        margin: 0 auto 5px auto;
        top: 5px;
        right: 5px;
        left: 5px;
    }
}

@media only screen and (max-width:32em) {
    .gmodal-button {
        display: block;
        margin: 0.5em;
    }
}
