/*modal normal*/
.modal{
    width: 100%;
    height: 100%;
    z-index:auto;
    background:none;
    position: fixed;
    /*left: -20px;*/
    /*padding-right: 20px;*/
    top: 0px;
    display: none; 
    justify-content: center;
    align-items: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
/*para wordpress*/
.modal.wp{
    left: -20px;
    padding-right: 20px;
}
/*Los menus de wordpress estan a 99999*/
.modal.up{
    z-index:100000;
}

.modal.up1{
    z-index:100001;
}
/*modal con fondo semi transparente*/
.modal.back{
    background: rgba(71, 71, 71, 0.253);
}

/*Visializar modal*/
.modal.active{
    display: flex; 
}
/*ocultar modal*/
.modal.desactive{
    display: none; 
}
/*La modal se adapta a su contenido*/
.modal.adapter > div{
    width: auto;
    height: auto; 
    min-width: 28%;
    min-height: 10%;
    max-height: 60%;
    max-width: 80%;
    padding-right: 0px;
    padding: 8px;
    position: relative; /*para que absolute lo coja como elemento padre*/
}
/*Panel interno del modal*/
.modal > div{
    padding-right: 1em;
    padding-left: 1em;
    height: 80%;
    width: 80%;
    background-color:white;
    border-color: darkblue;
    border-style: solid;
	border-width: 1px;
    border-radius: 1em;
    overflow: auto;
    position: relative;
}
/*
Organizador de contenido - Extra
*/
.modal > div > .hori{
    height: 100%;
    width: 100%;
    display: flex; 
    justify-content: center;
    overflow:hidden;
    overflow-x:hidden;
    overflow-y:hidden;
}

.modal > div > .hori > .der{
    float: right;
    height: 100%;
    width: 50%;
    overflow:hidden;
    overflow-x:hidden;
    overflow-y:auto;
}

.modal > div > .hori > .izq{
    float: left;
    height: 100%;
    width: 50%;
    overflow:hidden;
    overflow-x:hidden;
    overflow-y:auto;
}

.modal > div.noscrollx{
    overflow: hidden;
    overflow-x: hidden;
}

.scrolly {
    overflow: visible;
    overflow-y: auto;
    overflow-x: hidden;
}
/*Fin organizador*/

/*Boton de cerrar*/
.buttonClose{
    position: absolute;
	text-decoration:none;
    border-width:0px;
    border-radius:2em; 
    top:1em;
    right: 1em;
}

.buttonClose:hover{
    background-color: rgb(255, 0, 0);
    color:white;
    border-width:0px;
}

/* pantallas de bloque -*/
.modal > div > .content{
    position: relative;/*coge de referencia el elemento padre si fuera un absolute*/
    display: inline-block;
    width: 100%;
}

.modal > div > .footer{
    position: relative;/*coge de referencia el elemento padre si fuera un absolute*/
    display: inline-block;
    width: 100%;
}
/*Moviles*/
@media screen and (max-width: 700px) {
	.modal > div{
	    height: auto;
		width: 100%;
		border-radius: 1px;	
        min-height: 99%;
	}
	.modal > div > .hori{
        height: auto;
        flex-direction: column;
        overflow-y:visible;
    }

    .scrolly {
        overflow: hidden;
        overflow-y: hidden;
        overflow-x: hidden;
    }

    .modal > div > .hori > .der{
        float: none;
        /*background-color:blueviolet ;*/
        height: auto;
        width: 98%;
    }
    
    .modal > div > .hori > .izq{
        float: none;
        height: auto;
        width: 98%;
        /*background-color:red ;*/
    }

	.modal{
		justify-content: none;
		align-items: none;
        left: 0;
        height: auto;
        min-height: 99%;
        position: absolute;
    }
    .buttonClose{
        font-size: 1em;
    }
    .modal.adapter > div{
        width: 90%;
        height: 98%; 
        max-height: 90%;
        max-width: 98%;
    }
    .modal.wp{
        left: 0;
        padding-right: 0;
    }
}