body {
  font-family: Arial, sans-serif;
  background: #071733;
  text-align: center;
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  transition: background-color 0.3s ease;
}

@keyframes bgGradient {
  0% {}
  50% {}
  100% {}
}

header.header-shape {
  background: #071733;
  color: #e0e6ff;
  padding: 20px 0;
  text-align: center;
  font-weight: bold;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header.header-shape:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

header.header-shape h1 {
  font-size: 2rem;
  margin: 0;
  animation: glowPulse 2s infinite alternate, slideIn 1s ease-out forwards;
  color: #e0e6ff;
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 5px #9cc7ff, 0 0 10px #9cc7ff, 0 0 20px #003366, 0 0 30px #003366; }
  50% { text-shadow: 0 0 10px #cfe3ff, 0 0 20px #cfe3ff, 0 0 30px #003366, 0 0 40px #003366; }
  100% { text-shadow: 0 0 5px #9cc7ff, 0 0 10px #9cc7ff, 0 0 20px #003366, 0 0 30px #003366; }
}

@keyframes slideIn {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 120px; /* pushed in from both sides */
}

#games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0 auto;
  justify-items: center;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.game-card {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #071733;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  aspect-ratio: 1/1;
}

.game-card:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
  filter: brightness(1.05);
}

.game-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
  object-fit: cover;
}

.game-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #e0e6ff;
  text-shadow: 0 0 8px #b3c8ff, 0 0 16px #a0baff, 0 0 24px #6c8cff;
  animation: glowTitle 2s infinite alternate;
}

@keyframes glowTitle {
  from { text-shadow:0 0 5px #9eb8ff,0 0 10px #c0d2ff,0 0 20px #5a7aff; }
  to { text-shadow:0 0 10px #b3cfff,0 0 20px #a8c2ff,0 0 30px #7fa1ff; }
}

.fullscreen-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: #071733;
  color: #e0e6ff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: .85;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .3s ease, transform .2s ease, background-color .3s ease;
}

.fullscreen-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background-color: #071733;
}

footer {
  text-align: center;
  padding: 15px 0;
  background: #071733;
  color: #e0e6ff;
  border-top: 3px solid #1a2c57;
  box-shadow: 0 -5px 15px rgba(0,0,0,.3);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  main { padding: 20px 60px; }
  #games { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  main { padding: 20px; }
  #games { grid-template-columns: 1fr; }
  .game-card iframe { height: 300px; }
}

.title-for-Categories {
  color: #e0e6ff;
  font-size: 28px;
  font-weight: bold;
}
