@font-face {
  font-family: "Open-sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/hertical_sans_smooth.woff") format("woff"),
    url("../fonts/hertical_sans_smooth.woff2") format("woff2");
}

*,
*::after,
*::before {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html,
body {
  height: 100%;
  font-family: "Open-sans", sans-serif;
  font-size: 16px;
  line-height: 1.12;

  background-color: #cccccc;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -ms-scroll-chaining: none;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  margin: 0;
}

.wrapper {
  min-height: 100%;
  padding: 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.main {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.link {
  text-decoration: none;
  color: inherit;
}

.link:hover,
.link:focus {
  cursor: pointer;
}

.list {
  list-style: none;
  color: inherit;
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: 1400px;
  padding: 0;
  margin: 0 auto;
}

.header {
  padding: 1rem 0;
  position: relative;
}

/* .header-images-wrapper {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
} */
.header-images-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.img-header {
  width: 100%;
  max-width: 150px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

.logo-header {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0%, -50%);
  width: 44px;
}

.header-logo-line {
  width: 100%;
  height: 4px;
  background-color: #e73833;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.header-logo-line::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translate(0%, -50%);
  height: 150%;
  width: 37px;
  background-color: #cccccc;
  aspect-ratio: 1 / 1;
}

.title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  width: max-content;
  text-align: center;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  z-index: 3;
}

.footer {
  margin-bottom: 0.4rem;
}

.mobile.wrapper .main {
  height: 88dvh;
}

.footer-logo-link {
  display: inline-block;
}

.footer-logo {
  display: block;
  max-width: 17rem;
  height: auto;
  width: 100%;
}

.footer-copy {
  font-size: 0.975rem;
  font-family: sans-serif;
  font-weight: 700;
}

/* ======================== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

.game-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: 0.2s;
  align-items: stretch;
  justify-content: space-between;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-card:active {
  transform: translateY(0px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.game-card img {
  width: 80%;
  height: 250px;
  object-fit: contain;
  margin: 0 auto;
  width: 85%;
  aspect-ratio: 1 / 1.4;
  height: auto;
}

.game-card .rhombiominoes img {
  width: 90%;
}

.game-card h3 {
  color: #db0402;
  font-size: 1.2rem;
  padding: 12px;
  text-align: center;
  transition: 250ms;
}

/* .game-card:hover h3 {
  color: #db0402;
} */
@media (min-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .img-header {
    max-width: 210px;
  }

  .title {
    font-size: 1.3rem;
  }

  .logo-header {
    width: 50px;
  }

  .header-logo-line {
    height: 5px;
  }
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .logo-header {
    width: 60px;
  }

  .img-header {
    max-width: 250px;
  }

  .title {
    font-size: 1.6rem;
  }

  .header-logo-line {
    height: 6px;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .img-header {
    max-width: 270px;
  }

  .logo-header {
    width: 65px;
  }

  .header-logo-line {
    height: 7px;
  }
}

/* ==================== */
.disabled {
  pointer-events: none;
}

.disabled h3 {
  color: #ccc;
}

.img-wrapper {
  position: relative;
}

.img-wrapper p {
  color: #fff;
  font-size: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
}

/*.hexnut img {
  width: 75%;
}

.minilamond-ring img {
  width: 80%;
}

.minimatch2 img {
  width: 80%;
}

.quintapaths img {
  width: 75%;
}*/

@media (max-width: 480px) {
  .footer-logo-link {
    width: 100%;
  }

  .footer-logo {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .header-logo-line {
    background-color: transparent;
  }

  .logo-header {
    width: 62px;
  }

  .title {
    font-size: 1.15rem;
    transform: translate(-50%, -49%);
  }

  .img-header {
    max-width: 197px;
  }

  .games-grid {
    width: 100%;
  }

  .game-card {
    aspect-ratio: 1 / 1.3;
    justify-content: center;
  }

  .game-card img {
    width: 85%;
    aspect-ratio: 1 / 1.3;
    height: auto;
  }

  .footer {
    padding: 0 0.2rem 0;
  }
}
.tm {
  font-size: 12px;
  font-weight: 600;
}
