:root {
    --primary: #8b4513;
    /* SaddleBrown - Sepia/Old feel */
    --secondary: #deb887;
    /* BurlyWood */
    --accent: #cd853f;
    /* Peru */
    --light: #fdf5e6;
    /* OldLace */
    --dark: #3e2723;
    --text: #4a4a4a;
}

body {
    font-family: 'Times New Roman', serif;
    /* Nostalgic font */
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: 'Georgia', serif;
    color: var(--dark);
}

/* Header */
header {
    background: var(--dark);
    color: var(--secondary);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(62, 39, 35, 0.7), rgba(62, 39, 35, 0.7)), url('../images/old_school_bg.jpg');
    /* Need a placeholder or gradient */
    background-attachment: fixed;
    /* Parallax Effect */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 150px 20px;
    /* Increased padding */
    margin-bottom: 2rem;
    min-height: 60vh;
    /* Ensure it takes up good screen space */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h1 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Sections */
section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 10px auto 0;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--secondary);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Chatbot Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    /* Chat readable */
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-input-area {
    padding: 10px;
    background: #eee;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#send-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Chat Messages */
.message {
    margin-bottom: 10px;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.message.bot {
    background: var(--secondary);
    color: var(--dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    animation: zoomIn 0.3s;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 5px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

html {
    height: 100%;
}

body {
    font-family: 'Times New Roman', serif;
    /* Nostalgic font */
    background-color: var(--light);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 18px;
    /* Increased from default */

    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Chat Minimized State */
#chat-widget.minimized {
    height: auto !important;
}

#chat-widget.minimized .chat-body,
#chat-widget.minimized .chat-input-area {
    display: none;
}

#modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Responsive */
@media (max-width: 600px) {
    #chat-widget {
        width: 100%;
        height: 70vh;
        /* Increased from 40% to 70vh for better visibility */
        bottom: 0;
        right: 0;
        border-radius: 10px 10px 0 0;
    }
}