/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e1e; /* Dark background for contrast */
    color: #f0f0f0;
    overflow: hidden; /* Prevent scrollbars */
}

/* Storybook Container */
.storybook {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6e45e2, #88d3ce); /* Gradient background */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
}

/* Page Styles */
.page {
    text-align: center;
    padding: 20px;
    position: absolute;
    width: 80%;
    height: 80%;
    transition: opacity 1s ease, transform 1s ease, box-shadow 0.5s ease;
    opacity: 1;
    transform: scale(1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9); /* Semi-transparent background for text area */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow for elevated effect */
}

/* Hidden Class */
.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Headings */
h1 {
    color: #e34d1b; /* Highlight color for headings */
    font-size: 3em;
    margin: 0;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5); /* Deep shadow for depth */
}

/* Paragraphs */
p {
    color: #0d0c0d;
    font-size: 1.5em;
    margin: 20px 0;
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); /* Subtle shadow for readability */
}

/* Image Styles */
.animated-forest, .animated-creature, .animated-path, .animated-hidden-path, .animated-clearing,
.animated-glade, .animated-lair, .animated-resting, .animated-new-path, .animated-secret,
.animated-path-return, .animated-artifacts, .animated-leave-lair {
    width: 100%;
    max-width: 600px; /* Larger image size */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* Enhanced shadow for images */
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Image Hover Effects */
.animated-forest:hover, .animated-creature:hover, .animated-path:hover,
.animated-hidden-path:hover, .animated-clearing:hover, .animated-glade:hover,
.animated-lair:hover, .animated-resting:hover, .animated-new-path:hover,
.animated-secret:hover, .animated-path-return:hover, .animated-artifacts:hover,
.animated-leave-lair:hover {
    transform: scale(1.1); /* Zoom effect on hover */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); /* Larger shadow on hover */
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 8px; /* Thicker progress bar */
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

.progress-bar #progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ff6f61, #ffac41); /* Gradient fill */
    transition: width 0.5s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Shadow for fill */
}

/* Buttons */
.next-button, .restart-button, .choice-button, .music-controls button {
    padding: 15px 30px;
    font-size: 18px;
    cursor: pointer;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 10px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for buttons */
}

/* Button Hover Effects */
.next-button:hover, .restart-button:hover, .choice-button:hover, .music-controls button:hover {
    background-color: #e65c50;
    transform: scale(1.1); /* Slight scaling on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Larger shadow on hover */
}

/* Music Controls */
.music-controls {
    position: absolute;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shimmer 2s infinite linear; /* Shimmer effect for music controls */
}

.music-controls button {
    background-color: #4CAF50; /* Music control button color */
    padding: 10px 20px;
    border-radius: 5px;
}

.music-controls button:hover {
    background-color: #45a049;
}

/* Credit Section */
.credit {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #f0f0f0;
    font-size: 16px;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.7); /* Slight background to enhance readability */
    padding: 5px 10px;
    border-radius: 5px;
}

/* Keyframes for Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}
