.loader,
.loader:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
  z-index: -1;
}
.loader {
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  position: absolute;
  margin: auto;
  font-size: 10px;
  text-indent: -9999em;
  border-top: 0.6em solid rgba(0, 0, 0, 0.2);
  border-right: 0.6em solid rgba(0, 0, 0, 0.2);
  border-bottom: 0.6em solid rgba(0, 0, 0, 0.2);
  border-left: 0.6em solid #fff;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation: load8 1.1s infinite linear;
  animation: load8 1.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
#join {
  position: absolute;
  bottom: 5px;
  right: 5px;
}
.bell {
  display: none;
  cursor: pointer;
  position: absolute;
  bottom: 5px;
  height: 31px;
  left: 125px;
  width: 32px;
}
.fs {
  cursor: pointer;
  position: absolute;
  bottom: 5px;
  height: 31px;
  left: 165px;
  width: 32px;
}
.calendar_svg {
  height: 23px;
  width: 23px;
  padding-top: 3px;
}
.fs_svg {
  height: 23px;
  width: 23px;
  padding-top: 5px;
}
.chat_svg {
  height: 18px;
  width: 18px;
  margin-top: -5px;
}
#wrapper {
  position: relative;
  overflow: hidden;
}
#theframe {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
#splash {
  position: absolute;
  z-index: -1;
}
#spinner {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.container-fluid {
  margin-left: unset !important;
  margin-right: unset !important;
}
#nagger-screener {
  background-color: black;
  opacity: 0.8;
}
#nagger {
  display: none;
}
#nagger,
#nagger-screener {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 10;
}
#nagger-wrap {
  top: 100px;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-right: 10px;
  padding-bottom: 10px;
  padding-left: 10px;
  background: white;
  border-radius: 4px;
  text-align: center;
  width: 286px;
  height: 120px;
  overflow: hidden;
  z-index: 10;
}
#nagger-title {
  position: absolute;
  width: 100%;
  height: 20px;
  background-color: white;
  top: 0px;
  left: 0px;
  padding-top: 4px;
  padding-right: 4px;
  z-index: 10;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
}
#nagger-buttons {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
#nagger-iframe {
  display: none;
}
.btn {
  margin-left: 3px;
  margin-right: 3px;
}
.pulse {
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
#info {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  justify-content: space-evenly;
  width: 100%;
  font-size: 0.7em;
}

/* Invite Button Styles */
#invite-button {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  display: none;
  animation: celebrateEntry 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
  height: auto;
  min-height: 31px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}
#invite-button.show {
  display: block !important;
  animation: celebrateEntry 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    bounce 2s ease-in-out infinite 1.5s;
  box-shadow: 0 8px 30px rgba(0, 123, 255, 0.6), 0 0 20px rgba(255, 215, 0, 0.8);
}
#invite-button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  width: auto;
  background: linear-gradient(90deg, #007bff, #0056b3);
  transform: scaleX(1);
  transform-origin: left;
  animation: progressDeplete 20s linear forwards;
  border-radius: 0 0 4px 4px;
}
#invite-button.show::after {
  animation: progressDeplete 20s linear forwards;
}
@keyframes progressDeplete {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
@keyframes celebrateEntry {
  0% {
    transform: scale(0) rotate(720deg);
    opacity: 0;
    filter: brightness(3) saturate(2);
  }
  25% {
    transform: scale(1.8) rotate(360deg);
    opacity: 1;
    filter: brightness(2.5) saturate(2);
  }
  50% {
    transform: scale(0.8) rotate(180deg);
    opacity: 1;
    filter: brightness(2) saturate(1.5);
  }
  75% {
    transform: scale(1.4) rotate(90deg);
    opacity: 1;
    filter: brightness(1.5) saturate(1.2);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: brightness(1) saturate(1);
  }
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(360deg);
    opacity: 0;
  }
}
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #ffd700, #ffed4e);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle 1s ease-out forwards;
}

/* Skeleton Loader Styles */
.loading {
  position: relative;
  background-color: rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.loading::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255, 255, 255),
    transparent
  );
  animation: loading 1.5s infinite;
}
@keyframes loading {
  100% {
    transform: translateX(100%);
  }
}
#skeleton-loader {
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
  font-family: Arial, sans-serif;
}
#skeleton-loader .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100vh;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
#skeleton-loader .logo-placeholder {
  width: 50%;
  height: 60px;
  margin-bottom: 20px;
  z-index: 9999;
}
#skeleton-loader .name-placeholder {
  width: 100%;
  height: 30px;
  margin-bottom: 20px;
  z-index: 9999;
}

/* Tip Animation Styles */
@keyframes tipBounce {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  15% {
    transform: translate(-50%, -50%) scale(1.5) rotate(45deg);
    opacity: 1;
  }
  30% {
    transform: translate(-50%, -50%) scale(1) rotate(-30deg);
    opacity: 1;
  }
  45% {
    transform: translate(-50%, -50%) scale(1.3) rotate(15deg);
    opacity: 1;
  }
  60% {
    transform: translate(-50%, -50%) scale(1) rotate(-10deg);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
    opacity: 1;
  }
  90% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
}
