@keyframes select-navigation {
    from {color: var(--black);}
    to {color: var(--pink);}

    from {background-color: var(--white);}
    to {background-color: var(--white);}
}

@keyframes hide-navigation-bar {
    from {height: 34px;}
    to {height: 0px;}
}
@keyframes show-navigation-bar {
    from {height: 0px;}
    to {height: 34px;}
}

@keyframes show-ham-menu {
    from {height: 0px;}
    to {height: 160px;}
}
@keyframes hide-ham-menu {
    from {height: 160px;}
    to {height: 0px;}
    from {display: block;}
    to {display: none;}
}

:root {
    --black: #333;
    --white: snow;
    --green: #355234;
    --pink: #FFCFD8;
}

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

.header-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background-color: var(--white);
}

.header-bar-content {
    height: 100%;
    width: 100%;
}

.header-text > h1{
    color: var(--black);
    text-align: center;
    font-family: "dear-maison";

    font-size: 8rem;
    font-weight: normal;
}
@media (max-width: 600px){
    .header-text > h1 {
        font-size: 4rem;
    }
}

.navigation-bar {
    display: flex;
    align-items: flex-end;
    z-index: 1;
    overflow: hidden;
    position: sticky;
    top: 0;

    background-color: var(--white);
    width: 100%;
    
    box-shadow: 0 8px 16px -16px var(--black);
}
@media (max-width: 600px){
    .navigation-bar {
        display: none;
    }
}
.navigation {
    display: grid;
    grid-template-columns: 25% 25% 25% 25%;
    list-style-type: none;

    margin-left: 20%;
    margin-right: 20%;

    color: var(--pink);
    width: 100%;
    height: 50px;

    transition: 
        grid-template-columns .5s ease,
        margin-left .5s ease,
        margin-right .5s ease;
}
@media (max-width: 600px){
    .navigation {
        grid-template-columns: 25% 25% 25% 25%;
        
        margin-left: 0%;
        margin-right: 0%;

        height: 40px;
    }
}
.navigation > li {
    height: 100%;
}
.navigation a{
    background-color: var(--white);

    float: left;
    color: var(--black);
    text-decoration: none;
    text-align: center;

    padding-top: 0px;
    padding-bottom: 0px;

    font-size: 1rem;
    font-family: cormorant-sc;
    font-weight: bold;

    width: 100%;
    height: 100%;
}
@media (max-width: 600px){
    .navigation a {
    font-size: .6rem;
    }
}
.navigation a:not(.active):hover {
    animation-name: select-navigation;
    animation-duration: .25s;
    animation-timing-function: l;

    background-color: var(--white);
    color: var(--pink);
    text-align: center;

    padding-top: 0px;
    padding-bottom: 0px;

    font-size: 1rem;

    width: 100%;
    height: 100%;
}
@media (max-width: 600px){
    .navigation a:not(.active):hover {
    font-size: .6rem;
    }
}
.navigation a.active {
    background-color: var(--white);
    color: var(--pink);
    text-align: center;

    padding-top: 0px;
    padding-bottom: 0px;

    font-size: 1rem;

    width: 100%;
    height: 100%;
}
@media (max-width: 600px){
    .navigation a.active {
    font-size: .6rem;
    }
}

.ham {
    display: flex;
    flex-direction: column;
    z-index: 1;
    top: 0;
    overflow: hidden;
    position: sticky;
    background-color: var(--white);

    width: 100%;
    height: auto;
    padding: 0px;
    margin: 0px;

    box-shadow: 0 8px 16px -16px var(--black);
}
@media (min-width: 600px){
    .ham  {
        display: none;
    }
}

.ham-bar {
    width: 100%;
    height: 50px;

    border: none;
}

.ham-button {
    position: relative;

    height: 100%;
    width: 50px;
}
@media (min-width: 600px){
    .ham-button {
        display: none;
    }
}
.ham-button span {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: var(--green);
    border-radius: 16px;

    height: 4px;
    width: 75%;
}
.ham-button span:nth-child(1){
    top: 25%
}
.ham-button span:nth-child(3){
    top: 75%
}

.ham-menu {
    position: sticky;
    z-index: 1;
    top: 50px;
    right: -100vw;

    height: auto;
    width: 100%;

    display: none;
    animation-name: hide-ham-menu;
    animation-timing-function: ease;
    animation-duration: .25s;
}
.ham-menu.active {
    display: block;
    animation-name: show-ham-menu;
    animation-timing-function: ease;
    animation-duration: .25s;
}

.ham-menu-elements {
    list-style-type: none;
    text-align: center;

    width: 100%;
}
.ham-menu-elements > li {
    height: 40px;
}
.ham-menu-elements a {
    color: var(--black);
    text-decoration: none;
    text-align: left;

    padding-top: 0px;
    padding-bottom: 0px;

    font-family: cormorant-sc;
    font-weight: bold;
    font-size: 1rem;
}

.rsvp-ham-button {
    padding: 0px;
    margin: 0px;
    border-style: solid;
    border-color: var(--pink);
    height: 40px;
    width: 100px;
}