/* fancy dark mode glassy css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at top, #101015, #050507 70%);
  color: #f1f1f1;
  backdrop-filter: blur(10px);
  -webkit-font-smoothing: antialiased;
}

header {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
}

.topnav a {
  color: #bfbfff;
  text-decoration: none;
  font-weight: 600;
  margin-right: 20px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.topnav a:hover {
  color: #fff;
  text-shadow: 0 0 10px #9a8fff, 0 0 20px #7a6aff;
}

.topnav-right {
  display: flex;
  gap: 15px;
  align-items: center;
  color: #aaa;
  font-size: 0.9rem;
}

.title {
  font-size: 3.2rem;
  margin: 40px auto 25px;
  text-align: center;
  background: linear-gradient(90deg, #7c7cff, #a0a0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(140, 120, 255, 0.3);
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.search-box {
  width: 70%;
  max-width: 500px;
  padding: 12px 20px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.search-box::placeholder {
  color: #bbb;
}

.search-box:focus {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 12px rgba(160, 140, 255, 0.3);
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin: 30px auto 60px;
  max-width: 1300px;
}

.game-link {
  text-decoration: none;
}

.game-tile, .game-tile-popular {
  width: 220px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-tile-popular {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(170, 150, 255, 0.3);
  box-shadow: 0 0 15px rgba(170, 150, 255, 0.2);
}

.game-tile:hover, .game-tile-popular:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 25px rgba(170, 150, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
}

.game-icon {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.game-tile:hover .game-icon, 
.game-tile-popular:hover .game-icon {
  transform: scale(1.15);
}

.game-title {
  color: #f5f5ff;
  font-size: 1.1rem;
  margin-top: 12px;
  text-shadow: 0 0 6px rgba(150, 130, 255, 0.4);
  transition: color 0.3s ease;
}

.game-tile-popular .game-title {
  color: #cfc2ff;
  font-weight: 600;
}

.game-tile-popular:hover .game-title {
  color: #ffffff;
}

.game-icon {
    height: 175px;
    width:  175px;
    
}
.text-center {
  text-align: center;
}

h1.text-center {
  margin-top: 50px;
  font-size: 2rem;
  color: #dcdcff;
  text-shadow: 0 0 15px rgba(170, 150, 255, 0.4);
}

a.active {
  color: #ffffff !important;
  text-shadow: 0 0 10px #a89fff, 0 0 20px #8575ff;
}
