/* Top title parallelogram */
.games-top-text-title {
  margin: 100px auto 10px;
  width: 80%;
  max-width: 800px;
  padding: 10px 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 136, 0, 0.6),
    rgba(153, 0, 255, 0.6)
  );
  clip-path: polygon(50px 0%, 100% 0%, calc(100% - 50px) 100%, 0% 100%);
  
  /* Floaty shadows */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 136, 0, 0.3);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.games-top-text-title:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 136, 0, 0.4);
}

.games-top-text-title h1 {
  font-family: "Nulshock", sans-serif;
  font-size: 2.5em;
  display: inline-block;
  margin: 0;
  /* Neon glow */
  /*text-shadow: 0 0 5px var(--dark-bg), 0 0 10px var(--black);*/
}

/* Section container styling */
.games-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  position: relative;
  padding: 35px 20px;
  margin: 0;
}
.games-section::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 15px;
  background: linear-gradient(
    90deg,
    rgba(255, 136, 0, 0.8) 0%,
    rgba(255, 136, 0, 0.8) 25%,
    rgba(255, 0, 234, 0.5) 50%,
    rgba(255, 136, 0, 0.8) 75%,
    rgba(255, 136, 0, 0.8) 100%
  );
  background-size: 400% 100%;
  animation: glow-flow 6s linear infinite;

  z-index: 2;
}

.games-section::before {
  top: 0;
  box-shadow: 0 10px 5px rgba(0, 0, 0, 0.4);
}

/* Individual game card */
.game-container {
  width: 100%;
  max-width: 700px;
  background: rgba(0, 0, 0, 0.6);

  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  clip-path: polygon(
    30px 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%,
    0 30px
  );
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.game-container:nth-child(1) {
  animation-delay: 0.2s;
}
.game-container:nth-child(2) {
  animation-delay: 0.4s;
}
.game-container:nth-child(3) {
  animation-delay: 0.6s;
}
.game-container:nth-child(4) {
  animation-delay: 0.8s;
}
.game-container:nth-child(5) {
  animation-delay: 1s;
}

.game-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 0px);
}

.tint-tactics {
  background: linear-gradient(
    to bottom,
    #fd0c94,
    #611396
  ); /* Vertical gradient */
}
.smash-bots {
  background: linear-gradient(
    to bottom,
    #61c5ff,
    #0e4c9d
  ); /* Vertical gradient */
}
.aimatron {
  background: linear-gradient(
    to bottom,
    #ff8acc,
    #82cdff
  ); /* Vertical gradient */
}
.hexagon {
  background: linear-gradient(
    to bottom,
    #00ffe5,
    #02473e
  ); /* Vertical gradient */
}
.going-bananas {
  background: linear-gradient(
    to bottom,
    #ffd43a,
    #ffa034
  ); /* Vertical gradient */
}

.game-icon img {
  border-radius: 15px;
  max-width: 50%;
  height: auto;
  display: block;
}
.game-info {
  display: grid;
  grid-template-rows: auto auto auto auto auto;
  gap: 15px;
  padding: 10px 20px 20px;
  text-align: center;
}
.highlight {
  color: white; /* Set the color of the symbols */
}
.tint-tactics-title h1 {
  color: rgb(236, 0, 236);
}
.smash-bots-title h1 {
  color: rgb(0, 155, 252);
}

.aimatron-title h1 {
  color: rgb(255, 170, 184);
}

.hexagon-title h1 {
  color: rgb(3, 144, 121);
}

.going-bananas-title h1 {
  color: rgb(255, 238, 0);
}
.game-title {
  border-top: 2px solid orange;
  border-bottom: 2px solid orange;
}
.game-title h1 {
  font-family: "Nulshock", sans-serif;
  font-size: 35px;
  margin: 15px 0;
}
.game-description-container {
  border-top: 2px solid orange;
  border-bottom: 2px solid orange;
  padding: 10px 0;
  /* ensure equal height across cards */
  min-height: 100px;
}
.game-description p {
  color: white;
  text-align: justify;
  margin: 0;
}

.section-heading {
  border-top: 2px solid orange;
  border-bottom: 2px solid orange;
}
/* Section headings */
.section-heading h2 {
  font-family: "Nulshock", sans-serif;
  font-size: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0;
}

.game-video iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}
.game-slideshow {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 10px;
}
.mySlides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.active {
  opacity: 1;
}
.game-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 10px;
  border-top: 2px solid orange;
}

.button {
  font-family: "BebasNeue", sans-serif;
  display: inline-flex; /* Changed from inline-block to inline-flex */
  align-items: center; /* Vertically center content */
  justify-content: center; /* Horizontally center content */
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 136, 0, 0.9),
    rgba(255, 238, 0, 0.9),
    rgba(255, 136, 0, 0.9)
  );
  background-size: 400% 100%;
  color: white;
  font-size: 30px;
  border: none;
  cursor: pointer;
  letter-spacing: 2px;

  text-transform: uppercase;
  box-shadow: 0 0 15px black;
  transition: 0.3s ease;
  border-radius: 5px;
  text-decoration: none;
  text-align: center; /* Ensures multi-line text stays centered */
}

.play-button {
  position: relative;
  clip-path: polygon(
    0 0,       /* top-left */
    100% 0,    /* top-right */
    100% calc(100% - 20px), /* cut before bottom-right */
    calc(100% - 20px) 100%, /* slice bottom-right corner */
    0 100%     /* bottom-left */
  );
}

.button:hover {
  transform: translateY(-2px);
  animation: flowNeon 5s linear infinite;
  /*box-shadow: 0 0 20px orange, 0 10px 20px rgb(0, 0, 0);*/
}
@media (max-width: 1000px) {
  .game-container {
    width: 100%;
  }
}
