.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  justify-content: space-around;
  grid-gap: 2rem;
  margin: 1rem 2rem 2rem 2rem;
  background: linear-gradient(60deg, #000000 0%, #08050e 100%);
}

.cgames {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;     /* or 'start' for left alignment */
  gap: 1rem;                   /* reduces space between items */
  margin: 1rem;                /* tighter outer spacing */
}


.game {
  text-decoration: none;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  transition: transform 0.1s;
}

.game:hover {
  transform: scale(0.925);
}

.inline-elements { display: inline-block; vertical-align: middle; /* This aligns them vertically in the middle */ }

.game[hidden] {
  display: none;
}

.img-sm {
  width: 65px;
}

.game-image {
  background: #2A1A47;
  object-fit: cover;
  height: 200px;
  width: 200px;
  border-radius: 15px 15px 0 0;
}


.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #f33333;
}


h1, h2, h3, p, li {
  font-family: monospace;
  color: #ffffff;
}
a {
  font-family: monospace;
  color: #ffffff;
}
h1 { font-size: 28px; }
p { font-size: 18px; }
h2 { font-size: 34px; }
h3 { font-size: 130px; }

html {
  scroll-behavior: smooth;
}

body {
  background: #08050e;
}

.button {
  float: center;
  color: #7868E6;
  background-color: #2A1A47;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3em;
  width: 8em;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition-duration: 0.3s;
  margin: 4px 2px;
}

.button:hover {
  color: #2A1A47;
  background-color: #7868E6;
  font-size: 16.5px;
  font-weight: 700;
  transition-duration: 0.3s;
}

.button-container {
  display: flex; /* Enable flexbox */
  justify-content: center; /* Center horizontally */
  gap: 1rem; /* Add space between buttons */
  flex-wrap: wrap; /* Allow wrapping if necessary */
  margin: 1rem 0;
}


.topnav {
  background: #0b0613;
  overflow: hidden;
  border-radius: 50px;
  position: sticky;
  display: flex; /* Enable flexbox on the container */
  justify-content: center; /* Center the items horizontally */
  align-items: center; /* Center the items vertically (optional) */
}

.topnav a, .topnav button { 
  background: linear-gradient(60deg, #110a1d 0%, #2A1A47 100%);
  color: #7868E6; 
  background-color: #2A1A47; 
  border-radius: 50px; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  height: 3em; 
  width: 8em; 
  text-decoration: none; 
  font-size: 16px; 
  font-weight: 600; 
  transition-duration: 0.3s; 
  margin: 0 10px; /* Add some space between the items */
}

.topnav a:hover, .topnav button:hover, .topnav a.active { 
  color: #9789f5; 
  background-color: #7868E6; 
  font-weight: 700; 
  font-size: 16.5px; 
}

.spinner-1 {
  width: 25px;
  height: 25px;
  border: 4px solid #150c24; /* Light border color */
  border-top: 4px solid #5e51b3; /* Darker border color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.announcement-panel {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 15px;
  background: linear-gradient(60deg, #08050e 0%, #2A1A47 100%);
  color: #ffffff;
  font-family: Arial, sans-serif;
}

.announcement {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: #1e1e30;
  border: 1px solid #7868E6;
}

.announcement-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: #7868E6;
}

.announcement-date {
  font-size: 0.9rem;
  margin: 0 0 1rem;
  color: #cccccc;
}

.announcement-content {
  font-size: 1rem;
  line-height: 1.5;
  color: #ffffff;
}

.announcement-content p {
  margin: 0;
}

@media (max-width: 600px) {
  .announcement-title {
    font-size: 1.25rem;
  }

  .announcement-content {
    font-size: 0.9rem;
  }
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
  margin:15px auto;
  position: relative;
  background: #1e1e30;
  box-shadow: -24px 0 #1e1e30, 24px 0 #1e1e30;
  box-sizing: border-box;
  animation: shadowPulse 2s linear infinite;
}

@keyframes shadowPulse {
  33% {
    background: #1e1e30;
    box-shadow: -24px 0 #7868E6, 24px 0 #1e1e30;
  }
  66% {
    background: #7868E6;
    box-shadow: -24px 0 #1e1e30, 24px 0 #1e1e30;
  }
  100% {
    background: #1e1e30;
    box-shadow: -24px 0 #1e1e30, 24px 0 #7868E6;
  }
}

