/* Base Trigger Button */
.popup-box::-webkit-scrollbar {
  width: 5px;
}

.btn {
  margin: 20px 0;
  padding: 6px 11px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .5px;
  color: #ffffff;
  background-color: #28b085;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  color: #ffffff;
  background-color: #21906d;
}

/* Fullscreen Dark Overlay Background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  /* Blur effect on main window content */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  /* Disables clicking through invisible elements */
  transition: opacity 0.3s ease-in-out;
  z-index: 1000;
}

/* Active Class to Display the Overlay */
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Centered Popup Box */
.popup-box {
  background: #ffffff;
  padding: 30px;
  padding-bottom: 20px;
  border-radius: 10px;
  max-width: 870px;
  height: 650px;
  overflow: scroll;
  overflow-x: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: right;
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
}

/* Scales popup box to normal size when active */
.overlay.active .popup-box {
  transform: scale(1);
}

.popup-box h2 {
  margin-top: 0;
  color: #333;
}

.popup-box p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Close "X" Button Styling */
.close-x {
  position: absolute;
  top: -5px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s;
}

.close-x:hover {
  color: #333;
}