:root {
  --glass-blur: 5px;
  --glass-opacity: 0.18;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body {
  background: black;
  color: white;
  overflow: hidden;
  position: relative;
}

#enter-page {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
}

#enter-page h1 {
  font-size: 1.5rem;
  letter-spacing: 4px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

#enter-page h1:hover {
  opacity: 1;
}

#main-page {
  display: none;
  height: 100vh;
  width: 100vw;
  position: relative;
}

.glass-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  background: rgba(0, 0, 0, var(--glass-opacity));
  z-index: -1;
}

#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.center-image {
  position: absolute;
  top: 50%;
  left: 50%;
}

.center-image img {
  display: block;
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.25));
  transition: all 0.1s ease-out;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.center-image img:hover {
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.6));
}

html:not(.no-scanlines):not(.force-no-scanlines) body::before {
  content: "";
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  background-image: url("scanlines/scanlines.png");
  background-position: 0 0;
  background-repeat: repeat;
  z-index: 10000000;
  animation: ScanlineAnimationLeft 2s linear infinite;
  pointer-events: none;
  opacity: 1;
}

html:not(.no-scanlines):not(.force-no-scanlines) body::after {
  content: "";
  display: block;
  position: fixed;
  left: -32px;
  top: 0;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  background-image: url("scanlines/scanlines.png");
  background-position: 0 0;
  background-repeat: repeat;
  z-index: 10000000;
  animation: ScanlineAnimationRight 0.4s linear infinite;
  pointer-events: none;
  opacity: 1;
}

@keyframes ScanlineAnimationLeft {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  100% {
    transform: translateX(-32px) translateY(-32px);
  }
}

@keyframes ScanlineAnimationRight {
  0% {
    transform: translateX(0px) translateY(0px);
  }
  100% {
    transform: translateX(32px) translateY(-32px);
  }
}
