:root {
    --primary-bg: #fdfaf7;
    --accent-sage: #8c9a89;
    --text-dark: #2c2c2c;
    --envelope-color: #f1ede9;
    --flap-color: #d4cdc7;
}

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

}

h1 {
    font-family: 'Playfair Display';
}


nav {
    padding: 10px;
    text-align: center;
    background: linear-gradient(to right,
    rgba(209, 220, 226, 1) 0%,
    rgba(210, 220, 228, 1) 50%,
    rgb(205, 216, 226) 75%,
    rgba(197, 211, 221, 1) 100%);
    position: sticky;

    z-index: 100;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02); */

}

.other-nav {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;

}

nav a {
    text-decoration: none;
    color: black;
    margin: 0 35px;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-family: 'Playfair Display', serif;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

nav a:hover {
    transform: scale(0.95);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px 10px 5px 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 4px 0;
    transition: 0.4s;
}


.menu-toggle-close {
    display: none;
}

@media (max-width: 770px) {


    .menu-toggle {
        display: flex;
    }

    nav {
        display: flex;
        justify-content: flex-end !important;

        align-items: center;
        padding: 2px 7px;
    }



    .side-navigation {
        width: 0;
        /*height: 100vh;*/
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(to right,
        rgba(209, 220, 226, 1) 0%,
        rgba(210, 220, 228, 1) 50%,
        rgb(205, 216, 226) 75%,
        rgba(197, 211, 221, 1) 100%);
        border-bottom-left-radius: 5px;
        overflow-x: hidden;

        transition: width 0.4s ease-in-out;

        display: flex;
        flex-direction: column;
        /*box-shadow: 8px 2px rgba(0, 0, 0, 0.2)*/
    }

    .menu-toggle-close {

        display: flex;
        justify-content: flex-end;
        padding: 20px 20px 0 0;

    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        white-space: nowrap;
    }

    .nav-links a {
        margin: 0 0 25px 0;
        text-align: left;
        font-size: 1.5rem;

    }

    nav a {
        margin: 15px 0 !important;
        font-size: 1.4rem;
    }
}

.top-header {
    margin-top: 20px;
}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2)

}

.welcome h1 {
    /*font-family: 'Playfair Display', serif;*/
    font-size: 4rem;
    margin-bottom: 10px;
    text-align: center;
}

.welcome {
    padding-top: 20px;
    font-family: 'Playfair Display', serif;
}

.welcome p {
    font-style: italic;
    font-size: xx-large;
    text-align: center;
    margin: auto 10px 0 10px;

}

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

.countdown-circle {
    /* background-color: rgb(210, 221, 227); */
    /* border: 2px solid #3f7093; */
    /* border-radius: 20px; */
    width: 10%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* color: #2c2c2c; */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.1;
}

.countdown-label {
    font-family: 'Playfair Display', sans-serif;
    font-size: 1.5rem;
    text-transform: capitalize;
}

.section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-sage);
}

.card {
    background: white;
    padding: 50px 30px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}


.rsvp .btn {
    font-family: 'Playfair Display', serif;
    margin-top: 30px;
    padding: 15px 45px;
    text-decoration: none;
    font-weight: bold;
    font-size: 3rem;
    border: solid black 2px;
    box-shadow: -5px 5px 4px rgba(0, 0, 0, 0.2),
    5px 5px 4px rgba(0, 0, 0, 0.2);

    transition: all 0.3s ease;
}

.btn:hover {
    background: rgb(210, 221, 227);
    transform: scale(0.98);
    box-shadow: none;
}

footer {
    padding: 30px 0 10px 0;
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    display: flex;
    justify-content: center;
    margin-top: auto;
}

html {

    overflow-x: hidden;
}

body {
    /*max-width: 100%;*/
    /*overflow-x: hidden;*/
    font-family: 'Poppins', sans-serif;


    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


@media (max-width: 1160px) {

    nav a {
        text-decoration: none;
        color: black;
        margin: 0 20px;
        font-size: 1.2rem;
        text-shadow: 1px 2px 9px rgba(0, 0, 0, 0.7);
        font-family: 'Playfair Display', serif;
        transition: transform 0.2s ease-in-out;
        display: inline-block;
    }

    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 10px;
    }


}

@media (max-width: 600px) {

    .hero-image {
        width: 100%;
        height: auto;
        display: block;
    }


    .welcome h1 {
        font-size: 2.8rem;
    }


    .welcome p {
        font-size: 1.2rem;

    }

    .countdown-wrapper {

        gap: 35px;

    }

    /* .countdown-circle {
        width: 75px;
        height: 75px;
        gap: 5px;
    } */
    .countdown-number {
        font-size: 2.3rem;
    }

    .countdown-label {
        font-size: 1.1rem;
    }

    .rsvp .btn {
        font-size: 1.8rem;
        padding: 12px 30px;
        text-align: center;
        width: 45%;
    }
}

h4, h3, h2 {
    font-family: 'Playfair Display', serif;
}