/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Libre Baskerville', serif;
    background-image: url('background3.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #f0e5dc;
    color: #231F20;
    line-height: 1.6;
    overflow-x: hidden;
    visibility: hidden;
}

body.password-verified {
    visibility: visible;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(249, 249, 247, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(35, 31, 32, 0.1);
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #231F20;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
}

.nav-menu a:hover {
    opacity: 0.7;
}

.nav-menu a.active {
    opacity: 1;
    font-weight: 600;
    border-bottom: 2px solid #231F20;
    padding-bottom: 2px;
}

/* Hide game navigation on mobile */
@media (max-width: 768px) {
    .nav-menu a[href="game.html"] {
        display: none;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 0;
    gap: 4px;
    z-index: 1001;
    padding: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: #231F20;
    transition: all 0.3s ease;
}

/* Main Content */
.main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    margin-top: 4rem;
}

.couple-names {
    font-family: 'Cormorant Infant', serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #231F20;
}

.wedding-details {
    margin-bottom: 3rem;
}

.wedding-date {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.wedding-location {
    font-size: 1.1rem;
    opacity: 0.8;
}

.ceremony-details,
.reception-details {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(35, 31, 32, 0.2);
}

.reception-details {
    border-bottom: none;
}

.ceremony-title,
.reception-title {
    font-family: 'Cormorant Infant', serif;
    font-size: 2.0rem;
    font-weight: 600;
    color: #231F20;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.05em;
}

.ceremony-time {
    font-size: 1.1rem;
    font-weight: 400;
    color: #231F20;
    text-align: center;
    margin-bottom: 0.5rem;
}

.ceremony-location {
    font-size: 1.2rem;
    font-weight: 400;
    color: #231F20;
    text-align: center;
    margin-bottom: 0.3rem;
}

.ceremony-address {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.countdown {
    font-family: 'Cormorant Infant', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #231F20;
    letter-spacing: 0.02em;
}

#days {
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    body {
        background-image: url('background_desktop.png');
    }
    
    .page-title {
        margin-top: 50px;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        background-image: url('background_mobile.png');
        background-attachment: scroll;
        background-size: contain;
        background-position: -25px top;
    }
    
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: rgba(249, 249, 247, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        gap: 1.5rem;
        height: auto;
        min-height: calc(100vh - 80px);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }

    .couple-names {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .wedding-date {
        font-size: 1.1rem;
    }

    .wedding-location {
        font-size: 1rem;
    }

    .countdown {
        font-size: 1.5rem;
    }

    .hero {
        padding: 1rem;
    }

    .header {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2rem;
    }

    .countdown {
        font-size: 1.3rem;
    }
}

/* Navigation Toggle Animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Page Content Styles */
.page-content {
    min-height: 100vh;
    padding-top: 80px;
}

.page-hero {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background-color: transparent;
}

.page-title {
    font-family: 'Cormorant Infant', serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #231F20;
    margin-bottom: 1rem;
}

.page-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.circle-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hotels-page .circle-photo {
    object-position: center 15%;
}

.registry-page .circle-photo {
    object-position: 60% center;
}

.content-section {
    padding: 0.5rem 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.qa-page .page-title,
.hotels-page .page-title,
.registry-page .page-title,
.rsvp-page .page-title,
.parking-page .page-title {
    margin-bottom: 0;
}

.qa-page .content-section,
.hotels-page .content-section,
.registry-page .content-section,
.rsvp-page .content-section,
.parking-page .content-section {
    padding-top: 0;
}

.content-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.page-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
}

/* Q&A Styles */
.qa-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.qa-item:last-child {
    border-bottom: none;
}

.question {
    font-family: 'Cormorant Infant', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #231F20;
}

.answer {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Registry Styles */
.registry-links {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.registry-link,
.rsvp-link {
    display: block;
    text-decoration: none;
    padding: 2rem;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    color: #231F20;
}

.registry-link:hover,
.rsvp-link:hover {
    border-color: #231F20;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.registry-link h3,
.rsvp-link h3 {
    font-family: 'Cormorant Infant', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.registry-link p,
.rsvp-link p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Hotel Styles */
.hotel-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.hotel-link:hover {
    text-decoration: none;
    color: inherit;
}

.hotel-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.hotel-link:hover .hotel-item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hotel-link:hover .click-hint {
    background-color: #444;
}

.hotel-name {
    font-family: 'Cormorant Infant', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #231F20;
}


/* Parking Styles */
.parking-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.parking-link:hover {
    text-decoration: none;
    color: inherit;
}

.parking-info {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.parking-link:hover .parking-info {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.parking-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.address-text {
    text-decoration: underline;
    font-weight: 600;
}

.click-hint {
    background-color: #231F20;
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: block;
    margin: 1rem auto 0;
    text-align: center;
    width: fit-content;
}

.parking-link:hover .click-hint {
    background-color: #444;
}

.parking-info h3 {
    font-family: 'Cormorant Infant', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #231F20;
}

.parking-info p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .content-container {
        padding: 2rem;
        margin: 1rem;
    }

    .page-hero {
        padding: 3rem 1rem 1rem;
    }

    .content-section {
        padding: 1rem;
    }
}