
body {
   background-image: url(base-images/stars.jpg);

   background-repeat: repeat-y;
   color: #afb6c2;
   margin-bottom: 25rem;
   text-align: center;
}
.games {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  z-index: 1;
}

.games .name {

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent white */
  display: none; /* Hide the element by default */
  text-align: center;
  padding-top: 50px;
 z-index: 2;
}

.games img {
  width: 200px;
  height: 200px;
  border-radius: 15px;
  display: block;
  object-fit: cover;
  
  transition: filter 0.4s ease;
   margin-top: 75px;
  margin-left: 100px;
}
.games a::after {
  content: "";
  position: relative;


}









.games img:hover .name{
display: block;
z-index: 3
;

}
.games img:hover {
  filter: blur(4px);
}


.title {
display: flex;
justify-content: center;
font-family: 'Archivo Black', sans-serif;

}


/* Add a black background color to the top navigation */
.topnav {
  background-color: #0a1d3ab7;
  overflow: hidden;
  border-radius: 10px;
  text-align: center;
  display: flex;
  width: 100%;
  justify-content: center;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin: 0 auto;

  
}


/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: 'Archivo Black', sans-serif;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #0c90fc;
  color: black;
  border-radius: 10px;
}

/* Fade-in animation for links when hovering over any image */

/* Fade-in animation for links with text inside .games when hovering over images in .games */
.games a {
  opacity: 1;
  transition: opacity 0.5s ease-in;
}


/* Optional: background blur for everything in .games */


/* Add a color to the active/current link */
.topnav a.active {
  background-color: #010ca7;
  color: white;
  border-radius: 10px;
}











