@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

html {
    color-scheme: dark;
}

body {
background-image:url("https://img.freepik.com/free-vector/realistic-neon-lights-background_52683-59889.jpg");
background-attachment:fixed;
background-repeat: no-repeat;
background-size: cover;
font-weight: 600;
text-align: center !important;
color: white;
}

body * {
    font-family: "Roboto";
}

.games {
    display: grid;
  grid-template-columns: repeat(auto-fill, 187px);
  justify-content: space-between;
  gap: 2rem;
  margin: 1rem 2rem 2rem 2rem;
}

.game {
    height: 240px;
    width: 200px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    transition: transform 100ms ease-out;
}

.game:hover {
    transform: scale(1.1);
}

.game-img {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--url), linear-gradient(0deg, #00000088 30%, #ffffff44 100%);
    border-radius: 6px;
    background-blend-mode: overlay;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.game-text {
    position: absolute;
    bottom: 1rem;
    font-size: 1.2rem;
    max-width: calc(100% - 1.5rem);
    overflow: hidden;
}

.section {
margin-top: calc(7vw + 1rem);
margin-left: 2rem;
}   

nav{
    padding:5px;
    border-radius: 15px;
    background-color: black;
    border-style: solid;
    border-color: blue;
    width:40%;
    margin-left: 30.0%;
    margin-right: 30.0%;
  }
  ul {
    list-style-type: none;
    margin: 0;
    padding: 5px;
  }
  
  li {
    display: inline;
  }
  
  ul li a {
    display: inline-block;
    padding-left: 6px;
    padding-right: 6px;
    font-size: 20px;
    position: relative;
    transition: transform 0.5s;
  }
  
  ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #00aaff;
    transform: scaleX(0);
    transition: transform 0.5s;
  }
  
  ul li:hover a {
    transform: translateY(-5px);
    text-decoration: none;
  }
  
  ul li:hover a::after {
    transform: scaleX(1);
  }