/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography - Steampunk-inspired for headings and modern for body */
body {
    font-family: 'Roboto Slab', serif; /* Modern slab serif for body text */
    line-height: 1.6;
    color: #3a2e22; /* Darkened text color for better contrast */
    background-color: #f2e5bc; /* Parchment Beige for background */
    background-image: url('images/background.png'); /* Path to your background image */
    background-repeat: no-repeat;
    background-size: cover; /* Ensures background covers the entire area */
    background-attachment: fixed; /* Background stays fixed during scroll */
    background-blend-mode: multiply; /* Blends background with color */
    opacity: 0.9; /* Adjusted for a more faded background */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'IM Fell English SC', serif; /* Old-world feel for headings */
    color: #806c50; /* Darkened Brass Gold for headings */
    font-weight: normal; /* Maintain font style */
    font-size: 110%; /* Increases font size by 10% */
}

a {
    color: #9e7053; /* Darkened Copper Red for links */
    text-decoration: none; /* No underline for a clean look */
}

a:hover {
    text-decoration: underline; /* Underline on hover for accessibility */
}

/* Layout */
.container {
    max-width: 1200px; /* Max width for content */
    margin: auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    display: flex; /* Makes the header a flex container */
    flex-direction: column; /* Stacks child elements vertically */
    align-items: flex-start; /* Centers items vertically */
    justify-content: space-between; /* Spreads items out */
    padding: 20px 0; /* Adjust padding as needed */
}

.logo {
    width: 100px; /* Specific logo width */
    height: auto;
    margin-bottom: 10px;
}

/* Navigation Styles */
nav {
    display: block;
    text-align: center;
    justify-content: space-around;
    padding: 10px 0;
}


nav ul {
    list-style: none;
}

.nav-item {
    margin: 0 5px;
}

.nav-item a {
    color: #564a3e; /* Lightened Parchment Beige for nav links */
    padding: 7px 15px;
    border-radius: 4px; /* Rounded corners for nav links */
    transition: background-color 0.3s;
}

.nav-item a:hover {
    background-color: #564a3e; /* Darkened Victorian Velvet for hover effect */
}

/* Main Section Styles */
.main {
    text-align: center;
    padding: 50px 20px;
}

.welcome-text {
    margin-bottom: 10px;
    align-self: flex-start;
    font-size: 150%;
    flex: 1; /* Allows the title to fill the space to the right of the logo */
    padding-left: 20px;
}

/* AI Chat Integration Section */
.chat-section {
    max-width: 1000px;
    margin: 20px auto; /* Centers the section with auto margin on the sides and a top margin */
    padding: 40px 20px; /* Padding inside the chat section */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds a subtle shadow around the chat section */
    background: #E8E8E8; /* Light grey background for the chat section */
    border-radius: 8px; /* Rounded corners for the chat section */
}

.tab-nav {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0; /* Margin below the nav to separate from content */
    border-bottom: 2px solid #e0e0e0; /* Border to differentiate tabs from content */
}

.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    border-radius: 8px 8px 0 0;
    color: #666;
    transition: color 0.3s ease; /* Smooth transition for color changes */
}

.tab-button:hover {
    color: #333; /* Darker text on hover for better interaction feedback */
}

.tab-button.active {
    color: #000; /* Black color for the active tab for high visibility */
    border-bottom: 3px solid #3498db; /* Blue bottom border for the active tab */
}

.tab-content {
    display: flex;
    justify-content: center;
    margin-top: 20px; /* Maintains the original margin-top value for consistency */
    padding: 20px;
    background: white; /* White background for the content area */
    border-radius: 0 8px 8px 8px; /* Rounded corners for the content area */
    border: 1px solid #e0e0e0; /* Border around the content area */
}

.tab-pane {
    display: none; /* Keeps non-active panes hidden */
}

.tab-pane.active {
    display: block; /* Shows the active pane */
}

/* Button Styles */
button {
    background-color: #806c50; /* Darkened Brass Gold for buttons */
    color: #efe0c9; /* Lightened Parchment Beige for button text */
    padding: 10px 20px;
    border: none;
    border-radius: 4px; /* Rounded corners for buttons */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #9e7053; /* Slightly lighter Brass Gold on hover */
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd; /* Light grey border for inputs */
}

input[type="submit"] {
    background-color: #3a2e22; /* Darkened Wood Brown for submit button */
    color: #efe0c9; /* Lightened Parchment Beige for submit button text */
    padding: 10px 20px;
    border: none;
    border-radius: 4px; /* Rounded corners for submit button */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #564a3e; /* Darkened Victorian Velvet on hover */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    border: 1px solid #ddd; /* Light grey border for table cells */
    text-align: left;
}

th {
    background-color: #3a2e22; /* Darkened Wood Brown for table headers */
    color: #efe0c9; /* Lightened Parchment Beige for table headers */
}

tr:nth-child(even) {
    background-color: #f2e5bc; /* Zebra striping for tables */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .nav-item {
        margin-bottom: 5px;
        font-size: 75%;
    }

    .nav-item a {
        display: block;
        width: 100%;
    }

    .container,
    .chat-section {
        padding: 0 10px;
    }
}

/* Custom animations or transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: 2s;
}

/* Utility classes for spacing, visibility, etc. */
.hidden {
    display: none;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ... other styles as needed */
/* Section Headers */
.section-header {
    text-align: center;
    padding: 2rem 0;
    color: #3a2e22; /* Dark Brown Text */
    font-family: 'IM Fell English SC', serif;
}

.section-header h2 {
    font-size: 2rem; /* Slightly larger than the other headings */
    margin-bottom: 1rem;
    color: #806c50; /* Darkened Brass Gold */
}

.section-header p {
    font-family: 'Roboto Slab', serif;
    font-size: 1.1rem;
    color: #3a2e22; /* Dark Brown Text */
}

/* Resource List */
.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Resource Item */
.resource-item {
    background-color: #f2e5bc; /* Parchment Beige */
    border: 1px solid #ddd; /* Light grey border */
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Adds subtle shadow */
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
}

.resource-item h3 {
    font-family: 'IM Fell English SC', serif;
    color: #806c50; /* Darkened Brass Gold */
    margin-bottom: 0.5rem;
}

.resource-item p {
    font-family: 'Roboto Slab', serif;
    font-size: 0.9rem;
    color: #3a2e22; /* Dark Brown Text */
}

/* Contact Section */
.contact-section {
    background-color: #E8E8E8; /* Light grey background */
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: #2c2217; /* Darkened Brown */
    color: #efe0c9; /* Parchment Beige */
    padding: 1rem 0;
    font-family: 'Roboto Slab', serif;
}

.footer p {
    font-size: 0.9rem;
}

.footer a {
    color: #efe0c9; /* Parchment Beige */
    transition: color 0.3s ease; /* Smooth color transition */
}

.footer a:hover {
    color: #f2e5bc; /* Lighter Parchment Beige for hover effect */
}

/* Responsive Grid for Resource List */
@media (max-width: 768px) {
    .resource-list {
        grid-template-columns: 1fr; /* Full width columns on smaller screens */
    }
}


/* Footer Styles */
.footer {
    background-color: #2c2217; /* Darkened Brown for footer */
    color: #efe0c9; /* Lightened Parchment Beige for footer text */
    text-align: center;
    padding: 20px 0;
}

.footer p {
    margin-bottom: 10px; /* Space below paragraph text */
}

.footer a {
    color: #806c50; /* Darkened Brass Gold for footer links */
    transition: color 0.3s ease; /* Smooth color transition */
}

.footer a:hover {
    color: #efe0c9; /* Lightened Parchment Beige for hover effect */
}
/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .header {
        flex-direction: column; /* Stacks items vertically on smaller screens */
    }

    .welcome-text {
        order: 2; /* Moves the title below the logo */
        margin-top: 10px; /* Adds space between the logo and the title */
    }

    .nav {
        order: 3; /* Moves navigation to the bottom */
        width: 100%; /* Full width for the nav */
        justify-content: center; /* Center navigation items */
    }
}