/* custom-modal.css */
.modal {
  display: none; 
  position: fixed; 
  z-index: 10000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.4); 
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; 
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  position: relative; /* Ensure close button is positioned correctly */
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-content-text {
  flex-grow: 1;
  padding-right: 20px; /* Add some space to the right to avoid overlap */
}

.modal-content-close {
  flex-shrink: 0;
}

.modal-close {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.modal-close i {
  margin-right: 5px;
}

.modal-close:hover {
  background-color: #c82333;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
  .modal-content {
      flex-direction: column;
  }

  .modal-content-text {
      padding-right: 0;
      margin-bottom: 10px; /* Add some space between text and button */
  }

  .modal-close {
      padding: 8px 15px;
      font-size: 12px;
  }
}

@media (max-width: 480px) {
  .modal-content {
      flex-direction: column;
  }

  .modal-content-text {
      padding-right: 0;
      margin-bottom: 10px; /* Add some space between text and button */
  }

  .modal-close {
      padding: 5px 10px;
      font-size: 10px;
  }
}
