@font-face {
  font-family: "Joystix";
  src:
      local("Joystix"),
      url("../font/joystix.otf") format('opentype');
}

:root {
  font-family: Joystix;
}

* {
  transition: all 0.3s ease-in-out;
}


html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #1e1c2b;
  ;
  color: #dfdfdf;
  text-shadow: 3px 3px 5px rgb(0, 0, 0)
}

.container {
  flex: 1;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.intro h1 {
  font-size: 32px;
  margin-bottom: 25px;
}

.description {
  max-width: 65%;
  text-align: justify;
  text-justify: inter-character;
  margin-top: 30px;
}

.game-libray h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background: #555;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #000;
  text-shadow: none;
  position: relative;
  overflow: hidden;
}

.card:hover {
  animation: pulse 1.5s infinite;
}

.card .details {
  max-width: 70%;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #000;
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1;
  font-size: 14px;
}

.card .details hr {
  border: 2px solid #000;

}

.card:hover .details {
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card .arrow {
  align-self: flex-end;
  font-size: 40px;
  text-decoration: none;
  color: #000;
  z-index: 2;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card .arrow:hover {
  transform: scale(1.5);
  color: #1e1c2b;
}


.card .icon {
  margin-bottom: 10px;
  height: 40px;
  width: 40px;
}

.card .icon>img {
  height: 65px;
  width: 65px;
}

.card:hover .icon>img {
  height: 45px;
  width: 45px;
  transition: height 0.3s ease, width 0.3s ease;
}

.card .info h3 {
  font-size: 20px;
  margin: 1;
  transform: translateY(15px);

}

.card:hover .info h3 {
  transform: translateY(-10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .info p {
  transform: translateY(-25px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer at the bottom */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  border-top: 1px solid #555;
  padding-top: 10px;
}

.footer .support {
  display: flex;
  align-items: center;
}

.footer .help-button {
  background: none;
  border: none;
  font-size: 16px;
  color: #dfdfdf;
  cursor: pointer;
  margin-left: 10px;
  transform: scale(1.1);
  color: #ffcc00;
  transition: transform 0.3s ease, color 0.3s ease;
}

@keyframes pulse {

  0%,
  100% {
      transform: scale(1);
  }

  50% {
      transform: scale(1.05);
  }
}

@media (max-width: 1200px) {
  .cards {
      grid-template-columns: repeat(3, 1fr);
  }

  .description {
      max-width: 80%;
  }
}

@media (max-width: 768px) {
  .cards {
      grid-template-columns: repeat(2, 1fr);
  }

  .description {
      max-width: 100%;
  }
}