@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

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

body {
  background: #0f0f0f;
  color: white;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: 0.3s ease;
    font-family: "Lexend", sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.logo span {
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.logo:hover img {
    transform: scale(1.1) rotate(-5deg);
}

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

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 22px;
    font-weight: 500;
    position: relative;
    font-family: "Lexend", sans-serif;
    transition: 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #827aa5;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .logo span {
        display: none;
    }
}

.content {
  margin-top: 110px;
}

.home {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.home-logo {
  width: 700px;
  height: 200px;
  margin-bottom: 20px;
  border-radius: 15px;
  object-fit: cover; 
}

.search-box {
  margin-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
}

.search-box input {
  width: 50vw;
  max-width: 600px;      
  padding: 16px 50px 16px 20px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #1b1b1b;
  color: white;
  font-size: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.card {
  background: #161616;
  border-radius: 14px;
  padding: 25px;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.card:hover {
  background: #1f1f1f;
  transform: translateY(-6px);
  color: white;
}

.card i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #cfcfcf;
}

.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.card p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.infocard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.infocard a.clickable-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #161616;
  border-radius: 14px;
  padding: 25px;
  transition: transform 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none; 
  color: inherit; 
}

.infocard a.clickable-card:hover {
  background: #1f1f1f;
  transform: translateY(-6px);
  color: white;
}

.clickable-card i {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #cfcfcf;
}

.clickable-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}

.clickable-card p {
  margin-top: 10px;
  font-size: 0.95rem;
}

.game-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.game-window {
  width: 92%;
  height: 92%;
  background: #0f0f0f;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-header {
  height: 60px;
  background: #121212;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.game-header img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.game-header span {
  flex-grow: 1;
  font-size: 1.1rem;
}

.overlay-controls button {
  background: #1e1e1e;
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.overlay-controls button:hover {
  background: #2b2b2b;
}

.overlay-controls button p {
  opacity: 0.5;
}

.game-window iframe {
  flex-grow: 1;
  width: 100%;
  border: none;
}

.settingsbox {
  width: 100%;
  max-width: 1000px;
  background: #161616;
  border-radius: 16px;
  padding: 28px;
  margin: 30px auto;
}

.settingsbox h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
  font-weight: 600;
}

.settingsbox p {
  margin: 0;
  color: #bdbdbd;
  line-height: 1.6;
}

.settingsbox .box-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.settingsbox button {
  background: #2a2a2a;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.settingsbox button:hover {
  background: #3a3a3a;
  transform: translateY(-1px);
}

.settingsbox .secondary {
  background: transparent;
  border: 1px solid #333;
}

#presetSelect {
  width: 100%;
  max-width: 300px;
  padding: 10px 16px;
  background: #1a1a1a;
  color: white;
  border: 1px solid #333;
  border-radius: 8px;
  font-size: 14px;
}

.ad-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 10px 0;
}

::selection {
    background: #000;     
    color: #fff;           
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;     
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;    
    border-radius: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #333;        
    transform: scale(1.1);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1a1a1a #0a0a0a;  
}
