@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Noto+Serif+Display:ital,wght@0,600;1,600&family=Noto+Serif+TC:wght@400;700&display=swap');

html{scroll-behavior: smooth;}
body,html{height: 100%;}

body{
    margin: 0;
    padding: 0;
    font-family: 'Aboreto','Noto Serif TC',serif;
    color: rgb(45, 45, 45);
    background-color: rgb(244, 244, 244);
    letter-spacing: 3px;
    font-size: 14px;
    line-height: 2;
}

::selection{
    color: rgb(244, 244, 244);
    background-color: rgba(79, 79, 79, 0.7);
}

h1{
    font-family: 'Noto Serif Display','Noto Serif TC',serif;
    font-size: 25px;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.5;
}


.bg{
    width: 100%;
    height: 100%;
    position: fixed;
    background-size: cover;
    z-index: -99;
    filter: grayscale(100%);
}

#homebg{
    background-position: 65% 40%;
    background-image: url("01.webp");
    z-index: -100;
}

#secondbg{
    background-position: 50% 40%;
    background-image: url("04.webp");
    z-index: -99;
    display: none;
}

#music-onoroff{
    width: 100%;
    height: 100%;
    color: rgb(244, 244, 244);
    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(45, 45, 45);
    padding: 100px 40px;
    position: relative;
}

#music-onoroff>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(244, 244, 244,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(244, 244, 244);
    border: 1px solid rgb(244, 244, 244);
    text-indent: 3px;
    text-decoration: none;
    padding: 5px 20px;
    margin-bottom: 40px;
    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(45, 45, 45);
    background-color: rgb(244, 244, 244);
}

.music-button{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(45, 45, 45);
    border: 1px solid rgba(45, 45, 45, 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(45, 45, 45, 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;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 20px solid rgb(244, 244, 244);
    color: rgb(244, 244, 244);
    overflow: hidden;
}

.header-title>div:first-child{
    text-align: center;
    border-bottom: 1px solid rgba(244, 244, 244,0.7);
    padding: 15px 0;
    margin: 0 10px;
}

.header-title>div:first-child>p{
    font-family: 'Noto Serif Display',serif;
    font-size: 10px;
    line-height: 1;
}

.header-title>div>p{
    margin: 0;
    letter-spacing: 0;
}

.header-title>div:last-child{
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
}

.header-invite{
    position: absolute;
    right: -5px;
    bottom: 15%;
    text-align: right;
    opacity: 0.8;
}

header a{
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    position: absolute;
    bottom: 0px;
    text-decoration: none;
    color: rgba(244, 244, 244,0.8);
    animation-name: scroll;
    animation-iteration-count: infinite;
    animation-duration: 2s;
}


@keyframes scroll{
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

.intro{
    background-color: rgb(244, 244, 244);
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.intro-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 700px;
}

.intro-box:last-child{
    flex-direction: column;
    text-align: right;
}

.intro-pic{
    position: relative;
    width: 230px;
    height: 310px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-shadow: 1px -1px 5px rgba(45, 45, 45,0.2);
    opacity: 0;
    transform: translateY(50px);
}

.intro-box.active .intro-pic{
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
}

#intro-groom{
    background-image: url('groom.webp');
}
#intro-bride{
    background-image: url('bride.webp');
}

#intro-groom .small-img{
    background-image: url('groom.webp');
    background-position: 70% 50%;
}
#intro-bride .small-img{
    background-image: url('bride.webp');
    background-position: 60% 65%;
}

.small-img{
    width: 70px;
    height: 70px;
    background-repeat: no-repeat;
    background-size: 300%;
    position: absolute;
    bottom: -50px;
}

#intro-groom .small-img{
    right: -90px;
}
#intro-bride .small-img{
    left: -90px;
}

.intro-pic h1{
    color: rgb(255, 255, 255);
    position: absolute;
    letter-spacing: 6px;
}

#intro-groom h1{
    top: 60px;
    left: -55px;
    transform: rotate(90deg);
}
#intro-bride h1{
    top: 50px;
    right: -45px;
    transform: rotate(-90deg);
}

.intro-content{
    padding: 30px 50px 0 50px;
    opacity: 0;
    transform: translateX(50px);
}

.intro-box:last-child .intro-content{
    transform: translateX(-50px);
}

.intro-box.active .intro-content{
    opacity: 1;
    transform: translateX(0);
    transition: 1s;
    transition-delay: 0.5s;
}

.intro-content>p{
    margin-bottom: 0;
}

.dividing-line{
    font-family: 'Noto Serif Display',serif;
    font-size: 12px;
    letter-spacing: 0;
    margin: 70px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.name-circle{
    border: 1px solid rgba(45, 45, 45,0.5);
    border-radius: 50%;
    text-align: center;
    line-height: 1.5;
    padding: 0 15px;
    margin: 3px 15px 0 15px;
    scale: 0.8;    
}

.name-circle>p{
    font-family: 'Aboreto','Noto Serif TC',serif;
    margin: 7px 0;
}

.name-circle>p>span{
    font-size: 10px;
    padding-top: 2px;
}

.dividing-line>p{
    display: none;
}


.dividing-line>p:first-of-type{
    text-align: right;
}

.dividing-line>p:last-of-type{
    text-align: left;
}

.invite, .traffic, .schedule, .photo-video, .RSVP{
    background-color: rgb(244, 244, 244);
    padding: 50px 0;
    overflow: hidden;
}

.invite-box{
    position: relative;
    border: 1px solid rgb(45, 45, 45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 300px;
}

.invite-box>h1{
    position: absolute;
    top: -23px;
}

.invite-box>div{
    width: 270px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.invite-content{
    border: 1px solid rgb(45, 45, 45);
    color: rgba(45, 45, 45,0);
}

.invite-content.active{
    color: rgb(45, 45, 45);
    transition: 1s;
    transition-delay: 0.2s;
}

.invite-pic, .invite-pic-hide{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.invite-pic{
    margin: 20px;
}

.invite-pic-hide{
    width: 100%;
    height: 100%;
}

#invite-pic1{
    background-image: url('02.webp');
}

#invite-pic2{
    background-image: url('03.webp');
}


#invite-pic1-2{
    background-image: url('02-2.webp');
}

#invite-pic2-2{
    background-image: url('03-2.webp');
}

.traffic{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.traffic-guide-box{
    color: rgb(244, 244, 244);
    background-color: rgb(45, 45, 45);
    position: relative;
    padding: 50px 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.traffic-guide-box>h1{
    color: rgb(45, 45, 45);
    position: absolute;
    top: -27px;
    left: 20px;
}

.traffic-guide>p{
    margin: 0;
}

.traffic-content{
    display: grid;
    grid-template-columns: 20px auto;
    row-gap: 20px;
    opacity: 0;
    transform: translateX(50px);
}

.traffic.active .traffic-content{
    opacity: 1;
    transform: translateX(0);
    transition: 1s;
    transition-delay: 0.5s;
}

.traffic-map{
    position: relative;
    width: 25%;
    min-width: 250px;
    max-width: 500px;
    margin: 30px auto;
}

.traffic-map img{
    display: block;
    width: 100%;

}

.traffic-map a{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(255, 255, 255);
    background-color: rgba(45, 45, 45, 0.8);
    text-decoration: none;
    opacity: 1;
}

.traffic-map a.active{
    opacity: 0;
    transition: 2s 1s;
}


.traffic-map:hover a{
    animation: maphint 1s forwards;
}

@keyframes maphint{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}


.schedule>h1{
    margin-left: 20px;
}

.timeline{
    font-family: 'Noto Serif Display','Noto Serif TC',serif;
    font-size: 15px;
    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: 70px auto 0 auto;
    white-space: nowrap;
}

.time{
    text-align: right;
}

.time>span{
    font-size: 12px;
}

.time, .activity{
    opacity: 0;
    transform: translateY(50px);
}

.activity{
    font-weight: 700;
}

.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;
    width: 5px;
    height: 5px;
    background-color: rgb(45, 45, 45);
    border-radius: 50%;
}

.dot::before{
    position: absolute;
    content: '';
    height: 0;
    border-left: 1px solid rgba(45, 45, 45,0.8);
    top: 0;
    left: 49.5%;
    transform: translateX(-50%);
}

.timeline.active>.dot::before{
    height: 160px;
    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{
    transition-delay: 7s;
}

.hope{
    grid-column: 1 / span 3;
    padding-top: 30px;
    font-size: 13px;
    text-align: center;
    letter-spacing: 0;
    opacity: 0;
}

.timeline.active>.hope{
    opacity: 1;
    transition: 1s;
    transition-delay: 8s;
}

.dress-code{
    border: 20px solid rgb(244, 244, 244);
    color: rgb(244, 244, 244);
    overflow: hidden;
    text-align: center;
    padding-top: 80px;
}

.dress-code-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px 0 120px 0;
}

.dress-code-box>div{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px;
    flex: 0;
}

.dress-code-text{
    height: 100px;
    display: flex;
    align-items: center;
}

.color-box{
    position: relative;
}

.color{
    position: relative;
    width: 50px;
    height: 50px;
    opacity: 0;
}

.dress-code.active .color{
    opacity: 1;
    transition: 1s;
}

.dress-code.active #color1{
    background-color: rgb(244, 244, 243);
    transition-delay: 0.5s;
}

.dress-code.active #color2{
    background-color: rgb(226, 220, 214);
    transition-delay: 1s;
}

.dress-code.active #color3{
    background-color: rgb(30, 30, 30);
    transition-delay: 1.5s;
}

.dress-code.active #color4{
    background-color: rgb(31, 31, 48);
    transition-delay: 2s;
}

.behind-color{
    background-color: rgb(255, 255, 255);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
    bottom: -15px;
    left: -15px;
}

.photo-video{
    text-align: center;
}

.photo-video-box{
    width: 90%;
    max-width: 600px;
    margin: auto;
}

.photo-box{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    cursor: pointer;
}

.photo-box::after{
    position: absolute;
    content: '';
    width: 97%;
    height: 95%;
    border: 1px solid rgb(244, 244, 244);
}


.photo{
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 50%;
    height: 250px;
    overflow: hidden;
    display:flex;
    align-items: center;
}

.photo>div{
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    transition: 0.5s;
    opacity: 0;
}

.photo-box:hover .photo>div{
    opacity: 1;
}

.photo>p{
    position: absolute;
    font-family: 'Noto Serif Display',serif;
    color: rgb(255, 255, 255);
    font-size: 30px;
    text-shadow: 1px -1px 5px rgba(45, 45, 45,0.2);
}

#photo1>p{
    right: -5px;
}

#photo2>p{
    left: -5px;
}

#photo1{
    background-image: url('05.webp');
    margin-right: 5px;
    text-align: right;
}

#photo2{
    background-image: url('06.webp');
    text-align: left;
}

.video{
    background-image: url('07.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 200px;
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video a:link, .video a:visited{
    display: block;
    box-sizing: border-box;
    color: rgb(244, 244, 244);
    border: 1px solid rgb(244, 244, 244);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0 0 5px;
    text-decoration: none;
    transition: 0.5s;
}

.video:hover a{
    scale: 1.2;
}

#closebutton:link, #closebutton:visited{
    position: fixed;
    z-index: 101;
    right: 30px;
    top: 0;
    color: rgb(45, 45, 45);
    font-size: 40px;
    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(244, 244, 244,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(45, 45, 45);
    text-decoration: underline;
    transition: 0.5s;
}

#gallery a:hover, #gallery a:active{
    color: rgb(183, 183, 183)
}

#photo-gallery{
    text-indent: 0;
    padding: 100px 50px;
    display: none;
}

#photo-gallery > div{
    float: left;
    width: 100%;
    margin: 5px;
}

#photo-gallery img{
    width: 100%;
}

#video{
    display: none;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: hidden;
}

iframe{
    width: 90%;
}

.countdown-area{
    background-color: rgb(244, 244, 244);
    padding: 50px 10px 0 10px;
    text-align: center;
    overflow: hidden;
}

.countdown-area>p{
    padding: 20px 0;
}

.countdown-area-box{
    width: 90%;
    max-width: 700px;
    margin: 20px auto 0 auto;
    display: grid;
    grid-template-columns: 24% 24% 24% 24%;
    gap: 0 15px;
    justify-content: center;
}

.countdown-area-box>div{
    border: 1px solid rgba(45, 45, 45,0.3);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-area-box>div>p{
    font-size: 20px;
    transform: translateY(30px);
    opacity: 0;
}

.countdown-area-box>div>p.active{
    transform: translateY(0);
    opacity: 1;
    transition: 1s;
}

.countdown-area-box>div:nth-child(2)>p.active{
    transition-delay: 0.5s;
}
.countdown-area-box>div:nth-child(3)>p.active{
    transition-delay: 1s;
}
.countdown-area-box>div:nth-child(4)>p.active{
    transition-delay: 1.5s;
}

.dividing-line2{
    background-color: rgb(244, 244, 244);
    font-family: 'Noto Serif Display',serif;
    font-size: 12px;
    letter-spacing: 0;
    padding: 70px 0 50px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

  
.dividing-line2>div{
    width: 100%;
    border-top: 1px solid rgba(45, 45, 45,0.5);
    border-bottom: 1px solid rgba(45, 45, 45,0.5);
    position: relative;
    display: flex;
    justify-content: space-around;
}

.dividing-line2 p{
    margin: 5px 0;
}


.RSVP{
    text-align: center;
}

.formarea{
    max-width: 300px;
    margin: 50px auto;
}

.attend{
    position: relative;
    color: rgba(45, 45, 45,0.3);
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Noto Serif Display','Noto Serif TC',serif;
    letter-spacing: 1px;
    margin: 0 20px;
}


.attend input, .hideinput input{
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    cursor: pointer;
}

.attend span{
    transition: 0.5s;
}

.attend:hover span{
    color: rgba(45, 45, 45,0.5);
}

.attend input:checked ~ span{
    color: rgba(45, 45, 45,1);
}

#form2, #form3{
    overflow-y: hidden;
    transition: 1s;
}

.form-grid{
    display: flex;
    flex-direction: column;
    text-indent: 0;
    text-align: left;
    margin: 0 0 50px 0;
}

.form-title{
    font-weight: 700;
    margin-top: 60px;
}

.children-seat{
    display: none;
}

input:not([type=submit]), select, textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 5px 10px 8px 10px;
    color: rgb(45, 45, 45);
    background-color: rgba(45, 45, 45, 0);
    font-size: 13px;
    border: none;
    border-bottom: 1px solid rgba(45, 45, 45,0.5);
    letter-spacing: 2px;
    border-radius: 0;
}

input:focus, select:focus, textarea:focus{
    outline: none;
}

select{
    padding: 8px 0;
    text-indent: 7px;
    height: 32px;
    -moz-appearance: none;
    -webkit-appearance: none; 
    appearance: none;
}

textarea{
    display: block;
    resize: none;
    margin-bottom: 0;
    border: 1px solid rgba(45, 45, 45,0.5);
}


::placeholder{
    color: rgba(45, 45, 45,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(45, 45, 45);
    top: 1px;
    left: 0;
    transition: 0.5s;
}

input[type=radio] ~ span{
    border-radius: 50%;
}

.hideinput:hover span{
    background-color: rgba(45, 45, 45, 0.5);
}

.hideinput input:checked ~ span{
    background-color: rgb(45, 45, 45);
}

.AandK select{
    margin-right: 5px;
    width: calc(100% / 2 - 50px);
}

input[type=submit]{
    width: auto;
    color: rgb(45, 45, 45);
    background-color: rgba(45, 45, 45,0);
    border: 1px solid rgb(45, 45, 45);
    padding: 10px 20px;
    margin-top: 40px;
    border-radius: 20px;
    text-indent: 5px;
    letter-spacing: 5px;
    font-family: 'Noto Serif TC',serif;
    font-size: 13px;
    font-weight: 600;
    transition: 1s;
}

#loading{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

#loader{
    border: 8px solid rgba(0, 0, 0, 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%;
    color: rgb(244, 244, 244);
    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);
}

#submit-success h1{
    position: relative;
    letter-spacing: 5px;
    text-indent: 5px;
    font-size: 20px;
}


#submit-success>div{
    background-color: rgb(45, 45, 45);
    padding: 50px 70px;
    position: relative;
}

#submit-success>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(244, 244, 244,0.5);
    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(244, 244, 244);
    border: 1px solid rgb(244, 244, 244);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.5s;
}

#submit-success a:hover, #submit-success a:active{
    color: rgb(45, 45, 45);
    background-color: rgb(244, 244, 244);
}

footer{
    padding: 30px 0;
    color: rgb(244, 244, 244);
    background-color: rgb(45, 45, 45);
    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(244, 244, 244,0.7);
    background-color: rgb(45, 45, 45);
    font-size: 10px;
    text-indent: 2px;
    text-decoration: none;
    top: -30px;
    padding: 15px 10px 0 10px;
    border-radius: 30px 30px 0 0;
}


footer>.name-circle{
    border: 1px solid rgba(244, 244, 244,0.5);
    letter-spacing: 0;
}


footer div a:link, footer div a:visited{
    text-decoration: underline;
    color: rgb(244, 244, 244);
    transition: 0.5s;
}

footer div a:hover, footer div a:active{
    color:rgb(128, 128, 128);
}

@media (hover){
    input[type=submit]:hover, input[type=submit]:active{
        color: rgb(244, 244, 244);
        background-color: rgb(45, 45, 45);
        cursor: pointer;
    }
}

@media screen and (min-width: 950px){
    .invite-box{ flex-direction: row; width: 900px;}
    .traffic-guide-box{ width: 70%;}
}

@media screen and (min-width: 800px){
    #photo-gallery > div{ width: 48%;}
}

@media screen and (min-width: 650px){
    .intro-box{ flex-direction: row; }
    .intro-box:last-child{ flex-direction: row-reverse; }
    .dividing-line{ margin: 100px 0 70px 0;}
    .dividing-line>p{ display: block; }
}

@media screen and (min-width: 500px){
    .timeline{ font-size: 20px;}
    .photo{ height: 400px; }      
    .video{ height: 300px; }
}