/* Modal container */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
  overflow: auto; /* Enable scrolling if content is larger than the screen */
}

/* Modal content */
.modal-content {
  background-color: #fff;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border-radius: 10px;
  width: 90%; /* Default width for mobile devices */
  max-width: 500px; /* Max width for larger screens */
  text-align: left;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Close button */
.close {
  color: #9d9d9c;
  float: right;
  font-size: 28px;
  font-weight: 300;
}

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

/* Media Queries */

/* Tablets (landscape and portrait) */
@media (min-width: 768px) {
  .modal-content {
    width: 70%; /* Increase width for tablet screens */
  }
}

/* Desktops */
@media (min-width: 1024px) {
  .modal-content {
    width: 50%; /* Even larger width for desktops */
  }
}

/* Larger desktops and wide screens */
@media (min-width: 1440px) {
  .modal-content {
    width: 40%; /* Adjust for larger displays */
  }
}

.close img {
  height: 24px;
  width: 24px;
}

.inner-content {
  margin-top: 40px;
}
@media (max-width) {
.modal-content{
  width: 75% !important;
}
}