body {
    height: 200vh;
    background: hsla(227, 100%, 12%, 1);

    background: linear-gradient(180deg, hsla(227, 100%, 12%, 1) 34%, hsla(313, 64%, 52%, 1) 100%);
    
    background: -moz-linear-gradient(180deg, hsla(227, 100%, 12%, 1) 34%, hsla(313, 64%, 52%, 1) 100%);
    
    background: -webkit-linear-gradient(270deg, hsla(227, 100%, 12%, 1) 34%, hsla(313, 64%, 52%, 1) 100%);
    
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#000D3D", endColorstr="#D334B1", GradientType=1 );
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: 0.5s;
    margin-top: 60px;  
}

.nav {
    background-color: rgba(0, 13, 61, 0.8);
    padding: 20px;
    position: fixed;
    top: 0;
    z-index: 10;
    opacity: 1; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    color: white;
    padding: 14px 16px;
    transition: opacity 225ms ease-in-out;
}

.fetch_logo{

    color: whitesmoke;
    padding-right: 30px;
    height: auto;
    font-size: 200%;
   
}


.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  display: inline;
  font-size: 1.4em;
  padding: 10px;
  border-radius: 35%; 
  transition: 0.3s;
  margin-right: 30px; 
  opacity: 150%;
}

.nav-link::before {
  content: ' ';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75px; 
  height: 40px; 
  background-color: rgba(255, 255, 255, 0); 
  border-radius: 50%;
  transition: background-color 0.3s ease; 
  z-index: -1; 
}

.nav-link:hover::before {
  background-color: rgba(255, 255, 255, 0.3); 
}
.dropdown {
    float: left;
    overflow: hidden;
    transition: opacity 225ms ease-in-out;
  }
  
  .dropdown .dropbtn {
    font-family: Arial, sans-serif;  
    border: none;
    outline: none;
    font-size: 1.4em;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    transition: opacity 0.3s ease, background-color 0.3s ease;;
    margin: 0;
    text-decoration: none;
    position: relative;
  }
  
  .dropdown .dropbtn::before {
    content: ''; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85px; 
    height: 50px; 
    background-color: rgba(255, 255, 255, 0); 
    border-radius: 50%;
    transition: background-color 0.3s ease; 
    z-index: -1; 
}

.dropdown .dropbtn:hover::before {
    background-color: rgba(255, 255, 255, 0.3); 
}
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #000;
    min-width: 160px;
    background-color: rgb(31, 9, 140);
    box-shadow: 0 2px 5px 0 rgb(255, 255, 255);
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
    left: 50%; 
    transform: translateX(-222%);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  
  .dropdown-content a {
    float: none;
    color: white;
    padding: 12px 16px;
    text-decoration: none;  
    display: block;
    text-align: left;
    transition: opacity 0.3s ease-in-out;

  }
  
  .dropdown-content a:hover {
    background-color: rgb(40, 27, 108);
    box-shadow: 0 0 5px 5px rgba(206, 205, 205, 0.7); 
 
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
  }

  .d{
    display: flex;
    flex-direction: row;
    list-style: none;
}

.download-info {
  text-align: center;
}

.download-info .d {
  display: flex;
  justify-content: center;
  gap: 60px;
  list-style: none;
  padding: 0;
}

.download-info .d li {
  display: flex;
  justify-content: center;
  align-items: center;
}


.download-info .d li a img {
  transition: transform 0.3s ease;
}

.download-info .d li:hover a img {
  transform: scale(1.2); 
}

footer {
  text-align: center;
  padding: 10px;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 3, 3);
  gap: 10px;
}

.gallery {
  display:block;
  justify-content: center;
}

.gallery h2 {

  text-align: center;
}

.gallery-image {
  transition: transform 0.3s ease;
}

.gallery-image:hover {
  transform: scale(2.1);
}

@media (max-width: 768px) {

  .top-container h1 {
    font-size: 1.5em;
  }

  .top-container p {
    font-size: 1em;
  }

  .games-container {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  
  .nav .dropdown {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    top: auto;
    left: auto;
    background-color: transparent;
    width: auto;
  }

  .nav-link {
    padding: 15px;
    border-radius: 0;
  }

  .nav-toggle {
    display: none;
  }

  @media only screen and (max-width: 768px) {
    .welcome-title {
      font-size: 2em;
    }
 
    .game-info h2,
    .goal-info h2,
    .download-info h2,
    .game-info p,
    .goal-info p,
    .download-info p {
      font-size: 1.1em;
      text-align: center;
    }

 } 

}
