@import url('https://fonts.googleapis.com/css2?family=WindSong:wght@400;500&family=Noto+Serif+TC:wght@200..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(86, 96, 70);
    background: linear-gradient(90deg,rgb(236, 236, 224) 60%,rgb(222, 223, 205) 40%);
    background-size: 30px 30px;
    letter-spacing: 2px;
    font-size: 16px;
    font-weight: 200;
    line-height: 2;
}

b{
    font-weight: 700;
}

::selection{
    color: rgb(236, 236, 224);
    background-color: rgba(86, 96, 70, 0.7);
}

h1{
    font-family: 'Melodrama','Noto Serif TC', serif;
    font-size: 30px;
    font-weight: 400;
    margin: 0;
}

h2{
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

.script-font{
    font-family: 'altesse-std-24pt','WindSong', 'Noto Serif TC', serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    padding-right: 10px;
    opacity: 0;
}
.script-font.active{
    opacity: 1;
    transition: 3s;
}

*{
    box-sizing: border-box;
}


#music-onoroff{
    width: 100%;
    height: 100%;
    color: rgb(236, 236, 224);
    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);
    letter-spacing: 5px;
    text-indent: 5px;
}

#music-onoroff>div{
    background-color: rgba(86, 96, 70, 1);
    border-radius: 50rem;
    padding: 100px 30px;
    position: relative;
}

#music-onoroff>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(236, 236, 224, 0.5);
    border-radius: 50rem;
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#music-onoroff a:link, #music-onoroff a:visited{
    position: relative;
    display: inline-block;
    color: rgb(236, 236, 224);
    border: 1px solid rgb(236, 236, 224);
    text-decoration: none;
    padding: 5px 20px;
    margin: 20px 0 30px 0;
    border-radius: 50rem;
    transition: 0.5s;
}

#music-onoroff a:link:last-of-type{
    border: none;
}

#music-onoroff a:hover, #music-onoroff a:active{
    color: rgb(86, 96, 70);
    background-color: rgb(236, 236, 224);
}

.music-button{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(86, 96, 70);
    border: 1px solid rgba(86, 96, 70, 0.7);
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    animation: musicbutton 1.5s;
    mix-blend-mode: multiply;
}

@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(86, 96, 70, 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;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

.header-logo-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45%;
}

.header-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 55%;
    background: rgb(236, 236, 224);
    padding-bottom: 30px;
}

.header-text p{
    font-size: 30px;
    line-height: 1.5;
    margin: 0;
}

header .wedding-logo{
    position: absolute;
    bottom: -40%;
    background-color: rgb(236, 236, 224);
}

.wedding-logo{
    color: rgb(86, 96, 70);
    border-radius: 100px;
    width: 130px;
    height: 180px;
    margin: 30px 0;
}

.wedding-logo::before{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(86, 96, 70, 0.8);
    border-radius: 50rem;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
}
.wedding-logo::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(86, 96, 70, 0.8);
    border-radius: 50rem;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
}


.wedding-logo>h2{
    position: absolute;
    font-size: 70px;
}

.wedding-logo>h2:first-of-type{
    top: 1%;
    left: 29%;
}

.wedding-logo>h2:last-of-type{
    top: 21%;
    left: 31%;
}

#scroll-button{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    height: 100px;
    cursor: pointer;
    overflow: hidden;
}

#scroll-button p{
    font-size: 12px;
    animation-name: scrollp;
    animation-iteration-count: infinite;
    animation-duration: 2s;
}

@keyframes scrollp{
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

#scroll-line{
    display: block;
    height: 0;
    border-left: 1px solid rgba(86, 96, 70, 0.5);
    animation-name: scroll-line;
    animation-iteration-count: infinite;
    animation-duration: 1s;
}

@keyframes scroll-line{
    0% {
        height: 0;
    }
    100% {
        height: 60px;
    }
}

#intro{
    position: relative;
    padding: 100px 0;
    display: grid;
    grid-template-columns: 80px auto;
    column-gap: 10px;
    background: rgb(236, 236, 224);
    overflow: hidden;
}

#intro-title{
    display: grid;
    grid-template-columns: 260px auto;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    justify-self: center;
}

#intro-title>div:first-of-type{
    top: 2%;
}

#intro-title>div:last-of-type{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#intro-title>div>div{
    border-right: 1px solid rgb(86, 96, 70);
}

#intro-area{
    margin: auto;
    word-break: break-word;
}

#intro-area>div{
    opacity: 0;
    transform: translateX(50px);
}

#intro-area>div.active{
    opacity: 1;
    transform: translateX(0);
    transition: 2.5s;
}

#intro-area h2{
    font-size: 40px;
    line-height: 1.5;
}

#intro-area>div:first-of-type{
    padding-bottom: 100px;
}

#intro-area>div>p:first-of-type{
    text-align: center;
    display: inline-block;
    padding: 0 10px 0 13px;
    margin: 0 0 20px 0;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgb(86, 96, 70);
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgb(86, 96, 70);
    border-radius: 50rem;
}

#invite-countdown-box{
    padding: 100px 20px;
    overflow: hidden;
}

#invite{
    position: relative;
    width: 90%;
    max-width: 330px;
    padding: 50px 10px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgb(236, 236, 224);
}

#invite>p:first-of-type{
    position: absolute;
    top: -70px;
    right: -10%;
    font-size: 35px;
    rotate: 10deg;
}

#invite h2{
    line-height: 1.2;
    font-size: 40px;
    opacity: 0;
}

#invite h2.active{
    opacity: 1;
    transition: 3s;
}

#countdown-area{
    position: relative;
    width: 90%;
    max-width: 330px;
    padding: 0 10px 50px 10px;
    margin: auto;
    text-align: center;
    background: rgb(236, 236, 224);
    overflow: hidden;
}

#countdown-area h2{
    white-space: nowrap;
    display: inline-block;
    padding: 0 45px;
    position: relative;
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgb(86, 96, 70);
    border-radius: 50rem;
}

#countdown-area h2::before{
    content: '';
    position: absolute;
    border-top: 1px solid rgb(86, 96, 70);
    width: 30px;
    top: 50%;
    left: -20px;
}

#countdown-area h2::after{
    content: '';
    position: absolute;
    border-top: 1px solid rgb(86, 96, 70);
    width: 30px;
    top: 50%;
    right: -20px;
}

.countdown-area-box{
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
}

.countdown-area-box>div{
    letter-spacing: 3px;
    font-size: 45px;
    padding: 0;
    transform: translateY(-50px);
    opacity: 0;
}

.countdown-area-box>div.active{
    transform: translateY(0);
    opacity: 1;
    transition: 3s;
}

.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;
}


#traffic{
    position: relative;
    margin: auto;
    text-align: left;
    overflow: hidden;
    background: rgba(236, 236, 224, 0.7);
    padding: 100px 20px;
}

#traffic>div{
    max-width: 700px;
    margin: auto;
}

#traffic>div>p:first-of-type{
    margin: 0;
}
#traffic>div>p:first-of-type>span{
    font-size: 20px;
    font-weight: 700;
}

.map{
    position: relative;
    width: 100%;
    margin: 50px 0;
}

.map img{
    width: 100%;
}

.map a:link, .map a:visited{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    color: rgb(236, 236, 224);
    background-color: rgba(86, 96, 70, 0.7);
    text-decoration: none;
    opacity: 1;
}

.map.active a:link, .map.active a:visited{
    opacity: 0;
    transition: 2s 1s;
}

.map.active a:hover, .map.active a:active{
    animation: maphint 1s forwards;
}

@keyframes maphint{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

.traffic-guide{
    font-family: 'Noto Serif TC',serif;
    opacity: 0;
    transform: translateX(50px);
    text-align: justify;
}
.traffic-guide.active{
    opacity: 1;
    transform: translateX(0);
    transition: 3s;
}

.traffic-guide svg{
    width: 14px;
    height: 14px;
    fill: currentColor;
    padding-top: 1px;
}

#schedule{
    position: relative;
    margin: auto;
    text-align: center;
    background: rgba(236, 236, 224, 1);
    overflow: hidden;
}

.schedule-border-h{
    width: 100%;
    border-top: 1px solid rgba(86, 96, 70, 0.8);
}
.schedule-border-t{
    width: 100%;
    border-top: 1px solid rgba(86, 96, 70, 0.8);
    margin: 5px 0;
}

.schedule-box{
    padding: 100px 10px;
}

#schedule h2>span{
    display: inline-block;
    position: relative;
    padding-right: 8px;
    top: -5px;
}

.timeline{
    font-size: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-auto-rows: 1fr;
    gap: 100px 30px;
    justify-content: center;
    align-items: center; 
    max-width: 700px;
    margin: 50px auto 0 auto;
}

.time{
    text-align: right;
    line-height: 1;
}

.time>span{
    font-size: 12px;
}

.activity{
    text-align: left;
}

.time, .activity{
    opacity: 0;
    transform: translateY(50px);
}

.timeline.active>.time, .timeline.active>.activity{
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
}

.timeline.active>div:nth-of-type(4),.timeline.active>div:nth-of-type(6){
    transition-delay: 2s;
}

.timeline.active>div:nth-of-type(7),.timeline.active>div:nth-of-type(9){
    transition-delay: 3.5s;
}

.timeline.active>div:nth-of-type(10),.timeline.active>div:nth-of-type(12){
    transition-delay: 5s;
}

.timeline.active>div:nth-of-type(13),.timeline.active>div:nth-of-type(15){
    transition-delay: 6.5s;
}


.dot{
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dot>div{
    width: 5px;
    height: 5px;
    background-color: rgb(86, 96, 70);
    border-radius: 50%;
}

.dot::before{
    position: absolute;
    content: '';
    height: 0;
    border-left: 1px solid rgba(86, 96, 70,0.8);
    top: 50%;
    left: 49.5%;
    transform: translateX(-50%);
}

.timeline.active>.dot::before{
    height: calc(100% + 100px);
    transition: 1s;
}

.timeline.active>div:nth-of-type(2)::before{
    transition-delay: 1s;
}

.timeline.active>div:nth-of-type(5)::before{
    transition-delay: 2.5s;
}

.timeline.active>div:nth-of-type(8)::before{
    transition-delay: 4s;
}

.timeline.active>div:nth-of-type(11)::before{
    transition-delay: 5.5s;
}

.timeline.active>div:nth-of-type(14)::before{
    height: 0;
}

#dresscode{
    position: relative;
    text-align: center;
    padding: 100px 10px 50px 10px;
    margin: auto;
    background: rgba(236, 236, 224, 0.7);
}

.dresscode-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.color{
    font-size: 30px;
    width: 170px;
    aspect-ratio: 1 / 1.4;
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgb(86, 96, 70);
    border-radius: 50rem;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.color.active{
    opacity: 1;
    transition: 3s;  
}

.color>div{
    margin-top: 20px;
    width: 40px;
    aspect-ratio: 1 / 1;
    border: 1px solid rgb(86, 96, 70);
    border-radius: 50rem;
}

#color1>div{
    background-color: #f7efe3;
}
#color2>div{
    background-color: #cacaca;
}
#color3>div{
    background-color: #2F3E64;
}


#photo-video-link{
    position: relative;
    padding: 0 10px 75px 10px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(236, 236, 224, 0.7);
    overflow: hidden;
}

#photo-video-link>div{
    margin: 50px 100px 80px 100px;
    max-width: 500px;
    text-align: center;
}

#photo-video-link a:link,#photo-video-link a:visited{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 250px;
    padding: 5px 20px;
    margin-top: 20px;
    border-radius: 50rem;
    color: rgb(86, 96, 70);
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgb(86, 96, 70);
    text-decoration: none;
    transition: 1s;
}

#photo-video-link a:hover,#photo-video-link a:active{
    color: rgb(236, 236, 224);
    background-color: rgba(86, 96, 70, 1);
}


#closebutton:link, #closebutton:visited{
    font-family: 'Noto Serif TC',serif;
    position: fixed;
    z-index: 101;
    right: 20px;
    top: 0;
    color: rgb(86, 96, 70);
    font-size: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.5s;
    display: none;
}

#closebutton:hover, #closebutton:active{
    transform: scale(1.2);
}

#gallery{
    text-align: center;
    background-color: rgba(236, 236, 224,0.95);
    position: fixed;
    z-index: 100;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    top: 0;
    display: none;
}

#gallery a:link, #gallery a:visited{
    color: rgb(86, 96, 70);
    text-decoration: underline;
    transition: 0.5s;
}

#gallery a:hover, #gallery a:active{
    color: rgba(86, 96, 70, 0.5);
}

#photo-gallery{
    text-indent: 0;
    padding: 100px 50px;
    display: none;
    flex-direction: column;
}

#photo-gallery-box{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#photo-gallery-box > div{
    width: 100%;
}

#photo-gallery img{
    width: 100%;
    display: block;
    padding: 0 5px 10px 5px;
}

#video{
    display: none;
    flex-direction: column;
    align-items: center;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: hidden;
}

iframe{
    width: 90%;
    max-width: 640px;
}

#marquee-area{
    position: relative;
    background: rgb(236, 236, 224);
    border-top: 1px solid rgb(86, 96, 70);
    border-bottom: 1px solid rgb(86, 96, 70);
}

#marquee-area .wedding-logo{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    color: rgb(236, 236, 224);
    background-color: rgb(86, 96, 70);
}

#marquee-area .wedding-logo::before{
    border: 1.5px solid rgba(236, 236, 224, 0.8);
}
#marquee-area .wedding-logo::after{
    border: none;
}

.slider-box{
    position: relative;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1rem;
    opacity: 0.8;
}

.slider{
    display: flex;
    gap: 1rem;
    animation: slide 70s linear infinite;
}

.slider-box:nth-of-type(even) .slider{
    animation: slide2 70s linear infinite;
}

@keyframes slide{
    0%{
        translate: 0;
    }
    100%{
        translate: calc(-100% - 1rem);
    }
}
@keyframes slide2{
    0%{
        translate: calc(-100% - 1rem);
    }
    100%{
        translate: 0;
    }
}

.slider-text{
    width: 100%;
    font-size: 40px;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
    -webkit-transform: translateZ(0);
}

.RSVP{
    position: relative;
    text-align: center;
    overflow: hidden;
    padding: 100px 10px;
    margin: auto;
    background: rgba(236, 236, 224, 0.7);
}

.formarea{
    margin: 20px auto 0 auto;
    max-width: 300px;
}

.attend-area{
    display: flex;
    align-items: center;
    justify-content: center;
}

.attend{
    position: relative;
    font-family: 'Noto Serif TC',serif;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(86, 96, 70,0.3);
    cursor: pointer;
    margin: 30px 30px 0 30px;
    letter-spacing: 5px;
}


.attend input, .hideinput input{
    position: absolute;
    opacity: 0;
}

.attend span{
    position: relative;
    display: inline-block;
    font-size: 22px;
    transition: 0.5s;
}

.attend:hover span{
    color: rgba(86, 96, 70,0.6);
    transform: translateY(-5px);
}

.attend input:checked ~ span{
    color: rgba(86, 96, 70,1);
    transform: translateY(0);
}

.form-grid{
    text-align: left;
    margin: 50px 0;
}

.form-title{
    font-weight: 700;
    margin-top: 50px;
}

input:not([type=submit]), select, textarea{
    font-family: 'Melodrama','Noto Serif TC',serif;
    font-size: 14px;
    letter-spacing: 2px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px 10px 20px;
    color: rgb(86, 96, 70);
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgba(86, 96, 70, 0.5);
    border-radius: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

textarea::-webkit-scrollbar{
    display: none;
}

input:focus, select:focus, textarea:focus{
    outline: none;
}

select{
    padding: 8px 0;
    text-indent: 20px;
    height: 38px;
    -moz-appearance: none;
    -webkit-appearance: none; 
    appearance: none;
}

textarea{
    display: block;
    resize: none;
}

::placeholder{
    color: rgba(86, 96, 70,0.5);
    font-family: '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(86, 96, 70);
    top: 1px;
    left: 0;
    transition: 0.5s;
}

input[type=radio] ~ span{
    border-radius: 50%;
}

.hideinput:hover span{
    background-color: rgba(86, 96, 70, 0.5);
}

.hideinput input:checked ~ span{
    background-color: rgb(86, 96, 70);
}

.AandK select{
    margin-right: 5px;
    width: calc(95% / 2 - 50px);
}

input[type=submit]{
    color: rgb(86, 96, 70);
    background-color: rgba(86, 96, 70, 0.2);
    border: 1px solid rgba(86, 96, 70, 0.5);
    padding: 10px 15px;
    margin-top: 40px;
    border-radius: 50rem;
    text-indent: 10px;
    letter-spacing: 10px;
    font-family: 'Noto Serif TC',serif;
    font-size: 14px;
    font-weight: 700;
    transition: 1s;
}

#submit-success{
    font-family: 'Noto Serif TC',serif;
    width: 100%;
    height: 100%;
    color: rgb(236, 236, 224);
    display: none;
    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);
    letter-spacing: 5px;
    text-indent: 5px;
}

#submit-success h2{
    position: relative;
    letter-spacing: 5px;
    text-indent: 5px;
    font-size: 20px;
    font-weight: 700;
}


#submit-success>div{
    background-color: rgba(86, 96, 70, 1);
    border-radius: 50rem;
    padding: 100px 50px 90px 50px;
    position: relative;
}

#submit-success>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(236, 236, 224,0.5);
    border-radius: 50rem;
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#countdown{
    margin: 30px 0 40px 0;
    position: relative;
}

#submit-success a:link, #submit-success a:visited{
    position: relative;
    color: rgb(236, 236, 224);
    border: 1px solid rgb(236, 236, 224);
    text-decoration: none;
    padding: 10px 20px 10px 23px;
    border-radius: 50rem;
    transition: 0.5s;
}

#submit-success a:hover, #submit-success a:active{
    color: rgb(86, 96, 70);
    background-color: rgb(236, 236, 224);
}


#loading{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#loader{
    border: 8px solid rgba(86, 96, 70, 0.5);
    border-radius: 50%;
    border-top: 8px solid rgba(86, 96, 70, 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); }
}

footer{
    padding: 30px 0;
    color: rgb(236, 236, 224);
    background-color: rgb(86, 96, 70);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 12px;
    position: relative;
}

footer > a{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: rgba(236, 236, 224, 0.7);
    background-color: rgba(86, 96, 70, 1);
    text-indent: 2px;
    text-decoration: none;
    top: -25px;
    padding: 15px 15px 0 15px;
    border-radius: 30px 30px 0 0;
}


footer div a:link, footer div a:visited{
    text-decoration: underline;
    color: rgb(236, 236, 224);
    transition: 0.5s;
}

footer div a:hover, footer div a:active{
    color:rgba(236, 236, 224, 0.5);
}

footer .wedding-logo{
    color: rgb(236, 236, 224);
    transform: scale(0.65);
    margin: -10px auto;
}

footer .wedding-logo::before{
    border: 1.5px solid rgba(236, 236, 224, 0.8);
}
footer .wedding-logo::after{
    border: 1px solid rgba(236, 236, 224, 0.8);
}

@media (hover){
    input[type=submit]:hover, input[type=submit]:active{
        color: rgb(236, 236, 224);
        background-color: rgb(86, 96, 70);
        cursor: pointer;
    }
}

@media screen and (min-width: 800px){
    footer .wedding-logo{
        transform: scale(0.5);
        margin: -30px auto;
    }
    #photo-gallery-box{ flex-direction: row;}
    #photo-gallery-box > div{ width: 45%;}
    .slider-text{
        font-size: 3.4vw;
    }
}

@media screen and (min-width: 500px){
    #invite{
        max-width: 370px;
    }
    #invite h2{
        font-size: 45px;
    }
    #countdown-area{
        max-width: 370px;
    }
}
