@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

body {
  background-color: #0d0d0d;
  color: #fff;
  text-align: center;
  font-family: "Figtree", sans-serif;
}

h1 {
  font-size: 48px;
  margin-top: 80px;
  margin-bottom: 20px;
}

p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.5;
  cursor: pointer;
}

nav {
  background-color: #1a1a1a;
  padding: 10px 10px;
  top: 0;
  left: 0;
  width: 100%;
  position: fixed;
  font-size: 26px;
  z-index: 99999;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  float: left;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.7;
}

#nav-time {
  float: right;
  color: #fff;
  margin-right: 15px;
}

.game-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  max-width: 1850px;
  margin: 0 auto;
}

.gameimage {
  width: 300px;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
}

.gameimage:hover {
  transform: scale(1.05);
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

iframe {
  width: 80vw;
  height: 67vh;
  border: none;
  display: block;
}

#controls {
  background: #1a1a1a;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  width: 79vw;
  margin: 0;
}

button {
  background: transparent;
  font-size: 17px;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50px;
  transition: background 0.2s;
}

button:hover {
  background: #444;
}

#searchBar {
  width: 300px;
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid #333;
  border-radius: 8px;
  outline: none;
  background: #111;
  color: #fff;
  margin: 20px auto;
  display: block;
  transition: border-color 0.2s ease;
}

#searchBar:focus {
  border-color: #ccc;
}

.banner {
  width: 100%;
  height: calc(90vh - 0px);
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(to right, white, #010012, white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}
