body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1rem;
    background: #1e1e1e;
}

    

    canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #1e1e1e;
        z-index: -1;
    }

    h1, h2, p {
        text-align: center;
        margin: 0.5rem 0;
    }

    h1 {
        font-size: 2rem;
        color: #00bcd4;
    }

    h2 {
        font-size: 1.2rem;
        color: #ccc;
    }

    p {
        font-size: 0.9rem;
        color: #ff6f61;
        max-width: 600px;
    }


.button-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 1000px; /* center grid */
  justify-items: center; /* center each item */
}

.game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
  
  width: 220px;      /* fixed width */
  height: 240px;     /* fixed height */
  box-sizing: border-box;
  overflow: hidden;  /* prevent content overflow */
}

    .game-item:hover {
        background-color: #333;
        color: #00e5ff;
        transform: translateY(-2px);
    }

    .game-item img {
  width: 100%;           /* fill panel width */
  height: 160px;         /* fixed height */
  object-fit: contain;   /* keeps image aspect ratio without cropping */
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

    .game-item button {
  width: 90%;           /* consistent width relative to panel */
  padding: 0.8rem 1rem; 
  font-size: 0.95rem;
  background: #00bcd4;
  color: #121212;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
    .game-item button:hover {
        background-color: #00e5ff;
    }

    .trail-element {
        position: absolute;
        width: 20px;
        height: 20px;
        background-color: rgba(0, 229, 255, 1);
        border-radius: 50%;
        pointer-events: none;
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .new-game {
        property: value !important;
        color: #FF0000;
        font-weight: bold;
        background: #FF0000;
    }

    #game-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 2000; 
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #game-overlay iframe {
        width: 95vw;
        height: 95vh;
        border: none;
        border-radius: 10px;
    }

    #game-close-button {
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 45px;
        color: white;
        cursor: pointer;
        font-family: Arial, sans-serif;
        line-height: 1;
    }

    #game-close-button:hover {
        color: #ccc;
    }

#game-fullscreen-button {
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
    line-height: 1;
}

#game-fullscreen-button:hover {
    color: #ccc;
}


#update-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  justify-content: center;
  align-items: center;
}

#update-modal-content {
  background-color: #2c2c2c;
  color: #f1f1f1;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #00bcd4;
  width: 90%;
  max-width: 500px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  box-shadow: 0 5px 25px rgba(0, 229, 255, 0.2);
}

#update-modal-content h2 {
  color: #00e5ff;
  margin-top: 0;
}

#update-modal-content ul {
  text-align: left;
  list-style-type: '✅  ';
  padding-left: 1.5rem;
  line-height: 1.6;
}

#update-modal-content button {
  background: #00bcd4;
  border: none;
  padding: 0.8rem 2rem;
  margin-top: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  color: #121212;
  transition: background-color 0.2s ease;
}

#update-modal-content button:hover {
  background-color: #00e5ff;
}
#game-loader {
  width: 60px;
  height: 60px;
  border: 6px solid #555;
  border-top: 6px solid #00e5ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sidebar {
  position: fixed;
  top: 0;
  height: 100%;
  width: 80px;
  background-color: #1e1e1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 1000; /* above content */
}

.sidebar-left { left: 0; }
.sidebar-right { right: 0; }

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 24px;
  transition: transform 0.2s;
}

.sidebar-item span {
  font-size: 12px;
  margin-top: 4px;
}

.sidebar-item:hover {
  transform: scale(1.2);
}
      
.dmca-container {
  text-align: center; /* centers all inline elements inside */
}

.dmca {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: #00e5ff;
  color: #121212;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  margin: 0.5rem 0;
  text-align: center;
}

.dmca:hover {
  background-color: #00c3cc;
}