/* Move eBook cover to very top of screen and stretch to bottom */
#ebook {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.cover.medium {
  margin: 0 !important;
  margin-top: 20px !important;
  display: block;
  width: 600px !important;
  height: auto !important;
  align-self: center;
  transition: transform 0.3s ease !important;
  animation: coverPulse 3s ease-in-out infinite !important;
  cursor: pointer !important;
}

/* Pulsing animation for eBook cover */
@keyframes coverPulse {
  0%, 70%, 100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.05);
  }
}

/* Hover effect for eBook cover */
.cover.medium:hover {
  transform: scale(1.08) !important;
  animation-play-state: paused !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Add click effect */
.cover.medium:active {
  transform: scale(0.98) !important;
}

/* Add spacing around eBook title */
#ebook h2 {
  margin: 15px 0 15px 0 !important;
  padding: 10px 0 !important;
}

/* Position Codee App section closer to bottom */
#digiapp {
  margin-top: 30px !important;
  padding-bottom: 10px !important;
}

/* Add spacing between Codee App cover and title */
#digiapp .cover.medium {
  margin-bottom: 25px !important;
}

#digiapp h2 {
  margin-top: 25px !important;
  margin-bottom: 15px !important;
}

/* Make buy button larger for accessibility with Apple Store styling */
.buy-button {
  font-size: 1.6rem !important;
  padding: 20px 35px !important;
  min-height: 100px !important;
  min-width: 200px !important;
  width: 200px !important;
  height: 100px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #007aff, #0056cc) !important;
  border: none !important;
  border-radius: 16px !important;
  color: white !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  animation: subtleBounce 2s ease-in-out infinite !important;
}

/* Apple Store hover effects */
.buy-button:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 35px rgba(0, 122, 255, 0.4) !important;
  background: linear-gradient(135deg, #0084ff, #005acc) !important;
}

.buy-button:active {
  transform: translateY(-2px) scale(0.98) !important;
  transition: all 0.1s ease !important;
}

/* Subtle bounce animation */
@keyframes subtleBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-1px);
  }
}

/* Apple Store body styling */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Apple Store container styling */
.container {
  margin: 0 !important;
  padding: 0 5px !important;
  width: 100% !important;
  backdrop-filter: blur(20px) !important;
}

/* Apple Store card styling */
.qr-section, .buy-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 10px auto !important;
  gap: 30px !important;
  width: 95% !important;
  padding: 15px !important;
  max-width: none !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Make QR codes much larger */
.qr {
  width: 150px !important;
  height: 150px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Make Codee App QR code larger */
#digiapp .qr {
  width: 170px !important;
  height: 170px !important;
}

/* Apple Store text styling */
h2 {
  font-size: 2.2rem !important;
  margin: 5px 0 !important;
  font-weight: 700 !important;
  color: #1d1d1f !important;
  letter-spacing: -0.5px !important;
}

/* Military font styling for eBook section */
#ebook h2 {
  font-family: 'Impact', 'Arial Black', 'Bebas Neue', sans-serif !important;
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #2c3e50 !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
  margin: 15px 0 15px 0 !important;
  padding: 10px 0 !important;
}

.description {
  font-size: 1.1rem;
  margin: 5px 0;
  line-height: 1.3;
  padding: 0;
  text-align: left;
  color: #1d1d1f !important;
  font-weight: 400 !important;
}

/* Military font styling for eBook description */
#ebook .description {
  font-family: 'Courier New', 'Monaco', monospace !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #34495e !important;
  letter-spacing: 0.5px !important;
  line-height: 1.4 !important;
}

#ebook .description li {
  margin-bottom: 6px !important;
  text-transform: uppercase !important;
  font-size: 0.95rem !important;
}

/* Enhanced scroll button with Apple styling */
.scroll-cta {
  margin: 0 !important;
  padding: 8px 20px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #007aff !important;
  border: 1px solid rgba(0, 122, 255, 0.2) !important;
  border-radius: 25px !important;
  min-height: 40px !important;
  opacity: 0;
  transform: translateY(20px);
  animation: popupAnimation 0.6s ease-out 3s forwards;
  align-self: center;
  margin-bottom: 20px !important;
  backdrop-filter: blur(20px) !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.scroll-cta:hover {
  background: rgba(0, 122, 255, 0.1) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2) !important;
}

/* Popup animation keyframes */
@keyframes popupAnimation {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Social media section */
.social-media {
  text-align: center;
  padding: 8px 5px;
  margin-top: 3px;
}

.social-media h3 {
  margin-bottom: 6px;
  color: #333;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 22px;
  transition: transform 0.3s ease;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

.social-icon:hover {
  transform: scale(1.1);
}

.youtube { background: #FF0000; color: white; font-size: 20px; }
.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); color: white; font-size: 16px; border-radius: 12px; }
.facebook { background: #1877F2; color: white; font-size: 24px; font-weight: bold; }
.tiktok { background: #000; color: white; font-size: 16px; }
.twitch { background: #9146FF; color: white; font-size: 18px; }
.twitter { background: #1DA1F2; color: white; font-size: 16px; }
.whatsapp { background: #25D366; color: white; font-size: 18px; }

/* Footer text */
.footer-text {
  text-align: center;
  padding: 15px 5px;
  font-size: 1rem;
  color: #666;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qr-section, .buy-row {
    gap: 20px !important;
    padding: 12px !important;
  }
  
  .qr {
    width: 130px !important;
    height: 130px !important;
  }
  
  #digiapp .qr {
    width: 150px !important;
    height: 150px !important;
  }
  
  .cover.medium {
    width: 480px !important;
  }
  
  .buy-button {
    font-size: 1.3rem !important;
    padding: 16px 28px !important;
    min-height: 90px !important;
    min-width: 180px !important;
  }
  
  #digiapp .cover.medium {
    margin-bottom: 20px !important;
  }
  
  #digiapp h2 {
    margin-top: 20px !important;
  }
  
  #ebook h2 {
    font-size: 2rem !important;
    letter-spacing: 1px !important;
  }
  
  #ebook .description {
    font-size: 0.9rem !important;
  }
  
  #ebook .description li {
    font-size: 0.85rem !important;
  }
  
  .description {
    font-size: 1rem;
    line-height: 1.2;
  }
  
  .social-media {
    padding: 5px 3px;
    margin-top: 2px;
  }
  
  .social-media h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .footer-text {
    font-size: 0.9rem;
    padding: 10px 3px;
  }
  
  h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 480px) {
  .qr-section, .buy-row {
    gap: 15px !important;
    padding: 10px !important;
  }
  
  .qr {
    width: 110px !important;
    height: 110px !important;
  }
  
  #digiapp .qr {
    width: 130px !important;
    height: 130px !important;
  }
  
  .cover.medium {
    width: 380px !important;
  }
  
  .buy-button {
    font-size: 1.1rem !important;
    padding: 12px 22px !important;
    min-height: 80px !important;
    min-width: 160px !important;
  }
}

/* Accessibility styles */
@media (prefers-reduced-motion: reduce) {
  .cover.medium, .buy-button, .social-icon {
    animation: none !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .buy-button {
    border: 2px solid #000 !important;
  }
  
  .social-icon {
    border: 1px solid #000 !important;
  }
}
