:root {
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --photo-border: #fff;
    --photo-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --font-heading: 'Special Elite', monospace;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.story-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    opacity: 0;
    /* Initial state for animation */
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.story-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-item.reverse {
    flex-direction: row-reverse;
}

/* Photo Styling */
.photo-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.photo {
    background-color: var(--photo-border);
    padding: 15px 15px 50px 15px;
    /* Polaroid style bottom padding */
    box-shadow: var(--photo-shadow);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
    filter: sepia(10%) contrast(110%);
    /* Subtle vintage feel */
}

/* Rotations */
.rotate-left .photo {
    transform: rotate(-3deg);
}

.rotate-right .photo {
    transform: rotate(2deg);
}

/* Hover effect */
.photo:hover {
    transform: scale(1.02) rotate(0deg);
    z-index: 10;
}

/* Text Styling */
.text-content {
    flex: 1;
    max-width: 500px;
}

.text-content p {
    font-family: var(--font-heading);
    font-size: 1.8rem;

    font-weight: 400;
    color: #e0e0e0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.story-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    text-align: center;
    margin-bottom: -2rem;
    /* Reduce the gap slightly */
    color: var(--text-color);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .story-container {
        padding: 2rem 1rem;
        gap: 5rem;
    }

    .story-item {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .story-item.reverse {
        flex-direction: column;
    }

    .story-title {
        font-size: 2.5rem;
        margin-bottom: -1rem;
    }

    .text-content p {
        font-size: 1.4rem;
    }

    .photo {
        padding: 10px 10px 35px 10px;
    }
}