/* ejemplo de modal por J&G Proyectos Web
   https://www.youtube.com/watch?v=_uRvLOzUAUs */

.modal {
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.4);

    position: fixed;
    top: 0;
    left: 0;

    display: flex;

    animation: modal 2s 2s forwards;
    visibility: hidden;
    opacity: 0;
}

.contenido {
    margin: 80px auto;
    width: 40%;
    height: 40%;
    /* background: white; */
    border-radius: 10px;
}

#cerrar {
    display: none;

}
#cerrar + label {
    font-family:Helvetica, Arial, sans-serif;
    position: fixed;
    float: right;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 25px;
    /*  font-weight: bold; */
    z-index: 50;
    background: darkred;
    height: 40px;
    width: 40px;
    line-height: 40px;
    border-radius: 50%;
    cursor: pointer;

    animation: modal 2s 2s forwards;
    visibility: hidden;
    opacity: 0;
}

#cerrar:checked ~ .contenido + img, #cerrar:checked + label, #cerrar:checked ~ .modal {
    display: none;
}

@keyframes modal {
    100% {
        visibility: visible;
        opacity: 1 ;
    }
}