body {
    font-family: 'IM Fell English SC', serif;
    font-size: clamp(16px, 2vw, 24px);
    margin: 0;
    padding: 0;
    background: url('https://i.imgur.com/1e4IKP5.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /* Full viewport height */
    position: relative; /* Ensure positioning context for the dice image */
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Uncial Antiqua', cursive;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8); /* Enhanced drop shadow */
}

/* Paragraphs and other body text */
p {
    font-family: 'IM Fell English SC', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Enhanced drop shadow */
}

/* Menu items */
.menu-item {
    font-family: 'IM Fell English SC', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Enhanced drop shadow */
}

.content-container, #blurb {
    font-family: 'IM Fell English SC', serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7); /* Enhanced drop shadow */
}

/* Existing styles */
.content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    width: 80%;
    height: 65%;
    margin: auto;
    position: relative; /* Ensure positioning context for the dice image */
}

.content {
    display: flex;
    flex-direction: column;
}

.menu-container {
    background-color: rgba(40, 70, 56, 0.8);
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: 21%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative; 
    overflow: hidden;
    border: 6px double #2F4727; /* Outer border color */
    border-color: #2F4727 #2B3A15; /* Double border color */
    margin-bottom: 20px; /* Add margin to separate from bottom */
    height: fit-content; /* Adjust height to fit content */
}

.menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.menu-item {
    padding: 8px 10px; /* Reduced padding to fit better */
    margin: 5px 0;
    background-color: #2B4D3E;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center; /* Center the text */
}

.menu-item:hover {
    background-color: #52826B;
}

/* Different hover colors for each menu item using new IDs */
#menu-item-home:hover {
    background-color: #C5CEB6;
}
#menu-item-characters:hover {
    background-color: #B0A36F;
}
#menu-item-storylines:hover {
    background-color: #88A28D;
}
#menu-item-world-building:hover {
    background-color: #52826B;
}
#menu-item-artwork:hover {
    background-color: #686A30;
}
#menu-item-journal-blog:hover {
    background-color: #2F4727;
}
#menu-item-resources:hover {
    background-color: #1F3C2F;
}
#menu-item-about:hover {
    background-color: #2B3A15;
}
#menu-item-contact:hover {
    background-color: #0F220C;
}

.main-content {
    width: 75%; /* Rest of the screen */
    display: flex;
    flex-direction: column; /* Ensure header and content container stack vertically */
    flex-grow: 1;
    justify-content: flex-start; /* Align the header and content container to the start */
    align-items: center; /* Center the contents horizontally */
    position: relative;
}

.dice-image {
    width: 9vw; /* Adjusted size for the dice image */
    height: auto;
    position: absolute;
    top: -10vw;
}

.header {
    background-color: rgba(40, 70, 56, 0.9);
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-sizing: border-box; 
    position: relative;
    border: 6px double #88A28D; /* Outer border color */
    border-color: #88A28D #2B4D3E;
}

.header h1 {
    margin: 0;
    font-size: 2.5em;
}

.content-container {
    background-color: rgba(50, 50, 50, 0.9);
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    box-sizing: border-box; 
    flex-grow: 1; 
    overflow-y: auto; 
    position: relative;
    border: 6px double #1F3C2F; /* Outer border color */
    border-color: #1F3C2F #10291C;
    scrollbar-width: thin; /* Firefox: Thin scrollbar */
    scrollbar-color: rgba(30, 30, 30, 0.9) rgba(50, 50, 50, 0.7); /* Firefox: Thumb and track colors */
}

.image-container {
    display: flex;
    justify-content: space-between; /* Space out images slightly close together */
    position: absolute;
    bottom: 10px; /* Position at the bottom */
    right: 10px; /* Position at the right */
}

.image-container img {
    width: 7vw; /* Adjust this value to change the image size */
    height: 8vw; /* Maintain aspect ratio */
    border-radius: 10px;
    margin-left: 5px; /* Adjust this value to change the space between images */
}

#blurb {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 10px;
    max-width: 200px;
    z-index: 1000;
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Custom scrollbar styles for content-container */
.content-container::-webkit-scrollbar {
    width: 12px; /* Width of the scrollbar */
}

.content-container::-webkit-scrollbar-track {
    background: rgba(50, 50, 50, 0.7); /* Change to a gray color similar to the content-container */
    border-radius: 10px; /* Rounded corners */
    border: 2px solid rgba(26, 26, 26, 1); /* Darker border around the track */
}

.content-container::-webkit-scrollbar-thumb {
    background-color: rgba(30, 30, 30, 0.9); /* Thumb color */
    border-radius: 10px; /* Rounded corners */
    border: 3px solid rgba(50, 50, 50, 0.9); /* Border around the thumb */
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); /* Inner shadow for a 3D effect */
}

/* Custom scrollbar styles for blurb */
#blurb::-webkit-scrollbar {
    width: 6px; /* Width of the scrollbar */
}

#blurb::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8); /* Track color */
    border-radius: 10px; /* Rounded corners */
}

#blurb::-webkit-scrollbar-thumb {
    background-color: rgba(50, 50, 50, 0.8); /* Thumb color */
    border-radius: 10px; /* Rounded corners */
}

.content-container p {
    text-indent: 2em; /* Indent the first line of each paragraph */
}

/* Characters container */
.characters-container {
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Adjust the gap between images as needed */
}

/* Individual character */
.character {
    position: relative;
    border: 6px double black; /* Black double border */
    border-radius: 10px; /* Optional: Rounded corners */
    overflow: hidden;
}

/* Character image */
.character img {
    display: block;
    width: 100%;
    /*height: 100%; !* Maintain aspect ratio *!*/
    object-fit: fill;
    transition: transform 0.3s ease;
}

/* Character caption */
.character-caption {
    position: absolute;
    top: 0; /* Position at the top of the image */
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.character:hover img {
    transform: scale(1.05); /* Slight zoom effect */
}

.character:hover .character-caption {
    opacity: 1;
}

/* Contact form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(50, 50, 50, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 6px double #1F3C2F;
}

.contact-form label {
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2em;
    color: white;
}

.contact-form input,
.contact-form textarea {
    font-family: 'IM Fell English SC', serif;
    font-size: 1em;
    padding: 10px;
    border: 2px solid #2F4727;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.contact-form button {
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2em;
    padding: 10px;
    background-color: #2B4D3E;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #52826B;
}

/* Response message styles */
.response-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    display: none; /* Initially hidden */
    font-family: 'IM Fell English SC', serif;
    font-size: 1.2em;
}

.response-message.success {
    background-color: #2B4D3E;
    color: white;
}

.response-message.error {
    background-color: #FF4D4D;
    color: white;
}

/* World Building container */
.world-building-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.book {
    position: relative;
    width: 22%;
    cursor: pointer;
}

.book img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.book:hover img {
    transform: scale(1.05);
}

.hover-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book:hover .hover-text {
    opacity: 1;
}

/* Artwork container */
.artwork-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.artwork-container a {
    position: relative;
    width: 22%;
    cursor: pointer;
}

.artwork-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.artwork-container img:hover {
    transform: scale(1.05);
}
