/* Lights on Cabana Theme - Story Library Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  /* background: linear-gradient(to bottom, #0a1628 0%, #1a3a5c 100%); */
  background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
  background-attachment: fixed;
  color: #FFFFFF;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}
h1 {
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Site Header */
.site-header {
  text-align: center;
  padding: 3rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  color: white;
}

.site-header h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

/* Buttons */
.button {
  display: inline-block;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.95) 100%);
  border: 2px solid #FFD700;
  color: #FFD700;
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  font-weight: bold;
  margin-top: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 
              0 0 15px rgba(255, 215, 0, 0.4);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 
              0 0 25px rgba(255, 215, 0, 0.6);
}


 #back-btn { 
            position: fixed; 
            top: 15px; 
            left: 15px; 
            background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(178, 34, 34, 0.95) 100%);
            border: 2px solid #FFD700; 
            color: #FFD700; 
            padding: 10px 20px; 
            border-radius: 25px; 
            text-decoration: none;
            font-weight: bold;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6), 
                        0 0 15px rgba(255, 215, 0, 0.4);
        }

        #back-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), 
                        0 0 25px rgba(255, 215, 0, 0.6);
        }


/* Featured Section */
.featured {
  padding: 2rem 1rem;
  text-align: center;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.card {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(178, 34, 34, 0.9) 100%);
  border: 3px solid #FFD700;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4),
              0 0 15px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6),
              0 0 25px rgba(255, 215, 0, 0.5);
}

.card img {
  width: 100%;
  border-radius: 12px;
}

.card h3 {
  margin-top: 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* Simple Header (for story pages) */
.simple-header {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  color: white;
}

.simple-header h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0.5rem 0;
}

.simple-header a {
  color: #87CEEB;
  font-weight: bold;
}

.simple-header a:hover {
  color: #FFD700;
}

/* Story List */
.story-list {
  max-width: 800px;
  margin: auto;
  padding: 1rem;
}

.story-row {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(178, 34, 34, 0.9) 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4),
              0 0 10px rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
}

.story-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.6),
              0 0 20px rgba(255, 215, 0, 0.5);
}

.story-row img {
  width: 90px;
  border-radius: 8px;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

/* Story Content */
.story {
  max-width: 700px;
  margin: auto;
  padding: 1.5rem;
}

/*.story p {
  color: #E8F5E9;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  margin-bottom: 1rem;
  line-height: 1.7;
} */

.story p {
  margin-bottom: 1.4rem;
  max-width: 40em;   /* ideal reading width */
  margin-left: auto;
  margin-right: auto;
}

.story img {
  border: 3px solid #FFD700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5),
              0 0 15px rgba(255, 215, 0, 0.3);
}

.story-hero {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

/* Reminder Box */
.reminder {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(178, 34, 34, 0.9) 100%);
  border: 3px solid #FFD700;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4),
              0 0 15px rgba(255, 215, 0, 0.4);
}

.reminder strong {
  color: #FFD700;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.reminder p {
  color: #FFFFFF;
  margin: 0;
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #87CEEB;
  margin-top: 2rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .story-row {
    flex-direction: column;
  }
  
  .story-row img {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}
.center-image {
  display: block;
  margin: 1.5rem auto;
}

.center-text {
    text-align: center;
  }

  .story-pause {
  text-align: center;
  margin: 2rem 0;
  opacity: 0.7;
}

/* Jokes Page Styling */
.jokes-list {
  max-width: 720px;
  margin: 2rem auto;
  text-align: left;
}

.joke {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.2rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.6;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.joke strong {
  color: #FFD700;
}

.santa-button {
  background-color: #d42426; /* Christmas Red */
  color: white;
  border: 2px solid #f8d210; /* Gold */
  padding: 5px 25px;
  font-size: 1.0rem;
  border-radius: 50px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
  font-family: inherit;
  transition: transform 0.2s;
}

.santa-button:hover {
  transform: scale(1.05);
  background-color: #b31d1f;
}