/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1050; /* Sit on top */
  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 */
}

/* Modal Content/Box */
.modal-content {
  position: relative;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -15%);
  background-color: #fefefe;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%; /* Adjust to fit better on mobile */
  width: 800px; /* Standard size for larger screens */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Modal Header */
.modal-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modal Body Text Styling */
.modal-body p {
  font-size: 16px; /* Adjust to fit better on mobile */
  line-height: 1.4;
}

@media (max-width: 768px) {
  .modal-content {
    width: 90%; /* Full width for smaller devices */
    max-width: none;
    padding: 20px;
  }
}
