@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Noto+Serif+TC:wght@600;900&display=swap');

html{scroll-behavior: smooth;}
body,html{height: 100%;}

body{
    margin: 0;
    padding: 0;
    font-family: 'Aboreto','Noto Serif TC',serif;
    color: rgb(165, 208, 234);
    background-color: rgb(243, 243, 243);
    letter-spacing: 8px;
    font-size: 15px;
    font-weight: 600;
}

::selection{
    color: rgb(255, 255, 255);
    background-color: rgba(165, 208, 234, 0.7);
}

h1{
    font-family: 'Noto Serif TC',serif;
    font-size: 23px;
    letter-spacing: 10px;
    white-space: nowrap;
    line-height: 2;
}

h2{
    font-family: 'Noto Serif TC',serif;
    font-size: 20px;
    letter-spacing: 15px;
    text-indent: 15px;
    white-space: nowrap;
    line-height: 2;
}

p{
    margin: 0;
    line-height: 3;
}


*{
    box-sizing: border-box;
}

#music-onoroff{
    width: 100%;
    height: 100%;
    color: rgb(255, 255, 255);
    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: rgb(165, 208, 234);
    padding: 100px 40px;
    position: relative;
}

#music-onoroff>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.5);
    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(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    text-decoration: none;
    padding: 5px 20px;
    margin: 10px 0 40px 0;
    border-radius: 20px;
    transition: 0.5s;
}

#music-onoroff a:link:last-of-type{
    border: none;
}

#music-onoroff a:hover, #music-onoroff a:active{
    color: rgb(165, 208, 234);
    background-color: rgb(255, 255, 255);
}

.music-button{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(165, 208, 234);
    border: 1px solid rgba(165, 208, 234, 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(165, 208, 234, 0.9);
    transform: rotate(45deg);
    transform-origin: top left;
    top: 20%;
    left: 25%;
    transition: 0.5s;
}

.music-off-line.playmusic{
    width: 0;
}

header{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 50px;
    animation: opening 2s forwards;
}

@keyframes opening{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

header>div{
    width: 100%;
    height: 50%;
}

.header-section1{
    display: flex;
    align-items: center;
}

.header-section2{
    height: 50vh;
    padding: 50px 0 0 0;
    writing-mode: vertical-rl;
    text-orientation: upright;
}


.header-pic{
    width: 100%;
    height: 100%;
    background-image: url('1.webp');
    background-position: center;
    background-size: cover;
}

.header-section2>div{
    margin-top: 50px;
}

.header-section2 p{
    display: inline;
    padding: 0 0 0 5px;
    color: rgba(165, 208, 234, 1);
    background: 
    linear-gradient(to bottom, rgba(165, 208, 234, 0), rgba(165, 208, 234, 0)),
    linear-gradient(to bottom, rgba(165, 208, 234, 1), rgba(165, 208, 234, 1));
    background-size: 0.1em 0, 0.1em calc(100% - 7px);
    background-position: 100% 100%, 0 0;
    background-repeat: no-repeat;
    /*animation: openingP 2s forwards 0.5s, openingline 2s forwards 2s;*/
}

/*.header-section2 p:last-of-type{
    animation: openingP 2s forwards 1.5s, openingline 2s forwards 3s;
}


@keyframes openingP{
    from{
        color: rgba(165, 208, 234, 0);
    }to{
        color: rgba(165, 208, 234, 1);
    }
}

@keyframes openingline{
    from{
        background-size: 0.1em 100%, 0.1em 0;

    }to{
        background-size: 0.1em 0, 0.1em calc(100% - 7px);
    }
}*/


.theX{
    display: inline-block;
    padding: 15px 0;
    font-size: 25px;
}

.celebrate-section{
    position: relative;
    width: 100%;
    height: 100%;
    border: 30px solid rgb(243, 243, 243);
    overflow: hidden;
}



.celebrate-pic{
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('2.webp');
    background-size: cover;
    background-position: center;
}

.celebrate-section h2, .celebrate-section p{
    position: relative;
}

.celebrate-section h2{
    margin: 70px 0 0 10px;
    color: rgb(255, 255, 255);
    opacity: 0;
}

.celebrate-section h2.active{
    opacity: 1;
    transition: 2s;
}

.celebrate-section p{
    max-width: 0;
    display: inline-block;
    background-color: rgb(243, 243, 243);
    letter-spacing: 15px;
    text-indent: 15px;
    line-height: 2.5;
    overflow: hidden;
    white-space:nowrap;
}

.celebrate-section p.active{
    max-width: 500px;
    transition: 3s;
    transition-delay: 0.5s;
}


.intro{
    padding: 100px 0;
    width: 100%;
    max-width: 700px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.intro-box{
    position: relative;
    display: flex;
    flex-direction: column;
}

.bride .pic{
    align-self: flex-end;
}

.pic{
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1.5;
    background-repeat: no-repeat;
    opacity: 0;
}

.pic.active{
    opacity: 1;
    transition: 2s;
}

.groom .pic{
    background-image: url('5.webp');
    background-size: 350%;
    background-position: 33% 50%;
    margin-right: 50px;
}

.bride .pic{
    background-image: url('bride.webp');
    background-size: 120%;
    background-position: 55% 50%;
    margin-left: 50px;
}

.intro-content{
    position: relative;
    align-self: flex-end;
    transform: translateY(-80px);
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
}

.intro-content.active{
    transform: translateY(-40px);
    opacity: 1;
    transition: 2s;
}

.groom .intro-content, .bride .intro-content{
    left: -10%;
}


.intro-content p{
    background-color: rgb(255, 255, 255);
    padding: 0 10px 0 18px;
    margin: 20px 0;
    line-height: 2;
}

.name-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-lr;
    text-orientation: upright;
    margin: 0 0 90px 0;
}

.name-box>h2:last-of-type{
    margin-top: 50px;
}

.invite{
    width: 90%;
    max-width: 700px;
    margin: auto;
    padding: 0 0 100px 0;
    display: flex;
    flex-direction: column;
}

.invite>div{
    width: 100%;
}

.invite-pic{
    display: flex;
    flex-direction: column;
}

.invite-pic>div{
    width: 85%;
    aspect-ratio: 1 / 0.6;
    margin: 10px;
    background-position: center;
    background-size: cover;
    opacity: 0;
}

#invite-pic1{
    background-image: url('4.webp');
    transform: translateX(50px);
}
#invite-pic2{
    background-image: url('6.webp');
    align-self: flex-end;
    transform: translateX(-50px);
}
#invite-pic3{
    background-image: url('3.webp');
    transform: translateX(50px);
}

.invite-pic.active div{
    opacity: 1;
    transition: 2s;
}
.invite-pic.active #invite-pic1{
    transform: translateX(0);
    transition-delay: 0.5s;
}
.invite-pic.active #invite-pic2{
    transform: translateX(0);
    transition-delay: 1s;
}
.invite-pic.active #invite-pic3{
    transform: translateX(0);
    transition-delay: 1.5s;
}

.invite-content{
    align-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    margin-top: 50px;
    transform: translateY(-50px);
    opacity: 0;
}

.invite-content.active{
    transform: translateY(0);
    opacity: 1;
    transition: 2s;
}


.invite-content p{
    margin-top: 70px;
}

.invite-place{
    position: relative;
    padding: 0 0 0 5px;
    background: 
    linear-gradient(to bottom, rgba(165, 208, 234, 0), rgba(165, 208, 234, 0)),
    linear-gradient(to bottom, rgba(165, 208, 234, 1), rgba(165, 208, 234, 1));
    background-size: 0.1em 100%, 0.1em 0;
    background-position: 100% 100%, 0 0;
    background-repeat: no-repeat;
}


.invite-content.active .invite-place{
    background-size: 0.1em 0, 0.1em calc(100% - 7px);
    transition: 2s 1s;
}

.invite-place>span{
    text-orientation: sideways;
}

.traffic{
    width: 90%;
    max-width: 700px;
    padding: 30px 0 100px 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center; 
    overflow: hidden;   
}

.traffic-guide{
    opacity: 0;
    transform: translateY(-50px);
}
.traffic-guide.active{
    opacity: 1;
    transform: translateY(0);
    transition: 2s;
}

.traffic-guide>h2{
    text-indent: 0; 
    white-space: pre-wrap; 
    word-break: break-all;
}

.venue-address{
    display: inline;
    padding: 0 0 5px 0;
    background: 
    linear-gradient(to bottom, rgba(165, 208, 234, 0), rgba(165, 208, 234, 0)),
    linear-gradient(to bottom, rgba(165, 208, 234, 1), rgba(165, 208, 234, 1));
    background-size: 100% 0.1em, 0 0.1em;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
}

.traffic-guide.active .venue-address{
    background-size: 0 0.1em, calc(100% - 7px) 0.1em;
    transition: 2s 1s;
}

.map{
    position: relative;
    width: 90%;
    margin: 50px 0 0 0;
    opacity: 0;
    text-align: center;
}

.map.active{
    opacity: 1;
    transition: 2s;
}

.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(255, 255, 255);
    background-color: rgba(165, 208, 234, 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;
    }
}


.schedule{
    padding: 0 0 50px 0;
    display: grid;
    grid-template-columns: 20% 80%;
    max-width: 700px;
    margin: auto;
    overflow: hidden;
}

.schedule>h2{
    writing-mode: vertical-rl;
}

.timeline{
    margin-top: 50px;
    display: grid;
    grid-template-columns: auto auto;
    gap: 30px 50px;
    justify-self: center;
}

.timeline>div {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.timeline>.spin::before,
.timeline>.spin::after {
    box-sizing: inherit;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.spin {
    height: 80px;
    width: 80px;
    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.5;
    padding: 8px 0 0 3px;
}

.spin::before,
.spin::after {
    top: 0;
    left: 0;
}

.spin::before {
    border: 1px solid transparent;
}


.timeline.active .spin::before {
    border-top-color: rgba(165, 208, 234, 1);
    border-right-color: rgba(165, 208, 234, 1);
    border-bottom-color: rgba(165, 208, 234, 1);
}

.timeline.active .spin:first-of-type::before{
    transition: border-top-color 0.15s linear, border-right-color 0.15s linear 0.10s, border-bottom-color 0.15s linear 0.20s;
}
.timeline.active .spin:nth-child(3)::before{
    transition: border-top-color 0.15s linear 1.5s, border-right-color 0.15s linear 1.60s, border-bottom-color 0.15s linear 1.70s;
}
.timeline.active .spin:nth-child(5)::before{
    transition: border-top-color 0.15s linear 3s, border-right-color 0.15s linear 3.10s, border-bottom-color 0.15s linear 3.20s;
}
.timeline.active .spin:nth-child(7)::before{
    transition: border-top-color 0.15s linear 4.5s, border-right-color 0.15s linear 4.60s, border-bottom-color 0.15s linear 4.70s;
}
.timeline.active .spin:nth-child(9)::before{
    transition: border-top-color 0.15s linear 6s, border-right-color 0.15s linear 6.10s, border-bottom-color 0.15s linear 6.20s;
}

.spin::after {
    border: 0 solid transparent;
}

.timeline.active .spin::after {
    border-top: 1px solid rgba(165, 208, 234, 1);
    border-left-width: 1px;
    border-right-width: 1px;
    transform: rotate(270deg);
}

.timeline.active .spin:first-of-type::after{
    transition: transform 0.4s linear 0s, border-left-width 0s linear 0.35s, -webkit-transform 0.4s linear 0s;
}
.timeline.active .spin:nth-child(3)::after{
    transition: transform 0.4s linear 1.5s, border-left-width 0s linear 1.85s, -webkit-transform 0.4s linear 1.5s, border-top 0s linear 1.5s;
}
.timeline.active .spin:nth-child(5)::after{
    transition: transform 0.4s linear 3s, border-left-width 0s linear 3.35s, -webkit-transform 0.4s linear 3s, border-top 0s linear 3s;
}
.timeline.active .spin:nth-child(7)::after{
    transition: transform 0.4s linear 4.5s, border-left-width 0s linear 4.85s, -webkit-transform 0.4s linear 4.5s, border-top 0s linear 4.5s;
}
.timeline.active .spin:nth-child(9)::after{
    transition: transform 0.4s linear 6s, border-left-width 0s linear 6.35s, -webkit-transform 0.4s linear 6s, border-top 0s linear 6s;
}



.circle {
    border-radius: 100%;
    box-shadow: none;
}

.circle::before,
.circle::after {
    border-radius: 100%;
}

.activity{
    opacity: 0;
}

.timeline.active .activity{
    opacity: 1;
    transition: 1s;
}

.timeline.active .activity:nth-child(2){
    transition-delay: 0.5s;
}
.timeline.active .activity:nth-child(4){
    transition-delay: 2s;
}
.timeline.active .activity:nth-child(6){
    transition-delay: 3.5s;
}
.timeline.active .activity:nth-child(8){
    transition-delay: 5s;
}
.timeline.active .activity:nth-child(10){
    transition-delay: 6.5s;
}

.dress-code{
    position: relative;
    padding: 0 0 100px 0;
    margin-top: 150px;
    background-color: rgb(165, 208, 234);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-box{
    position: absolute;
    display: grid;
    grid-template-columns: auto auto;
    top: -70px;

}

.color{
    width: 80px;
    height: 200px;
    margin: 30px 40px;
    display: flex;
    justify-content: center;
    position: relative;
}

.color>p{
    position: absolute;
    top: -10%;
    right: 15%;
    writing-mode: vertical-rl;
    background-color: rgba(255, 255, 255, 1);
    padding: 20px 2px 0 0;
    line-height: 2;
    height: 120px;
}

.color{
    transform: translateY(-50px);
    opacity: 0;
}

#color1{
    background-color: #ededec;
}
#color2{
    background-color: #dbd5cf;
}
#color3{
    background-color: #353544;
}
#color4{
    background-color: #2b2b2a;
}


.color-box.active .color{
    transform: translateY(0);
    opacity: 1;
    transition: 2s;
}


.color-box.active #color2{
    transition-delay: 0.5s;
}
.color-box.active #color3{
    transition-delay: 1s;
}
.color-box.active #color4{
    transition-delay: 1.5s;
}

.dress-code-title{
    position: absolute;
    width: 100%;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.dress-code-title>h2{
    font-family: 'Aboreto','Noto Serif TC',serif;
    color: rgba(255, 255, 255, 0.2);
    font-size: 15vw;
    line-height: 2;
    margin: 0;
    text-indent: 0;
    text-align: center;
}

.dress-code-title>h2>span{
    display: block;
}

.dress-code>p{
    display: inline;
    color: rgb(255, 255, 255);
    position: relative;
    line-height: 1;
    margin-top: 500px;
    padding: 0 0 5px 0;
    background: 
    linear-gradient(to bottom, rgba(165, 208, 234, 0), rgba(165, 208, 234, 0)),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8));
    background-size: 100% 0.1em, 0 0.1em;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
}

.dress-code>p.active{
    background-size: 0 0.1em, calc(100% - 7px) 0.1em;
    transition: 2s;
}

.photo-video{
    padding: 150px 0 100px 0;
}

.photo-video a:link, .photo-video a:visited{
    min-width: 110px;
    min-height: 110px;
    line-height: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    border: 1px solid rgb(165, 208, 234);
    color: rgb(165, 208, 234);
    text-decoration: none;
    letter-spacing: 3px;
    padding-left: 3px;
    transition: 0.5s;
}

.button-area{
    width: 30%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.photo-video a:hover, .photo-video a:active{
    color:rgb(229, 245, 255);
    background-color: rgb(165, 208, 234);
}

.photo-area, .video-area{
    position: relative;
    display: flex;
}


.photo-area{
    max-width: 1500px;
    padding-right: 10px;
    margin-bottom: 200px;
}

.photo-area h2, .video-area h2{
    color: rgb(255, 255, 255);
    background-color: rgb(165, 208, 234);
    writing-mode: vertical-rl;
    padding: 10px 5px;
    position: absolute;
    z-index: 2;
    top: -15%;
}

.slider-box{
    width: 70%;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 1rem;
    margin-bottom: 100px;
}

.slider-box:hover .slider{
    animation-play-state: paused;
}

.slider{
    width: 900px;
    height: 400px;
    display: flex;
    gap: 1rem;
    animation: slide 20s linear infinite;
}

@keyframes slide{
    0%{
        translate: 0;
    }
    100%{
        translate: calc(-100% - 1rem);
    }
}

.slider-photo{
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#photo1, #photo4, #photo7{
    background-image: url('7.webp');
}
#photo2, #photo5, #photo8{
    background-image: url('9.webp');
}
#photo3, #photo6, #photo9{
    background-image: url('10.webp');
}

.video-area{
    max-width: 1000px;
    padding: 0 20px;
    margin: auto;
    opacity: 0;
}

.video-area.active{
    opacity: 1;
    transition: 2s;
}

.video-box{
    width: 70%;
    min-width: 250px;
    height: 350px;
    margin-bottom: 100px;
    background-image: url('8.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
  
.video-area h2{
    right: 20px;
}

#closebutton:link, #closebutton:visited{
    position: fixed;
    z-index: 101;
    right: 10px;
    top: 0;
    color: rgb(255, 255, 255);
    font-size: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.5s;
    display: none;
}

#closebutton:hover, #closebutton:active{
    transform: scale(1.5);
}

#gallery{
    text-align: center;
    color: rgb(255, 255, 255);
    background-color: rgba(165, 208, 234,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(255, 255, 255, 1);
    text-decoration: underline;
    transition: 0.5s;
}

#gallery a:hover, #gallery a:active{
    color: rgba(255, 255, 255, 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: 0 5px 0 0;
}


#photo-gallery img{
    width: 100%;
    margin-bottom: 0;
}

#video{
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

iframe{
    width: 90%;
}

.countdown-area{
    text-indent: 8px;
    width: 90%;
    margin: 0 auto 150px auto;
    text-align: center;
    overflow: hidden;
}

.countdown-area>p{
    padding: 50px 0;
}

#lookforward{
    text-indent: 0;
    position: relative;
    display: inline-block;
    padding: 50px 0 0 0;
    margin-left: 8px;
    background: 
    linear-gradient(to bottom, rgba(165, 208, 234, 0), rgba(165, 208, 234, 0)),
    linear-gradient(to bottom, rgba(165, 208, 234, 0.8), rgba(165, 208, 234, 0.8));
    background-size: 100% 0.1em, 0 0.1em;
    background-position: 100% 100%, 0 100%;
    background-repeat: no-repeat;
}

#lookforward.active{
    background-size: 0 0.1em, calc(100% - 7px) 0.1em;
    transition: 2s 1.5s;
}

.countdown-area-box{
    max-width: 700px;
    margin: 20px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
    justify-content: center;
}

.countdown-area-box>div{
    font-size: 21px;
    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: flex;
    justify-content: center;
    align-items: center;
}

.attend{
    position: relative;
    cursor: pointer;
    margin: 0 70px;
    padding-left: 8px;
    font-weight: 900;
    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: 120px;
    height: 120px;
    border: 1px solid rgb(165, 208, 234);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
}


.attend:hover span{
    opacity: 0.5;
}

.attend input:checked ~ span{
    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: 14px;
    padding: 8px 10px;
    color: rgb(165, 208, 234);
    background-color: rgba(165, 208, 234, 0);
    border: none;
    border-bottom: 1px solid rgb(165, 208, 234);
    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(165, 208, 234);
}

::placeholder{
    color: rgba(165, 208, 234,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(165, 208, 234);
    top: 1px;
    left: 0;
    transition: 0.5s;
}

input[type=radio] ~ span{
    border-radius: 50%;
}

.hideinput:hover span{
    background-color: rgba(165, 208, 234, 0.5);
}

.hideinput input:checked ~ span{
    background-color: rgb(165, 208, 234);
}

.AandK select{
    margin-right: 5px;
    width: calc(100% / 2 - 75px);
}

input[type=submit]{
    color: rgb(165, 208, 234);
    background-color: rgba(165, 208, 234,0);
    border: 1px solid rgb(165, 208, 234);
    padding: 10px 20px;
    margin-top: 40px;
    border-radius: 25px;
    text-indent: 5px;
    letter-spacing: 5px;
    font-family: 'Noto Serif TC',serif;
    font-size: 14px;
    font-weight: 900;
    transition: 1s;
}

#loading{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#loader{
    border: 8px solid rgba(255, 255, 255, 1);
    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%;
    color: rgb(255, 255, 255);
    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(165, 208, 234);
    padding: 50px 60px;
    position: relative;
}

#submit-success>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 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: rgb(255, 255, 255);
    border: 1px solid rgb(255, 255, 255);
    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: rgb(165, 208, 234);
    background-color: rgb(255, 255, 255);
}


footer{
    font-family: 'Aboreto', 'Noto Serif TC',serif;
    letter-spacing: 3px;
    line-height: 2;
    padding: 30px 0;
    color: rgb(255, 255, 255);
    background-color: rgb(165, 208, 234);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 13px;
    position: relative;
}

footer > a{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    background-color: rgb(165, 208, 234);
    text-indent: 2px;
    text-decoration: none;
    top: -30px;
    padding: 15px 10px 0 10px;
    border-radius: 30px 30px 0 0;
}



footer div a:link, footer div a:visited{
    text-decoration: underline;
    color: rgba(255, 255, 255, 1);
    transition: 0.5s;
}

footer div a:hover, footer div a:active{
    color: rgba(255, 255, 255, 0.5);
}


@media (hover){
    input[type=submit]:hover, input[type=submit]:active{
        color: rgb(255, 255, 255);
        background-color: rgb(165, 208, 234);
        cursor: pointer;
    }
}


@media screen and (min-width: 800px){
    .photo-gallery-box{ width: 49%;}
}

@media screen and (min-width: 750px){
    h1{
        font-size: 30px;
    }
    h2{
        font-size: 25px;
    }
    header{
        flex-direction: row;
    }
    header>div{
        width: 50%;
        height: 100%;
    }
    .header-pic{
        width: 80%;
    }
    .header-section2{
    height: auto;
    padding: 50px 70px 0 0;
    }
    .intro-box{
        flex-direction: row;
    }
    .bride{
        flex-direction: row-reverse;
    }
    .bride .intro-content{
        left: 10%;
    }
    .name-box{
        margin: 70px 0 120px 0;
    }
    .invite{
        padding: 100px 0;
        display: flex;
        flex-direction: row;
    }
    .invite>div{
        width: 50%;
    }
    .invite-content{
        margin-top: 0;
    }
}
@media screen and (min-width: 700px){
    .color-box{
        grid-template-columns: auto auto auto auto;
    }
    .dress-code-title>h2>span{
        display: none;
    }
    .color{
        height: 250px;
        margin: 0 50px;
    }
    .dress-code>p{
        margin-top: 300px;
    }
}