body {
    margin: 0;
    font-family: 'Old Standard TT', serif; /* Vintage-looking serif font */
    color: #4a3a2e; /* Dark brown/sepia-like text */
    background-color: #f5e6cc; /* Light cream/parchment background */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    background-image: url('vintage_paper_texture.png'); /* Add a paper texture */
    background-size: cover;
    background-attachment: fixed;
}

.container {
    max-width: 960px;
    width: 100%;
    background-color: #fdf5e6; /* Slightly lighter cream for content area */
    border: 5px solid #8b7355; /* Vintage border color */
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3), 
                -5px -5px 15px rgba(255, 255, 255, 0.2) inset; /* Soft shadow and inner highlight */
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 0; /* Ensure container has a stacking context */
}

/* Pseudo-element for an overlay texture inside the container */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('grain_overlay.png'); /* Subtle grain texture */
    opacity: 0.15;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1;
}

header {
    margin-bottom: 30px;
    border-bottom: 2px dashed #a08c6d; /* Dashed separator */
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Crete Round', serif; /* Stronger, display-style font for titles */
    font-size: 3em;
    color: #5c473a;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
    margin: 0;
}

/* New Past Statements Section Styles */
.past-statements-section {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #e0d0b0; /* A darker cream/beige for contrast */
    border: 3px solid #6d5b4d; /* Stronger border */
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    text-align: center;
}

.past-statements-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('grain_overlay.png');
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

.past-statements-section h2 {
    font-family: 'Crete Round', serif;
    font-size: 2.8em; /* Very big list title */
    color: #4a3a2e;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.past-statements-section h2::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    background: #4a3a2e;
    margin: 10px auto 0;
}

.statement-category {
    margin-bottom: 25px;
    text-align: left;
    background-color: #fdfaf1; /* Lighter background for categories */
    border: 2px solid #a08c6d;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.statement-category h3 {
    font-family: 'Crete Round', serif;
    font-size: 1.8em;
    color: #5c473a;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px dashed #a08c6d;
    padding-bottom: 10px;
}

.statement-category ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
}

.statement-category li {
    margin-bottom: 10px;
    color: #4a3a2e;
    font-size: 1.1em;
    line-height: 1.5;
    position: relative;
    padding-left: 25px; /* Space for custom bullet */
}

.statement-category li::before {
    content: '•'; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #8b7355;
    font-weight: bold;
    font-size: 1.2em;
    top: -2px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height / width * 100) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 30px;
    border: 3px solid #8b7355; /* Frame around video */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.object-gallery {
    margin-bottom: 30px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    border-top: 2px dashed #a08c6d;
    padding-top: 20px;
}

.object-gallery h3 {
    font-family: 'Crete Round', serif;
    font-size: 1.8em;
    color: #5c473a;
    margin-top: 0;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center; /* Center the grid items themselves */
}

.gallery-item {
    width: 200px;
    height: 250px; /* Ensure fixed height for consistent flip */
    perspective: 1000px; /* Apply perspective to each item */
    cursor: pointer;
    box-sizing: border-box; /* Include padding in width/height */
}

.card-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s; /* Smooth flip transition */

    /* Apply common card styling here */
    border: 1px solid #d3c4a2;
    background-color: #fdfaf1;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.card-flipper:hover {
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2), 
                -2px -2px 8px rgba(255, 255, 255, 0.1) inset; /* Enhanced shadow on hover */
    transform: translateY(-3px); /* Slight lift effect */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Revert hover on flipper for flipped state to avoid weird animations */
.card-flipper.flipped:hover {
    transform: rotateY(180deg); /* Maintain flipped state */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1); /* Revert shadow to normal */
}

.card-flipper.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* Hide the back of the card when not facing user */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align content to top for number, then image */
    align-items: center;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}

.card-front {
    transform: rotateY(0deg);
    background-color: #fdfaf1; /* Match initial card background */
}

.card-back {
    transform: rotateY(180deg);
    background-color: #e0d0b0; /* Different background for the back */
    color: #4a3a2e;
    justify-content: center; /* Center text vertically */
    font-family: 'Crete Round', serif;
    font-size: 1.6em;
    line-height: 1.2;
    padding: 20px; /* More padding for text on back */
}

/* Image and Number styling inside card-front */
.card-front .item-number {
    position: static; /* Let it flow normally */
    margin-bottom: 10px; /* Space between number and image */
    margin-top: 5px; /* Adjust top margin */
}

.card-front img {
    max-width: calc(100% - 20px); /* Account for padding */
    max-height: calc(100% - 60px); /* Account for number height and padding */
    height: auto;
    width: auto; /* Allow image to scale down */
    object-fit: contain; /* Ensure image fits without cropping */
    border: 3px solid #8b7355;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.item-number {
    font-family: 'Crete Round', serif;
    font-size: 1.5em;
    color: #5c473a;
    background-color: #e0d0b0; /* Background for the number */
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #8b7355;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.content-section {
    text-align: left;
    margin-bottom: 30px;
    margin-top: 30px; /* Added margin-top for spacing */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.content-section h2 {
    font-family: 'Crete Round', serif;
    font-size: 2em;
    color: #5c473a;
    margin-top: 0;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: #a08c6d;
    margin-top: 5px;
    margin-left: 20%;
}

.content-section p {
    line-height: 1.6;
    margin-bottom: 1em;
}

footer {
    border-top: 2px dashed #a08c6d;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 0.9em;
    color: #6d5b4d;
    position: relative;
    z-index: 2;
}

/* Debate Section Styles */
.debate-section {
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #e0d0b0; /* A darker cream/beige for contrast */
    border: 3px solid #6d5b4d; /* Stronger border */
    box-shadow: 7px 7px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
    text-align: center;
}

.debate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('grain_overlay.png');
    opacity: 0.2; /* Slightly more prominent grain for this section */
    pointer-events: none;
    z-index: 1;
}

.debate-section h2 {
    font-family: 'Crete Round', serif;
    font-size: 2.2em;
    color: #4a3a2e;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.debate-section h2::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    background: #4a3a2e;
    margin: 10px auto 0;
}

.debate-statements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.debate-statement {
    background-color: #fdfaf1; /* Lighter background for individual notes */
    border: 2px solid #a08c6d;
    padding: 20px;
    border-radius: 8px; /* Slightly rounded corners for a 'note' feel */
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
    font-family: 'Old Standard TT', serif;
    font-size: 1.1em;
    line-height: 1.5;
    color: #4a3a2e;
    position: relative;
    z-index: 2; /* Ensure statements are above the grain overlay */
    padding-top: 40px; /* Add space for the number at the top */
}

.statement-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Crete Round', serif;
    font-size: 1.3em;
    color: #5c473a;
    background-color: #e0d0b0; /* Background for the number */
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #8b7355;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.debate-statement:nth-child(even) {
    background-color: #f5f0e6; /* Alternate background for a subtle variation */
}

.debate-statement p {
    margin: 0;
}

/* New styles for Debate Vocabulary section */
.debate-vocabulary-box {
    margin-top: 40px;
    padding: 25px;
    background-color: #fdfaf1; /* Lighter background than the main debate section */
    border: 2px solid #a08c6d;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    z-index: 2;
}

.debate-vocabulary-box h3 {
    font-family: 'Crete Round', serif;
    font-size: 1.8em;
    color: #5c473a;
    margin-top: 0;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.debate-vocabulary-box h3::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: #a08c6d;
    margin: 5px auto 0;
}

.debate-vocabulary-box p {
    font-size: 1em;
    color: #6d5b4d;
    margin-bottom: 20px;
}

.vocabulary-lists {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allow lists to wrap on smaller screens */
}

.vocabulary-list {
    background-color: #e0d0b0;
    border: 1px solid #8b7355;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    flex: 1; /* Allow items to grow */
    min-width: 200px; /* Minimum width for each list */
    max-width: 45%; /* Max width to keep them side-by-side */
    text-align: left;
}

.vocabulary-list h4 {
    font-family: 'Crete Round', serif;
    font-size: 1.4em;
    color: #4a3a2e;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px dashed #6d5b4d;
    padding-bottom: 5px;
}

.vocabulary-list ul {
    list-style: none; /* Remove default bullet points */
    padding: 0;
    margin: 0;
    columns: 2; /* Arrange items in two columns if space allows */
    column-gap: 20px;
}

.vocabulary-list li {
    margin-bottom: 8px;
    color: #4a3a2e;
    font-size: 0.95em;
    position: relative;
    padding-left: 15px; /* Space for custom bullet */
}

.vocabulary-list li::before {
    content: '•'; /* Custom bullet point */
    position: absolute;
    left: 0;
    color: #8b7355;
    font-weight: bold;
}

/* Basic responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    .content-section h2, .object-gallery h3 {
        font-size: 1.8em;
    }
    .past-statements-section h2 {
        font-size: 2.2em;
    }
    .past-statements-section .statement-category h3 {
        font-size: 1.6em;
    }
    .past-statements-section .statement-category li {
        font-size: 1em;
    }
    .container {
        padding: 20px;
        margin: 10px;
    }
    body {
        padding: 10px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .gallery-item {
        width: 180px;
        height: 220px;
    }
    .card-back {
        font-size: 1.4em;
    }
    .debate-section {
        padding: 20px;
    }
    .debate-section h2 {
        font-size: 1.9em;
    }
    .debate-statements-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .debate-statement {
        font-size: 1em;
        padding: 15px;
        padding-top: 35px; /* Adjust padding for smaller screens */
    }

    .statement-number {
        font-size: 1.1em;
        padding: 2px 6px;
    }

    .vocabulary-lists {
        flex-direction: column; /* Stack lists on smaller screens */
        gap: 20px;
    }

    .vocabulary-list {
        max-width: 100%; /* Full width when stacked */
        min-width: unset; /* Remove min-width constraint */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    .content-section h2, .object-gallery h3 {
        font-size: 1.5em;
    }
    .past-statements-section h2 {
        font-size: 1.8em;
    }
    .past-statements-section .statement-category h3 {
        font-size: 1.4em;
    }
    .past-statements-section .statement-category li {
        font-size: 0.9em;
    }
    .container {
        border-width: 3px;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Stack items on very small screens */
    }
    .gallery-item {
        width: 100%; /* Take full width in single column */
        max-width: 250px; /* Cap max width */
        height: 300px;
    }
    .card-back {
        font-size: 1.2em;
    }
    .debate-section {
        padding: 15px;
    }
    .debate-section h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .debate-statements-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
        gap: 15px;
    }
    .debate-statement {
        font-size: 0.95em;
        padding: 12px;
        padding-top: 30px; /* Adjust padding for smallest screens */
    }

    .statement-number {
        font-size: 1em;
        padding: 1px 5px;
    }

    .vocabulary-list ul {
        columns: 1; /* Single column for words on very small screens */
    }
}