/* Output container for the generated cards */
#output {
  max-height: 150px;  /* Adjust this value based on your design */
  overflow-y: auto;   /* Enable vertical scrolling */
  padding-right: 20px; /* To prevent scroll bar from overlaying the content */
  margin-top: 20px;    /* Optional: adds some space above the output */
  border: 1px solid #ddd; /* Optional: adds border around the card container */
  border-radius: 8px;  /* Optional: rounded corners for the container */
}

/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #007bff, #6610f2);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Container styles */
.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* Heading styles */
.container h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #ffffff;
}

/* Label styles */
.container label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Input fields */
.container input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  outline: none;
}

.container input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Button styles */
.container button {
  width: 100%;
  padding: 10px;
  background: #28a745;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container button:hover {
  background: #218838;
}

/* Card output */
#output {
  list-style: none;
  margin-top: 20px;
  text-align: left;
  padding: 0;
}

#output li {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#output li button {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#output li button:hover {
  background: #0056b3;
}

/* Copy All button */
#copyAllBtn {
  margin-top: 15px;
  background: #ffc107;
  color: #212529;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#copyAllBtn:hover {
  background: #e0a800;
}

/* Responsive design */
@media (max-width: 480px) {
  .container {
    padding: 20px;
    font-size: 0.9rem;
  }

  #output li {
    font-size: 0.8rem;
  }

  #output li button {
    font-size: 0.7rem;
  }
}
/* Popup Overlay */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

/* Hide the popup by default */
.popup.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Popup Content */
.popup-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 400px;
  animation: popup-slide-in 0.3s ease forwards;
}

/* Popup Text */
.popup-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

/* Popup Button */
.popup-content button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.popup-content button:hover {
  background: #0056b3;
}

/* Popup Animation */
@keyframes popup-slide-in {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Footer styles */
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
}

.main-content {
  flex: 1; /* This allows content to take up remaining space */
}

/* Footer at the bottom */
.footer {
  background-color: #333; /* Dark background */
  color: #fff; /* White text */
  text-align: center;
  padding: 15px;
  font-size: 1rem;
  width: 100%; /* Ensure it spans the full width */
  position: relative;
}

.footer-branding p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

.footer-branding strong {
  color: #007bff; /* Accent color for your company name */
}


/* 3 Dot Menu Button */
.dot-menu button {
  background: transparent;
  border: none;
  font-size: 24px;
  color: black;
  cursor: pointer;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

/* Credit Content Box */
.credit-content {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Translucent background */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
}

/* Credit Box Styling */
.credit-box {
  background: grey;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animation for the credit box */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Styling the Close Button */
.credit-box button {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007BFF;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
  border-radius: 5px;
}

.credit-box button:hover {
  background-color: #0056b3;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  button {
    font-size: 1em;
  }

  .credit-box {
    padding: 15px;
  }

  .popup-content {
    width: 80%;
  }

  footer .footer-branding {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .dot-menu {
    top: 15px;
    right: 15px;
  }

  .container input,
  .container button {
    font-size: 1em;
    padding: 12px;
  }

  h1 {
    font-size: 1.2em;
  }
}
