/* General Styles */
body {
    margin: 0;
    font-family: "Georgia", serif;
    background-color: #f5f5dc; /* Light beige for vintage feel */
    color: #333; /* Dark text for contrast */
    line-height: 1.6;
}

header {
    background-color: #8b4513; /* SaddleBrown for a vintage header */
    color: #fff;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

header:hover {
    background-color: #6f4c3e; /* Darker shade on hover */
}

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

/* Main Layout */
#main-container {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem;
    gap: 1rem;
}

nav#timeline-nav {
    flex: 1 1 20%;
    background-color: #faf3e0; /* Slightly lighter beige */
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

nav#timeline-nav h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
}

#timeline-slider {
    margin-top: 1rem;
    margin-bottom: 1rem;
    height: 200px;
    background: linear-gradient(to right, #d2b48c, #f5deb3); /* beige gradient */
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

#timeline-slider::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 4px;
    background-color: #8b4513;
    left: 0;
}

section#event-canvas {
    flex: 2 1 50%;
    background-color: #fff;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

section#event-canvas h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
}

#event-details {
    background-color: #faf3e0;
    padding: 1rem;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 300px;
    border: 1px solid #ccc;
}

aside#inspector-panel {
    flex: 1 1 20%;
    background-color: #faf3e0;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

aside#inspector-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #8b4513;
}

#inspector-content {
    background-color: #fff;
    padding: 1rem;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #8b4513;
    color: #fff;
    position: relative;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }

    nav#timeline-nav,
    section#event-canvas,
    aside#inspector-panel {
        flex: 1 1 100%;
    }

    #event-details,
    #inspector-content {
        max-height: none;
    }
}
