/* =======================================
   CSS Reset & Global Styles
======================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: #212121;
  color: #ddd;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =======================================
   Top Bar (Sign In / Sign Up)
======================================= */
.top-bar {
  background-color: #222;
  padding: 10px 20px;
  text-align: right;
}

.top-bar a {
  display: inline-block;
  background-color: #444;
  color: #ddd;
  padding: 8px 12px;
  min-width: 80px;
  text-align: center;
  margin-left: 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.top-bar a:hover {
  background-color: #666;
}

/* =======================================
   Navbar (Common to All Pages)
======================================= */
.navbar {
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 5px 20px;
}

.navbar .logo img {
  height: 50px; /* adjust as needed */
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar li a {
  font-size: 1em;
  color: #fff;
  padding: 5px 10px;
  transition: color 0.3s ease;
}

.navbar li a:hover {
  color: #ccc;
}

/* =======================================
   Hero Header Section (Home Page)
======================================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero .slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero .slide.active {
  opacity: 1;
}

.hero .slide img,
.hero .slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero .slide.active .hero-overlay {
  opacity: 1;
}

.hero .hero-overlay h1 {
  font-size: 3em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.hero .hero-overlay p {
  font-size: 1.5em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* =======================================
   Section Common Styles
======================================= */
section {
  padding: 10px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* =======================================
   Feature Section & Features List
======================================= */
.feature-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.feature-section .feature-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.feature-section .feature-text {
min-height: 285px;
  min-width: 300px;
}
.feature-text{
  max-width: 500px;
  background-color: #2f2f2f;
  padding: 20px;
}
.feature-text button {
  margin-top: 35px;
  width: 100%;
}
.feature-text h2 {
  margin-bottom: 5px;
  padding-bottom: 0px;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.feature-item button {
  margin-top: 35px;
  width: 100%;
}
.features-list .feature-item {
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
}

/* =======================================
   Banner & Tutorial Content
======================================= */
.banner {
  width: 100%;
  height: 300px;
  background: url('assets/tutorial-banner.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.banner h1 {
  color: #fff;
  font-size: 3em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tutorial-content {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.tutorial-content h2,
.tutorial-content h3 {
  margin-bottom: 20px;
}

.tutorial-content p,
.tutorial-content li {
  margin-bottom: 15px;
}

/* =======================================
   Copy-Paste Code Block Styling
======================================= */
.copy-code {
  background: #222;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
  white-space: pre;
}

/* =======================================
   Services & CTA Sections
======================================= */
.services-section {
  background-color: #1a1a1a;
  padding: 40px 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 1200px;
}

.services-section .service-item {
  margin-bottom: 20px;
}

.cta-section {
  background-color: #222;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
}

.cta-section input[type="email"] {
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  width: 250px;
}

.cta-section button {
  padding: 10px 20px;
  border: none;
  background-color: #444;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-section button:hover {
  background-color: #666;
}

/* =======================================
   Contact & Footer
======================================= */
.contact-section {
  text-align: center;
  line-height: 1.8;
}

footer {
  background-color: #111;
  padding: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9em;
}

/* =======================================
   Responsive Layouts
======================================= */
@media (max-width: 768px) {
  .feature-section {
    flex-direction: column;
  }
  
  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* =======================================
    Game Page Styles
======================================= */
/* Game Detail Container, Slider Panel, and Info Card */
.game-detail-container {
  display: flex;
  gap: 20px;
  margin: 5px auto;
  max-width: 90%;
}

.slider-panel {
  flex: 0 0 75%;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
}

.slider-panel > img,
.slider-panel > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card {
  flex: 0 0 25%;
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card .title-image {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background-color: #000;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.info-card .title-image > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive: Stack game detail columns on screens below 1040px */
@media (max-width: 1040px) {
  .game-detail-container {
    flex-direction: column;
  }
  .slider-panel,
  .info-card {
    flex: 1 0 100%;
  }
}

/* Availability Bar & Long Description */
.gameTitle-bar {
  max-width: 1000px;
  margin: 5px auto;
  padding: 10px;
  background-color: #ffffff;
  text-align: center;
  border-radius: 8px;
  font-size: 1.1em;
  color: #000;
  box-shadow: 0 3px 8px rgba(173, 216, 230, 0.8), 8px 0 15px rgba(173, 216, 230, 0.8), -8px 0 15px rgba(173, 216, 230, 0.8);
}


.long-description {
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px 80px 80px 80px;
  text-align: left;
  line-height: 1.8;
  background-color: #1a1a1a;
}

/* =======================================
   Privacy Policy Container
======================================= */
.privacy-container {
  max-width: 800px;
  margin: 5px auto;
  padding: 20px;
  background-color: #1a1a1a;
  border-radius: 8px;
  line-height: 1.8;
}

.privacy-container h2 {
  margin-bottom: 20px;
  text-align: center;
}

.privacy-container p {
  margin-bottom: 15px;
}

/* =======================================
   Info Section (e.g., Alpha Testing Info)
======================================= */
.info-container h1 {
  color: white;
  font-size: 24px;
  margin-bottom: 10px;
}

.info-container .highlight {
  color: #ff7e5f; /* Orange Highlight */
}

.info-container .disclaimer {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.4;
}

/* =======================================
   Download & Alpha Testing Section
======================================= */
.download-container {
  display: flex;
  gap: 50px;
  justify-content: center;
  text-align: center;
  margin: 40px auto;
  flex-wrap: wrap;
}

.download-box {
  flex: 0 0 250px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  width: 250px;
  text-align: center;
}

.download-box h2 {
  color: white;
  font-size: 20px;
  margin-bottom: 15px;
}

/* Download Button Base Styling */
.download-button {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  padding: 15px 40px;
  text-align: center;
  text-decoration: none;
  color: white;
  border-radius: 8px;
  background-size: 300% 300%;
  animation: gradient-animation 4s infinite linear;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Game Detail Container, Slider Panel, and Info Card */
.game-detail-container {
  display: flex;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}
.info-card {
  flex: 0 0 25%;
  background-color: #222;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card .title-image {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background-color: #000;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}
.info-card .title-image > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-panel {
  flex: 0 0 75%;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background-color: #000;
}
.slider-panel > img,
.slider-panel > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive: Stack game detail columns on screens below 1040px */
@media (max-width: 1040px) {
  .game-detail-container {
    flex-direction: column;
  }
  .slider-panel, .info-card {
    flex: 1 0 100%;
  }
}


/* Play Game Section */
.play-game {
  text-align: center;
  padding: 40px 20px;
}
/* Play Game Section */
.play-game {
  text-align: center;
  padding: 40px 20px;
}
.play-box {
  text-align: center;
  margin: 0 auto;
}

/* Updated Play Button Styling with Gradient Animation, Minimum Dimensions, Glow, and Click Effects */
.play-button {
  display: inline-block;
  min-width: 350px;
  min-height: 60px;
  line-height: 60px; /* vertically centers text */
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  background: linear-gradient(-45deg, #648b5f, #7bbf7f, #648b5f, #7bbf7f);
  background-size: 400% 400%;
  animation: playButtonGradient 5s ease infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.play-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(100,139,95,0.7);
}
.play-button:active {
  transform: scale(0.95);
}
/* Wishlist Section (if needed for future Wishlist functionality) */
.wishlist-section {
  text-align: center;
  margin: 40px auto;
}
.wishlist-box {
  display: inline-block;
}
.wishlist-button {
  display: inline-block;
  min-width: 350px;
  min-height: 60px;
  line-height: 60px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(-45deg, #648b5f, #7bbf7f, #648b5f, #7bbf7f);
  background-size: 400% 400%;
  animation: playButtonGradient 5s ease infinite;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}
.wishlist-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 5px rgba(100,139,95,0.7);
}
.wishlist-button:active {
  transform: scale(0.95);
}

/* Keyframes for Play Button Gradient Animation */
@keyframes playButtonGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



/* Privacy Policy Link Styling */
.privacy-link {
  color: #ff7e5f;
  text-decoration: underline;
}


/* Android & iOS Button Variants */
.download-button.android {
  background: linear-gradient(-45deg, #ff7e5f, #feb47b, #ff758c, #ff7eb3);
}

.download-button.ios {
  background: linear-gradient(-45deg, #007aff, #3498db, #4a90e2, #0056b3);
}

/* Button States */
.download-button:active {
  transform: scale(0.95);
}

.download-button.android:active {
  background: #ff5733;
}

.download-button.ios:active {
  background: #004c99;
}

.download-button:hover {
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(255, 255, 255, 0.3);
}

/* Gradient Animation Keyframes (used for download buttons) */
@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive: Stack Alpha Testing section on small screens */
@media (max-width: 600px) {
  .download-container {
    flex-direction: column;
    gap: 20px;
  }
  .alpha-testing {
    flex-direction: column;
  }
  .download-box {
    width: 100%;
  }
}

/* =======================================
   Alpha Testing Section (Additional Info)
======================================= */
.alpha-testing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: 40px auto;
  gap: 20px;
}

.alpha-info {
  flex: 1;
}

.alpha-info h1 {
  color: white;
  font-size: 24px;
  margin-bottom: 10px;
}

.alpha-info .highlight {
  color: #ff7e5f;
}

.alpha-info .disclaimer {
  color: #cccccc;
  font-size: 16px;
  line-height: 1.4;
}

/* Privacy Policy Link Styling */
.privacy-link {
  color: #ff7e5f;
  text-decoration: underline;
}
/* Back Button Container */
.back-button-container {
  max-width: 800px;
  margin: 10px auto 0 auto;
  padding: 0px;
  text-align: left;
}

/* Updated Back Button with Animation, Minimum Dimensions, and Hover Effects */
.back-button {
  display: inline-block;
  min-width: 120px;
  min-height: 40px;
  background-color: #444;
  color: #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  line-height: 40px; /* vertically centers the text */
  animation: backButtonAnim 3s infinite alternate;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  transform: scale(1.05);
  background-color: #555;
}

/* Keyframes for the looping background color animation */
@keyframes backButtonAnim {
  0% {
    background-color: #444;
  }
  100% {
    background-color: #666;
  }
}
/* Glitch Effect for Hero Title */
.glitch {
  position: relative;
  font-family: 'Staatliches', sans-serif;
  font-size: 3em;
  color: #fff;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
}
.glitch::before {
  animation: glitch-anim-2 2s infinite linear alternate-reverse;
  clip: rect(0, 900px, 0, 0);
}
.glitch::after {
  animation: glitch-anim 3s infinite linear alternate;
  clip: rect(0, 900px, 0, 0);
}

@keyframes glitch-anim {
  0% {
    clip: rect(2px, 9999px, 12px, 0);
    transform: translate(0);
  }
  20% {
    clip: rect(10px, 9999px, 18px, 0);
    transform: translate(-2px, -2px);
  }
  40% {
    clip: rect(2px, 9999px, 12px, 0);
    transform: translate(-2px, 2px);
  }
  60% {
    clip: rect(12px, 9999px, 22px, 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip: rect(4px, 9999px, 14px, 0);
    transform: translate(2px, 2px);
  }
  100% {
    clip: rect(2px, 9999px, 12px, 0);
    transform: translate(0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(12px, 9999px, 22px, 0);
    transform: translate(0);
  }
  20% {
    clip: rect(4px, 9999px, 14px, 0);
    transform: translate(2px, 2px);
  }
  40% {
    clip: rect(12px, 9999px, 22px, 0);
    transform: translate(2px, -2px);
  }
  60% {
    clip: rect(2px, 9999px, 12px, 0);
    transform: translate(-2px, 2px);
  }
  80% {
    clip: rect(10px, 9999px, 18px, 0);
    transform: translate(-2px, -2px);
  }
  100% {
    clip: rect(12px, 9999px, 22px, 0);
    transform: translate(0);
  }
}

/* Slider Styles */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}
.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active .hero-overlay {
  opacity: 1;
}