@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;900&display=swap');

html{scroll-behavior: smooth;}
body,html{height: 100%;}

body{
    position: relative;
    margin: 0;
    padding: 0;
    font-family: 'Melodrama','Noto Serif TC',serif;
    color: rgb(137, 121, 81);
    background-color:rgb(0, 0, 0);
    /*background-image:
    radial-gradient(at 18% 36%, hsla(28,51%,18%,1) 0px, transparent 50%),
    radial-gradient(at 69% 81%, hsla(21,28%,22%,1) 0px, transparent 90%);
    background-repeat: no-repeat;
    background-attachment: fixed;*/
    letter-spacing: 4px;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
}

#background-blur1{
    position: fixed;
    width: 75%;
    min-width: 800px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    filter: blur(100px);
    background-color: hsla(28,51%,18%,1);
    opacity: 0;
    top: -40%;
    left: -50%;
    z-index: -1;
    transition: 2s;
    animation: bgblur 5s linear infinite alternate;
}

#background-blur2{
    position: fixed;
    width: 60%;
    min-width: 700px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    filter: blur(100px);
    background-color: hsla(21,32%,26%,1);
    opacity: 0;
    bottom: -20%;
    right: -50%;
    z-index: -1;
    transition: 5s;
    animation: bgblur2 5s linear infinite alternate;
}

/**
@keyframes bgblur{
    0%{
        transform: translate(5%,-10%);
    }25%{
        transform: translate(0%,-5%);
    }50%{
        transform: translate(5%,-10%);
    }75%{
        transform: translate(-5%,5%);
    }100%{
        transform: translate(0%,10%);
    }
}

@keyframes bgblur2{
    0%{
        transform: translate(5%,10%);
    }25%{
        transform: translate(10%,15%);
    }50%{
        transform: translate(5%,0%);
    }75%{
        transform: translate(10%,-10%);
    }100%{
        transform: translate(15%,-15%);
    }
}**/


::selection{
    color: rgb(0, 0, 0);
    background-color: rgba(137, 121, 81, 0.7);
}

h1{
    position: relative;
    font-family: 'Melodrama','Noto Serif TC',serif;
    font-size: 10vh;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.5;
    animation: h1animation 1s linear forwards;
}

@keyframes h1animation{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

h1>span:nth-child(2){
    font-size: 14px;
}

h2{
    font-family: 'Melodrama','Noto Serif TC',serif;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
}

p{
    margin: 0;
}

#gallery p{
    margin-top: 20px;
}

*{
    box-sizing: border-box;
}

#music-onoroff{
    width: 100%;
    height: 100%;
    color: rgb(137, 121, 81);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
    position: fixed;
    top: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#music-onoroff>div{
    background-color: rgb(0, 0, 0);
    padding: 100px 40px;
    position: relative;
}

#music-onoroff>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(137, 121, 81,0.5);
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#music-onoroff a:link, #music-onoroff a:visited{
    text-indent: 4px;
    position: relative;
    display: inline-block;
    color: rgb(137, 121, 81);
    border: 1px solid rgb(137, 121, 81);
    text-decoration: none;
    padding: 5px 20px;
    margin: 20px 0 40px 0;
    border-radius: 30px;
    transition: 0.5s;
}

#music-onoroff a:link:last-of-type{
    border: none;
}

#music-onoroff a:hover, #music-onoroff a:active{
    color: rgb(0, 0, 0);
    background-color: rgb(137, 121, 81);
}

.music-button{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(137, 121, 81);
    border: 1px solid rgba(137, 121, 81, 0.7);
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    animation: musicbutton 1.5s;
}

@keyframes musicbutton{
    0%{
        transform: rotate(-10deg);
    }20%{
        transform: rotate(10deg);
    }40%{
        transform: rotate(-10deg);
    }60%{
        transform: rotate(10deg);
    }80%{
        transform: rotate(-10deg);
    }100%{
        transform: rotate(0);
    }
}

.music-off-line{
    position: absolute;
    width: 80%;
    border-top: 1px solid rgba(137, 121, 81, 0.9);
    transform: rotate(45deg);
    transform-origin: top left;
    top: 20%;
    left: 25%;
    transition: 0.5s;
}

.music-off-line.playmusic{
    width: 0;
}

header{
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 1));
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 80px auto 100px;
    justify-items: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

#header-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('1.webp');
    background-size: cover;
    background-position: 70% 50%;
    z-index: -1;
    top: 0;
    transition: 0.1s;
}

.header-line-container{
    width: 95%;
    display: grid;
    grid-template-columns: 1fr 200px 1fr;
    align-items: center;
    opacity: 0;
    animation: header-line-animation 1s 0.3s linear forwards;
}

@keyframes header-line-animation{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

.header-line{
    border-bottom: 1px solid rgb(137, 121, 81);
    width: 100%;
    height: 1px;
}

header div a:link, header div a:visited{
    text-decoration: none;
    color: rgba(137, 121, 81, 1);
}

header div a>span{
    display: inline-block;
}

header div a:hover span:first-of-type, header div a:active span:first-of-type{
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.5s;
}

header div a:hover span:last-of-type, header div a:active span:last-of-type{
    transform: translateY(-50%);
    transition: 0.5s;
}

#intro{
    width: calc(100% - 80px);
    max-width: 900px;
    padding: 100px 0;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 100px 20px;
    overflow: hidden;
}

#intro h2{
    margin: 30px 0;
    opacity: 0;
}

#intro p{
    opacity: 0;
}

#intro h2.active,#intro p.active{
    opacity: 1;
    transition: 2s;
}

#intro>div:nth-child(2){
    grid-column: 3 / 4;
    border-bottom: 1px solid rgb(137, 121, 81);
}

#intro1{
    grid-column: 1 / 3;
}

#intro2{
    grid-column: 2 / 4;
    text-align: right;
}

.intropic{
    width: 100%;
    aspect-ratio: 1 / 1.4;
    overflow: hidden;
    border: 1px solid rgb(137, 121, 81);
    display: flex;
    align-items: center;
}

.intropic>div{
    width: 100%;
    height: 100%;
    background-size: cover;
}

#intro1pic{
    background-image: url('groom.webp');
    background-position: center;
}
#intro2pic{
    background-image: url('bride.webp');
    background-position: 50% 90%;
}

#invite{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    margin: auto;
    max-width: 900px;
}

.invite-line-box{
    position: relative;
    height: 300px;
    overflow: hidden;
}

.invite-line-origin{
    height: 100%;
    border-left: 1px solid rgba(137, 121, 81, 0.2); 
}

.invite-line-scroll{
    position: absolute;
    border-left: 1px solid rgba(137, 121, 81, 1); 
    height: 0;
    top: 0;
    left: 0;
}

.invite-line-scroll.active{
    height: 100%;
    transition: 1s;
}


#invitepic-area{
    position: relative;
    margin: 100px 0;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#invitepic-box{
    position: absolute;
    aspect-ratio: 1 / 1.4;
    height: 100%;
    border: 1px solid rgb(137, 121, 81);
    overflow: hidden;
    display: flex;
    align-items: center;
}

#invitepic{
    width: 100%;
    height: 100%;
    background-image: url('2.webp');
    background-size: cover;
    background-position: center;
}

#invitepic-area>h2{
    position: relative;
    font-size: 7vw;
    white-space: nowrap;
}

#invite p{
    opacity: 0;
}

#invite p.active{
    opacity: 1;
    transition: 2s;
}

#traffic{
    display: flex;
    flex-direction: column;
    padding: 100px 0;
    margin: 100px auto 0 auto;
    width: calc(100% - 80px);
    max-width: 900px;
    border-top: 1px solid rgb(137, 121, 81);
    border-bottom: 1px solid rgb(137, 121, 81);
}

#traffic h2, #traffic p{
    opacity: 0;
}

#traffic h2.active, #traffic p.active{
    opacity: 1;
    transition: 2s;
}

.map{
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 100px auto;
    opacity: 0;
}

.map.active{
    opacity: 1;
    transition: 2s;
}

.map>img{
    display: block; /*remove white space*/
    width: 100%;
}

.map a:link, .map a:visited{
    text-decoration: none;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(0, 0, 0);
    background-color: rgba(137, 121, 81, 0.7);
}

.map.active a:link, .map.active a:visited{
    opacity: 0;
    transition: 2s 1.5s;
}

.map.active a:hover, .map.active a:active{
    animation: maphint 1s forwards;
}

@keyframes maphint{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}


#guide{
    align-self: center;
}

#schedule{
    padding: 100px 40px;
}

#schedule>h2{
    text-align: center;
}

.timeline{
    position: relative;
    font-size: 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-auto-rows: 60px;
    gap: 100px 50px;
    justify-content: center;
    align-items: center; 
    max-width: 700px;
    margin: auto;
    padding: 70px 0 100px 0;
    overflow: hidden;
}

.timeline-line{
    position: absolute;
    width: 1px;
    height: 0;
    border-left: 1px solid rgba(137, 121, 81,0.8);
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.time{
    text-align: right;
}

.time>span{
    display: inline-block;
    font-size: 12px;
    padding-left: 5px;
}

.time, .activity{
    overflow-wrap: anywhere;
    opacity: 0;
    transition: 1s;
}

.dot{
    position: relative;
    width: 5px;
    height: 5px;
    background-color: rgb(137, 121, 81);
    border-radius: 50%;
}

#dress-code{
    width: calc(100% - 80px);
    max-width: 900px;
    margin: 0 auto 100px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

#dress-code h2, #dress-code p{
    opacity: 0;
    align-self: flex-start;
}

#dress-code h2.active, #dress-code p.active{
    opacity: 1;
    transition: 2s;
}

#color-area{
    margin-top: 50px;
}

.color-box{
    border: 1px solid rgba(137, 121, 81,1);
    display: grid;
    grid-template-columns: auto;
    padding: 10px;
    margin-top: 50px;
    text-align: right;
}

.color-box:nth-child(even){
    margin-left: 80px;
}

.color-box:nth-child(odd){
    margin-right: 80px;
}

.color-box>p{
    padding: 30px 0 0 0;
}

.color{
    width: 100%;
    min-width: 170px;
    aspect-ratio: 1/1;
    opacity: 0;
}

.color.active{
    opacity: 1;
    transition: 2s;
}

#color1{
    background-color: rgb(244, 244, 243);
}
#color2{
    background-color: rgb(136, 115, 88);
}
#color3{
    background-color: rgb(157, 124, 124);
}
#color4{
    background-color: rgb(64, 64, 64);
}

#photo-area{
    position: relative;
    display: grid;
    grid-template-columns: 0 100%;
    height: 100vh;
    border-top: 1px solid rgba(137, 121, 81, 1);
    border-bottom: 1px solid rgba(137, 121, 81, 1);
}

#photo-left-box, #photo-right-box{
    position: relative;
    overflow: hidden;
}

#photo-left, #photo-right{
    position: absolute;
    width: 100%;
    height: 130%;
    background-size: cover;
}

#photo-left::after, #photo-right::after{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

#photo-right::after{
    background-color: rgba(0, 0, 0, 0.7);
}

#photo-left{
    background-image: url('3.webp');
    background-position: center;
}

#photo-right{
    background-image: url('4.webp');
    background-position: 50% 70%;
}

#preview-text-box{
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#photo-preview{
    width: 200px;
    aspect-ratio: 1 / 1.4;
    background-image: url('5.webp');
    background-size: cover;
    background-position: center;
    border: 1px solid rgb(137, 121, 81);
    margin: 30px 0;
}

#photo-area a:link, #photo-area a:visited{
    display: inline-block;
    color: rgba(137, 121, 81, 1);
    border: 1px solid rgba(137, 121, 81, 1);
    border-radius: 30px;
    padding: 5px 30px 5px 34px;
    margin: 20px 0;
    text-decoration: none;
    transition: 0.5s;
}

#photo-area a:hover, #photo-area a:active{
    color: rgba(137, 121, 81, 0.7);
    border: 1px solid rgba(137, 121, 81, 0.7);
}

#video-area{
    padding: 100px 0;
}

#video-box{
    position: relative;
    border: 1px solid rgb(137, 121, 81);
    width: calc(100% - 80px);
    max-width: 400px;
    aspect-ratio: 1 / 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    overflow: hidden;
}

#video-preview{
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('6.webp');
    background-size: cover;
    background-position: center;
}

#video-preview::after{
    position: absolute;
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

#video-text{
    position: relative;
    text-align: center;
    width: 100%;
}

#video-area a:link, #video-area a:visited{
    display: inline-block;
    line-height: 1;
    color: rgb(137, 121, 81);
    border: 1px solid rgba(137, 121, 81, 1);
    border-radius: 50%;
    padding: 20px 20px 20px 24px;
    margin: 20px 0;
    text-decoration: none;
    transition: 0.5s;
}

#video-area a:hover, #video-area a:active{
    scale: 1.1;
}

#video-box:hover{
    cursor: pointer;
}

#video-box:hover a,#video-box:hover h2{
    scale: 1.1;
    transition: 0.5s;
}

#video-box:hover #video-preview{
    scale: 1.1;
    filter: blur(2px);
    transition: 0.5s;
}

#closebutton:link, #closebutton:visited{
    position: fixed;
    z-index: 101;
    right: 20px;
    top: 0;
    color: rgb(137, 121, 81);
    font-size: 40px;
    font-weight: 900;
    text-decoration: none;
    transition: 0.5s;
    display: none;
}

#closebutton:hover, #closebutton:active{
    transform: scale(1.5);
}

#gallery{
    text-align: center;
    color: rgb(137, 121, 81);
    background-color: rgba(0, 0, 0, 0.95);
    position: fixed;
    z-index: 100;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    top: 0;
    display: none;
    letter-spacing: 3px;
}

#gallery a:link, #gallery a:visited{
    color: rgba(137, 121, 81, 1);
    text-decoration: underline;
    transition: 0.5s;
}

#gallery a:hover, #gallery a:active{
    color: rgba(137, 121, 81, 0.5);
}

#photo-gallery{
    text-indent: 0;
    padding: 100px 50px;
    display: none;
    flex-direction: column;
}

#photo-gallery>div{
    width: 100%;
}

.photo-gallery-box{
    float: left;
    width: 100%;
    margin: 5px;
}


#photo-gallery img{
    width: 100%;
}

#video{
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

iframe{
    width: 90%;
}

.countdown-area{
    width: 90%;
    margin: 100px auto;
    text-align: center;
    overflow: hidden;
}

.countdown-area>p{
    padding: 50px 0;
}

.countdown-area-box{
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: center;
}

.countdown-area-box>div{
    font-size: 22px;
    transform: translateY(-50px);
    opacity: 0;
}

.countdown-area-box>div.active{
    transform: translateY(0);
    opacity: 1;
    transition: 1.5s;
}

.countdown-area-box>div.active:nth-child(2){
    transition-delay: 0.5s;
}
.countdown-area-box>div.active:nth-child(3){
    transition-delay: 1s;
}
.countdown-area-box>div.active:nth-child(4){
    transition-delay: 1.5s;
}

#RSVP{
    padding: 0 0 100px 0;
    text-align: center;
    overflow: hidden;
}


#RSVParea{
    width: 90%;
    max-width: 300px;
    margin: 70px auto 0 auto;
}

.attend-area{
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 0 10px;
}

.attend{
    position: relative;
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 10px;
    text-indent: 10px;
    text-align: center;
}


.attend input, .hideinput input{
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

.attend span{
    position: absolute;
    width: 0px;
    height: 1;
    opacity: 0.5;
    border-bottom: 3px double rgb(137, 121, 81);
    bottom: -10px;
    left: 0;
    transition: 0.5s;
    pointer-events: none;
}

.attend p{
    opacity: 0.5;
}

.attend:hover span{
    width: 100%;
    opacity: 0.5;
}

.attend input:checked ~ span{
    width: 100%;
    opacity: 1;
}

.attend input:checked ~ p{
    opacity: 1;
}

.form-area{
    text-align: left;
}

.form-title{
    margin: 70px 0 10px 0;
    font-weight: 900;
}


input:not([type=submit]), select, textarea{
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 8px 10px;
    color: rgb(137, 121, 81);
    background-color: rgba(0, 0, 0, 0);
    border: none;
    border-bottom: 1px solid rgb(137, 121, 81);
    letter-spacing: 2px;
    border-radius: 0;
}

input:focus, select:focus, textarea:focus{
    outline: none;
}

select{
    padding: 6px 0;
    text-indent: 7px;
    height: 32px;
    -moz-appearance: none;
    -webkit-appearance: none; 
    appearance: none;
}


textarea{
    display: block;
    width: 100%;
    resize: none;
    margin-bottom: 0;
    border: 1px solid rgb(137, 121, 81);
}

::placeholder{
    color: rgba(137, 121, 81,0.5);
    font-family: 'Aboreto','Noto Serif TC',serif;
}

.hideinput{
    position: relative;
    padding-left: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.hideinput span{
    position: absolute;
    width: 10px;
    height: 10px;
    border:1px solid rgb(137, 121, 81);
    top: 3px;
    left: 0;
    transition: 0.5s;
}

.hideinput:hover span{
    background-color: rgba(137, 121, 81, 0.5);
}

.hideinput input:checked ~ span{
    background-color: rgb(137, 121, 81);
}

.AandK select{
    margin-right: 5px;
    width: calc(100% / 2 - 58px);
}

input[type=submit]{
    color: rgb(137, 121, 81);
    background-color: rgba(137, 121, 81,0);
    border: 1px solid rgb(137, 121, 81);
    padding: 10px 20px;
    margin-top: 40px;
    border-radius: 25px;
    text-indent: 5px;
    letter-spacing: 5px;
    font-size: 15px;
    font-family: 'Noto Serif TC',serif;
    font-weight: 900;
    transition: 0.5s;
}

#loading{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#loader{
    border: 8px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top: 8px solid rgba(255, 255, 255, 0);
    width: 70px;
    height: 70px;
    -webkit-animation: spin 1s linear infinite; /* Safari */
    animation: spin 1s linear infinite;
}
  
/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
  
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#submit-success{
    width: 100%;
    height: 100%;
    text-align: center;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    position: fixed;
    top: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    text-indent: 5px;
    letter-spacing: 5px;
}

#submit-success h2{
    position: relative;
}


#submit-success>div{
    background-color: rgb(0, 0, 0);
    padding: 70px 60px;
    position: relative;
}

#submit-success>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(137, 121, 81, 0.5);
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#submit-success>div>div{
    margin: 30px 0 40px 0;
    line-height: 3;
    position: relative;
}

#submit-success a:link, #submit-success a:visited{
    position: relative;
    color: rgba(137, 121, 81, 1);
    border: 1px solid rgba(137, 121, 81, 1);
    text-decoration: none;
    font-weight: 900;
    padding: 10px 20px 10px 23px;
    border-radius: 20px;
    letter-spacing: 3px;
    transition: 0.5s;
}

#submit-success a:hover, #submit-success a:active{
    color: rgba(137, 121, 81, 0.7);
    border: 1px solid rgba(137, 121, 81, 0.7);
}


footer{
    letter-spacing: 3px;
    line-height: 2;
    padding: 0 0 30px 0;
    border-top: 1px solid rgba(137, 121, 81, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
}

footer > a{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgb(137, 121, 81);
    text-indent: 5px;
    text-decoration: none;
    padding: 30px 0 20px 0;
}



footer div a:link, footer div a:visited{
    text-decoration: underline;
    color: rgba(137, 121, 81, 1);
    transition: 0.5s;
}

footer div a:hover, footer div a:active{
    color:rgba(137, 121, 81, 0.5);
}


@media (hover){
    input[type=submit]:hover, input[type=submit]:active{
        color: rgba(137, 121, 81, 0.7);
        border: 1px solid rgba(137, 121, 81, 0.7);
        cursor: pointer;
    }
}


@media screen and (min-width: 800px){
    .photo-gallery-box{ width: 48.5%;}
}

@media screen and (min-width: 750px){
    #intro{
        gap: 100px 50px;
    }
    #intro>div:nth-child(2){
        grid-column: 2 / 4;
    }
    #intro1{
        grid-column: 1 / 2;
    }
    #intro2{
        grid-column: 3 / 4;
    }

    #invitepic-area{
        height: 350px;
    }

    #invitepic-area>h2{
        font-size: 5vw;
    }

    #photo-area{
        grid-template-columns: 30% 70%;
        height: 600px;
    }
    
    #preview-text-box{
        flex-direction: row;
        left: 30%;
        transform: translate(-18%, -50%);
    }

    #photo-preview{
        margin: 0 150px 0 0;
    }
}

@media screen and (min-width: 500px){
    .timeline{
        font-size: 20px;
    }
}