 /* The background of the popup window */
 .popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease-in-out;
}

/* The effect of appearance */
.popup-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

/* Window content */
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 320px;
  position: relative;
  animation: slideDown 0.3s ease-in-out;
}

/* Closing button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

.close-btn svg {
  stroke: #333;
  width: 20px;
  height: 20px;
  transition: stroke 0.2s ease-in-out;
}

.close-btn:hover svg {
  stroke: red;
}

/* Window Open button */
.open-popup-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

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

/* Format the drop -down menu */
.custom-select {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 250px;
  margin-top: 10px;
}

.custom-select select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
  appearance: none;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.custom-select select:focus {
  border-color: #007bff;
  outline: none;
}

/* SVG icon for arrow */
.chevron-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease-in-out;
}

/* When the drop -down menu is opened, the approach changes */
.custom-select select:focus+.chevron-icon {
  transform: translateY(-50%) rotate(180deg);
}

/* Effects of appearance */
@keyframes fadeIn {
  from {
      opacity: 0;
  }

  to {
      opacity: 1;
  }
}

@keyframes slideDown {
  from {
      transform: translateY(-20px);
      opacity: 0;
  }

  to {
      transform: translateY(0);
      opacity: 1;
  }
}
