* {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    display: flex;
}

#background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100vw;
    background-image: url('/images/background.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

body {
    display: flex;
    flex-direction: column;
    text-align: justify;
    z-index: 0;
}

header {
    background-color: rgba(0,0,0,0.8);
    display: flex;
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.95);
    overflow: hidden;
    transition: all 0.5s;
}

header.initial {
    flex: auto;
    margin: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#header-text {
    margin: 15px 30px;
    text-align: center;
    cursor: pointer;
    z-index: 2;
}

#header-text span:nth-of-type(1) {
    font-family: 'Ruthie', cursive;
    font-size: 6rem;
}

#header-text span:nth-of-type(2) {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.2rem;
}

header.initial #header-text {
    margin: 15px;
    cursor: default;
}

nav {
    flex: 1;
    display: flex;
    align-items: stretch;
}

header.initial nav {
    flex: none;
}


nav ul {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    margin-right: 30px;
    padding: 0;
}

header.initial nav ul {
    margin: 0;
}

nav ul li {
    text-shadow: 0 0 7px rgba(0,0,0,0.8);
    margin-left: 30px;
    text-align: center;;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
}

nav ul li:hover, nav ul li.active {
    text-shadow: 0 0 14px rgba(255,255,255,0.8);
}

header.initial nav ul li {
    margin: 15px;
}

#splash {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    width: 100%;
    background-image: url('images/splash.jpg');
    background-position: center;
    background-size: cover;
    z-index: 1;
}

#splash-text {
    margin-right: 15px;
    text-shadow: 0 0 7px rgba(0,0,0,0.8);
    font-family: 'Noto Sans', sans-serif;
    font-size: 5rem;
    color: white;
    cursor: pointer;
}

#splash-text:hover {
    text-shadow: 0 0 14px rgba(255,255,255,0.8);
}

main.initial {
    flex: 0 0 0;
    height: 0;
    margin: 0;
}

main {
    display: flex;
    flex: 1;
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-shadow: 0 0 2px rgba(0,0,0,0.95);
    margin: 15px;
    font-family: 'Noto Sans', sans-serif;
    overflow: hidden;
    transition: all 0.5s;
}

.div-slide {
    flex: 1;
    display: flex;
    overflow: hidden;
    align-content: flex-start;
}

.div-slide section {
    position: relative;
    box-sizing: border-box;
    left: 0%;
    transition: left 0.5s;
    padding: 15px;
    flex: 100% 0 0;
}

.wedding-party h1 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.wedding-party h1:first-child {
    margin-top: 0;
}

.wedding-party h1 span.role {
    font-style: italic;
    font-size: 1.0rem;
    font-variant: small-caps;
}

.wedding-party h1 span.role:before {
    content: " - ";
}

a:link, a:visited, a:hover {
    color: white;
}

@media screen and (max-width:1000px) {

    header:not(.initial) {
        display: block;
    }

    header:not(.initial) #header-text {
        display: block;
    }

    header:not(.initial) nav {
        display: block;
    }

    header:not(.initial) nav ul {
        justify-content: space-around;
        margin: 0;
    }

    header:not(.initial) nav ul li {
        margin: 0 0 15px 0;
    }
}

@media screen and (max-width:525px) {

    #header-text span:nth-of-type(1) {
        font-size: 3.5rem;
    }

    #header-text span:nth-of-type(2) {
        font-size: 1.1rem;
    }

    nav ul li {
        font-size: 1rem;
    }
}
