
.img-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 20%;
}


@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

.container-modal{

  display: none; /* Por defecto, estará oculto */
  position: fixed; /* Posición fija */
  z-index: 1000 !important; /* Se situará por encima de otros elementos de la página*/
  padding-top: 150px; /* El contenido estará situado a 200px de la parte superior */
  left: 0;
  top: 0;
  width: 100%; /* Ancho completo */
  height: 100%; /* Alto completa */
  overflow: auto; /* Se activará el scroll si es necesario */
  background-color: rgba(0,0,0,0.8); /* Color negro con opacidad del 50% */
    justify-content: center;
    align-items: center;
}
#btn-modal:checked ~ .container-modal{
    display: flex;
}
.content-modal{
    border-radius: 4px;
    position: relative; 
    background-color: white;
    margin: auto; /* Centrada */
    padding: 20px;
    width: 30%;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.5s;
    animation-name: animatetop;
    animation-duration: 0.5s
}
.content-modal h2{
  font-size: 22PX;
    margin-bottom: 10px;
}
.content-modal p{
  font-size: 14px;
  line-height: 18px;
    padding: 10px 0px;
}
.cerrar-modal{
    width:100%;
    height: 100vh;
    position: absolute;
    top:0; left: 0;
    z-index: -1;
}


@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}

@media screen and (max-width:800px) {
    .content-modal{
        width: 90%;
    }


    .img-center {
      display: block;
      margin-left: auto;
      margin-right: auto;
      width: 50%;
    }
}

