* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Verdana, sans-serif;
}

body {
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
}

.gradient-bg {
 
  background: linear-gradient(rgb(77, 2, 77), #002133);
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  background-color: #4a4a4a; 
  height: 100px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-icon { width: 35px; height: 35px; cursor: pointer; }
.logo { height: 50px; width: auto; }

.nav-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 35px;
  gap: 30px;
  flex-grow: 1;
}

.menu-checkbox, .desktop-nav, .games-dropdown {
  display: none;
}


.mobile-overlay {
  position: fixed;
  top: 100px; 
  left: 0;
  width: 100%; 
  height: 0; 
  background-color: rgb(77, 2, 77);
  overflow: hidden;
  transition: 0.3s ease-in-out;
  z-index: 999;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  gap: 25px;
}

.overlay-content a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
}

#menu-toggle:checked ~ .mobile-overlay { 
  height: calc(100vh - 100px); 
}


.main-content {
  display: grid;
  padding: 20px;
  gap: 25px;
  grid-template-columns: 1fr; 
}


.description-block {
  order: -1; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-item img, .poster-img {
  width: 100%;
  max-width: 100%;
  display: block;
  border-radius: 4px;
}

.text-content {
  padding: 20px 10px;
  text-align: center;
  line-height: 1.5;
  font-size: 0.95rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 30px;
}

.rating-img { height: 70px; }
.platform-logos { display: flex; gap: 40px; }
.platform-logos img { 
  height: 35px; 
  filter: brightness(0) invert(1); 
}


@media (min-width: 900px) {
  .navbar { height: 80px; justify-content: center; }
  .nav-left { display: none; }
  
  .desktop-nav {
    display: flex;
    list-style: none;
    gap: 30px;
  }

  .dropdown-anchor { position: relative; }

  .desktop-nav a, .desktop-dropdown-label {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
  }

 
  .games-dropdown {
    display: none; 
    position: absolute;
    top: 45px;
    left: 0;
    width: 280px;
    background-color: #4a4a4a;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }

  #dropdown-toggle:checked ~ .nav-center .games-dropdown {
    display: block;
  }

  .dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .dropdown-inner a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
  }

 
  .main-content {
    max-width: 1200px;
    margin: 40px auto;
    grid-template-columns: 1fr 1fr 1.2fr;
    grid-template-areas: 
      "area1 area2 poster"
      "area3 area3 poster";
    gap: 20px;
  }

  .img-1 { grid-area: area1; }
  .img-2 { grid-area: area2; }
  .img-3 { 
    grid-area: area3; 
    width: 80%; 
    justify-self: start; 
  }
  
  .description-block { 
    grid-area: poster; 
    order: 0; 
    align-items: flex-start;
  }

  .text-content {
    text-align: left;
    padding: 20px 0;
  }

  .footer-info {
    flex-direction: row;
    justify-content: center;
    gap: 150px;
  }

  .mobile-overlay { display: none; }
}