/*********************************************/
/* General modal */
/*********************************************/
.modal-general {
    display: none;
    
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    /* padding-top: 15rem; Location of the modal box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    
    transition: opacity 0.6s;  
    opacity: 0;

    /* For testing */
    /* display: block;
    opacity: 1; */
  }
  
  .modal-general-container {
    background: #fefefe;
    position: absolute;
    float: left;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    border: 1px solid #888;
    box-shadow: 0rem 2rem 2rem rgba(0, 0, 0, 0.2);
    overflow: auto !important;
  }

  .modal-general-container-with-img {
    background: #fefefe;
      position: absolute;
      float: left;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      border-radius: 1.6rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid #888;
      box-shadow: 0rem 2rem 2rem rgba(0, 0, 0, 0.2);
      
      /* Added */
      height: auto;
      /* Removed */
      /* padding: 4rem;
      overflow: auto !important; */

      /* background: #fefefe;
        position: relative;
        top: 5%;
        left: 20%;
        width: 60%;
        height: auto;
        border-radius: 1.6rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border: 1px solid #888;
        box-shadow: 0rem 2rem 2rem rgba(0, 0, 0, 0.2);
        margin-bottom: 5%; */
  }
  
  .modal-general-header {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
  }
  
  .modal-general-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Recently added HEREIAM */
    justify-content: center;
    margin-top: 3rem;
  }
  
  .modal-close-button {
    color: #aaaaaa;
    font-size: 28px;
    font-weight: bold;
  }
  
  .modal-close-button:hover,
  .modal-close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .modal-close-icon {
    font-size: 3rem;
  }
  
  .modal-close-icon:hover {
    cursor: pointer;
    color: #346777;
  }
  



/*********************************************/
/* Article modals within resources section */
/*********************************************/
.modal-article-container {
  background: #fefefe;
  position: relative;
  top: 5%;
  left: 20%;
  width: 60%;
  height: auto;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #888;
  box-shadow: 0rem 2rem 2rem rgba(0, 0, 0, 0.2);
  margin-bottom: 5%;
}

.modal-artice-banner-image, .modal-general-banner-image {
  object-fit: cover;
  width: 100%;
  /* max-height: 50%; */
  max-height: 30rem;
  overflow: hidden;
  border-radius: 1.6rem 1.6rem 0 0;
}

.modal-close-icon-absolute {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 4rem;
}

.modal-close-icon-absolute:hover {
  cursor: pointer;
  color: #346777;
}

.modal-article-text-container {
  padding: 6rem;
}

/* Body text for articles, basic styling */
.modal-body-text > p,
.modal-body-text > ul {
  font-size: 1.7rem;
  line-height: 1.5;
}

.modal-body-text > p {
  margin-bottom: 2rem;
}

.modal-body-text > h1 {
  font-size: 3.2rem;
  margin-top: 5.6rem;
  margin-bottom: 2.6rem;
  font-weight: 600;

}

/* Green hyperlihnk in article - default for <a> */
.modal-body-text>a, .modal-body-text>p a, .modal-body-text>li a {
  font-size: 1.7rem;
  line-height: 1.5;
  text-decoration: underline 1px solid #346777 !important;
  color: #346777;
  font-weight: 500;
}
.modal-body-text>a:hover, .modal-body-text>p a:hover, .modal-body-text>li a:hover {
  font-size: 1.7rem;
  line-height: 1.5;
  text-decoration: underline 1px solid #346777;
  color: #346777;
  font-weight: 600;
}

/* Pink button in article */
.modal-body-text>a.article-button:link,
.modal-body-text>a.article-button:visited {
  font-size: 1.7rem;
  font-weight: 600;
  background-color: rgb(235, 156, 156);
  padding: 0.5rem 1.5rem;
  /* margin: 4rem 0rem;  doesn't work since <a>*/
  border-radius: 1rem;
  text-decoration: none;
  color: #222;
}

.modal-body-text>a.article-button:hover,
.modal-body-text>a.article-button:active {
  background-color: rgb(209, 146, 146);
  color: #000;
}

.modal-body-text > ul {
  padding-left: 3rem;
  margin-bottom: 1rem;
}

.modal-body-text > ul > li {
  margin-bottom: 1rem;
}



.modal-padding {
  padding: 3rem;
}