* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Playfair Display", serif; */
    font-family: "Cormorant Garamond", serif;
    /* font-family: "TildaSansLight"; */
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    /* font-family: 'Arial', sans-serif; */
    line-height: 1.6;
    color: #333;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    flex-shrink: 0;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 560px;
    margin: 0 auto;
    
}

.hero {
    /* background: url('./img/hero.webp') center/cover no-repeat; */
    /* background: url('./img/hero-low.webp') center/cover no-repeat; */
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    position: relative;
    padding: 0;

}

/* .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
} */

.background-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: brightness(50%);

}

#background-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /* z-index: 0; */
    backdrop-filter: blur(4px);
        /* animation: blur 4s ease 0s;
    -webkit-animation: blur 4s ease 0s;
    -moz-animation: blur 4s ease 0s; */
}

/* @keyframes blur {
    0%,
    90% {
        backdrop-filter: blur(0px);
      -webkit-filter: blur(0px);
      -moz-filter: blur(0px);
      -o-filter: blur(0px);
      -ms-filter: blur(0px);
    }
    50% {
        backdrop-filter: blur(50px);
      -webkit-filter: blur(50px);
      -moz-filter: blur(50px);
      -o-filter: blur(50px);
      -ms-filter: blur(50px);
    }
  } */


.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.hero h1 {
    font-size: 202px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: lighter;
}

.hero .title {
    font-size: 202px;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    font-weight: lighter;
}

.vertical-line {
    border-left: 1px solid white;
    height: 250px;
}

.hero h1 span {
    margin: 0 20px;
    font-size: 202px;
    font-weight: 100;
}

.hero p {
    /* margin-top: 20px; */
    font-size: 52px;
}

.greeting-countdown-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.greeting-countdown-section .container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    /* height: 50%; */
}

.greeting-countdown-section .vertical-line {
    border-left: 1px solid black;
    height: 15%;
}

.greeting-countdown-section .dear-guests {
    font-size: 52px;
    font-weight: 600;
    /* font-family: "TildaSansRegular"; */
}

.greeting-countdown-section p {
    font-size: 20px;
    margin-top: 20px;
    /* font-weight: 600; */
    /* font-family: "TildaSansRegular"; */
}

.wedding-before-title {
    font-size: 35px;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.countdown div {
    font-size: 36px;
}

.program-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.program-title {
    font-size: 36px;
    font-weight: 600;
    flex-grow: 1;
}

.program ul {
    flex-grow: 2;
    list-style: none;
    margin-top: 50px;
}

.program ul li {
    /* margin: 10px 0; */
    font-size: 26px;
    line-height: 45px;
}

.program ul li span {
    font-size: 52px;

}

.location iframe {
    width: 100%;
    height: 300px;
    border: 0;
    margin-top: 20px;
}

.location-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.location-title {
    font-size: 36px;
    font-weight: 600;
    flex-grow: 2;
    align-items: center;
}

.location-container p {
    flex-grow: 1;
    font-size: 24px;
}

.location-container iframe {
    flex-grow: 1;
}

.confirm-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.confirm-title {
    font-size: 36px;
    font-weight: 600;
    flex-grow: 1;
    align-items: center;
}

.horizontal-line {
    border-bottom: 1px solid black;
    width: 250px;
}

.confirm-text {
    flex-grow: 2;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.confirm-text p b {
    font-size: 24px;
}

.details-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 80%;   
}

.details-title {
    font-size: 36px;
    font-weight: 600;
    align-items: center;
    /* flex-grow: 1; */
}

.details-img {
    /* flex-grow: 2; */
    max-width: 65px;
    height: auto;
}

.details-container p {
    font-size: 20px;
    /* flex-grow: 2; */
}

.details,
.confirm,
.final-photo {
    background-color: #f9f9f9;
}

.final-photo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.final-photo {
    background: url('./img/final-low.webp') center/cover no-repeat;
    background-position-x: 68%;
    border-left: 500px solid white;
    border-top: 50px solid white;
    border-right: 500px solid white;
    border-bottom: 50px solid white;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.final-photo .container {
    position: relative;
    z-index: 2;
    font-size: 38px;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .greeting .dear-guests {
        font-size: 72px;
        /* font-weight: 600; */
    }
    
    .greeting-countdown-section p {
        font-size: 32px;
        margin-top: 20px;
    }
    
    .wedding-before-title {
        font-size: 48px;
        font-weight: 500;
    }
    
    .countdown {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .countdown div {
        font-size: 38px;
    }

    .program-title {
        font-size: 52px;
    }
    .program ul li {
        margin: 10px 0;
        font-size: 32px;
    }

     .location-container {
        height: 80%;
     }
     .location-title {
        font-size: 52px;
     }

     .location-container p {
        font-size: 32px;
     }

     .details-title {
        font-size: 52px;
    }
    
    .details-container p {
        font-size: 32px;
    }

    .confirm-title {
        font-size: 52px;
    }

    .details-img {
        max-width: 95px;
        height: auto;
    }

    .confirm-text {
        font-size: 32px;
    }
    
    .confirm-text p b {
        font-size: 40px;
    }

    .final-photo {
        background-size: 350%;
        background-position-x: 61%;
        border-left: 100px solid white;
        border-top: 50px solid white;
        border-right: 100px solid white;
        border-bottom: 50px solid white;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    
    .final-photo .container {
        font-size: 62px;
    }
}

@media (min-width: 500px) and (max-width: 768px) {
    .greeting .dear-guests {
        font-size: 48px;
        /* font-weight: 600; */
    }
    
    .greeting-countdown-section p {
        font-size: 20px;
        margin-top: 20px;
    }
    
    .wedding-before-title {
        font-size: 32px;
        font-weight: 500;
    }
    
    .countdown {
        margin-top: 20px;
    }
    
    .countdown div {
        font-size: 24px;
    }

    .program-title {
        font-size: 32px;
    }
    .program ul li {
        margin: 10px 0;
        font-size: 24px;
        line-height: 32px;
    }

    .program ul li span {
        font-size: 40px;
    }

     .location-container {
        /* height: 80%; */
     }
     .location-title {
        font-size: 32px;
     }

     .location-container p {
        font-size: 24px;
     }

     .details-title {
        font-size: 32px;
    }
    
    .details-container p {
        font-size: 24px;
    }

    .details-img {
        max-width: 65px;
        height: auto;
    }

    .confirm-title {
        font-size: 32px;
    }

    .confirm-text {
        font-size: 24px;
    }
    
    .confirm-text p b {
        font-size: 28px;
    }

    .final-photo {
        background-size: 350%;
        background-position-x: 61%;
        border-left: 70px solid white;
        border-top: 50px solid white;
        border-right: 70px solid white;
        border-bottom: 50px solid white;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    
    .final-photo .container {
        font-size: 40px;
    }
}

@media (max-width: 499px) {
    .hero {
        padding-top: 30%;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero h1 {
        font-size: 92px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: lighter;
    }

    .hero .title {
        font-size: 202px;
        display: flex;
        align-items: center;
        flex-direction: row;
        justify-content: space-around;
        font-weight: lighter;
    }

    .vertical-line {
        /* border-left: 1px solid white; */
        height: 120px;
    }

    .hero h1 span {
        font-size: 48px;
        margin: 0 10px;
    }

    .hero p {
        font-size: 32px;
        font-weight: lighter;
    }

    .countdown div {
        font-size: 24px;
    }

    .program-title {
        font-size: 32px;
        font-weight: 600;
    }

    .program li {
        margin: 10px 0;
        font-size: 24px;
    }

    .program li span {
        font-size: 32px;
    }

    .location-title {
        font-size: 32px;
    }
    
    .location-container p {
        font-size: 24px;
    }

    .details-title {
        font-size: 32px;
    }
    
    .details-container p {
        font-size: 24px;
    }

    .confirm-title {
        font-size: 32px;
    }
    
    .horizontal-line {
        width: 150px;
    }
    
    .confirm-text {
        font-size: 24px;
    }
    
    .confirm-text p b {
        font-size: 28px;
    }

    .final-photo {
        background-size: 350%;
        background-position-x: 61%;
        border-left: 30px solid white;
        border-top: 50px solid white;
        border-right: 30px solid white;
        border-bottom: 50px solid white;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }
}

@media (max-width: 400px) {
    section {
        /* min-height: 100vh; */
        /* scroll-snap-align: start; */
        /* display: flex; */
        /* flex-direction: column; */
        /* justify-content: center; */
        /* text-align: center; */
        padding: 30px 20px;
        /* opacity: 0; */
        /* transform: translateY(50px); */
        /* transition: all 1s ease; */
        /* flex-shrink: 0; */
    }

    .greeting-countdown-section {
        /* height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center; */
    }

    .greeting-countdown-section .container {
        /* display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center; */
        /* height: 50%; */
    }

    .greeting-countdown-section .vertical-line {
        height: 8%;
    }

    .greeting {
        /* height: 50%; */
    }

    .dear-guests {}

    .countdown-section {
        /* height: 10%; */
    }

    .greeting-countdown-section .dear-guests {
        font-size: 30px;
        font-weight: 600;
        /* font-family: "TildaSansRegular"; */
    }

    .greeting-countdown-section p {
        font-size: 18px;
        margin-top: 20px;
        /* font-weight: 600; */
        /* font-family: "TildaSansRegular"; */
    }

    .wedding-before-title {
        font-size: 26px;
        font-weight: 500;
    }

    .countdown {
        display: flex;
        justify-content: center;
        gap: 22px;
        margin-top: 20px;
    }

    .countdown div {
        font-size: 18px;
    }

    .program-title {
        font-size: 26px;
        font-weight: 600;
    }

    .program ul {
        flex-grow: 2;
        list-style: none;
        margin-top: 50px;
    }
    
    .program ul li {
        /* margin: 10px 0; */
        font-size: 18px;
        line-height: 25px;
    }
    
    .program ul li span {
        font-size: 32px;
    
    }

    .location-container {
        height: 80%;
    }

    .location-title {
        font-size: 26px;
    }
    
    .location-container p {
        font-size: 18px;
    }

    .details-title {
        font-size: 26px;
    }
    
    .details-container p {
        font-size: 18px;
    }

    .confirm-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 80%;
    }
    
    .confirm-title {
        font-size: 26px;
    }
    
    .horizontal-line {
        width: 150px;
    }
    
    .confirm-text {
        font-size: 18px;
    }
    
    .confirm-text p b {
        font-size: 20px;
    }
}