@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Montserrat:wght@300;400;600&display=swap");

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

body {
    font-family: "Montserrat", sans-serif;
    background-color: #fffaf0;
    color: #4a4a4a;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
}

/* Header */
header {
    background: linear-gradient(135deg, #ffdfc6 0%, #f9f0e5 100%);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 1;
}

.anniversary-message {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #7e5a5a;
}

.anniversary-subtitle {
    font-size: 1.5rem;
    color: #a87e7e;
    margin-bottom: 1.5rem;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 650px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 650px;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background-color: white;
    border-radius: 10px;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1rem 0;
    cursor: pointer;
}

.slide-img {
    /*height: 550px;*/
    height: 85%;
    margin-top: 30px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 400px;
    }

    .slide {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-content {
        font-size: 1rem;
        line-height: 1.5;
    }

    .anniversary-message {
        font-size: 2.5rem;
    }

    .anniversary-subtitle {
        font-size: 1.2rem;
    }

    .timeline-content {
        width: 85%;
        margin-left: 15%;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 15%;
    }
}

.slide-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 54, 59, 0.98); /* Deeper Dusty Blue from Family Page */
    display: none; /* Hidden by default */
    z-index: 1000; /* High z-index to overlay everything */
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    z-index: 1001;
}

.lb-close {
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 20px;
}

.prev-btn,
.next-btn {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 223, 198, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #94a7ae;
    transition: all 0.3s ease;
}
.prev-btn:hover,
.next-btn:hover {
    background-color: #ffdfc6; /* Peach */
    color: #fff;
    transform: scale(1.1);
}

.content-section {
    margin: 4rem 0;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2.2rem;
    color: #7e5a5a;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e8b4b4;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: #e8b4b4;
    top: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 45%;
    margin-left: 55%;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.timeline-content::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    top: 15px;
    left: -10px;
    transform: rotate(45deg);
    border-radius: 0 0 0 10px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -10px;
    transform: rotate(-45deg);
}

.timeline-date {
    font-weight: 600;
    color: #7e5a5a;
    margin-bottom: 0.5rem;
}

/* Cards */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 500px;
    text-align: center;
}
.card a {
    /*content: "Tap to Explore ❦";*/
    font-family: "Georgia", serif;
    font-style: italic;
    font-size: 0.8rem;
    color: #ffdfc6;
    letter-spacing: 1px;
    opacity: 0.9;
}

.card-title {
    font-size: 1.5rem;
    color: #7e5a5a;
    margin-bottom: 1rem;
}

.card-image {
    height: 350px;
    background-color: #f9f0e5;
    border-radius: 5px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a87e7e;
    font-size: 3rem;
    border: 1px solid #f9f0e5;
}

.card-image > img {
    height: 300px;
}

/* Meeting with Tinder */
.tinder-section {
    background-color: #fffaf0;
    border: 2px dashed #e8b4b4;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
}

.tinder-emoji {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: #7e5a5a;
    color: white;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.footer-nav {
    margin-top: 10px;
}

.footer-return-link {
    display: inline-block;
    font-family: "Georgia", serif;
    font-style: italic;
    text-decoration: none;
    color: #ffdfc6; /* Peach */
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-top: 1px solid rgba(148, 167, 174, 0.2); /* Very faint Dusty Blue line */
}

.footer-return-link:hover {
    color: #94a7ae; /* Switches to Dusty Blue on hover */
}
