:root {
    --bg-color: #e5e4e2;         /* Silver Mist */
    --text-color: #2f2f2f;       /* Dark Graphite */
    --button-bg: #c5c6c7;        /* Soft Platinum */
    --button-hover: #909497;     /* Cool Pewter */
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: var(--button-bg);
  }
  
  .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
  }
  
  .top-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  .nav-link:hover {
    background-color: var(--button-hover);
    color: var(--bg-color);
  }
  
  .theme-toggle {
    font-size: 1.2em;
    padding: 6px 12px;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .theme-toggle:hover {
    transform: rotate(20deg);
  }
  
  .card-link {
    text-decoration: none;
    color: inherit;
  }  
  
  main {
    text-align: center;
    padding: 40px 20px;
  }
  
  main h1 {
    font-size: 2.5em;
    margin-bottom: 40px;
  }
  
  .game-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .card {
    background-color: var(--button-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    width: 280px;
    transition: transform 0.3s, background-color 0.3s;
  }
  
  .card:hover {
    transform: scale(1.05);
    background-color: var(--button-hover);
  }
  
  .card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .card h2 {
    margin: 15px 0 10px;
  }
  
  .card p {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  
  .btn {
    background-color: var(--button-hover);
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s;
  }
  
  .btn:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
  }
  
  footer {
    text-align: center;
    margin: 60px 0 20px;
  }
  
  /* Dark Mode
  body.dark-mode {
    --bg-color: #2f2f2f;
    --text-color: #e5e4e2;
    --button-bg: #909497;
    --button-hover: #c5c6c7;
  }
   */
  /* profile popup */
  .hidden {
    display: none !important;
  }
  
  .profile-tab {
    position: relative;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--button-bg);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
  }
  
  .profile-tab:hover {
    background-color: var(--button-hover);
  }
  
  .profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--button-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    width: 220px;
    text-align: left;
  }
  
  .profile-dropdown p {
    margin: 8px 0;
    font-size: 0.9em;
  }
  
  .profile-dropdown button {
    margin-top: 10px;
    width: 100%;
    padding: 8px;
    border: none;
    background-color: #d9534f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
  }
  
  .profile-dropdown button:hover {
    background-color: #c9302c;
  }
  