/* Basic layout */
:root{
  --bg:#0b1220;
  --card:#0f1720cc;
  --accent:#e6f7ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans",sans-serif;
  background: linear-gradient(180deg,#0b1220 0%, #112033 100%);
  animation: gradientShift 60s ease infinite;
  color:var(--accent);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow:hidden;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


#snow-canvas{
  position:fixed;
  inset:0;
  z-index:0;
  display:block;
}

.page{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:3rem 1rem;
}

/* Fade edges: subtle top and bottom vignette so flakes appear to come from outside */
.page::before{
  content: '';
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(11,18,32,0.9) 0%, rgba(11,18,32,0.0) 12%, rgba(11,18,32,0.0) 88%, rgba(11,18,32,0.94) 100%);
  z-index:2;
  mix-blend-mode: normal;
}

.content{
  flex:1 1 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
}

.card{
  max-width:720px;
  width:100%;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:12px;
  padding:2rem;
  box-shadow:0 8px 30px rgba(2,6,23,0.6);
  backdrop-filter: blur(4px) saturate(120%);
  border:1px solid rgba(255,255,255,0.04);
}

h1{margin:0 0 .5rem 0; font-size:2rem}
p{line-height:1.5; color:rgba(230,247,255,0.9); text-shadow:0 1px 3px rgba(234, 246, 252, 0.9); animation: drift 6s ease-in-out infinite;}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.credits{margin-top:1.2rem; text-align:center; opacity:0.7}




/* Ensure footer sits at bottom when content is short */
.page > .credits{
  flex-shrink:0;
}

/* Softer footer contrast: subtle translucent background and reduced opacity */
.credits{
  background: rgba(255,255,255,0.02);
  color: rgba(230,247,255,0.85);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  display: inline-block;
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
}

/* small screens */
@media (max-width:480px){
  .card{padding:1.4rem; border-radius:10px}
  h1{font-size:1.4rem}
}
