/* General Settings */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Cinzel', serif; /* Fantasy-themed font */
    background-color: #2a2a2a;
    color: #f0e5d3;
    cursor: url('./assets/cursor.png'), auto; /* Custom cursor */
}

/* Container Layout */
.container {
    display: flex;
    width: 80%;
    height: 80%;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Added shadow */
    overflow: hidden; /* Ensures no overflow */
}

/* Text Panel */
.text-panel {
    background-image: url('./assets/parchment.avif'); /* Parchment background */
    background-size: cover;
    background-repeat: no-repeat;
    color: #3a3a3a;
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    margin: 10px;
    overflow-y: auto; /* Allows for scrolling if content overflows */
    position: relative; /* For absolute positioning of buttons */
}

/* Center Book Image and Play Button */
.book-btn-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Space between book image/play button and story container */
}

.book-image {
    max-width: 100%;
    height: auto;
}

.play-button {
    margin-top: 10px;
    background-color: #d2b48c; /* Tan color */
    color: #3a3a3a;
    border: 2px solid #b8860b; /* Darker border color */
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.play-button:hover {
    background-color: #b8860b; /* Darker tan on hover */
    color: #fff;
}

/* Story Container */
.story-container {
    position: relative;
}

/* Button Panel */
.button-panel {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Button Styling */
button {
    margin: 0 10px;
    padding: 10px 20px;
    font-size: 18px;
    border: 2px solid #8b4513; /* Darker border color */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Cinzel', serif; /* Fantasy-themed font */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background-color: #6a4f28; /* Dark wood background */
    color: #f0e5d3; /* Light text color */
}

#back-button {
    background-color: #a52a2a; /* Dark red, to evoke a sense of danger or urgency */
}

#save-button {
    background-color: #228b22; /* Forest green, symbolizing growth and safety */
}

/* Button Hover Effects */
#back-button:hover {
    background-color: #8b0000; /* Darker red on hover */
    border-color: #800000; /* Darker border color */
}

#save-button:hover {
    background-color: #006400; /* Darker green on hover */
    border-color: #004d00; /* Darker border color */
}

/* Modal Settings */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.8); /* Dark background with opacity */
    transition: opacity 0.5s ease; /* Smooth transition */
}

.modal-content {
    background-color: #3a3a3a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7); /* Enhanced shadow */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #fff; /* Changed hover color */
    text-decoration: none;
    cursor: pointer;
}

/* Options Styling */
.story-options a,
.modal-story-options a {
    display: block;
    background-color: #8b4513; /* Darker wood color */
    color: #f0e5d3; /* Light text color */
    border: 2px solid #6a4f28; /* Matching border color */
    border-radius: 8px;
    padding: 10px 20px;
    margin: 10px 0;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.story-options a:hover,
.modal-story-options a:hover {
    background-color: #6a4f28; /* Darker wood color on hover */
    color: #f0e5d3; /* Light text color */
    border-color: #8b4513; /* Darker border color */
}

/* Story Text Styling */
.story-text {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker background for better readability */
    padding: 10px;
    border-radius: 8px;
    color: #f0e5d3; /* Light text color */
}

/* Option Text Styling */
.option-text {
    background-color: #3e3e3e; /* Dark background for options */
    border: 1px solid #8b4513; /* Darker border */
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    font-family: 'Cinzel', serif; /* Fantasy-themed font */
    color: #f0e5d3; /* Light text color */
}

.option-text a {
    color: #ffd700; /* Gold color for links */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.option-text a:hover {
    color: #ff8c00; /* Orange color on hover */
}



