@import url('https://fonts.googleapis.com/css?family=Poppins&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

.container-all{
    width: 100%;
    height: 100%;
    position: fixed;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    transition: all 600ms;
}


.container-all:target{
    background: rgba(0,0,0,0.8);
    visibility: visible;
    opacity: 1;
}

.container-all:target .popup{
	top: 50%;
	left: 50%;
	transform: rotate(0deg) translate(-50%, -50%);
	visibility: visible;
}


.popup{
	width: 100%;
	max-width: 1100px;
	height: 720px;
	position: relative;
	background: white;
	top: -80%;
	left: -80%;
	transform: rotate(90deg) translate(-150%, 230%);
	transition: all 600ms;
	padding: 10px;
	display: flex;
}


.img{
	width: 700px;
	background-image: url(../images/Mant.jpg);
	background-position: center;
	background-size: cover;
	height: 700px;
}

.img1{
	width: 700px;
	background-image: url(../images/Carp.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}

.img2{
	width: 700px;
	background-image: url(../images/Mecan.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}

.img3{
	width: 700px;
	background-image: url(../images/Neum.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}

.img4{
	width: 700px;
	background-image: url(../images/Ferre.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}

.img5{
	width: 700px;
	background-image: url(../images/Tlapa.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}

.img6{
	width: 700px;
	background-image: url(../images/Plome.jpg);
	background-size: cover;
	background-position: center;
	height: 700px;
}
	


.container-text{
	width: 40%;
	padding: 20px;
	overflow-y: auto;
}


.container-text h1{
    font-size: 24px;
}

.container-text p{
    margin-top: 20px;
    font-size: 14px;
}


.btn-close-popup{
	width: 30px;
	height: 30px;
	position: absolute;
	right: -15px;
	top: -15px;
	padding: 10px;
	background-color: rgba(255,0,0,1.00);
	color: white;
	border-radius: 50%;
	line-height: 10px;
}

@media screen and (max-width: 900px){
    .popup{
        flex-direction: column;
        height: 100%;
        max-height: 800px;
    }
    
    .img{
        width: 100%;
        height: 40%;
    }
    
    .container-text{
        width: 100%;
        height: 60%;
        padding: 80px;
    }
    
}

@media screen and (max-width: 500px){
    .container-text{
        padding: 20px;
    }
    
    .container-text h1{
        font-size: 20px;
    }
    
    .container-text p{
        font-size: 12px;
    }
}

.fade-in1 {
  animation: fadeIn1 ease 3s infinite alternate;
  -webkit-animation: fadeIn1 ease 5s infinite alternate;
  -moz-animation: fadeIn1 ease 5s infinite alternate;
  -o-animation: fadeIn1 ease 5s infinite alternate;
  -ms-animation: fadeIn1 ease 5s infinite alternate;
}
@keyframes fadeIn1 {
  0% {
    opacity:1;
  }
  50% {
    opacity:0;
  }
  100% {
    opacity:1;
}

@-moz-keyframes fadeIn1 {
  0% {
    opacity:1;
  }
  50% {
    opacity:0;
  }
  100% {
    opacity:1;
}
@-webkit-keyframes fadeIn1 {
  0% {
    opacity:1;
  }
  50% {
    opacity:0;
  }
  100% {
    opacity:1;
}

@-o-keyframes fadeIn1 {
  0% {
    opacity:1;
  }
  50% {
    opacity:0;
  }
  100% {
    opacity:1;
}

@-ms-keyframes fadeIn1 {
  0% {
    opacity:1;
  }
  50% {
    opacity:0;
  }
  100% {
    opacity:1;
}
