/* Base layout */
.sleek-theme {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  margin: 20px auto 0;
  overflow-x: hidden; /* Prevents horizontal scroll */
}


.game-title {
  position: relative;
  z-index: 5;
  font-family: "Nulshock", sans-serif;
  font-size: 1.8rem;
  text-align: center;
  padding: 10px 40px;
  margin: 0 auto 20px auto;
  animation: glow 4s ease-in-out infinite;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid orange;
  border-radius: 10px;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Hide horizontal lines on mobile to prevent layout breaking */
.game-title::before,
.game-title::after {
  content: "";
  display: none; 
}

/* =========================
   Desktop Adjustments
   ========================= */
@media (min-width: 1000px) {
  .game-title {
    font-size: 3em;
    display: inline-block;
  }

  /* Show lines only on large screens */
  .game-title::before,
  .game-title::after {
    display: block;
    position: absolute;
    top: 50%;
    height: 3px;
    width: 20vw;
    max-width: 400px;
    background: white;
    z-index: -1;
    border-radius: 50px;
  }

  .game-title::before { left: calc(-20vw - 20px); }
  .game-title::after { right: calc(-20vw - 20px); }

  .instruction-row {
    border-left-width: 50px;
    border-right-width: 50px;
    font-size: 1rem;
  }
  
  .online-game-description {
    padding: 30px 40px;
    clip-path: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);
  }
}

/* Extend horizontal lines from center title */
.game-title::before,
.game-title::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 3px;
  width: 20vw; /* Responsive: 20% of viewport width */
  max-width: 1500px; /* Prevents lines from getting too long on big screens */
  background: white;
  z-index: -1;
  border-radius: 50px;
}

.game-title::before {
  left: calc(-20vw - 10px); /* Adjusts position based on width */
}

.game-title::after {
  right: calc(-20vw - 10px);
}

/* Glowing effect */
@keyframes glow {
  0% {
    text-shadow: 0 0 15px #ff0080, 0 0 25px #ff69b4, 0 0 35px #ff69b4;
    color: #ff69b4;
  }
  25% {
    text-shadow: 0 0 15px #ffff00, 0 0 25px #ffffe0, 0 0 35px #ffffe0;
    color: #ffffe0;
  }
  50% {
    text-shadow: 0 0 15px #ff4800, 0 0 25px #ffa07a, 0 0 35px #ffa07a;
    color: #ffa07a;
  }
  75% {
    text-shadow: 0 0 15px #009dff, 0 0 25px #87cefa, 0 0 35px #87cefa;
    color: #87cefa;
  }
  100% {
    text-shadow: 0 0 15px #ff0080, 0 0 25px #ff69b4, 0 0 35px #ff69b4;
    color: #ff69b4;
  }
}

/* Circular black gradient background behind iframe */
.iframe-gradient-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  z-index: 1;
}

/* Responsive iframe */
.game-iframe-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  /*border: 2px solid orange;*/
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 50px rgb(0, 0, 0);
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.online-game-description {
  z-index: 5;
  width: 100%;
  max-width: 800px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 28px 32px;
  color: #eaeaea;
  text-align: center;
  clip-path: polygon(
    40px 0,
    100% 0,
    100% calc(100% - 40px),
    calc(100% - 40px) 100%,
    0 100%,
    0 40px
  );
}

.online-game-description h3 {
  font-family: "BebasNeue", sans-serif;
  letter-spacing: 8px;
  font-size: 1.6em;
  color: orange; /* neon cyan for futuristic theme */
  margin-bottom: 12px;
  text-align: center;
}

.line-container {
  height: 3px;
  width: 100%;
  background: linear-gradient(
    to right,
    rgb(255, 136, 0),
    rgb(189, 0, 173)
  ); /* neon cyan to magenta */
  margin: 16px 0 24px;
  border-radius: 2px;
}

/* Styled instruction rows */
.instructions-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.instruction-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #1a1a1a;
  border-left: 50px solid rgb(255, 136, 0);
  border-right: 50px solid rgb(189, 0, 173);
  border-radius: 5px;
}

.control {
  font-weight: bold;
  color: #ffffff;
  justify-self: end;
  text-align: right;
}

.description {
  color: #cccccc;
  text-align: left;
}
