* {
    box-sizing: border-box; /* Added for better box model control */
    background-color: #FFFFFF;
    /* font-family: "Poiret One", sans-serif;
    color: #000000; */
    margin: 0; /* Reset margins for consistency */
    padding: 0; /* Reset padding for consistency */
}

/* Add smooth scrolling to the entire page */
html {
    scroll-behavior: smooth;
}

.poiret-one-regular {
  font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 1rem; /* Added padding for mobile */
}

.headers {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* Added for better mobile text alignment */
    margin-bottom: 2rem; /* Added spacing */
}

.headers h1 {
    font-family: Georgia !important;
    color: rgb(51, 51, 51);
    font-size: 82px;
    font-weight: 300;
    margin: 0.5rem 0; /* Added spacing between h1 elements */
    line-height: 1.2; /* Better line height for readability */
}

.images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px; /* Added max-width for larger screens */
    height: auto;
    gap: 7rem;
    margin: 2rem 0; /* Added margin for spacing */
}

.images img {
    width: 100%;
    height: auto;
    /* Removed max-width: 800px; to allow images to be larger */
}

.postit {
    height: auto !important;
    width: 55% !important;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Added max-width for better control */
    gap: 2rem;
    margin-top: 5rem; /* Reduced for mobile */
    padding: 0 1rem; /* Added padding for mobile */
}

.text {
    text-align: center;
    font-family: "Poiret One", sans-serif;
    font-weight: lighter;
    color: #000000;
    line-height: 1.35;
    font-size: 38px;
}

.break {
    position: relative;
    width: 100%;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1px;
    height: 1px;
    background-color: #000000;
}

.disclaimer {
    font-family: "Poiret One", sans-serif;
    font-size: 39px;
    line-height: 1.35;
    font-weight: bold;
    margin-bottom: 5rem;
    text-align: center; /* Added for better mobile alignment */
}

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    .headers h1 {
        font-size: 60px; /* Reduced font size for tablet */
    }
    
    .images {
        gap: 5rem; /* Reduced gap for tablet */
    }
    
    .postit {
        width: 70% !important; /* Adjusted width for tablet */
    }
    
    .footer {
        margin-top: 4rem; /* Reduced margin for tablet */
    }
    
    .text {
        font-size: 26px; /* Reduced font size for tablet */
    }
    
    .disclaimer {
        font-size: 26px; /* Reduced font size for tablet */
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    body {
        padding: 0.5rem; /* Reduced padding for mobile */
    }
    
    .headers h1 {
        font-size: 42px; /* Further reduced font size for mobile */
    }
    
    .images {
        gap: 3rem; /* Further reduced gap for mobile */
    }
    
    .postit {
        width: 85% !important; /* Increased width for better mobile viewing */
    }
    
    .footer {
        margin-top: 3rem; /* Further reduced margin for mobile */
        gap: 1.5rem; /* Reduced gap for mobile */
    }
    
    .text {
        font-size: 22px; /* Further reduced font size for mobile */
        line-height: 1.3; /* Adjusted line height */
    }
    
    .disclaimer {
        font-size: 20px; /* Further reduced font size for mobile */
        line-height: 1.3; /* Adjusted line height */
    }
    
    .break {
        max-width: 100px; /* Reduced break line width for mobile */
    }
}

/* Small Mobile Styles (360px and below) */
@media (max-width: 360px) {
    .headers h1 {
        font-size: 36px; /* Even smaller for very small screens */
    }
    
    .text {
        font-size: 20px;
    }
    
    .disclaimer {
        font-size: 18px;
    }
}

/* Large Desktop Styles (for very wide screens) */
@media (min-width: 1200px) {
    .images {
        max-width: 1400px; /* Increased max-width for large screens */
    }
    
    .footer {
        max-width: 1000px;
    }
    
    /* Make images larger on desktop */
    .images img {
        width: 90%; /* Images will take up 90% of container on large screens */
    }
}

/* Extra Large Desktop Styles (for very wide screens) */
@media (min-width: 1600px) {
    .images img {
        width: 85%; /* Slightly smaller percentage but actual size will be larger due to bigger screen */
    }
}


/* ===== ANIMATIONS ===== */

/* Define the fade-in-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Define a subtle scale animation for celebratory effect */
@keyframes gentleScale {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    60% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Define a gentle pulse for the date */
@keyframes gentlePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

/* Initial state for animated elements */
.headers h1,
.images img,
.footer .text,
.footer .disclaimer {
    opacity: 0;
}

/* Animate headers with staggered delay */
.headers h1:nth-child(1) {
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.headers h1:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Animate calendar with celebratory gentle scale */
.images .calendar {
    animation: gentleScale 1.2s ease-out 1s forwards;
}

/* Animate post-it note with slight delay */
.images .postit {
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* Animate footer elements */
.footer .text {
    animation: fadeInUp 1s ease-out 2s forwards;
}

.footer .disclaimer {
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

/* Add a subtle fade-in for the breaks */
.footer .break {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 2.2s forwards;
}

/* Mobile-specific animation adjustments */
@media (max-width: 768px) {
    .headers h1:nth-child(1) {
        animation: fadeInUp 0.8s ease-out 0.2s forwards;
    }
    
    .headers h1:nth-child(2) {
        animation: fadeInUp 0.8s ease-out 0.4s forwards;
    }
    
    .images .calendar {
        animation: gentleScale 1s ease-out 0.6s forwards;
    }
    
    .images .postit {
        animation: fadeInUp 0.8s ease-out 0.9s forwards;
    }
    
    .footer .text {
        animation: fadeInUp 0.8s ease-out 1.2s forwards;
    }
    
    .footer .break {
        animation: fadeInUp 0.8s ease-out 1.4s forwards;
    }
    
    .footer .disclaimer {
        animation: fadeInUp 0.8s ease-out 1.6s forwards;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .headers h1,
    .images img,
    .footer .text,
    .footer .disclaimer,
    .footer .break {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== LANGUAGE SUPPORT ===== */

/* Default: Show English, hide Russian */
.en {
    display: inline;
}

.ru {
    display: none;
}

/* When html has lang="ru", show Russian, hide English */
html[lang="ru"] .en {
    display: none;
}

html[lang="ru"] .ru {
    display: inline;
}

/* Adjust font sizes for Russian text if needed */
html[lang="ru"] .headers h1 {
    font-size: 72px; /* Slightly smaller for Russian text */
}

html[lang="ru"] .wedding-title {
    font-size: 48px;
}

html[lang="ru"] .text {
    font-size: 36px;
}

html[lang="ru"] .disclaimer {
    font-size: 22px;
}

/* Mobile adjustments for Russian */
@media (max-width: 768px) {
    html[lang="ru"] .headers h1 {
        font-size: 52px;
    }
    
    html[lang="ru"] .wedding-title {
        font-size: 24px;
    }
    
    html[lang="ru"] .text {
        font-size: 22px;
    }
    
    html[lang="ru"] .disclaimer {
        font-size: 18px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    html[lang="ru"] .headers h1 {
        font-size: 38px;
    }
    
    html[lang="ru"] .wedding-title {
        font-size: 20px;
    }
    
    html[lang="ru"] .text {
        font-size: 20px;
    }
    
    html[lang="ru"] .disclaimer {
        font-size: 16px;
        line-height: 1.3;
    }
}

/* ===== WEDDING TITLE STYLES ===== */

.wedding-title {
    text-align: center;
    font-family: "Poiret One", sans-serif;
    font-weight: lighter;
    color: #000000;
    line-height: 1.35;
    font-size: 48px;
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Mobile adjustments for wedding title */
@media (max-width: 768px) {
    .wedding-title {
        font-size: 28px;
        margin: 1.5rem 0;
        animation: fadeInUp 0.8s ease-out 0.7s forwards;
    }
}

@media (max-width: 480px) {
    .wedding-title {
        font-size: 24px;
        margin: 1rem 0;
        animation: fadeInUp 0.8s ease-out 0.5s forwards;
    }
}

/* Update animation delays to accommodate new wedding title */
/* Headers animation stays the same */
.headers h1:nth-child(1) {
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.headers h1:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

/* Calendar animation - moved later */
.images .calendar {
    animation: gentleScale 1.2s ease-out 1.5s forwards;
    transition: transform 0.5s ease;
}

/* Post-it animation - moved later */
.images .postit {
    animation: fadeInUp 1s ease-out 2s forwards;
}

/* Footer animations - moved later */
.footer .text {
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.footer .disclaimer {
    animation: fadeInUp 1s ease-out 3s forwards;
}

.footer .break {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 2.7s forwards;
}

/* Mobile animation adjustments */
@media (max-width: 768px) {
    .wedding-title {
        animation: fadeInUp 0.8s ease-out 0.7s forwards;
    }
    
    .images .calendar {
        animation: gentleScale 1s ease-out 1.2s forwards;
    }
    
    .images .postit {
        animation: fadeInUp 0.8s ease-out 1.5s forwards;
    }
    
    .footer .text {
        animation: fadeInUp 0.8s ease-out 1.8s forwards;
    }
    
    .footer .break {
        animation: fadeInUp 0.8s ease-out 2s forwards;
    }
    
    .footer .disclaimer {
        animation: fadeInUp 0.8s ease-out 2.2s forwards;
    }
}

#lang-toggle {
    transition: all 0.3s ease;
    opacity: 0.7;
}

#lang-toggle:hover {
    opacity: 1;
    background: rgba(255,255,255,0.9);
    transform: scale(1.05);
}