/* General Styles */
body { 
   background: #f4f4f9; 
   color: #333;
}

/* Header Styles */
header {
   position: relative;
   height: 1014px;
   width: 100%;
   background: #161415 url(../Images/poker_chip_bounding_box.png) no-repeat center center;
   background-size: cover !important;
   -webkit-background-size: cover !important;
   text-align: center;
   overflow: hidden;
}

header:before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, .7); /* Dark overlay for better text visibility */
}

header .banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 85%;
  height: 100%;
  padding-bottom: 30px;
}

header .banner-text { 
   width: 100%; 
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   text-align: center;
   z-index: 1;
}

header .banner-text h1 {
  font: 90px/1.1em 'opensans-bold', sans-serif;
  color: #f4f4f9;
  letter-spacing: -2px;
  margin: 0 auto 18px auto;
  text-shadow: 0px 1px 3px rgba(0, 0, 0, .8);
}

/* Project Sections */
.project-section {
   padding: 80px 0;
   align-items: center;
   background: #fff;
}

.section-title {
   font-size: 2.4em;
   color: #333;
   margin-bottom: 40px;
   margin-top: 40px;
   text-align: center;
}

.project-description {
   font-size: 1.1em;
   color: #666;
   margin-bottom: 40px;
   text-align: center;
}

.project-section b{
   font-weight: bold;
}

/* Hero Image */
.hero-image-container {
   display: flex;
   justify-content: center;
   align-items: center;
   width: 100%;
   margin: 20px 0;
   max-height: 800px; /* Increased for iPhone screenshot height */
   overflow: hidden;
}

.hero-image {
   max-width: 400px; /* Adjusted for iPhone width */
   width: 100%;
   height: auto;
   overflow: hidden;
}

.hero-image img {
   width: 100%;
   height: auto;
   border-radius: 12px;
   object-fit: contain;
}

/* Technical Specs */
.tech-specs {
   background: #f8f8f8;
   padding: 25px;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   margin-bottom: 30px;
}

.tech-specs h2 {
   color: #333;
   margin-bottom: 20px;
}

.tech-specs ul {
   list-style: none;
   padding: 0;
}

.tech-specs li {
   margin: 10px 0;
   padding-left: 20px;
   position: relative;
}

/* Code Display */
.code-block {
   background: #2b2b2b;
   padding: 20px;
   border-radius: 8px;
   color: #fff;
   margin-bottom: 30px;
}

.code-block h2 {
   color: #fff;
   margin-bottom: 20px;
}

/* Image Gallery */
.image-gallery {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 20px;
   margin: 30px 0;
}

.gallery-image {
   width: 100%;
   border-radius: 8px;
   transition: transform 0.3s ease;
}

.gallery-image:hover {
   transform: scale(1.05);
}

/* Video Section */
.video-container {
   position: relative;
   padding-bottom: 56.25%; /* 16:9 aspect ratio */
   height: 0;
   overflow: hidden;
   max-width: 100%;
   background: #000;
   border-radius: 8px;
}

.video-container iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
   header {
       height: 300px;
   }
   
   .section-title {
       font-size: 2em;
   }
   
   .tech-specs, .code-block {
       margin: 15px 0;
   }

   .hero-image {
       max-width: 100%;
   }
   
   .slideshow-container {
       max-width: 100%;
   }
}

/* Specs Grid */
.specs-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   padding: 20px;
   max-width: 1200px;
   margin: 0 auto;
}

.spec-item {
   background: #f8f8f8;
   padding: 25px;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.spec-item h3 {
   color: #333;
   margin-bottom: 15px;
   font-size: 1.4em;
}

.spec-item ul {
   list-style: none;
   padding: 0;
}

.spec-item li {
   margin: 10px 0;
   color: #666;
   font-size: 1em;
   line-height: 1.4;
}

/* Evolution Section Styles */
.version-block {
   background: #f8f8f8;
   padding: 30px;
   margin: 20px auto;
   border-radius: 8px;
   box-shadow: 0 2px 10px rgba(0,0,0,0.1);
   max-width: 800px; /* Center the container */
}

.version-block h3 {
   color: #333;
   margin-bottom: 20px;
   font-size: 1.8em;
}

.version-block h4 {
   color: #666;
   margin: 15px 0;
   font-size: 1.4em;
}

.version-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    object-position: center;
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
   max-width: 400px; /* Match iPhone width */
   position: relative;
   margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Ensure images fit within the container and have a max height of 200px while maintaining aspect ratio */
.mySlides img {
  width: auto;
  height: 600px;
  max-height: 700px;
  object-fit: contain;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -30px;  /* Increased for larger buttons */
  padding: 20px;      /* Increased padding */
  color: white;
  font-weight: bold;
  font-size: 24px;    /* Larger font size */
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.6); /* Added background for better visibility */
}

/* Position the "next button" to the right */
.next {
  right: -50px;       /* Move further out */
  border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
  left: -50px;        /* Move further out */
}

/* Adjust hover states */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.9);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Footer Styles */
footer {
   background: #161415;
   padding: 20px 0;
   color: #fff;
   text-align: center;
}

footer .social-links {
   list-style: none;
   padding: 0;
   margin: 0 0 20px 0;
}

footer .social-links li {
   display: inline-block;
   margin: 0 10px;
}

footer .social-links li a {
   color: #fff;
   font-size: 1.2em;
   transition: color 0.3s ease;
}

footer .social-links li a:hover {
   color: #F06000;
}

footer .copyright {
   list-style: none;
   padding: 0;
   margin: 0;
}

footer .copyright li {
   display: inline-block;
   margin: 0 10px;
   font-size: 0.9em;
   color: #aaa;
}

footer .copyright li a {
   color: #aaa;
   transition: color 0.3s ease;
}

footer .copyright li a:hover {
   color: #fff;
}

.next-steps-image-container {
   text-align: center;
   margin-top: 20px;
}

.next-steps-image {
   max-width: 100%;
   height: auto;
   border-radius: 8px;
}

.next-steps b{
   font-weight: bold; 
}

.next-steps p{
   font-size: 1.1em;
   margin-bottom: 40px;
   text-align: center;
}

.next-steps ul {
   list-style: none;
   padding: 0;
   text-align: center;
}

/* Spec items in grid */
.spec-item img {
   width: 100%;
   max-width: 400px;
   height: auto;
   border-radius: 12px;
   margin: 20px auto;
   display: block;
}

.centered {
    text-align: center;
}

.text-center {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.centered-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.centered-list li {
    margin: 20px 0;
    line-height: 1.6;
}