@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

body:has(div.event-popup.active) {
  overflow: hidden;
}

div.event-popup {
  background-color: #00000050;
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transition:
    opacity 1s cubic-bezier(0, 0, 0.2, 1),
    display 0.5s allow-discrete;
}

div.event-popup.active {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@starting-style {
  div.event-popup.active {
    opacity: 0;
  }
}

div.event-popup img {
  max-height: 350px;
  width: auto;
}

div.event-popup div.event-popup-content {
  position: relative;
}

div.event-popup div.event-popup-content div.content-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

div.event-popup button.close-popup {
  float: right;
}

div.event-popup button.close-popup > i.bi.bi-x {
  color: white;
  font-size: 2rem;
}

div.__event-popups.open-popup-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
}

div.__event-popups.open-popup-btn > button {
  background-color: #dbbf6a;
  padding: 1rem 1rem;
  border-radius: 999px;
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s cubic-bezier(0, 0, 0.2, 1);
}

div.__event-popups.open-popup-btn > button > i {
  display: inline-block;
  width: auto;
  height: auto;
}

div.__event-popups.open-popup-btn div.notification-dot {
  border-radius: 999px;
  position: absolute;
  z-index: 10;
  top: 0.15rem;
  right: 0.25rem;
  height: 0.5rem;
  width: 0.5rem;
  background-color: red;
}

@media only screen and (max-width: 900px) {
  div.event-popup img {
    max-width: 100%;
  }

  div.event-popup button.close-popup > i.bi.bi-x {
    font-size: 3rem;
  }
}

@media only screen and (max-width: 500px) {
  div.event-popup button.close-popup > i.bi.bi-x {
    font-size: 2rem;
  }

  div.event-popup div.event-popup-content div.content-overlay {
    top: 0.5rem;
    right: 0.5rem;
  }
}
