
body {
  background-color: #001f3b;
  background: -webkit-linear-gradient(to left, #000910, #001f3b);
  background: linear-gradient(to left, #000910, #001f3b);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color:#fff;
}
a, a:visited, a:active {
    color:#b2ebf8;
}
.game {
 
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  padding: 15px;
  background-color: #001f3b;
  border-radius: 20px;
}

.grid {
  display: grid;
  grid-template-columns: 100px 100px 100px;
  grid-template-rows: 100px 100px 100px;
  border: 1px solid #001f3b;
}
p {
text-align:center;
font-family:sans-serif;
}
.grid button {
  color: #fffdfd;
  box-sizing: border-box;
  border-top: 8px solid #a1a0af;
  border-left: 8px solid #636375;
  border-bottom: 8px solid #46459e;
  border-right: 8px solid #716fcf;
  background-color: #5250f1;
  font-size: 27px;
  font-weight: bold;
  border: 1px solid #000;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.footer {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.footer button {
  border: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 2px;
  border: 1px solid #fffdfd;
  padding: 5px;
  width: 100px;
  background-color: #613cc7;
  color: white;
  outline: none;
  cursor: pointer;
  display:none;
}

.footer button:hover {
  color: #D4EE9F;
  background-color: #67b26f;
}

.footer span {
  flex: 1;
  text-align: center;
  font-size: 20px;
  color: #D4EE9F;
  font-weight: bold;
  margin: auto 0;
  display:none;
}

.message {
  color:#aa1b20;
  height: 100px;
}


.box {
background-image:url(background.gif);
}
.box-1 {
background-position:0px 0px;
}
.box-2 {
background-position:-100px 0px;
}
.box-3 {
background-position:-200px 0px;
}
.box-4 {
background-position:0px -100px;
}
.box-5 {
background-position:-100px -100px;
}
.box-6 {
background-position:-200px -100px;
}
.box-7 {
background-position:0px -200px;
}
.box-8 {
background-position:-100px -200px;
}
.box-9 {
background-position:-200px -200px;
background-blend-mode:exclusion;
}
/* Dark space background */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at bottom, #0f171e 0%, #050508 100%);
  overflow: hidden;
  height: 100vh;
}

/* Base style for all star layers */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* Layer 1: Tiny background stars (Highly Densely Populated)
   Speed increased from 150s -> 20s
*/
.stars-small {
  width: 1px;
  height: 1px;
  box-shadow:
    100px 300px #fff, 350px 700px #fff, 800px 150px #fff, 1200px 600px #fff,
    1500px 900px #fff, 1800px 200px #fff, 50px 850px #fff, 600px 450px #fff,
    950px 800px #fff, 1300px 100px #fff, 1700px 500px #fff, 1900px 950px #fff,
    250px 150px #fff, 450px 850px #fff, 700px 350px #fff, 1100px 950px #fff,
    1350px 250px #fff, 1650px 750px #fff, 150px 550px #fff, 550px 150px #fff,
    850px 600px #fff, 1250px 400px #fff, 1450px 850px #fff, 1750px 150px #fff,
    300px 900px #fff, 650px 700px #fff, 900px 200px #fff, 1050px 500px #fff;
  animation: flyUp 20s linear infinite;
}

/* Layer 2: Medium stars (More stars added)
   Speed increased from 100s -> 12s
*/
.stars-medium {
  width: 2px;
  height: 2px;
  box-shadow:
    200px 500px #ccc, 700px 200px #ccc, 1100px 800px #ccc, 1600px 300px #ccc,
    400px 900px #ccc, 900px 600px #ccc, 1400px 150px #ccc, 1850px 750px #ccc,
    100px 100px #ccc, 500px 400px #ccc, 800px 900px #ccc, 1200px 300px #ccc,
    1500px 600px #ccc, 1700px 100px #ccc, 300px 750px #ccc, 1000px 450px #ccc;
  animation: flyUp 12s linear infinite;
}

/* Layer 3: Large foreground stars (More stars added)
   Speed increased from 50s -> 6s (This creates a fast rush effect)
*/
.stars-large {
  width: 3px;
  height: 3px;
  box-shadow:
    300px 100px #fff, 800px 900px #fff, 1300px 400px #fff, 1800px 850px #fff,
    500px 600px #fff, 1000px 150px #fff, 1500px 700px #fff, 150px 350px #fff,
    700px 50px #fff, 1150px 800px #fff, 1650px 250px #fff, 900px 700px #fff;
  animation: flyUp 6s linear infinite;
}

/* Fast-paced vertical translation */
@keyframes flyUp {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-1000px); /* Adjusted to smoothly loop faster */
  }
}
