* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  width: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.background-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #000;
}

#backgroundGif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-wrapper {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
}

.image-container {
  position: relative;
  width: calc(100vw - 2rem);
  height: calc(100vh - 2rem);
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border: 0.5rem solid rgba(0, 0, 0, 0.9);
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#fullscreenImage {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 1.5rem;
}

.fallback {
  position: relative;
  z-index: 1;
  max-width: 30rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
}

.fallback strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.fallback code {
  color: #b0d7ff;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  align-items: center;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.menu-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.hidden {
  display: none;
}
