.modal-component-modal {
  font-family: 'Noto Serif Bengali', serif;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* Allow vertical scrolling */
  background: linear-gradient(to bottom right, rgba(255, 250, 240, 0.6), rgba(255, 228, 181, 0.8));
  display: none; /* Hide modal */
  justify-content: center;
  align-items: center; /* Fallback */
  align-items: safe center; /* Safe alignment */
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.modal-component-modal.show {
  display: flex; /* Show modal */
  opacity: 1;
}

.modal-component-content {
  background-color: #FFB66E;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  max-width: 60%;
  width: fit-content;
  position: relative;
  box-sizing: border-box;
  display: flex; /* For centering */
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-component-body {
  padding: 4px;
}

.modal-component-footer {
  position: sticky;
  bottom: 0;
  background-color: #FFB66E;
  padding: 10px 0;
  width: 100%;
  text-align: center;
}

.modal-component-close {
  cursor: pointer;
  padding: 10px;
  background-color: #f0f0f0;
  border: 2px solid #ccc;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

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

.modal-component-link {
  text-decoration: none; /* Remove underline from links */
  color: inherit; /* Inherit color from parent */
}

.modal-component-link:hover {
  text-decoration: underline; /* Underline on hover */
}

/* Media queries */
@media (max-width: 1400px) {  
  .modal-component-content {
    max-width: 75%;
  }
}

@media (max-width: 1200px) {  
  .modal-component-content {
    max-width: 90%;
  }
}

@media (max-width: 600px) {  
  .modal-component-content {
    padding: 10px;
  }
}