@import url('https://fonts.googleapis.com/css2?family=Share+Tech&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Share Tech", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

header {
  height: 8rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header .logo img {
  max-height: 6rem;
  margin-left: 5rem;
}

main {
  padding: 2rem;
  flex: 1;
}

.games {
  padding-top: 2.5rem;
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: calc(3 * 320px + 2 * 3.5rem);
  margin: 0 auto;
}

.game {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 48px;
  overflow: hidden;
}

.game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  background: #00000088;
  opacity: 0;
}

.game:hover .overlay {
  opacity: 1;
}

.overlay h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.025rem;
}

.links {
  display: flex;
}

.links a {
  font-size: 2.5rem;
  text-decoration: none;
  color: white;
}

.links a:hover {
  scale: 1.15;
}

footer {
  height: 8rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background-color: #011936;
  color: #eee;
}

footer .footer-container {
  width: 100%;
  padding: 0 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left a {
  font-size: 1.15rem;
}

.footer-right a {
  font-size: 0.85rem;
}

.footer-left a,
.footer-right a {
  color: #eee;
  text-decoration: none;
}

.footer-left a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

.footer-right span {
  margin: 0 0.5rem;
  font-weight: bold;
}