body {
  font-family: "IBM Plex Sans", sans-serif;
}

.title {
  font-family: "Megrim";
  font-size: 28px;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f0f0;
}

.title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-family: "Megrim", sans-serif;
}

.url-input-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ccc;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
  outline: none;
  font-family: "IBM Plex Sans", sans-serif;
}

.url-input:focus {
  border-color: #007bff;
}

.expiry-select {
  padding: 11px 16px;
  border: 2px solid #ccc;
  border-left: none;
  background-color: white;
  font-size: 1rem;
  font-family: "IBM Plex Serif", serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s ease;
}

.expiry-select:focus {
  border-color: #007bff;
}

.generate-btn {
  padding: 12px 16px;
  border: 2px solid #007bff;
  border-left: none;
  background-color: #007bff;
  color: white;
  border-radius: 0 5px 5px 0;
  font-size: 1rem;
  cursor: pointer;
  font-family: "IBM Plex Serif", serif;
  transition: background-color 0.3s ease;
}

.generate-btn:hover {
  background-color: #0056b3;
}

/* Popup styling */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-align: center;
  z-index: 1000;
}

.popup-content {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: "IBM Plex Serif", serif;
}

.popup-url {
  display: inline-block;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 5px;
  font-size: 1rem;
  word-break: break-all;
}

.copy-btn {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
  font-family: "IBM Plex Serif", serif;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: #0056b3;
}

.popup-close {
  padding: 6px 12px;
  background-color: #555;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  font-family: "IBM Plex Serif", serif;
  transition: background-color 0.3s ease;
}

.popup-close:hover {
  background-color: #333;
}

/* Overlay */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Responsive design */
@media (max-width: 768px) {
  .url-input-container {
    flex-direction: column;
    align-items: stretch;
  }

  .url-input,
  .expiry-select,
  .generate-btn {
    width: 100%;
    margin: 5px 0;
    border-radius: 5px;
  }

  .url-input {
    border-right: 2px solid #ccc;
  }

  .expiry-select {
    border-left: 2px solid #ccc;
  }

  .generate-btn {
    border-left: 2px solid #007bff;
  }
}
