body {
    margin: 0;
    padding: 0;
    position: relative;
    font-family: helvetica;
    line-height: 140%;
    font-size: 20px;
}

p{
    margin:0;
}

a{
    color: rgb(50,69,64);
}

/* Header */

header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    background: rgba(255, 255, 255, 1);
}

nav {
    margin: 0 auto;
    padding: 30px 0;
    width: 50%;
    height: 40px;
    line-height: 40px;
    font-family: 'Helvetica';
    font-size: 1.5rem;
}

nav > ul {
    margin: 0;
    padding: 0 40px;
    display: flex;
    flex-direction: row;
    list-style-type: none;
}

nav > ul > a {
    left: 50px;
    position: absolute;
}

nav > ul > li {
    margin: 0;
    flex: 1;
    text-align: center;
}

nav > ul > li > a {
    text-decoration: underline;
    color: black;
}



main {
    min-height: calc(100vh);
}

/* Main Image */

#main-image {
    background-image: url(assets/IMG_9122.jpg);
    background-size: cover;
    background-position: 50% 50%;
    height: calc(100vh);
    /*animation: slide 2s infinite ;*/
    position: relative;
}

#main-image-thanks {
    background-image: url(assets/wedding/wedding1.jpg);
    background-size: cover;
    background-position: 20% 0%;
    height: calc(100vh);
    /*animation: slide 2s infinite ;*/
    position: relative;
}

#main-image h2, #main-image-thanks h2 {
    color: white;
}

@keyframes slide {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0;
    }
    50% {
        background-image: url(assets/IMG_7457.jpg);
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.center {
    position: absolute;
    top: 45%;
    left: calc(50vw - 300px);
}

.center-bottom {
    position: relative;
    bottom: -85%;
    width: 100%;
    text-align: center;
}

.chev {
    position: relative;
    bottom: -85%;
    width: 100%;
    text-align: center;
    animation: jump 2s infinite;
}

.chev img{
    height: 50px;
    width: 50px;
}

@keyframes jump {
    0% {
        bottom: -85%;    
    }
    10%{
        bottom: -86%;
    }
    20%{
        bottom: -85%
    }
    40%{
        bottom: -86%;
    }
    50%{
        bottom: -85%
    }
    70%{
        bottom: -86%;
    }
    80%{
        bottom: -85%
    }
}

h1 {
    margin: 40px 0 110px 0;
    font-size: 6.5rem;
    font-family: Pacifico, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-weight: 100;
}

h1.hero {
    margin: 0;
    font-size: 7rem;
    transform: rotate(-25deg);
    color: white;
}

h2 {
    font-family: Helvetica, 'Arial Narrow Bold', sans-serif;
    margin: 0;
    font-size: 3.5rem;
    color: black;
}

h3 {
    font-family: Helvetica, 'Arial Narrow Bold', sans-serif;
    margin: 0;
    font-size: 2rem;
    color: black;
}

.textblock {
    min-height: calc(100vh - 160px);
    /* background-color: #b05454; */
    background-color: rgb(246, 246, 246);;
    padding-top: 160px;
    padding-bottom: 60px;
}
.running-text h2 {
    margin-top: 40px;
}

.block {
    margin: 0 10%;
}

.block img {
    width: 300px;
    height: 100%;
    padding: 20px;
}

.img-container{
    margin: 30px;
    align-content: center;
    justify-content: center;
    display: flex;
}

.img-container img{
    object-fit: contain;
    width: 250px;
    height: 100%;
}

.block p{
    text-align: left;
}

.block.about{
    padding: 3%;
    text-align: left;
    background-color: white;
    margin-top: 30px;
    border-radius: 25px;
}

.block.about h2{
    margin-top:20px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.flex {
    display: flex;
}

.flex-item {
    flex: 1 1 auto;
}

.textblock:nth-of-type(2n) {
    background-color: violet;
}

.heading {
    text-align: center;
}

.heading p {
    margin-top: 20px;
}

.ingress {
    font-size: 1.5rem;
    margin: 0 10%;
    line-height: 1.7rem;
}

.story {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.story-box {
    flex: 0 1 350px;
    /*border: 1px black solid;*/
    margin: 50px 50px 0 50px;
    padding: 20px 10px;
}

.story-box img {
    border-radius: 20px;
    margin: 20px 0;
    width: 300px;
}

/* Gallery */

.gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: rgb(246, 246, 246);
    margin-top: 60px;
    /* min-height: calc(100vh - 60px);
    padding-bottom: 60px; */
}

.gallery-image {
    flex: 1;
    width: 300px;
    display: flex;
    justify-content: center;
    margin: 25px;
}

.gallery-image img {
    width: 300px;
    height: 200px;
}

/* Program */

.program-container{
    display: flex;
    flex-direction: column;
    align-items: left;
    margin: 0 auto;
}

.program-info{
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.5rem;
    padding: 0 20px;
    width: 450px;
}

.program-item{
    flex: auto;
    display: flex;
    flex-direction: row;
    align-content: center;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.program-text p{
    white-space: pre-line;
}

.program-item img{
    height: 60px;
    width: 60px;
    position: absolute;
    top: 30px;
    left: 30px;
}

.program-image-container{
    height: 120px;
    width: 120px;
    border: 1px black solid;
    border-radius: 60px;
    position: relative;
    margin: auto 20px auto 10px;
    background-color: rgb(219,201,201);
}

.program-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 300px;
}

.program-text .subtext{
    margin:0;
    font-size: 1rem;
    line-height: 0.7;
}

/* Wishes */

.wishes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.link-button{
  align-items: center;
  background-clip: padding-box;
  background-color: rgb(50,69,64);
  border: 1px solid transparent;
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 15px 0 0 0;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
  text-align: center;
}


.link-button:hover,
.link-button:focus {
  background-color: rgb(60, 80, 75);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
}

.link-button:hover {
  transform: translateY(-1px);
}

.link-button:active {
  background-color: rgb(50,69,64);
  box-shadow: rgba(0, 0, 0, .06) 0 2px 4px;
  transform: translateY(0);
}


.wish-block {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    height: 300px;
    border: 1px black solid;
    margin: 40px 20%;
    position: relative;
}

.wish-block img {
    height: 100%;
}

.wish-description {
    padding: 40px;
}

.flex-wish{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.flex-item-wish{
    width: 250px;
    margin: 10px;
}

.link {
    position:absolute; 
    width:100%;
    height:100%;
    top:0;
    left: 0;
    z-index: 1;
}

/* Footer */

footer {
    height: 120px;
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: white;
}

footer h3 {
    font-family: Pacifico, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: white;
}

/* MEDIA */


@media screen and (max-width: 900px) {
    nav {
      width: 100%;
    }
    h1.hero {
        font-size: 4.7rem;
    }
    .center {
        left: calc(50vw - 230px);
    }
    .center-bottom{
        bottom: -75%;
    }
    .chev {
        bottom: -80%;
    }
    @keyframes jump {
        0% {
            bottom: -80%;    
        }
        10%{
            bottom: -81%;
        }
        20%{
            bottom: -80%
        }
        40%{
            bottom: -81%;
        }
        50%{
            bottom: -80%
        }
        70%{
            bottom: -81%;
        }
        80%{
            bottom: -80%
        }
    }
    nav > ul > a {
        left: 20px;
    }
    .story-box{
        margin: 10px 50px 0 50px;
    }
    .wish-block {
        height: 600px;
    }

    .wish-block img{
        display: none;
    }

    .program-item img{
        height: 40px;
        width: 40px;
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    .program-image-container{
        height: 62px;
        min-width: 62px;
        max-width: 62px;
        border: 1px black solid;
        border-radius: 60px;
        position: relative;
    }
  }

@media screen and (max-width: 600px) {
    /* h1 {
        font-size: 3rem;
    } */
    html {
        font-size: 13px;
    }
    h1 {
        margin: 50px 0 80px 0;
    }
    .center {
        left: calc(50vw - 175px);
    }
    .block.about{
        padding: 6%;
    }
    .block.about .flex {
        flex-direction: column;
    }
    .block.about .flex img {
        width: 250px;
        margin: 0 auto;
    }
    nav {
        padding: 20px 0;
        height: 30px;
    }
    .textblock{
        padding-top: 100px;
    }
    .program-text .subtext{
        font-size: 1.2rem;
        line-height: 1;
    }
    .program-text p{
        font-size: 1.6rem;
        line-height: 100%;
    }
    .program-info{
        width: 300px;
    }
    
}

@media screen and (max-width: 400px) {
    /* h1 {
        font-size: 3rem;
    } */
    html {
        font-size: 11px;
    }
    .center {
        left: calc(50vw - 142px);
    }
    nav > ul > a {
        left: 5px;
    }
    .wish-block {
        flex-direction: column;
        height: 100px;
        width: 100px;
    }
    .block.about .flex img {
        width: 200;
    }
    .program-text{
        width: 250px;
    }
}