  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #e8f3ff, #ffffff);
    min-height: 100vh;
  }

  /* NAV BAR */
/* NAV BAR – upgraded */
.navbar {
    background: linear-gradient(to right, #3a8bcd, #2f78b0); /* nice gradient */
    color: white;
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 4px solid #1f5c8a;   /* clear bottom boundary */
    box-shadow:
        0px 2px 4px rgba(0,0,0,0.15),
        0px 4px 12px rgba(0,0,0,0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}


/* Title tweaks */
.navbar-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* Links upgrade */
.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.18);
}



  .nav-links {
    display: flex;
    gap: 15px;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      background: #3a8bcd;
      width: 100%;
      padding: 10px;
    }
    .nav-links.active {
      display: flex;
    }
    .hamburger {
      display: flex;
    }
  }

  /* CARD GRID (desktop) */
  .cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
    padding: 30px;
  }

  /* Mobile = stacked cards */
  @media (max-width: 768px) {
    .cards-container {
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding: 20px;
    }
  }

  /* CARD STYLE WITH ISLAMIC THEME */
  .card {
    background: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border: 3px solid #d4e6f7;
    //background-image: url('pattern3.jpg'); /* subtle geometric watermark */
    background-size: 140px;
    background-repeat: no-repeat;
    background-position: top right;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.08);
    transition: 0.25s;
  }

  .card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-color: #3a8bcd;
  }

  .card-icon {
    font-size: 42px;
    margin-bottom: 10px;
  }

  /* GAME AREA */
  #gameContainer {
    padding: 0px;
  }
  
  /* Dropdown container */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Button that opens dropdown */
.dropbtn {
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
}

/* Dropdown panel */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 220px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;

  /* NEW → open left instead of right */
  left: 0;
}
.nav-links {
  justify-content: flex-start; /* Align nav items to the left */
}
.navbar {
  display: flex;
  justify-content: flex-start !important;
}
.nav-links a, .dropbtn {
  margin-right: 10px;
}

/* Items inside dropdown */
.dropdown-content a {
  color: #1f5c8a;
  padding: 10px 14px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  background: #eef6ff;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Mobile compatibility — when hamburger menu opens, dropdown opens inline */
.nav-links.open .dropdown-content {
  position: relative;
  box-shadow: none;
}
