/* Modal container */
.copy-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw; /* Responsive width */
  width: 100%; /* Full width but limited by max-width */
  max-width: 500px; /* Limit the modal width on large screens */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none; /* Initially hidden */
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  text-align: center;
  font-family: 'Arial', sans-serif;
  animation: fadeIn 0.3s ease-in-out; /* Modal fade-in animation */
}

/* Alert header */
.alert-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.alert-fonts {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  word-wrap: break-word; /* For longer text */
}

/* Copy confirmation button */
.alert-copied {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%; /* Make button take full width */
}

.alert-copied:hover {
  background-color: #45a049;
}

/* Ad section styling */
.ads-sec {
  margin: 20px 0;
  text-align: center;
}

/* Close button */
.close-alert {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%; /* Make button take full width */
}

.close-alert:hover {
  background-color: #e53935;
}

/* Modal fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive styling for smaller screens */
@media only screen and (max-width: 600px) {
  .copy-modal {
    width: 100%;
    max-width: 90%; /* Take up more space on small screens */
    padding: 15px;
  }

  .alert-fonts {
    font-size: 16px;
  }

  .alert-copied, .close-alert {
    font-size: 14px;
  }
}
