body{
  text-align: center;
  background-color: #e4e1e6;
  background-size: cover;

}

h1{
  font-family: 'Khula', sans-serif;
  font-size: 52px;
  color: black;
  margin: 0;
  padding: 25px;
  border: 10px solid black;
  line-height: 1.8;
  vertical-align: center;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}

ul{
  padding: 10px;
}

#modal{
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  overflow: auto;
  display: none;
  align-items: center;
  align-content: center;
}


#modalbox h1{
  background-color: rgba(1, 1, 1, .92);
  font-size: 100px;
  color: white;
  margin: 10px;
  padding: 5px;
  text-align: center;
  border-style: solid;
  border-color: white;
}

#modalbox{
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  align-items: center;
  color: white;
  background-color: rgba(1, 1, 1, .92);
  width: 65%;
  border-radius: 10px;
  margin: 0 auto;
  padding: 50px;
  margin-top: 150px;
  margin-bottom: 150px;
  margin-left: auto;
  margin-right: auto;
}

.genres{
  padding: 10px;
}

li{
  list-style: none;
  text-align: center;
  padding: 10px;
}

.main{
  display: flex;
  justify-content: center;
}

.games{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 30px;
}

h4{
  font-size: 12px;
  color: white;
  margin-top: 6px;
  margin-bottom: 10px;
}

.cardbox{
  background-color: rgba(1, 1, 1, .80);
  box-shadow: 10px 5px 5px rgba(1, 1, 1, .80);
  margin: 5px;
}

.cardtext > h4{
  background-color: rgb(1, 1, 1, .2);
}

img{
  width: 200px;
  height: 150px;
  margin: 0px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
}

.nav{
  display: flex;
  overflow: hidden;
  background-color: rgba(1, 1, 1, .60);
  position: fixed;
  bottom: 0;
  width: 100%;
}

.nav p{
  display: inline-block;
  color: white;
  text-align: center;
  padding: 5px;
  text-decoration: none;
  margin: 0 auto;
  cursor: pointer;
}

@media (max-width: 745px){
  body{
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #e4e1e6;
    width: 650px;
    height: auto;
    padding: 5px;
    align-content: center;
  }

  body > h1{
    width: 95%;
    margin: 15px auto;
  }

  .cardbox{
    width: 45%
  }
  
  h4{
    font-size: 25px;
  }

  #modalbox{
    font-size: 30px;
  }
  
  img{
    width: 100%;
    height: 70%;
    margin: 0px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    position: relative;
  }
}
