body {
  background-color: black;
  color: white;
  font-family: "Jura", sans-serif;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hide {
  display: none;
}

.games {
  min-height: 37vh;
  margin-top: 3rem;
}

.github-icon {
  width: 2.5rem;
  height: auto;
}

.title {
  text-align: center;
  font-size: 2rem;
}

.loading-screen {
  margin: 5rem;
  text-align: center;
  font-size: 2rem;
}

header {
  margin: 3rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
header h1 {
  font-size: 5rem;
  font-family: "Handjet", sans-serif;
  color: rgb(255, 0, 0);
}
header div {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
}
header div a:nth-of-type(1) {
  color: rgb(255, 0, 0);
  font-size: 1.5rem;
  transition: color 0.5s ease, border-color 0.5s ease;
  border: rgb(255, 0, 0) solid 2px;
  border-radius: 6px;
  padding: 6px;
}
header div a:nth-of-type(1):hover {
  color: yellow;
  border-color: yellow;
}
header div a:nth-of-type(2) {
  color: rgb(255, 0, 0);
  font-size: 1.5rem;
  transition: color 0.5s ease, border-color 0.5s ease;
  border: rgb(255, 0, 0) solid 2px;
  border-radius: 6px;
  padding: 6px;
}
header div a:nth-of-type(2):hover {
  color: yellow;
  border-color: yellow;
}
header div a:nth-of-type(2):hover path {
  fill: yellow;
}
header div svg {
  width: 1.5rem;
  height: auto;
}
header div svg path {
  fill: rgb(255, 0, 0);
  transition: fill 0.5s ease;
}

.userSelect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.searchDiv input.searchBar {
  background-color: #000;
  color: #fff;
  border: #fff solid 1px;
  border-radius: 2px;
  height: 1.5rem;
}
.searchDiv button {
  background-color: #000;
  color: #fff;
  font-family: "Jura", sans-serif;
  height: 1.5rem;
}

label {
  font-size: 1.25rem;
  display: block;
  text-align: center;
  margin: 1rem;
}

.noGames {
  font-size: 1.25em;
  text-align: center;
}

#genreMenu {
  cursor: pointer;
  margin: 0 auto;
  padding: 6px;
  display: block;
  background-color: #000;
  color: #fff;
  font-size: 1rem;
  overflow-y: auto;
  border-radius: 6px;
}

.gameCard {
  padding: 1rem;
  margin: 1.5rem;
  max-width: 100%;
  color: #fff;
  border-radius: 8px;
  border: 2px solid #fff;
}
.gameCard h2 {
  font-size: 1.5rem;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}
.gameCard img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  display: block;
}
.gameCard h3 {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 3rem;
  border-radius: 6px;
  text-align: center;
  background-color: rgb(94, 164, 255);
  color: #000;
  padding: 0.5rem;
  transition: background-color 0.5s ease;
}
.gameCard h3:hover {
  background-color: yellow;
}
.gameCard h5 {
  display: block;
  margin: 0 auto;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1rem;
  border-radius: 6px;
  background-color: rgb(255, 0, 0);
  color: #000;
  padding: 0.5rem;
  transition: background-color 0.5s ease;
  width: 30%;
  text-align: center;
}
.gameCard h5:hover {
  background-color: yellow;
}
.gameCard svg {
  display: block;
  margin: 0.5rem auto;
  width: 4rem;
  height: auto;
}
.gameCard .heart {
  fill: #fff;
  transition: fill 0.5s ease, transform 0.5s ease;
  transform-origin: center;
  cursor: pointer;
}
.gameCard .filled {
  fill: rgb(255, 0, 0);
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}
dialog {
  max-height: none;
  max-width: none;
  position: fixed;
  align-items: flex-start;
  background-color: #000;
  color: #fff;
  text-align: center;
  width: calc(100vw - 2rem);
  height: calc(100vh - 4rem);
  margin: 1rem;
  padding: 2rem;
  z-index: 9999;
  overflow: auto;
  overflow-y: auto;
}
dialog p {
  font-size: 0.75rem;
  line-height: 1.25rem;
  text-align: left;
  margin-bottom: 1rem;
}
dialog h2 {
  font-size: 2rem;
  margin: 2rem 0;
}
dialog #closeButton {
  margin-left: 80%;
  background-color: rgb(255, 0, 0);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
dialog #closeButton:hover {
  background-color: yellow;
}
dialog img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: block;
}
dialog h3 {
  font-size: 1.5em;
  margin-bottom: 2rem;
}
dialog span {
  color: yellow;
}

footer {
  margin: 3rem 4rem;
  display: flex;
  grid-gap: 1rem;
  align-items: center;
  justify-content: space-around;
}
footer p {
  font-size: 1rem;
  font-family: "Jura", sans-serif;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: rgb(255, 0, 0);
  border-radius: 50%;
  border: none;
  text-align: center;
  display: none;
  z-index: 1000;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
}
.scroll-to-top img {
  height: 2rem;
  width: 2rem;
}

@media (min-width: 768px) {
  .games {
    min-height: 45vh;
  }
  header {
    flex-direction: row;
    align-items: center;
  }
  header h1 {
    font-size: 5rem;
  }
  header a:nth-of-type(3) {
    font-size: 1.25em;
    margin-top: 0.5rem;
  }
  label {
    font-size: 1.75rem;
  }
  .searchDiv input.searchBar {
    height: 2rem;
  }
  .searchDiv button {
    height: 2rem;
  }
  #genreMenu {
    font-size: 1.25rem;
  }
  .gameCard {
    padding: 3rem;
    margin: 2rem;
  }
  .gameCard h2 {
    font-size: 1.5rem;
  }
  .gameCard svg {
    width: 5rem;
  }
  .gameCard h3 {
    margin: 2rem 10rem;
    font-size: 1.5em;
  }
  .gameCard h5 {
    font-size: 1.5em;
  }
  dialog {
    width: calc(100vw - 3rem);
  }
  dialog #closeButton {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 2rem;
  }
  dialog h2 {
    margin-top: 0;
    font-size: 2.5rem;
  }
  dialog h3 {
    font-size: 2rem;
  }
  dialog p {
    font-size: 1em;
  }
  footer p {
    font-size: 1.25rem;
  }
  footer .github-icon {
    width: 3rem;
  }
  .scroll-to-top {
    height: 4rem;
    width: 4rem;
  }
}
@media (min-width: 1024px) {
  .searchBar {
    width: 300px;
  }
  .games {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 2rem;
  }
  .gameCard {
    margin: 1rem;
  }
  .gameCard h3 {
    margin: 2rem 6rem;
  }
  .gameCard img {
    max-height: 30vh;
  }
  dialog p {
    font-size: 1.25rem;
  }
}
@media (min-width: 1500px) {
  header {
    margin: 3rem 4rem;
  }
  .searchBar {
    width: 500px;
  }
  .games {
    grid-template-columns: repeat(3, 1fr);
  }
  .gameCard h2 {
    font-size: 1.75rem;
  }
  dialog {
    padding: 2rem 10rem;
  }
  dialog h3 {
    font-size: 2.5em;
  }
  dialog p {
    font-size: 1.5em;
  }
}

/*# sourceMappingURL=styles.css.map */
