@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&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: 'Noto Serif TC',serif;
    color: rgb(129, 113, 80);
    background: linear-gradient(90deg,rgb(96,56,50) 98%,#664A39 0%);
    background-size: 50px 100%;
    letter-spacing: 5px;
    font-size: 15px;
    font-weight: 600;
    line-height: 2.5;
}

::selection{
    color: rgb(255, 255, 255);
    background-color: rgba(109,96,68, 0.7);
}

h1{
    text-indent: 5px;
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 22px;
}

h2{
    text-indent: 5px;
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 16px;
    white-space: nowrap;
}

p{
    letter-spacing: 8px;
    opacity: 0;
}

p.active{
    opacity: 1;
    transition: 1.5s;
}

*{
    box-sizing: border-box;
}

#music-onoroff{
    width: 100%;
    height: 100%;
    color: rgb(96,56,50);
    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 p{
    opacity: 1;
}

#music-onoroff>div{
    background-color: rgb(129, 113, 80);
    padding: 100px 20px;
    position: relative;
}

#music-onoroff>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(96,56,50,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(96,56,50);
    border: 1px solid rgb(96,56,50);
    text-decoration: none;
    padding: 0 15px 0 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(129, 113, 80);
    background-color: rgb(96,56,50);
}

.music-button{
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(129, 113, 80);
    border: 1px solid rgba(129, 113, 80, 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(129, 113, 80, 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;
    justify-content: center;
    align-items: center;
    animation: opening 1.5s forwards;
}

@keyframes opening{
    from{
        opacity: 0;
    }to{
        opacity: 1;
    }
}

.thedate{
    font-family: 'Noto Serif TC',serif;
    font-size: 15px;
    line-height: 1;
    margin: 0;
}

.small-font{
    font-size: 11px;
}

header .small-font{
    font-size: 14px;
}

.frame{
    position: relative;
    width: 90%;
    max-width: 280px;
    aspect-ratio: 1 / 1.25;
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 50%;
    padding: 5px;
}

.frame:not(header .frame){
    opacity: 0;
}

.frame:not(header .frame).active{
    opacity: 1;
    transition: 1.5s;
}


.picture{
    background-size: cover;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

header .picture{
    border: 6px solid rgb(129, 113, 80);
    background-image: url('13.webp');
    background-size: cover;
}

.intro{
    display: grid;
    grid-template-columns: 100%;
    padding: 100px 20px;
}

.intro-box{
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro .picture{
    filter: grayscale(100%);
}

#groom-pic{
    background-image: url('groom.webp');
    background-position: 50% 30%;
    background-size: cover;
}

#bride-pic{
    background-image: url('bride.webp');
    background-position: center;
    background-size: cover;
}

.intro-title{
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(96,56,50);
    border: 1px solid rgb(129, 113, 80);
    border-radius: 50%;
    padding: 5px;
    min-width: 70px;
    display: flex;
    justify-content: center;
    text-indent: 2px;
    letter-spacing: 2px;
    font-size: 13px;
}

.intro h2{
    margin-top: 50px;
}

.invite{
    padding: 50px 20px 100px 20px;
}

.invite-box-frame{
    width: 90%;
    max-width: 800px;
    margin: auto;
    border: 2px dotted rgb(129, 113, 80);
    padding: 5px;
}

.invite-box{
    background-color: rgb(96,56,50);
    border: 2px solid rgb(129, 113, 80);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    text-align: center;
}

.invite-box>p{
    line-height: 3;
}

.name-circle{
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: rgb(96,56,50);
    border: 2px solid rgb(129, 113, 80);
    border-radius: 50%;
    padding: 10px 15px;
    letter-spacing: 0;
    line-height: 1.5;
    scale: 0.8;
}

.name-circle::before{
    content: '';
    position: absolute;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.name-circle>span{
    font-size: 10px;
}

.traffic{
    display: grid;
    grid-template-columns: 100%;
    padding: 50px 50px 100px 50px;
}

.traffic-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}


.traffic h2{
    margin: 0;
}

.traffic p{
    margin: 0;
    max-width: 700px;
}

.traffic .frame{
    margin: 30px 0;
}

#map{
    border: 3px solid rgb(129, 113, 80);
    background-image: url('map.webp');
    background-color: rgb(96,56,50);
    background-size: cover;
    background-position: 50% 100%;
}

.traffic a:link, .traffic a:visited{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1s;
}


.traffic a:link>span, .traffic a:visited>span{
    font-size: 10px;
    opacity: 0;
    transition: 1s;
}

.traffic a:hover, .traffic a:active{
    background-color: rgba(109,96,68,0.5);
}

.traffic a:hover>span, .traffic a:active>span{
    opacity: 1;
}

.traffic a:link.active{
    animation: maphintbg 3s;
}

@keyframes maphintbg{
    from{
        background-color: rgba(109,96,68,0.5);
    }to{
        background-color: rgba(109,96,68,0);
    }
}


.traffic a:link>span.active{
    animation: maphint 3s;
}

@keyframes maphint{
    from{opacity: 1;}
    to{opacity: 0;}
}

.schedule{
    padding: 50px 50px 100px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 10px 0 0;
}

.clock{
    position: relative;
    width: 90%;
    aspect-ratio: 1 / 1;
    background-color: rgb(129, 113, 80);
    border-radius: 50%;
}

.clock>div{
    position: absolute;
}

.clock::before{
    content: '';
    position: absolute;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.center-dot{
    width: 5px;
    height: 5px;
    background-color: rgb(96,56,50);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.hours, .minutes{
    border-top: 1px solid rgb(96,56,50);
    transform-origin: left center;
}


.hours{
    width: 30%;
    top: 50%;
    left: 65%;
    transform: translate(-50%,-50%) rotate(40deg);
}

.minutes{
    width: 40%;
    top: 50%;
    left: 70%;
    transform: translate(-50%,-50%) rotate(90deg);
}

.schedule.active .hours{
    animation: hoursanimation 10s infinite;
}

@keyframes hoursanimation{
    0%{
        transform: translate(-50%,-50%) rotate(40deg);
    }20%{
        transform: translate(-50%,-50%) rotate(40deg);
    }40%{
        transform: translate(-50%,-50%) rotate(60deg);
    }60%{
        transform: translate(-50%,-50%) rotate(90deg);
    }80%{
        transform: translate(-50%,-50%) rotate(120deg);
    }100%{
        transform: translate(-50%,-50%) rotate(120deg);
    }
}

.schedule.active .minutes{
    animation: minutesanimation 10s infinite;
}

@keyframes minutesanimation{
    0%{
        transform: translate(-50%,-50%) rotate(90deg);
    }20%{
        transform: translate(-50%,-50%) rotate(90deg);
    }40%{
        transform: translate(-50%,-50%) rotate(270deg);
    }60%{
        transform: translate(-50%,-50%) rotate(270deg);
    }80%{
        transform: translate(-50%,-50%) rotate(270deg);
    }100%{
        transform: translate(-50%,-50%) rotate(450deg);
    }
}

.time-and-activity{
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1.5;
}

.time-and-activity p{
    margin: 25px;
}



.schedule.active #time1{
    animation: time1ani 10s infinite;    
}
.schedule.active #time2{
    animation: time2ani 10s infinite;    
}
.schedule.active #time3{
    animation: time3ani 10s infinite;    
}
.schedule.active #time4{
    animation: time4ani 10s infinite;    
}
.schedule.active #time5{
    animation: time5ani 10s infinite;    
}

@keyframes time1ani{
    0%{
        opacity: 0.3;
    } 20%{
        opacity: 1;
    } 40%{
        opacity: 0.3;
    } 60%{
        opacity: 0.3;
    } 80%{
        opacity: 0.3;
    } 100%{
        opacity: 0.3;
    }
}
@keyframes time2ani{
    0%{
        opacity: 0.3;
    } 20%{
        opacity: 0.3;
    } 40%{
        opacity: 1;
    } 60%{
        opacity: 0.3;
    } 80%{
        opacity: 0.3;
    } 100%{
        opacity: 0.3;
    }
}
@keyframes time3ani{
    0%{
        opacity: 0.3;
    } 20%{
        opacity: 0.3;
    } 40%{
        opacity: 0.3;
    } 60%{
        opacity: 1;
    } 80%{
        opacity: 0.3;
    } 100%{
        opacity: 0.3;
    }
}
@keyframes time4ani{
    0%{
        opacity: 0.3;
    } 20%{
        opacity: 0.3;
    } 40%{
        opacity: 0.3;
    } 60%{
        opacity: 0.3;
    } 80%{
        opacity: 1;
    } 100%{
        opacity: 0.3;
    }
}
@keyframes time5ani{
    0%{
        opacity: 0.3;
    } 20%{
        opacity: 0.3;
    } 40%{
        opacity: 0.3;
    } 60%{
        opacity: 0.3;
    } 80%{
        opacity: 0.3;
    } 100%{
        opacity: 1;
    }
}


.dress-code{
    padding: 50px 20px 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dress-code-box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 50px 0;
}

.dress-code-frame{
    width: 100px;
    aspect-ratio: 1 / 1.3;
    border-radius: 50%;
    padding: 3px;
    margin: 20px 15px;
    border: 2px dotted rgba(244,244,243,0.3);
}

.color{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

#color1>.color{
    background-color: #F4F4F3;
}
#color2>.color{
    background-color: #E2DCD6;
}
#color3>.color{
    background-color: #353544;
}
#color4>.color{
    background-color: #2B2B2A;
}

.color>p{
    position: absolute;
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
}

.photo-video{
    padding: 50px 20px 100px 20px;
    display: grid;
    grid-template-columns: 100%;
    overflow: hidden;
}

.photo-video-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-area{
    width: 90%;
    max-width: 800px;
    margin: 50px 0 100px 0;
}

#photo-pic1{
    width: 90%;
    max-width: none;
    aspect-ratio: 1 / 0.65;
    left: 0;
}
#photo-pic2{
    width: 40%;
    max-width: none;
    left: 60%;
}

#photo-pic1>.picture{
    background-image: url('19.webp');
    background-position: center;
    background-size: cover;
}
#photo-pic2>.picture{
    background-image: url('26.webp');
    background-position: center;
    background-size: cover;
}

.photo-area a:link, .photo-area a:visited{
    position: absolute;
    bottom: 5%;
    left: -15%;
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 11px;
    display: inline-block;
    color: rgb(129, 113, 80);
    background-color: rgb(96,56,50);
    border: 1px solid rgb(129, 113, 80);
    border-radius: 50%;
    letter-spacing: 2px;
    text-indent: 2px;
    padding: 5px 12px;
    text-decoration: none;
    transition: 0.5s;
}

.photo-area a:hover, .photo-area a:active{
    color: rgb(96,56,50);
    background-color: rgb(129, 113, 80);
}

.photo-area a::before{
    content: '';
    position: absolute;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.video-area{
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 1/ 0.5;
    padding: 5px;
    margin: 0 0 100px 0;
    border: 1px solid rgb(129, 113, 80);
    border-radius: 30px;
    opacity: 0;
}

.video-area.active{
    opacity: 1;
    transition: 1.5s;
}

.video-bg{
    background-image: url('21.webp');
    background-size: cover;
    background-position: 50% 100%;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-bg-filter{
    width: 100%;
    height: 100%;
    background-color: rgba(96,56,50,0.5);
    position: absolute;
    top: 0;
    left: 0;
}

.video-area a:link, .video-area a:visited{
    position: relative;
    color: rgb(129, 113, 80);
    background-color: rgb(96,56,50);
    border: 1px solid rgb(129, 113, 80);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0;
    text-decoration: none;
    transition: 0.5s;
}

.video-area a:hover, .video-area a:active{
    scale: 1.2;
}

.video-decor{
    position: absolute;
    width: 8%;
    aspect-ratio: 1 / 1.4;
    border: 1px solid rgb(129, 113, 80);
    border-radius: 20%;
    top: 50%;
    left: -3%;
    transform: translateY(-50%);
}

#closebutton:link, #closebutton:visited{
    position: fixed;
    z-index: 101;
    right: 30px;
    top: 0;
    color: rgb(129, 113, 80);
    font-size: 35px;
    text-decoration: none;
    transition: 0.5s;
    display: none;
}

#closebutton:hover, #closebutton:active{
    transform: scale(1.2);
}

#gallery{
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 20px;
    background-color: rgba(96,56,50,0.9);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    position: fixed;
    z-index: 100;
    overflow-y: auto;
    height: 100%;
    width: 100%;
    top: 0;
    display: none;
}

#gallery p{
    letter-spacing: 5px;
}

#gallery a:link, #gallery a:visited{
    color: rgb(129, 113, 80);
    text-decoration: underline;
    transition: 0.5s;
}

#gallery a:hover, #gallery a:active{
    color: rgb(255,255,255);
}

.small-a{
    font-size: 14px;
}

#photo-gallery{
    text-indent: 0;
    padding: 100px 50px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.photo-gallery-box > div{
    float: left;
    width: 100%;
    margin: 5px;
}

.photo-gallery-box img{
    width: 100%;
}

#video{
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

iframe{
    width: 90%;
}

.countdown-area{
    padding: 0 10px 100px 10px;
    margin: auto;
    text-align: center;
    overflow: hidden;
}

.countdown-area>p{
    padding: 20px 0;
}

.countdown-area-box{
    max-width: 700px;
    margin: 20px auto 0 auto;
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    gap: 0 5px;
    justify-content: center;
}

.countdown-area-box>p{
    font-family: 'IM Fell English SC','Noto Serif TC',serif;
    font-size: 12px;
    text-indent: 3px; 
    letter-spacing: 3px;
}

.countdown-area-box>div{
    aspect-ratio: 1 / 1.3;
    padding: 3px;
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 50%;
}

.countdown-area-box>div>div{
    width: 100%;
    height: 100%;
    background-color: rgb(129, 113, 80);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.countdown-area-box>div p{
    color: rgb(96,56,50);
    font-size: 14px;
    letter-spacing: 3px;
    transform: translateY(-50px);
    opacity: 0;
}

.countdown-area-box>div p.active{
    transform: translateY(0);
    opacity: 1;
    transition: 1.5s;
}

.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;
}

.RSVP{
    position: relative;
    width: 90%;
    max-width: 500px;
    background-color: rgb(96,56,50);
    border: 1px solid rgb(129, 113, 80);
    border-radius: 250px 250px 0 0;
    padding: 100px 30px;
    margin: 50px auto 150px auto;
    text-align: center;
}

.RSVP::before{
    content: '';
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border: 2px dotted rgb(129, 113, 80);
    border-radius: 250px 250px 0 0;
}

.RSVP h2{
    position: relative;
}


#RSVParea{
    position: relative;
    margin: 50px auto 0 auto;
    text-indent: 5px;
}

.attend{
    position: relative;
    margin: 30px 20px 30px 30px;
    cursor: pointer;
    display: inline-block;
    font-weight: 900;
}


.attend input, .hideinput input{
    position: absolute;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
}

.attend span{
    position: absolute;
    width: 105px;
    height: 105px;
    border: 1px solid rgb(129, 113, 80);
    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-grid{
    max-width: 300px;
    text-indent: 0;
    text-align: left;
    margin: 50px auto;
}

.form-title{
    font-weight: 900;
    margin-top: 50px;
}

input:not([type=submit]), select, textarea{
    box-sizing: border-box;
    font-size: 14px;
    padding: 8px 10px;
    color: rgb(129, 113, 80);
    background-color: rgba(109,96,68,0);
    width: 100%;
    border: none;
    border-bottom: 1px solid rgb(129, 113, 80);
    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{
    max-width: 300px;
    display: block;
    border: 1px solid rgb(129, 113, 80);
    border-radius: 20px;
    resize: none;
    margin: 0 auto;
}

.hideinput{
    position: relative;
    padding-left: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.hideinput span{
    position: absolute;
    width: 10px;
    height: 10px;
    border:1px solid rgb(129, 113, 80);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: 0.5s;
}

input[type=radio] ~ span{
    border-radius: 50%;
}

.hideinput:hover span{
    background-color: rgba(109,96,68, 0.5);
}

.hideinput input:checked ~ span{
    background-color: rgb(129, 113, 80);
}

.AandK select{
    margin-right: 5px;
    width: calc(100% / 2 - 60px);
}

::placeholder{
    color: rgba(109,96,68, 0.5);
    font-family: 'Noto Serif TC',serif;
}

input[type=submit]{
    color: rgb(129, 113, 80);
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid rgb(129, 113, 80);
    padding: 10px 20px;
    margin-top: 40px;
    border-radius: 20px;
    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, 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(96,56,50);
    text-align: center;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    position: fixed;
    top: 0;
    backdrop-filter: blur(2px);
}

#submit-success h1{
    position: relative;
}


#submit-success>div{
    background-color: rgb(129, 113, 80);
    padding: 50px 70px;
    position: relative;
}

#submit-success>div::before{
    content: '';
    position: absolute;
    border: 1px solid rgba(96,56,50,0.5);
    width: 95%;
    height: 95%;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

#submit-success>div>div{
    margin: 30px 0 50px 0;
    position: relative;
}

#submit-success a:link, #submit-success a:visited{
    position: relative;
    color: rgb(96,56,50);
    border: 1px solid rgb(96,56,50);
    text-decoration: none;
    text-indent: 3px;
    letter-spacing: 3px;
    font-weight: 900;
    padding: 10px 20px;
    border-radius: 20px;
    transition: 0.5s;
}

#submit-success a:hover, #submit-success a:active{
    color: rgb(129, 113, 80);
    background-color: rgb(96,56,50);
}


footer{
    font-family: 'Aboreto', 'Noto Serif TC',serif;
    letter-spacing: 3px;
    padding: 30px 0;
    background-color: rgb(96,56,50);
    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(109,96,68,0.7);
    background-color: rgb(96,56,50);
    font-size: 10px;
    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: rgb(129, 113, 80);
    transition: 0.5s;
}

footer div a:hover, footer div a:active{
    color:rgb(255,255,255);
}


@media (hover){
    input[type=submit]:hover, input[type=submit]:active{
        color: rgb(96,56,50);
        background-color: rgb(129, 113, 80);
        cursor: pointer;
    }
}


@media screen and (min-width: 800px){
    .intro{ grid-template-columns: 50% 50%;}
    .photo-gallery-box > div{ width: 48%;}
}

@media screen and (min-width: 700px){
    #photo-pic1{
        width: 80%;
        left: 0;
    }
    #photo-pic2{
        width: 30%;
        left: 70%;
    }
    .photo-area a:link, .photo-area a:visited{
        bottom: 5%;
        left: -5%;
    }
}
@media screen and (min-width: 650px){
    h2{ font-size: 20px; }
    .clock-area{
        margin: 20px 70px 0 0;
    }
    .time-and-activity{
        font-size: 18px;
    }
    .countdown-area-box>div p{
        font-size: 20px;
    }
}