html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  overflow-y: auto; /* Enable vertical scrolling */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  justify-content: center; /* Center content horizontally */
  align-items: flex-start; /* Start content from the top */
}

.main-container {
  width: 100%;
  max-width: 400px; /* Fixed mobile width */
  background-color: #f5faff;
  margin: 0 auto; /* Center the main container */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
  min-height: 100vh; /* Ensure it covers the full height of the viewport */
  position: relative;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  padding: 10px 15px;
  position: sticky; /* Keep navbar fixed on scroll */
  top: 0;
  z-index: 1000;
}

.navbar .back-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: #000;
}

.navbar .title {
  font-size: 18px;
  font-weight: bold;
  color: #000000;
}

.navbar-subtext {
  text-align: center;
  font-size: 14px;
  color: #828282;
  padding: 10px 0;
  background-color: #f5faff;
  width: 100%;
  position: sticky; /* Fixed under navbar */
  top: 50px; /* Adjust based on navbar height */
  z-index: 999;
}

/* Scrollable Posters */
.scroll-container {
  display: flex;
  overflow-x: scroll; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory;
  gap: 10px;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.scroll-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.poster {
  flex: 0 0 85%;
  max-width: 300px;
  height: 450px;
  border-radius: 15px;
  text-align: center;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  scroll-snap-align: center;
  position: relative;
  color: white;
}

.poster[data-id="1"],
.poster[data-id="2"],
.poster[data-id="3"] {
  background-image: url('https://aviatorgod3.com/assets/png/poster-ce19704f.png');
}

.poster h1 {
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

/* Tags container */
.tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Individual tag styles */
.tag {
  background-color: #ffd966; /* Light yellow background */
  color: #b40e04; /* Dark red text color */
  padding: 8px 12px; /* Padding for spacing */
  font-size: 14px; /* Font size */
  font-weight: bold; /* Make the text bold */
  border-radius: 4px; /* Slightly rounded corners */
  text-align: center; /* Center align the text */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
  transform: rotate(-3deg); /* Slight tilt for effect */
}

.features {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

/* Style for the feature box */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.8); /* Add a border */
  border-radius: 8px; /* Rounded corners */
  padding: 10px;
  width: 80px; /* Adjust width */
  height: 80px; /* Adjust height */
  background-color: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

/* Style for the feature icon */
.feature-icon {
  font-size: 30px; /* Icon size */
  margin-bottom: 5px;
  color: white; /* Icon color */
}

/* Style for the feature text */
.feature-text {
  font-size: 14px; /* Text size */
  font-weight: bold;
  color: white; /* Text color */
}

/* QR Code */
.qr-code {
  width: 100px;
  height: 100px;
  background: white;
  margin: 0 auto;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style for the QR code text */
.qr-text {
  font-size: 14px; /* Adjust text size */
  font-weight: bold;
  color: white; /* Text color */
  text-align: center; /* Center the text */
  margin-bottom: 10px; /* Space between the text and the QR code */
}

/* Footer */
.footer-text {
  text-align: center;
  font-size: 14px;
  color: #000000;
  margin: 20px 0;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.cta button {
  width: 90%;
  max-width: 300px;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #D46DFC;
}

.btn-primary {
  background: linear-gradient(90deg, #434FEE 0%, #4183F8 100%);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #4183F8;
  color: #4183F8;
}

.btn-secondary:hover {
  background-color: #4183F8;
  color: white;
}

/* Responsive Design */
@media (max-width: 480px) {
  .poster {
    height: 470px; /* Reduce height for smaller screens */
    max-width: 85%; /* Adjust poster width */
  }

  .cta button {
    padding: 12px;
    font-size: 16px;
  }
}
