
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

#container {
    display: none;
    text-align: center;
}

#pwd-page {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    height: 100%;
    text-align: center;
    place-items: center;
}

#pwd-page-form {
    width: 100%;
    height: 100vh;
    place-items: center;
    background-image: url('/images/hero-img.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 0 auto;
    object-fit: contain;
}

#pwd-page-form h2 {
    margin-top: 3.5rem;
}

#validate {
    font-size: medium;
    padding: 5px;
    border-radius: 10px;
}

#pswd button {
    background-color: #2a5b61;
    color: #d8eeef;
    font-size: medium;
    padding: 5px;
    border-radius: 10px;
}

a:link {
    color: #2a5b61;
    text-decoration: none;
    font-family: 'Source Sans 3',serif;
}

a:visited {
    color: #222021;
}

a:hover {
    color: royalblue;
}

a:active {
    color: #2a5b61;
}

/* section {
    margin-bottom: 3.5rem;
} */

.header {
    padding-top: 2rem;
    padding-bottom: 5rem;
    width: 100%;
    height: 120vh;
    background-size: cover;
    background-position: center center;
}

#couple-name {
    width: 100%;
    height: 35vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

h1 {
    font-family: 'Melinda', sans-serif;
    font-size: 85px ;
    margin-bottom: 0;
    color: #2a5b61;
    font-weight: 200;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
}

.header-nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.header-nav-list li {
    font-family: 'Source Sans 3', sans-serif;
    padding: 10px;
    margin-right: 5px;
    font-size: 15px;
}

#countdown-container {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    font-family: sans-serif;
    background-color: #f9f4ed;
    background-image: url('/images/bg-flower-01.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.countdown-container {
    color: #333;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

#countdown {
    display: flex;
    justify-content: space-around;
    width: 500px;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    margin-left: auto;
    margin-right: 2rem;
}

.time {
    padding: 25px;
    text-align: center;
    border: solid 1px gray;
    border-radius: 5px;
    background-color: #f9f4ed;
    margin-right: 2rem;
    margin-left: 0;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.time span {
    font-family: 'Source Sans 3', sans-serif;
    display: block;
    font-size: 50px;
    font-weight: 300;
}

.time p {
    font-family: 'Source Sans 3', sans-serif;
}

.story {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-color: #f9f4ed;
    background-image: url('/images/bg-flower-01.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.decor {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 30%;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    /* border: solid 3px red; */
}

.decor img {
    display: block;
    width: 50%;
    height: 30%;
    background-repeat: no-repeat;
    animation-name: slideUp;
    animation-duration: 2s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
}

h2 {
    font-family: 'Melinda', sans-serif;
    font-size: 60px;
    font-weight: 200;
    text-align: center;
    vertical-align: middle;
    padding: 20px;
    color: #2a5b61;
    /* margin-top: -2rem; */
    /* animation: slideIn 2s ease-out forwards;
    animation-timeline: view(); */
    /* border: solid 3px green; */
}

.story-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;    
    padding: 20px;
    gap: 50px;
}

.story-card {
    font-family: 'Source Sans 3', sans-serif;
    width: 50%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

h3 {
    padding-bottom: 10px;
}

#section-story {
    display: grid;
    grid-template-columns: 1fr;
    padding-bottom: 5rem;
}

#section-story-card {
    width:100%;
    background-color: #f9f4ed;
    text-align: center;
}

.story-img-container {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    width: 100%;
    height: 100%;
    gap: 10px;
}


#full-photo {
    display: flex;
    grid-column: span 2;
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 5;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
}

#couple-img-1 {
    display: flex;
    grid-column: span 2;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 1;
    grid-row-end: 3;
    animation-name: slideIn;
    animation-duration: 1s; 
    animation-timing-function: ease-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
}

#couple-img-2 {
    display: flex;
    grid-column: span 2;
    grid-column-start: 3;
    grid-column-end: 5;
    grid-row-start: 3;
    grid-row-end: 5;
}

.story-img-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#wedding-details-section {
    background-color: #f9f4ed;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-image: url('/images/bg-flower-01.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.details {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    animation-name: slideUp;
    animation-duration: 1s; 
    animation-timing-function: ease-in-out; 
    animation-fill-mode: forwards;
    animation-timeline: view();
    animation-range: entry;
}

.wedding-details-img-container {
    width:100%;
    height: 100%;
    display: block;
}

.wedding-details-img-container img {
    width: 100%;
    height: 100%;
}

#story-card-details {
    background-color: #f9f4ed;
}

/* #story-card-dresscode {
    background-color: white;
} */

.background-color-f9f4ed {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background-color: #f9f4ed;
    background-image: url('/images/bg-flower-01.png');
    background-size: contain;
    background-repeat: no-repeat;
}

.details-icons {
    display: flex;
    gap: 20px;
}

.details-icons img {
    width: 50px;
    height: 50px;
}

.details-icons p {
    text-align: left;
    align-content: center;
}

#map {
    margin-top: 2rem;
}

.playlist {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 3rem;
    justify-content: center;
    background-color: #f9f4ed;
    background-image: url('/images/bg-flower-01 copy.png');
    background-size: cover;
    background-repeat: no-repeat;
}

iframe {
    display: flex;
    margin-left: 3.5rem;
    margin-right: auto;
    margin-bottom: 1.5rem;
    text-align: center;
}

#dresscode {
    padding-top: 3rem;
}

.ideas {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 0 3rem 3rem;
}

.ideas img {
    width: 70%;
}

#story-card-dresscode {
    margin-top: -2rem;
    margin-bottom: 5rem;
}

#section-faq {
    padding-bottom: 5rem;
    background-image: url('/images/bg-flower-01.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#faq-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.faq-card {
    font-family: 'Source Sans 3', sans-serif;
    width: 80%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-color: #f9f4ed;
}

.photo-divider {
    display: flex;
    width: 100%;
    height: 30%;
    justify-content: center;
}

.photo-divider img{
    display: flex;
    width: 100%;
    height: 100%;
    padding-bottom: 5rem;
}

#section-rsvp {
    margin-top: -5rem;
    padding-bottom: 5rem;
    background-image: url('/images/bg-flower-01.png');
    background-size: cover;
    background-repeat: no-repeat;
}

#rsvp-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;    
    padding: 20px;
    text-align: center;
}

#rsvp-card {
    font-family: 'Source Sans 3', sans-serif;
    width: 80%;
    height: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    background-color: #f9f4ed;
}

.rsvp-now {
    font-family: 'Source Sans 3', sans-serif;
    width: 80%;
    height: 100%;
    background-color: #f9f4ed;
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 5rem;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
}

.rsvp-now:hover {
    background-color:#2a5b61;
    color: white;
}

#section-footer {
    font-family: 'Source Sans 3', sans-serif;
    background-color: #d8eeef;
    padding-top: 5rem;
    padding-bottom: 4rem;
    background-image: none;
}


@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


@keyframes slideUp {
  from {
    transform: translateY(100%); /* Start 100% down from its original position */
    opacity: 0; /* Start invisible */
  }
  to {
    transform: translateY(0); /* End at its original position */
    opacity: 1; /* End fully visible */
  }
}

@keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(100%); 
        }
        to {
            opacity: .5;
            transform: translateX(50%); 
        }
        to {
            opacity: 1;
            transform: translateX(0%); 
        }
    }

    /* /////////////////////////////// */

    @media only screen and (max-width: 500px) {


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        #couple-name h1 {
            font-family: 'Melinda', sans-serif !important;
            font-size: 50px;
            padding-bottom: 2.5rem;
        }

        .header {
            padding-top: 0;
            margin-top: -1.5rem;
        }

        .header-nav {
            display: flex;
            width: 100%;
            margin-top: -2.5rem;
            text-align: center;
            justify-content: center;
            align-items: center;
        }

        .header-nav-list {
            display: flex;
            flex-direction: column;
            text-align: center;
        }

        .header-nav-list li {
            align-items: center;
            text-align: center;
            margin-bottom: -.5rem;
        }

        #countdown-container {
            font-family: serif;
            width: 100%;
            height: 100%;
            align-items: center;
            text-align: center;
        }

        .countdown-container {
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: 1fr;
        }

        #countdown {
            display: grid;
            grid-template-columns: repeat(2,1fr);
            width: 80%;
            height: 80%;
            gap: 5px;
            justify-content: space-around;
            align-items: center;
            text-align: center;
            margin-left: auto;
            margin-right: auto;
            padding-left: 2rem;
            padding-right: auto;
        }

        .time {
            padding: 10px;
        }

        .time span {
            font-family: 'Source Sans 3', serif;
            font-size: 2.5em;
        }

        #h2-countdown,
        #h2-story,
        #wedding-details,
        #dresscode,
        #h2-faq,
        #h2-rsvp {
            font-family: 'Melinda', sans-serif !important;
            font-size: 45px;
            width: 90%;
        }

        /* #h2-countdown {
            margin-left: 1rem;
            margin-right: auto;
        } */

        .decor img {
            display: block;
            width: 60%;
            height: 60%; 
        }

        .story-cards {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        #section-story, #wedding-details-section, #story-card-details, #story-card-dresscode{
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        .story-img-container {
            display: grid;
            grid-template-columns: 1;
            justify-content: center;
            width: 100%;
        }

        .story-img-container img{
            width: 90%;
        }


        .ideas img {
            width: 100%;
            margin-left: auto;
            margin-right: 1rem;
        }

        iframe {
            display: flex;
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        #section-footer {
            width: 100%;
            height: 100%;
            text-align: center;
        }
    }

    /* /////////////////////////////// */

    @media only screen and (min-width: 650px) and (max-width: 899px) {

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        h1 {
            font-family: 'Melinda', sans-serif !important;
            font-size: 60px;
            padding-bottom: 1rem;
        }

         .story-cards {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        #section-story, #wedding-details-section, #story-card-details, #story-card-dresscode-container,#story-card-dresscode{
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
        }

        h2 {
            font-family: 'Melinda', sans-serif !important;
            font-size: 45px;
            width: 90%;
        }

        iframe {
            display: flex;
            margin-left: auto;
            margin-right: 2rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }
    }