/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-dark: #1a1a1a;
    --color-bg-card: #2a2322;
    --color-text: #ede6de;
    --color-text-muted: #3D3C3A;
    --color-accent: #8b2635;
    --color-accent-hover: #a83545;
    --color-gold: #AA6C39;
    --color-border: #3a3a3a;
    --color-warning: #ff0000;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: 'Verdana', 'Arial', 'Helvetica', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    background-image: url('/images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Images placement */
.float-left {
    float: left;
    margin-left: 0px; 
    margin-right: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
    max-width: 40%;
    max-height: 40%;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 15px;
    max-width: 300px;
}

/* Portal/Index Page */
.portal {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(139,38,53);stop-opacity:0.1"/><stop offset="100%" style="stop-color:rgb(212,175,55);stop-opacity:0.05"/></linearGradient></defs><rect width="400" height="400" fill="url(%23g)"/></svg>');
    background-size: cover;
    background-position: center;
    padding: 2rem;
    text-align: center;
}

.portal h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.portal .tagline {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.portal .age-verify-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin: 2rem 0;
    border: 2px solid var(--color-accent);
}

.portal .age-verify-btn:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 38, 53, 0.4);
}

.portal .contact {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: rgba(42, 42, 42, 0.6);
    border-radius: 8px;
    max-width: 600px;
}

.portal .contact a {
    color: var(--color-gold);
    text-decoration: none;
}

.portal .contact a:hover {
    text-decoration: underline;
}

/* Age Verification Page */
.age-verify-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.age-verify-box {
    background-color: var(--color-bg-card);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.age-verify-box h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    margin-bottom: 2rem;
}

.age-verify-box p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.age-verify-box .disclaimer {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(139, 38, 53, 0.1);
    border-left: 3px solid var(--color-accent);
}

.age-verify-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-btn {
  background: #0070ba;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75em 1.25em;
  font-size: 1.1em;
  cursor: pointer;
}

.donate-btn:hover {
  background: #003087;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text-muted);
}

.pulse-text {
  animation: pulse-color 0.1s infinite alternate;
}

@keyframes pulse-color {
  from {
    background-color: #7DF9FF;;    /* First color */
    margin-left: 5%;
    margin-right: 5%;
  }
  to {
    background-color: #39FF14;    /* Second color */
    margin-left: 10%;
    margin-right: 10%;
  }
}

.bdsm-ad {
  border: 20px solid #b30000;
  padding: 20px 30px;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left: 10%;
  margin-right: 10%;
  display: block;
  color: #b30000;
  font-size: 1.3em;
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  animation: pulse-color 1.5s infinite alternate;
}

.bdsm-title {
  font-size: 1.5em;
  letter-spacing: 1px;
}

.bdsm-large {
  font-size: 1.4em;
  font-weight: bold;
}

.bdsm-price {
  font-size: 1.5em;
  font-weight: bold;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    background-color: var(--color-bg-card);
    padding: 1.5rem 0;
    border-bottom: 2px solid var(--color-accent);
}

header h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    text-align: center;
    font-size: 2.5rem;
}

header h2 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    text-align: center;
    font-size: 2.0rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--color-text-muted);
    margin: 0 0.5rem;
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.series-card {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.series-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(139, 38, 53, 0.3);
}

.series-card h2 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.series-card p {
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.series-card a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.series-card a:hover {
    background-color: var(--color-accent-hover);
}

/* Story Page */
.story-header {
    text-align: justify;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--color-bg-card);
    border-radius: 8px;
}

.story-header h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.story-header h2 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 2.0rem;
    margin-bottom: 1rem;
}

.story-header .description {
    color: var(--color-text);
    margin: 0 auto;
    line-height: 1.8;
}

.story-header .warning {
    color: var(--color-warning);
    margin: 0 auto;
    line-height: 1.8;
}

.chapter-list {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.chapter-list h2 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chapter-list ul {
    list-style: none;
}

.chapter-list li {
    margin-bottom: 1rem;
}

.chapter-list a {
    display: block;
    padding: 1rem 1.5rem;
    background-color: var(--color-bg-dark);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
    transition: all 0.3s ease;
}

.chapter-list a:hover {
    background-color: var(--color-bg-card);
    border-left-color: var(--color-gold);
    padding-left: 2rem;
}

/* Chapter Page */
.chapter-header {
    background-color: var(--color-bg-card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.chapter-header .series-name {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.chapter-header .story-name {
    color: var(--color-gold);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.chapter-header h1 {
    font-family: var(--font-serif);
    color: var(--color-gold);
    font-size: 2rem;
}

.chapter-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.chapter-nav a, .chapter-nav button {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.chapter-nav a:hover, .chapter-nav button:hover {
    background-color: var(--color-accent-hover);
}

.chapter-nav a.disabled {
    background-color: var(--color-bg-card);
    color: var(--color-text-muted);
    cursor: not-allowed;
    border: 1px solid var(--color-border);
}

.chapter-nav select {
    padding: 0.75rem 1rem;
    background-color: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

.chapter-content {
    background-color: var(--color-bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.chapter-content p {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Image wrapping styles */
.chapter-content img.float-left {
    float: left;
}

.chapter-content img.float-right {
    float: right;
}

/* Footer */
footer {
    display: flex;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-card);
    color: var(--color-text);
    font-size: 0.9rem;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
    flex-direction: column;
}

footer a {
    color: var(--color-gold);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-title {
  justify-content: center; /* horizontal center */
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: center; /* horizontal center */
}

.footer-logo {
  margin-right: 1rem;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

/* Horizontal line */

.line-wrapper {
  height: 100vh;   /* full viewport height */
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  margin: 0;
}

hr {
  width: 100%;
  border: 2px solid var(--color-text);
  margin: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal h1 {
        font-size: 2.5rem;
    }
    
    .series-grid {
        grid-template-columns: 1fr;
    }
    
    .chapter-nav {
        flex-direction: column;
    }
    
    .chapter-content {
        padding: 1.5rem;
    }
}
