body {
  margin: 0;
  font-family: "Comic Sans MS", cursive;
  text-align: center; 
  color: white;
  background-size: cover;
  background-position: center;
}

/* New Cute Backgrounds */
.home { background-image: url("./bac2"); }
.space { background-image: url(./1); }
.jungle { background-image: url("./2"); }
.ocean { background-image: url("./3"); }
.candy { background-image: url("./4"); }
.farm { background-image: url("./6"); }
.vehicles { background-image: url("./7"); }
.fruit { background-image: url("./8"); }

.title {
  font-size: 42px;
  margin-top: 20px;
  text-shadow: 4px 4px #000;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  50% { transform: translateY(-10px); }
}

.game-menu {
  display: grid;
  gap: 18px;
  width: 330px;
  margin: auto;
  margin-top: 30px;
}

.card {
  padding: 15px;
  font-size: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,0.8);
  color: #000;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
  transition: .25s;
}

.card:hover {
  transform: scale(1.1) rotate(2deg);
}

.game-box {
  margin-top: 50px;
  width: 80%;
  margin-inline: auto;
  background: rgba(255,255,255,0.8);
  padding: 25px;
  color: black;
  border-radius: 20px;
  font-size: 26px;
}

button {
  font-size: 24px;
  padding: 10px 22px;
  border-radius: 15px;
  border: none;
  background: gold;
  animation: bounce 2s infinite;
  cursor: pointer;
}



  .full-cover {
  background-image: url("./bac");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  text-align: center;
  padding-top: 20px;
}
.sub {
  font-size: 20px;
  color: #fff;
  text-shadow: 3px 3px #000;
}

/* Full screen game grid */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  padding: 20px;
  
  /* Center the whole grid */
  width: 85%;      /* reduce width so center feels correct */
  margin: 0 auto;  /* center the grid */
  
  /* Center inside items */
  place-items: center; 
}


/* Tiles */
.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.85);
  color: #000;
  height: 120px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 36px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  backdrop-filter: blur(5px);
  transition: .25s;
}

.tile span {
  font-size: 16px;
  margin-top: 5px;
}

.tile:hover {
  transform: scale(1.1) rotate(2deg);
}
