/* Dramatic backstory page styling */

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 16pt;
    line-height: 1.8;
    text-rendering: optimizeLegibility;
    margin: 0 auto;
    max-width: 70ch;
    text-align: justify;
    
    /* Dark, mysterious color scheme */
    color: #e8e5bf;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    min-height: 100vh;
    
    /* Subtle texture overlay */
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Dramatic headings */
h1 {
    font-size: 3.5em;
    color: #d4af37;
    text-align: center;
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.1);
    margin-bottom: 0.2em;
    font-weight: bold;
    letter-spacing: 0.1em;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

h2 {
    font-size: 1.8em;
    color: #b8860b;
    text-align: center;
    font-style: italic;
    margin-bottom: 2em;
    text-shadow: 0 0 5px rgba(184, 134, 11, 0.3);
    font-weight: normal;
    letter-spacing: 0.05em;
}

/* Editor's Note dramatic styling */
.editor-note {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(145deg, rgba(40, 40, 40, 0.9), rgba(60, 60, 60, 0.8));
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 2.5em;
    margin: 3em 0;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(212, 175, 55, 0.2);
    
    /* Animated glow effect */
    animation: subtleGlow 4s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    0% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.2); }
    100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(212, 175, 55, 0.4); }
}

.editor-note::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #d4af37, #b8860b, #d4af37);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(5px);
}

.editor-note p {
    margin-bottom: 1.5em;
    color: #f0f0f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.editor-note p:first-child b {
    font-size: 1.4em;
    color: #d4af37;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    display: block;
    text-align: center;
    margin-bottom: 1em;
    letter-spacing: 0.1em;
}

/* Atmospheric paragraph styling */
p {
    text-indent: 1.5em;
    margin-bottom: 1.2em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

p:first-of-type {
    text-indent: 0;
}

/* Dramatic horizontal rule */
hr {
    width: 80%;
    border: none;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 60px auto;
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

hr::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    color: #d4af37;
    padding: 0 15px;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Enhanced button styling */
button {
    background: linear-gradient(145deg, #d4af37, #b8860b);
    border: none;
    color: #1a1a1a;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:hover {
    background: linear-gradient(145deg, #e6c547, #d4af37);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Fixed navigation buttons */
button[onclick*="scrollTo"] {
    position: fixed;
    top: 10px;
    left: 10px;
    font-size: 0.75em;
    padding: 7.5px;
    z-index: 1000;
    background: rgba(212, 175, 55, 0.9);
    transform: rotate(90deg);
    transform-origin: center;
}

button[onclick*="index.html"]:first-of-type {
    position: fixed;
    top: 50px;
    left: 5px;
    font-size: 0.75em;
    padding: 7.5px;
    z-index: 1000;
    background: rgba(212, 175, 55, 0.9);
}

/* Floating return button */
button[onclick*="index.html"]:last-of-type {
    font-size: 1.2em;
    padding: 5px 25px;
    float: left;
    margin-top: 2em;
    background: linear-gradient(145deg, #5a9fd4, #4a8bc2);
    color: white;
    box-shadow: 
        0 6px 20px rgba(90, 159, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button[onclick*="index.html"]:last-of-type:hover {
    background: linear-gradient(145deg, #6bb0e5, #5a9fd4);
    box-shadow: 
        0 8px 25px rgba(90, 159, 212, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Special styling for the "Shredded Time" button */
button[onclick*="1and2.html"] {
    font-size: 1.5em;
    padding: 18.75px 31.25px;
    float: right;
    margin-top: 2em;
    background: linear-gradient(145deg, #d4af37, #1d7869);
    color: #1a1a1a;
    box-shadow: 
        0 7.5px 25px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.25);
}

button[onclick*="1and2.html"]:hover {
    background: linear-gradient(145deg, #e6c547, #d4af37);
    box-shadow: 
        0 10px 31.25px rgba(212, 175, 55, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.25) translateY(-2px);
}

/* Special styling for the "Audio" button */
button[onclick*="stAudio.html"] {
    font-size: 1.3em;
    padding: 15px 25px;
    float: right;
    margin-top: 1em;
    margin-right: 2em;
    background: linear-gradient(145deg, #20b2aa, #008b8b);
    color: white;
    box-shadow: 
        0 6px 20px rgba(32, 178, 170, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

button[onclick*="stAudio.html"]:hover {
    background: linear-gradient(145deg, #48d1cc, #20b2aa);
    box-shadow: 
        0 8px 25px rgba(32, 178, 170, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: scale(1.2) translateY(-2px);
}

/* Subtle animation for the entire page */
body {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        max-width: 90%;
        font-size: 14pt;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .editor-note {
        padding: 1.5em;
        margin: 2em 0;
    }
}
