/* CSS Stylesheet for Project 4 
   Theme: Lord of the Rings / Middle-earth
*/

/* --- General Page Styles --- */
body {
    font-family: 'Georgia', serif; /* Serif font looks more "fantasy/book" like */
    background-color: #f4e4bc;     /* Parchment / Old Paper color */
    color: #2b1b0e;                /* Dark brown text for readability */
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* --- Header --- */
header {
    background-color: #3b5249; /* Elven Green */
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #d4af37; /* Gold border */
    margin-bottom: 30px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px #000;
}

/* --- Main Layout --- */
main {
    max-width: 800px;
    margin: 0 auto; /* Centers the content */
    background-color: #fffaf0; /* Slightly lighter paper color */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #c2a77a;
}

/* --- Headings --- */
h2 {
    color: #8b4513; /* Saddle Brown */
    border-bottom: 2px solid #d4af37; /* Gold underline */
    padding-bottom: 5px;
}

h3 {
    color: #556b2f; /* Dark Olive Green */
    margin-top: 20px;
}

/* --- Sections --- */
section {
    margin-bottom: 40px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
}

hr {
    border: 0;
    height: 1px;
    background: #d4af37; /* Gold divider */
    margin: 30px 0;
}

/* --- 1. Image Gallery --- */
.image-gallery img {
    margin: 10px;
    border: 5px solid #eee; /* Picture frame effect */
    box-shadow: 2px 2px 5px #ccc;
    vertical-align: middle;
}

/* --- 2. Thumbnail Section --- */
.thumbnail-section figure {
    text-align: center;
    margin: 0;
    background-color: #f0f0f0;
    padding: 10px;
    display: inline-block;
    border: 1px solid #ccc;
}

.thumbnail-section img {
    transition: transform 0.2s; /* Adds a small hover animation */
}

.thumbnail-section img:hover {
    transform: scale(1.05); /* slightly zooms in on hover */
    cursor: pointer;
}

figcaption {
    font-style: italic;
    color: #555;
    margin-top: 5px;
    font-size: 0.9em;
}

/* --- 3. Text Wrapping --- */
.content-wrapper {
    background-color: #fafafa;
    padding: 15px;
    border: 1px dashed #aaa;
}

/* The specific class for wrapping the text */
.float-img {
    float: left;        /* Floats image to the left */
    margin-right: 20px; /* Space between image and text */
    margin-bottom: 10px;
    border: 3px solid #3b5249; /* Green border */
    border-radius: 4px;
}

/* Clearfix hack to ensure container stretches to fit floated content */
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* --- 4. Multimedia --- */
.media-section {
    text-align: center;
    background-color: #e8f5e9; /* Very light green background */
}

audio {
    margin-bottom: 20px;
    width: 80%;
}

iframe {
    border: 4px double #556b2f !important; /* Double green border for the video */
}

/* --- 5. Custom Lists --- */
.lists-section ul.custom-bullets {
    list-style-image: url("https://cdn0.iconfinder.com/data/icons/typicons-2/24/star-64.png"); /* The Star Icon */
    padding-left: 40px;
}

.lists-section li {
    margin-bottom: 10px;
    padding-left: 5px;
}

.lists-section a {
    text-decoration: none;
    color: #b22222; /* Firebrick red links */
    font-weight: bold;
}

.lists-section a:hover {
    text-decoration: underline;
    color: #d4af37; /* Gold on hover */
}

/* --- Footer --- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}