main{
    padding: 40px 20px;
    margin-top: 200px;  
    display: flex;
    justify-content: center;
}
.container{
    display: flex;
    align-items: center;
    justify-content:center;
    height: 500px;
    padding: 0 20px;
}
.card-container{
    display: flex;
    width: 800px;
    height: auto;
    background: #fff;
    border-radius: 5px;
    box-shadow: 2px 1px 4px 2px rgba(0, 0, 0, .2);
}
.card-img{
    border-right: 1px solid #ddd;
}
.descripcion{
    background: #fbfbfb ;
    position: relative;
    align-items: center;
}
.card-img,.descripcion{
    padding: 20px;
    text-align: center;
}
.card-img img{
    width:260px;
    border-radius: 15px;
}
.descripcion p{
    margin: 30px 20px;
}
.btn-open-popup{
    position: absolute;
    left: 50%;
    transform: translate(-50%,160%);
    color: white;
    display: block;
    background: #4DF44E;
    padding:5px 15px;
    border-radius: 50px;
}
.container-modal{
    width: 100%;
    height: 100%;
    position: fixed;
    padding: 40px;
    visibility: hidden;
    transition: all 600ms;
    opacity: 0;
}
.container-modal:target{
    background: rgba(0, 0, 0, 0.8);
    visibility: visible;
    opacity: 1;
}
.container-modal:target .popup{
    top: 50%;
    left: 50%;
    transform: rotate(0deg) translate(-50%,-50%);
    visibility: visible;
}
.popup{
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: white;
    position: relative;
    display: flex;
    visibility: hidden;
    top:-80%;
    left: -80%;
    transform: rotate(90deg) translate(-150%,230%);
    transition: all 600ms;
}
.container-modal .img{
    width: 40%;
    background-image: url(/Fotos/HORARIOS.jpg);
    background-size: cover;
    background-position: center;
}
.container-text{
    width: 60%;
    padding: 50px;
    overflow-y: auto;
}
.container-text h1{
    font-size: 30px;
}
.container-text p{
    margin-top: 20px;
    font-size: 16px;
}
.btn-close-popup{
    width: 5%;
    height: 10%;
    padding: 15px;
    position: absolute;
    right: -15px;
    top: -20px;
    background: black;
    color: white;
    border-radius: 50%;
    line-height: 10px;
}
@media screen and (max-width:950px) {
    .popup{
        flex-direction: column;
        height: 85%;
        max-width: 600px;
    }
    .container-modal .img{
        width: 100%;
        height: 60%;
    }
    .container-text{
        width: 100%;
        height: 60%;
        padding: 40px;
    }
}

/*https://www.youtube.com/watch?v=RBvS5tgcff0 */
/*https://www.youtube.com/watch?v=BqRkb_m_PuE */
/*https://www.youtube.com/watch?v=8Kg7Uejr5wM */
/*https://www.youtube.com/watch?v=XkicFDWDiLY */
