body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: 
    linear-gradient(rgba(48, 0, 80, 0.85), rgba(75, 0, 130, 0.85)),
    url('CloudArcade/image/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Navbar */
nav {
  width: 100%;
  background: linear-gradient(90deg, rgba(48,0,80,0.9), rgba(75,0,130,0.9));
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  z-index: 10;
  border-bottom: 3px solid #6A0DAD;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

nav h1 {
  margin: 0;
  color: #fff;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex: 1;
}

nav ul li {
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
}

nav ul li:hover {
  color: #DDA0DD;
  transform: scale(1.1);
}

/* Header */
header {
  text-align: center;
  margin-top: 120px;
}
header h2 {
  font-size: 3rem;
}
header p {
  font-size: 1.2rem;
  color: #dcdcdc;
  margin-top: 10px;
}

/* Game Cards */
.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 80%;
  max-width: 900px;
  margin: 60px auto;
}
.game-card {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: 0.3s;
}
.game-card:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}
.game-card a {
  text-decoration: none;
  color: white;
}

/* Footer */
footer {
  background: rgba(0,0,0,0.4);
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #ddd;
  font-size: 0.9rem;
  margin-top: auto;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  width: 80%;
  max-width: 700px;
  border-radius: 10px;
  overflow-y: auto;
  max-height: 80vh;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}
.close-btn {
  float: right;
  font-size: 1.3rem;
  cursor: pointer;
  color: #4B0082;
}
.close-btn:hover {
  color: red;
}
