:root {
    --font-title: 'Cinzel', serif;
    --font-subtitle: 'Marcellus', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #FDF8F0; /* Creamy beige background */
    color: #4A3F35; /* Dark brown text */
}
.bg-papyrus {
    background-color: #F5EEDC;
}
.accent-color {
    color: #C08A57; /* Muted gold/terracotta */
    font-family: var(--font-title);
}
.accent-bg {
    background-color: #C08A57;
}
.accent-border {
    border-color: #C08A57;
}
.secondary-bg {
    background-color: #EFE6D8;
}
.nav-link {
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #C08A57;
}
.timeline-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.theory-tab {
    transition: all 0.3s ease-in-out;
    font-family: var(--font-subtitle);
}
.theory-tab.active {
    background-color: #C08A57;
    color: #FDF8F0;
    transform: translateY(-2px);
}
#theory-display {
    transition: opacity 0.3s ease-in-out;
}
.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}
#pyramid-3d-container {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    margin-top: 2rem;
    border-radius: 0.75rem; /* rounded-lg */
    overflow: hidden;
    background-color: #EFE6D8; /* secondary-bg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
#pyramid-3d-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none; /* Prevent browser touch gestures */
}
.pyramid-name {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 600;
    color: #333;
    font-size: 2rem;
    font-family: var(--font-title);
    letter-spacing: 0.05em;
}
.pyramid-image-container {
    background-color: #EFE6D8;
    border: 2px solid #C08A57;
}

.pyramid-image-container img {
    filter: sepia(20%);
}

.pyramid-image-container:hover img {
    filter: sepia(0%);
}

/* Learn More Link Styling */
.learn-more-link {
    display: inline-flex;
    align-items: center;
    color: #C08A57;
    font-weight: 600;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.learn-more-link:hover {
    border-bottom-color: #C08A57;
    transform: translateX(4px);
}

.learn-more-link svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.learn-more-link:hover svg {
    transform: translateX(2px);
}

/* Main title styles */
h1, h2, h3 {
    font-family: var(--font-title);
    letter-spacing: 0.03em;
}

/* Subtitle and section header styles */
h4, h5 {
    font-family: var(--font-subtitle);
    letter-spacing: 0.02em;
}

/* Optional: Add hieroglyphic decorative elements */
.section-title::before,
.section-title::after {
    content: "☥";  /* Ancient Egyptian Ankh symbol */
    padding: 0 0.5em;
    opacity: 0.7;
}