 @keyframes fadeIn {
        from {opacity: 0;}
        to {opacity: 1;}
    }
  @keyframes slideIn {
      from {transform: translateY(-50px); opacity: 0;}
      to {transform: translateY(0); opacity: 1;}
  }
#main {
  /*height: 350px;*/
  position: relative;
}

#history {
  padding-top: 70px;
}


.card-container {
  display: flex;
  position: absolute;
  gap: 1em;
  justify-content: center;
  margin: 10px auto;
  width: 100%;
  /*bottom: 0;*/
  /*left: 0;*/
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*transform: translateY(111px);*/
}

/* From Uiverse.io by alexruix */ 
.card {
 width: 120px;
 height: 44px;
 border-radius: 10px;
 background: #f5f5f5;
 position: relative;
 padding: 0.5rem 1.3rem;
 border: 2px solid var(--sub-color);
 transition: 0.5s ease-out;
 /*overflow: visible;*/
}

.card-details {
 color: black;
 height: 100%;
 gap: .5em;
 display: grid;
 place-content: center;
}

.card-button {
 transform: translate(-50%, 125%);
 width: 60%;
 border-radius: 1rem;
 border: none;
 /*background-color: #008bf8;*/
 background-color: var(--sub-color);
 color: #fff;
 /*font-size: 1rem;*/
 padding: .5rem 1rem;
 position: absolute;
 left: 50%;
 bottom: 0;
 opacity: 0;
 transition: 0.3s ease-out;
 a {
  color: inherit;
 }
}
/*Hover*/
.card:hover {
 border-color: var(--sub-color);
 box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
}

.card:hover .card-button {
 transform: translate(-50%, 50%);
 opacity: 1;
}

/*.text-body {*/
 /*color: rgb(134, 134, 134);*/
 /*color: var(--parraf);*/
/*}*/


/*Text*/
.text-title {
 font-size: .8rem;
 font-weight: bold;
}


.mision-vision {
  display: flex;
  margin: 40px auto;
  /*border: 1px solid;*/
  /*article {*/
    /*display: flex;*/
    /*flex-direction: column;*/
  justify-content: center;
  align-items: baseline;

  article {
    display: flex;
    flex-direction: column;
    /*border: 1px solid;*/
    border-radius: 10px;
    max-width: 350px;
    max-height: 500px;
    margin: 20px auto;
    align-items: center;
    /*overflow: hidden;*/
    justify-content: center;
  }
    /*margin: 0 auto;*/
  p {
    /*display: flex;*/
    /*justify-content: center;*/
    padding: 0 20px;
    width: 80%;
    border:2px solid var(--sub-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    max-height: 250px;
    overflow-x: scroll;
    scrollbar-width: none;
    /*padding-left: auto;*/
    /*text-align: center;*/
  }
  /*}*/
}

#program {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  min-height: fit-content;
  width: 100%;
  height: auto;
  overflow: hidden;
  /*border: 1px solid;*/
  gap: .3em;
}

.program-text {
  /*display: flex;*/
  /*padding: 10px;*/
  flex: 0.4;
  /*border: 1px solid green;*/
  p {
    padding: 0;
    padding-left: 10px;
    /*border: 1px solid;*/
  }
}

.program-list {
  color: var(--parraf);
  /*margin: 0 auto;*/
  justify-self: center;
  /*text-align: center;*/
  list-style: upper-latin;
  /*padding: 0 10px;*/
  padding-left: 20px;
  /*margin: 0 auto;*/
  width: 100%;
  /*border: 1px solid;*/
}

.images-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
  flex: .5;
  /*border: 1px solid red;*/
  /*padding: 1em;*/

  picture {
    width: 150px;
    height: 150px;
    cursor: pointer;

    img {
      display: block;
      width: 100%;
      height: 100%;
    }
  }
}

/* The Modal (background) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        padding: 50px;
        overflow: hidden;
        /*background-color: rgba(240, 240, 240, 0.5);*/
        animation: fadeIn 0.3s ease;
    }

    /* Modal Content Box */
    .modal picture {
      display: block;
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px;
        width: 80%;
        height: 70vh;
        max-width: 500px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        animation: slideIn 0.3s ease;
        img {
          display: block;
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
    }

    /* Close Button */
    .close {
        color: #2b2b2b;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        padding: 5px;
        border: 3px solid #fafafa;
        border-radius: 50%;
    }
    .close:hover {
        color: #000;
    }

.show {
  display: block;
}

@media (width <= 768px) {

  .card-social {
    left: 58%;
  }

  .card-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    top: 97%;
  }

  .card {
    margin: 0 auto;
  }

  .mision-vision {
    flex-direction: column;
  } 

  .images-content {
    /*display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5em;
    flex: .4;*/
    /*padding: 1em;*/

    picture {
      width: 75px;
      height: 75px;

      /*img {
        display: block;
        width: 100%;
        height: 100%;
      }*/    
    }
  }

}