/* Modal container */
.modal1 {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  margin-top: 50px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* prevent page scroll while modal is open */
}

/* Modal content box */
.modal-content1 {
  margin-top: 50px;
  background-color: #fff;
  padding: 10px;
  width: 100%;
  max-height: 100vh;
  overflow-x: auto;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  font-size: 16px;            /* Increased font size */
  line-height: 1.6;           /* More line spacing for clarity */
  text-align: left;
}

.modal-content1 pre{
  font-family: monospace; 
  font-size: 14px; 
  white-space: pre;         /* ✅ Use 'pre' instead of 'pre-wrap' for preserving spacing and enabling scroll */
  max-height: 350px;        /* ✅ Sets max vertical height */
  overflow-y: auto;         /* ✅ Enables vertical scroll */
  overflow-x: auto;         /* ✅ Enables horizontal scroll (just in case) */
  background-color: #f8f8f8;
  padding: 10px;
  box-sizing: border-box;
}
/* Close button */
.close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Optional: Style headings for better visual hierarchy */
.modal-content1 h2 {
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
}
.modal-content1 h2 {
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
}
.modal-content1 p{
padding-left: 40px;

}

.modal-content1 ol{
  padding-left: 60px;
}
.modal-content1 ul {
  padding-left: 20px;
}

.link-text1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: 800;
  text-decoration-line: underline;
  color: rgb(37, 122, 232);
  transition: color 0.3s ease; /* Smooth fade on hover */
}

.link-text1:hover {
  color: rgb(95, 67, 187); /* Change to any hover color you prefer */
}

@media (max-width:580px){
  .modal-content1 {
    width: 100%;
    padding: 6px;
    font-size: 15px;            /* Decreased font size */
    line-height: 1.3; 
}
   
.modal-content1 pre{
  font-size: 10px; 
  max-height: 225px;        /* ✅ Sets max vertical height */
  padding: 10px;
}
.modal-content1 h2 {
  font-size: 18px;
  margin-bottom: 6px;
 
}
.modal-content1 p{
  padding-left: 20px;
  
  }
  
  .modal-content1 ol{
    padding-left: 40px;
  }
  .modal-content1 ul {
    padding-left: 20px;
  }
}
  @media (max-width:480px){
    .modal-content1 {
      width: 100%;
      padding: 6px;
      font-size: 15px;            /* Decreased font size */
      line-height: 1.3; 
  }
     
  .modal-content1 pre{
    font-size: 10px; 
    max-height: 500px;        /* ✅ Sets max vertical height */
    padding: 10px;
  }
  .modal-content1 h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .modal-content1 p{
    padding-left: 10px;
    
    }
    
    .modal-content1 ol{
      padding-left: 20px;
    }
    .modal-content1 ul {
      padding-left: 10px;
    }
  
  }