/**
 * Modales propios hecho con ❤️ por Raúl Caro Pastorino (@raupulus)
 */

.r-modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 77, 77, .7);
    transition: all .4s;
    z-index: 10000; /* Por desgracia.... suele hacer falta */
}

.r-modal:target {
    visibility: visible !important;
    opacity: 1 !important;
}

.r-modal__content {
    border-radius: 4px;
    position: relative;
    width: 500px;
    max-width: 90%;
    background: #fff;
    padding: 1em 2em;
}

.r-modal__footer {
    text-align: right;
    a {
        color: #585858;
    }
    i {
        color: #d02d2c;
    }
}
.r-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #585858;
    text-decoration: none;
}


/* Ejemplo, el js es para forzar cosas raras en plantillas. Debería funcionar solo con css */
/*

<a href="#r-demo-modal" onclick="window.location.href = this.href">Abrir MODAL</a>


<div id="r-demo-modal" class="r-modal">
    <div class="r-modal__content">
        <h1>Título</h1>

        <p>
            CONTENIDO
        </p>

        <div class="r-modal__footer">
           Footer!!!
        </div>

        <a href="#!" class="r-modal__close">&times;</a>
    </div>
</div>
 */
