/* Basic Reset (Keep as is or adjust if needed) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Dark Theme Adjustments --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #2a2a2a; /* Dark gray background */
    color: #cccccc; /* Light gray text */
    padding: 20px;
}

header, footer {
    background-color: #1c1c1c; /* Even darker gray for header/footer */
    color: #eeeeee; /* Slightly brighter text for header/footer */
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #444444; /* Subtle border */
}

header h1 {
    margin-bottom: 0.5rem;
    color: #ffffff; /* White title */
}

nav a {
    color: #9acd32; /* Muted green/yellow for links - gives an 'eerie' feel */
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover, nav a:focus {
    color: #bfff00; /* Brighter green/yellow on hover */
    text-decoration: underline;
}

main {
    max-width: 960px;
    margin: 20px auto;
    padding: 20px;
    background-color: #333333; /* Medium-dark gray for main content area */
    border-radius: 8px; /* Optional: slightly rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Optional: subtle shadow */
}

article section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #555555; /* Dashed separator for sections */
}

article section:last-child {
    border-bottom: none; /* Remove border from last section */
}

h2, h3 {
    color: #e0e0e0; /* Brighter gray for headings */
    margin-bottom: 10px;
    border-bottom: 1px solid #666666; /* Subtle underline for headings */
    padding-bottom: 5px;
}

p {
    margin-bottom: 10px;
}

ul {
    list-style-position: inside; /* Keeps bullets inside the list item block */
    margin-bottom: 10px;
    padding-left: 20px; /* Indent list items */
}

li {
    margin-bottom: 5px;
}

strong {
    color: #ffffff; /* Make strong text white for emphasis */
}

a {
    color: #87ceeb; /* Light sky blue for general links */
}

a:hover, a:focus {
    color: #add8e6; /* Lighter blue on hover */
}

a:visited {
    color: #dda0dd; /* Plum/light purple for visited links */
}


/* --- Map Specific Styles (Keep as is or adjust if needed) --- */
#map {
    height: 500px; /* Or your preferred height */
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #555555; /* Border matching the theme */
}

/* --- Creature Page Specific Styles --- */
figure {
    margin: 15px 0;
    text-align: center;
}

figure img {
    border: 1px solid #555555; /* Border matching the theme */
    max-width: 100%; /* Ensure image is responsive */
    height: auto;
    background-color: #444; /* Background for image area if needed */
}

figcaption {
    font-style: italic;
    font-size: 0.9em;
    color: #aaaaaa; /* Dimmer color for captions */
    margin-top: 5px;
}


footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #444444; /* Subtle border */
    font-size: 0.9em;
}

/* --- Responsive Design (Keep as is or adjust if needed) --- */
@media (max-width: 768px) {
    nav a {
        display: block;
        margin: 5px 0;
    }

    main {
        padding: 15px;
    }
}

/* --- Diary Entry Styles --- */
.entrada-diario {
    background-color: #3a3a3a; /* Slightly lighter than main background */
    padding: 15px;
    margin-bottom: 20px;
    border-left: 3px solid #9acd32; /* Accent border using nav link color */
    border-radius: 4px;
}

.entrada-diario h3 {
    border-bottom: none; /* Remove the default heading underline */
    margin-bottom: 8px;
    color: #e8e8e8;
}

.entrada-diario p {
    margin-bottom: 8px;
    color: #c0c0c0; /* Slightly dimmer text for entries */
}

.entrada-diario p:last-child {
    margin-bottom: 0;
}


/* Styles for the image tooltip */
#image-tooltip {
    position: absolute; /* Needed to position it near the cursor */
    display: none; /* Hidden by default */
    border: 1px solid #555; /* Simple border */
    background-color: #fff; /* White background */
    padding: 5px; /* Some spacing around the image */
    z-index: 1000; /* Ensure it appears above other elements */
    pointer-events: none; /* Prevent the tooltip itself from capturing mouse events */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2); /* Optional shadow for depth */
}

#image-tooltip img {
    display: block; /* Remove extra space below image */
    max-width: 150px; /* Maximum width for the thumbnail */
    max-height: 150px; /* Maximum height for the thumbnail */
    height: auto; /* Maintain aspect ratio */
}

/* Optional: Add a slight delay before showing? (Requires more JS) */
/* Optional: Style the links slightly on hover */
/* main section ul li a:hover {
    color: darkred;
} */


/* Gallery Styles */
.gallery-container {
    display: grid;
    /* Adjust columns based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Creates responsive columns */
    gap: 20px; /* Space between grid items */
    padding: 20px; /* Padding around the gallery */
}

.gallery-container figure {
    margin: 0; /* Remove default figure margin */
    border: 1px solid #ccc; /* Light border around each item */
    padding: 10px; /* Padding inside each item */
    text-align: center; /* Center the caption */
    background-color: #484646; /* Slight background color */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
}

.gallery-container figure:hover {
    transform: translateY(-5px); /* Lift item slightly on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Add shadow on hover */
}

.gallery-container img {
    max-width: 100%; /* Ensure images don't overflow their container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    margin-bottom: 10px; /* Space between image and caption */
}

.gallery-container figcaption {
    font-size: 0.9em;
    color: #f7f7f7;
}

.gallery-container figure a {
    text-decoration: none; /* Remove underline from image link */
    color: #c0c0c0;
}