
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header styles */
header {
    background-color: #F5F8FA;
    color: #000;
    padding: 0.6rem 5vw;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar {
    flex: 0 0 auto;
}

nav {
    flex: 1; /* Take remaining space */
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-left: 1rem;
}

.nav-menu li a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: #3498db;
}


/* Main content styles */
main {
  display: flex;
  flex: 1;
}

.sidebar {
  background-color: #F5F5F5;
  padding: 0.6rem;
  width: 320px;
  overflow-y: auto;
}

.main-content {
  flex: 1;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  background: #F5F5F5;
}

/* Game container styles */
.game-container {
  margin-bottom: 2rem;
}

#game-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

#fullscreen-btn {
  background-color: #2980b9;
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 6px;
  font-size: larger;
}

#fullscreen-btn:hover {
  background-color: #ae1eca;
}

/* Game card styles */
.card-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  grid-auto-rows: minmax(120px, auto);
  grid-auto-flow: dense;
  margin-top: 25px;
  margin-bottom: 25px;
}

@media (max-width: 480px) {
.card-layout {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
  }
}

.game-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  flex: 1 1 auto;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card::after {
  content: attr(data-game);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(104 96 96 / 70%);
  color: #fff;
  padding: 0.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover::after {
  opacity: 1;
}

/* Recommended games section */
.recommended-games {
  margin-bottom: 2.5rem;
}

.h1-main-content {
  font-size: 1.5em;
  margin-bottom: 1rem;
  margin-top: 0.7rem;
}

#game-name {
    font-size: 1.5em;
}

.h2-main-content {
  margin-bottom: 1.1rem;
}

.content-box-2 h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.content-box-2 p {
  margin-bottom: 1rem;
  margin-top: 1rem;
  font-size: 18px;
}

.content-box-2 a {
}



/* Footer styles */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  text-align: left;
}

footer nav {
  margin-top: 0.5rem;
}

footer nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: #3498db;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .sidebar {
    width: 250px;
  }
}

@media screen and (max-width: 992px) {
  main {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .left-sidebar {
    order: 2;
  }

  .right-sidebar {
    order: 3;
  }

  .main-content {
    order: 1;
  }
}

.sidebar-heading {
    margin-bottom: 10px;
    margin-top: 20px;
    color: #000;
    font-size: x-large;
}


/* Add these new styles */
@media screen and (max-width: 1456px) {
    .left-sidebar {
        display: none;
    }
}

.game-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.6;
    background: linear-gradient(-45deg,#7887db,#e86195);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

@media only screen and (min-width: 1200px) and (max-width: 1456px) {

.game-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

}

@media only screen and (max-width: 480px) {

.game-iframe-container {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

}

.game-thumbnail {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 10px;
}

.play-now-btn {
    margin-top: 20px;
    padding: 16px 32px;
    font-size: 20px;
    background-color: #545454;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-now-btn:hover {
    background-color: #2980b9;
}

#game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazy-image.loaded {
  opacity: 1;
}


.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000;
}

@media screen and (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #dde9ec;
    padding: 1rem;
    z-index: 10;
  }

  .nav-menu.active {
    display: flex;
  }

  nav ul li {
    margin: 0.5rem 0;
  }
}
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 1.5rem 5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  text-align: left;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1rem;
  padding-right: 50px;
}

.footer-column h3 {
  margin-bottom: 0.5rem;
}

.footer-column nav {
  display: flex;
  flex-direction: column;
}

.footer-column nav a {
  color: #ecf0f1;
  text-decoration: none;
  margin: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-column nav a:hover {
  color: #3498db;
}

.footer-copyright {
  width: 100%;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-copyright a {
  color: #ecf0f1;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #3498db;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
  }

  .footer-column {
    margin-bottom: 1.5rem;
  }
}


.game-iframe-container:focus {
  outline: none;
}

.gameSearch {
text-align: center;
}

#gameSearch {
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
}

#searchResults .card {
    margin: 10px 0;
}

.search-container {
    position: relative;
    display: inline-block;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


/* btn style */

    .load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 18px 30px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.load-more-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

