/* normal cursor for the whole page */
body {
    cursor: url('cursor.png') 0 0, auto;
}

/* pointer cursor when hovering buttons or links */
button:hover,
a:hover {
    cursor: url('pointer.png') 0 0, pointer;
}

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Akegin';
  src: url('Akegin.ttf') format('truetype'),
       url('Akegin.otf') format('opentype');
  font-weight: normal;
  font-style: bold;
}

/* ---------- Body & Layout ---------- */
body {
  margin:0;
  font-family:'Akegin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: url('background.png') no-repeat center center fixed;
  background-size: cover;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-height:100vh;
  color:#ccffff;
  overflow-x:hidden;
  transition: backdrop-filter 0.2s ease;
}

/* ---------- Header ---------- */
#header {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center; /* keeps Luminis centered */
  align-items: center;
  margin-top: 80px; /* moves down */
  margin-bottom: 40px;
}

/* ---------- Luminis Reflection ---------- */
#header h1 {
  position: relative;
  z-index: 2;
  font-size: 3em;
}

#header h1::after {
  content: "Luminis";  /* same as the h1 text */
  position: absolute;
  top: 100%;  /* right under the h1 */
  left: 50%;
  transform: translateX(-50%) scaleY(-1.8); /* flip vertically */
  opacity: 0.25;  /* faint */
  font-family: 'Akegin', sans-serif;
  font-size: 1em; /* smaller than main h1 */
  letter-spacing: 0.05em;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


#search-bar {
  position: absolute;
  right: 20px;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  font-size: 1.1em;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  min-width: 200px;
  z-index: 2;
}

#search-bar::placeholder {
  color: rgba(255,255,255,0.6);
}

/* Mobile responsive */
@media (max-width: 600px) {
  #header {
    flex-direction: column;
    margin-top: 60px;
  }
  #search-bar {
    position: static;
    margin-top: 15px;
  }
}

/* ---------- Game List Grid ---------- */
ul#game-list {
  list-style:none;
  padding:0;
  margin:40px auto;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap:30px;
  max-width:1200px;
  width:100%;
  justify-items:center;
}

/* ---------- Game Buttons ---------- */
button {
  position: relative;
  display:block;
  width:100%;
  max-width:300px;
  padding:21px 40px;
  font-size:1.2em;
  border:none;
  border-radius:30px;
  background: rgba(255,255,255,0.03); 
  color:#fff;
  cursor:pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  overflow:hidden;
  backdrop-filter: blur(10px);
  text-align:center;
}

/* Mouse Shine Effect */
button::before {
  content:"";
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(255,255,255,var(--opacity,0.25)), transparent 60%);
  transition: background 0.05s;
  pointer-events:none;
}

/* Button Reflections */
button .reflection {
  position:absolute;
  top:100%;
  left:0;
  right:0;
  height:100%;
  transform: scaleY(-1);
  overflow:hidden;
  pointer-events:none;
  border-radius:20px;
}
button .reflection canvas {
  width:100%;
  height:100%;
  filter: blur(8px) brightness(0.1);
  opacity:0.1;
}

/* Hover */
button:hover {
  transform: scale(1.05);
  box-shadow:0 16px 48px rgba(0,0,0,0.7);
}

/* Game Container */
#game-container {
  display:none;
  flex-direction:column;
  align-items:center;
  margin-top:20px;
  position: relative;
}
#iframe-wrapper {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
}
#iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
#fake-glow {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border-radius: 20px;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 80%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
  transition: all 0.2s ease;
}

/* Floating Animation */
button, #backBtn, #fullBtn {
  animation: floatBtn 3s ease-in-out infinite alternate;
}
@keyframes floatBtn {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

/* Hide scrollbar completely */
body::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* so you can still click stuff */
  z-index: 0; /* behind everything */
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  width: 2px;
  height: 2px;
  will-change: transform, opacity;
color:#ccffff;
}

#luminis-proxy {
  margin-top: 60px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

#luminis-proxy input {
  padding: 10px 20px;
  width: 65%;
  border-radius: 30px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1em;
  margin-right: 10px;
}

#luminis-proxy input::placeholder {
  color: rgba(255,255,255,0.6);
}

#luminis-proxy button {
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

#luminis-proxy button:hover {
  background: rgba(255,255,255,0.4);
}

/* center go button and input */
#luminis-proxy {
  display: flex;
  flex-direction: column;
  align-items: center; /* center horizontally */
  justify-content: flex-start; /* start at top, adjust if u want vertically centered */
  margin-top: 60px;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 25px;
  backdrop-filter: blur(10px);
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  overflow: hidden; /* hide iframe overflow */
}

/* make iframe fit inside container and scroll only inside */
#luminis-proxy iframe {
  width: 100%;
  height: 75vh; /* takes up most of container */
  border-radius: 20px;
  display: block;
  overflow: auto; /* iframe scrolls inside only */
}

/* space between input + button and iframe */
#luminis-proxy input,
#luminis-proxy button {
  margin-bottom: 15px;
}

#proxy-header {
  width: 100%;
  text-align: center;
  margin: 20px 0 10px 0;
  font-family: 'Akegin', sans-serif;
  color: #ccffff;
}

#proxy-header h2 {
  font-size: 2.5em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

