body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
}

* {
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
}

a {
  text-decoration: none;
}

.topbar a:hover {
  text-decoration-line: line-through;
  text-decoration-color: #ff4655;
}

div {
  box-sizing: border-box;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

#wrapper {
  background: linear-gradient(160deg, #ff4655 0%, #123259 75%);
  background-repeat: no-repeat;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: scroll;
}

.topbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 25px;
  background-image: url(pattern2.png);
  background-repeat: repeat-x;
  background-position: center;
  background-size: 150px;
  border-bottom: 8px solid #353535b3;
}

.topbar img {
  max-height: 60px;
  width: 220px;
  display: flex;
}

header {
  flex: 2;
  display: inline-flex;
  padding: 14px 10px;
}

nav {
  display: inline-flex;
  padding: 0 10px;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 5px;
}

nav ul li a {
  font-size: 1.1em;
  line-height: 28px;
}

.flex-wrap {
  width: 100%;
  overflow: hidden;
  padding: 20px 16%;
  flex: 1;
}

.flex-wrap .games-title {
  font-size: 2.2em;
  text-decoration-line: underline;
  text-decoration-thickness: 5px;
}

.flex-wrap > div {
  display: inline-block;
}

.lightbox {
  width: 100%;
  box-shadow: 8px 8px #1c1c1ccf;
}

.lightbox > div {
  height: 160px;
  padding: 2em;
  contain: paint;
}

.lightbox > div > a {
  height: 100%;
  width: 100%;
}

.lightbox .title-row {
  font-size: 1.6em;
  text-shadow: 4px 4px #000;
  color: inherit;
}

.flex-wrap .lightbox > div:nth-child(1) .title-row > h3:hover {
  text-shadow: 4px 4px #4b4f62;
}

.flex-wrap .lightbox > div:nth-child(2) .title-row > h3:hover {
  text-shadow: 4px 4px #1c3a6f;
}

.flex-wrap .lightbox > div:nth-child(3) .title-row > h3:hover {
  text-shadow: 4px 4px #064933;
}

.lightbox .sub-row > p {
  font-size: 1.1em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
  width: 90%;
  margin: 0;
}

.lightbox .sub-row > .rating {
  display: inline-block;
  margin: 0;
}

.genshin {
  background-image: url(genshin.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.stardew {
  background-image: url(stardew.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.valorant {
  background-image: url(valorant.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.star {
  height: 18px;
  width: 18px;
}

.rating {
  position: absolute;
  right: 20px;
  top: 10px;
  padding: 5px;
  background-color: #2b2a2ad6;
}

footer {
  text-align: center;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #211f1f;
  max-height: 100px;
}

@media (max-width: 600px) {
  main .flex-wrap {
    padding: 10px 5%;
  }

  main .flex-wrap > div {
    display: block;
  }

  .lightbox > div {
    padding-top: 5px;
  }

  .topbar {
    padding: 0 5%;
  }

  .topbar header img {
    width: 130px;
  }

  .topbar nav a {
    font-size: 1em;
    line-height: 22px;
  }
}

@media (min-width: 601px) {
  .lightbox > div {
    height: 200px;
  }
}
