/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #a0e0ff, #ffffff);
  background-size: cover;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
}

header a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

/* Buttons */
button {
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

button:hover {
  background: #5563d6;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
}

form input, form select {
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Profile Pic Preview */
#profilePreview, #avatarPreview, #finalAvatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 10px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: #ccc;
  overflow: hidden;
  object-fit: cover;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}

.game-card {
  background: white;
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-5px);
}

/* Waterfall-style Background (animated) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1523983305507-0424e3e6a5f8?auto=format&fit=crop&w=1350&q=80') no-repeat center center;
  background-size: cover;
  opacity: 0.3;
  z-index: -1;
  animation: flow 20s linear infinite;
}

@keyframes flow {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}
