@font-face {
  font-family: "Pixelspace";
  src: url("/assets/fonts/pixelspace.ttf") format('truetype');
}

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0px;
  padding: 0px;
  overflow: hidden;
  background: #000;
}


* {
  font-family: "Pixelspace", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: #fff;
  text-wrap: nowrap;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  cursor: none !important;
}

#background-video {
  filter: brightness(0.3) saturate(0) contrast(1.2);
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: -1;
}

#dither {
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  position: fixed;
  left: 0px;
  top: 0px;
  filter: blur(0.48px);
  pointer-events: none;
}

.widget {
  background-color: #0D0D0D88;
  border: solid 1.6px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  position: relative;
  --glass-frost: 2px;
  --glass-strength: 20;
  --glass-depth: 96px;
}

.widget::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.055) 0%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.widget::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.6px;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(255, 255, 255, 0.6) 0%,
    transparent 55%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.widget.glow-active::before,
.widget.glow-active::after {
  opacity: 1;
}

#center {
  width: min(100vw, 480px);
  border-radius: 32px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28.8px;
}

#pfp {
  aspect-ratio: 1 / 1;
  position: relative;
  height: 80px;
}

#pfp-img {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background-image: url("/assets/images/pfp/bhop-planet-masked.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center center;
}

#pfp-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 137%;
  height: 137%;
  transform: translate(-50%, -50%);
  filter: saturate(0);
}

#nameplate {
  font-size: 32px;
  text-transform: uppercase;
  position: relative;
}

#center-top {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}

#nameplate-sparkle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  filter: blur(2.4px);
}

#nameplate span {
  filter: blur(0.88px);
}

#bar {
  padding: 9.6px 19.2px;
  width: fit-content;
  height: fit-content;
  display: flex;
  flex-direction: row;
  gap: 9.6px;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  align-self: center;
}

#bar span {
  width: fit-content;
}

#separator {
  width: 1.6px !important;
  height: 1.3em;
  background-color: #fff;
  display: block;
  border-radius: 9999px;
  margin: -0.3em 1em;
}

#socials {

  display: flex;
  flex-direction: row;
  gap: 25.6px;
  align-self: center;
}

.social-button {

  height: 25.6px;
  width: 25.6px;
  cursor: none !important;
}

.social-button img {
  
  transform: translateY(+0px) scale(1);
  transition: transform 0.1s ease-in;
  width: 100%;
  height: 100%;
  image-rendering: crisp-edges;
  object-fit: scale-down;
}


.social-button:hover {
}
.social-button:hover img {
  transform: translateY(-4.8px) scale(1.05);
}

#dither-svg {
  display: none;
}

#dither-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  filter: url(#dither);
  background: rgba(255, 255, 255, 0);
  mix-blend-mode: multiply;
}


#center-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#activity {
  height: 112px;
  border-radius: 32px;
  padding: 19.2px 25.6px;
}

#click-to-enter {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0px;
  top: 0px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(32px);
  z-index: 9998;
}

#click-to-enter span {
  font-size: 38.4px;
  font-weight: 800;
  text-transform: lowercase;
  color: transparent;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0.4) 60%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  display: block;
  animation: shine 3s ease-in infinite;
  position: relative;
}

#click-to-enter span::before {
  content: "click to enter";
  position: absolute;
  left: 0px;
  top: 0px;
  color: #fff7;
  z-index: -1;
  filter: blur(4px);
}

@keyframes shine {
  0% {
    background-position: 100% 0%;
  }
  100% {
    background-position: -100% 0%;
  }
}


#activity-icon {
  height: 100%;
  border-radius: 12.8px;
}
#activity-active {
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

#activity.active #activity-active {
  display: flex;
}

#activity-active-left {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7em;
  filter: blur(0.48px);
}
#activity-title {
  font-size: 25.6px;
}
#activity-description {
  font-size: 19.2px;
  color: #7E7E7E;
}

#activity-idling {
  display: none;
  font-size: 19.2px;
  color: #7E7E7E;
  display: none;
  flex-direction: row;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#activity.idling #activity-idling {
  display: flex;
}

#activity-offline {
  font-size: 19.2px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#activity-offline * {
  color: #7E7E7E;
}

#activity-offline-title {
  font-size: 24px;
}

#activity.active>#activity-offline, #activity.idling>#activity-offline {
  display: none;
}

#viewport-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  transform: translate(0px, 0px) rotate(0deg) scale(1);
  transition: transform 0.2s ease-in-out;
  z-index: 1;
}

#home-hover-hitbox {
  width: 240px;
  height: 100vh;
  position: fixed;
  right: 0px;
  top: 0px;
  display: block;
  z-index: 1;
}

body:has(#home-hover-hitbox:hover) #viewport-container {
  transform: translate(-192px, +3.48994967vh) rotate(-2deg) scale(1.00060954431);
}

#home-button {
  position: absolute;
  right: -144px;
  width: 96px;
  height: 96px;
}

#home-button img {
  height: 100%;
  width: 100%;
  transform: rotate(-90deg) scale(1);
  transition: transform 0.2s ease-in-out 0.1s;
}

body:has(#home-hover-hitbox:hover) #home-button img {
  transform: rotate(-100deg) scale(1.5);
}
