/* Global reset and fonts */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

/* Navigation */
header {
  background-color: #0b0b0b;
  color: white;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1em;
}
.logo {
  font-size: 1.5em;
  text-decoration: none;
  color: white;
}
.menu {
  list-style: none;
  display: flex;
  gap: 1.5em;
}
.menu a {
  text-decoration: none;
  color: white;
  font-weight: 500;
}
.menu a:hover, .menu a.active {
  color: #f5a623;
}

/* Mobile menu toggle */
#menu-toggle { display: none; }
.menu-icon {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 3em 1em;
  gap: 2em;
}
.book-cover {
  width: 300px;
  max-width: 80%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.promo {
  max-width: 500px;
}
.promo h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}
.promo p {
  font-size: 1.1em;
}
/* Footer */
footer {
  background-color: #0b0b0b;
  color: white;
  text-align: center;
  padding: 1.5em;
  margin-top: 3em;
}

/* Responsive */
@media (max-width: 768px) {
  .menu { 
    display: none; 
    flex-direction: column; 
    background: #111; 
    position: absolute; 
    top: 60px; 
    right: 10px; 
    padding: 1em; 
    border-radius: 8px; 
  }
  #menu-toggle:checked + .menu-icon + .menu { display: flex; }
  .menu-icon { display: block; }
  .hero { flex-direction: column; text-align: center; }
}

/* Shared sections */
main {
  max-width: 1100px;
  margin: auto;
  padding: 2em 1em;
}
h1, h2 {
  margin-bottom: 0.5em;
  color: #111;
}
p, li {
  font-size: 1.05em;
  margin-bottom: 0.8em;
}

/* Contents page */
.toc details {
  margin: 1em 0;
  background: #f4f4f4;
  padding: 1em;
  border-radius: 8px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
  margin: 1.5em 0;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Order page */
.order-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2em;
}
.order-info {
  max-width: 400px;
}
.btn {
  display: inline-block;
  padding: 0.7em 1.4em;
  margin: 0.5em 0.3em 0 0;
  background-color: #f5a623;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
}
.btn:hover {
  background-color: #d98f1f;
}
.btn.secondary {
  background-color: #555;
}
.btn.secondary:hover {
  background-color: #333;
}

/* Contact page */
.author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2em;
  margin-bottom: 3em;
}
.author-photo {
  width: 220px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.bio a {
  color: #f5a623;
  text-decoration: none;
}
.bio a:hover {
  text-decoration: underline;
}
.previous-books ul {
  list-style-type: square;
  margin-left: 1.5em;
}

/* Indented Bulleted Lists */
ul.custom-list {
  list-style-type: disc; /* main bullet style */
  padding-left: 1.5rem;  /* indentation */
  margin-bottom: 1em;
}
ul.custom-list li {
  margin-bottom: 0.6em;
  line-height: 1.5;
}
ul.custom-list ul {
  list-style-type: circle; /* nested bullets */
  padding-left: 1.5rem;
  margin-top: 0.5em;
}
ul.custom-list ul li {
  margin-bottom: 0.4em;
}
@media (max-width: 768px) {
  ul.custom-list {
    padding-left: 1rem;
  }
  ul.custom-list ul {
    padding-left: 1rem;
  }
}

/* Red text */
.text-red {
  color: red; /* you can also use #ff0000 */
}

/* Small italicized text */
.text-small-italic {
  font-style: italic;      /* makes text italic */
  font-size: 0.75em;        /* 75% of normal size */
}

/* Responsive refinements */
@media (max-width: 768px) {
  .order-section, .author {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Slideshow Styles --- */
.slideshow-section {
  text-align: center;
  margin: 3em 0;
}

/* Wrapper holds arrows outside */
.slideshow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* The container that holds all slides */
.slideshow-container {
  position: relative;
  max-width: 400px;
  margin: 0;
}

.slides {
  display: none;
}

.slides img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slides img:hover {
  transform: scale(1.02);
}

/* Arrows outside image */
.prev, .next {
  cursor: pointer;
  color: #333;
  font-weight: bold;
  font-size: 2rem;
  user-select: none;
  transition: color 0.3s;
}
.prev:hover, .next:hover {
  color: #000;
}

/* Pause button below */
.slideshow-controls {
  margin-top: 1em;
}
#pauseBtn {
  padding: 8px 16px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#pauseBtn:hover {
  background: #555;
}

/* Fade effect */
.fade {
  animation-name: fade;
  animation-duration: 1s;
}
@keyframes fade {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .slideshow-wrapper {
    flex-direction: column;
  }
  .prev, .next {
    font-size: 1.8rem;
  }
}
