:root {
  /* Color Palette */
  --holy-blue: #120B6C;
  --sacred-gold: #D4AF37;
  --gold-light: #E8C874;
  --divine-white: #F8F8F8;
  --transparent-dark: rgba(0, 0, 0, 0.7);
}

/* Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('../images/sunrise.jpg');
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--divine-white);
}

/* Layout */
header, footer {
  background-color: var(--holy-blue);
  color: var(--divine-white);
  padding: 1em;
}

main {
  padding: 2em;
  margin: 2em auto;
  max-width: 1200px;
  border-radius: 10px;
  animation: fadeIn 0.8s ease-out;
}

/* Navigation */
nav a {
  color: var(--divine-white);
  margin-right: 1.5em;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5em 0;
}

nav a:hover {
  color: var(--sacred-gold);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.book-excerpt {
    background-image: url('../images/papyrus.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2em;
    border-radius: 10px;
    color: #333;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.85); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
}

.book-excerpt1 {
    background-image: url('../images/papyrus.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.579); /* Adjust this alpha */
    background-blend-mode: overlay; /* Softens the image */
    padding: 2em;
    border-radius: 10px;
    color: #333;
    font-style: italic;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
}

/* Books Page Specific */
main.books-page {
  background: transparent !important;
  box-shadow: none !important;
  padding: 1em 0 !important;
}

.book-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: center;
  padding: 20px 0;
}

.book-item {
  width: 45%;
  text-align: center;
  transition: all 0.3s ease;
}

.book-item:hover {
  transform: translateY(-5px);
}

.book-item img {
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.book-item button {
  background: linear-gradient(to right, var(--sacred-gold), var(--gold-light));
  color: var(--holy-blue);
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-item button:hover {
  background: linear-gradient(to right, var(--gold-light), var(--sacred-gold));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Typography */
h1, h2, h3 {
  background: linear-gradient(to right, var(--holy-blue), #1A1485);
  color: var(--divine-white);
  padding: 12px 24px;
  border-radius: 8px;
  display: inline-block;
  margin: 0.5em 0;
}

h1 {
  animation: holy-shimmer 8s infinite;
}

h2 {
  font-family: Georgia, serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--sacred-gold);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes holy-shimmer {
  0%, 100% { text-shadow: 0 0 5px var(--sacred-gold); }
  50% { text-shadow: 0 0 15px var(--sacred-gold); }
}

/* Footer */
footer p::before {
  content: "✝";
  margin-right: 10px;
  color: var(--sacred-gold);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .book-item {
    width: 100%;
    margin-bottom: 30px;
  }
  
  nav a {
    display: block;
    margin: 0.5em 0;
    padding-left: 10px;
    border-left: 3px solid var(--sacred-gold);
  }
  
  main {
    padding: 1em;
    margin: 1em;
  }
}

/* Kindle Badge Styles */
.book-item {
  position: relative;
}

.kindle-logo {
  position: absolute;
      top: 10px;
      right: 10px;
      width: 32px;
      height: 32px;
      background-image: url('images/kindle-icon.png');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      display: inline-block;
}

.kindle-logo:hover {
  background-color: var(--gold-light);
  transform: scale(1.1);
}

/* Kindle Button with Icon */
.kindle-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 10px;
  background: linear-gradient(to right, var(--sacred-gold), var(--gold-light));
  color: var(--holy-blue);
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.kindle-button:hover {
  background: linear-gradient(to right, var(--gold-light), var(--sacred-gold));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.kindle-button img {
  width: 20px;
  height: 20px;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px; /* space between buttons */
}
