@import url('https://fonts.googleapis.com/css2?family=Aboreto&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(129,81,83);
    background-image: url("background.webp");
    background-position: center;
    text-indent: 3px;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 400;
    line-height: 2;
}

body.active{
    overflow: hidden;
}

::selection{
    color: rgb(237,236,232);
    background-color: rgba(129,81,83,0.9);
}

h1{
    margin: 0;
    letter-spacing: 2px;
    text-indent: 0;
    padding: 20px 0 0 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 1;
    position: sticky;
    top: 0;
    left: 0;
    writing-mode: vertical-rl;
}

h1 > span{
    color: rgba(129,81,83,0.8);
    font-size: 10px;
    letter-spacing: 0;
}

h2{
    text-align: center;
    font-size: 15px;
}

.nav{
    width: 100%;
    position: fixed;
    background-image: url('background.webp');
    border-bottom: 1px solid rgba(129,81,83,0.8);
    display: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-indent: 0;
    letter-spacing: 2px;
    top: 0;
    transition: 0.5s;
    z-index: 2;
}

.nav a:link, .nav a:visited{
    color: rgb(129,81,83);
    border-left: 1px solid rgba(129,81,83,1);
    text-decoration: none;
    margin: 10px 0;
    padding: 0 25px;
    transition: 0.5s;
}

.nav a:first-of-type{
    border: none;
}

.nav a:hover, .nav a:active{
    color: rgba(129,81,83,0.5);
}


#homebutton{
    width: 50%;
    max-width: 300px;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%,-50%);
    transition: 0.5s;
    cursor: pointer;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
    z-index: 3;
}

#homebutton.invisible{
    opacity: 0;
}

.hamnavbg{
    display: block;
    background-image: url('background.webp');
    width: 100%;
    height: 47px;
    position: fixed;
    transition: 0.5s;
    z-index: 1;
}


.ham-nav-button{
    display: block;
    width: 20px;
    position: fixed;
    top: 20px;
    right: 20px;
    transition: 0.5s;
    z-index: 3;
}

.ham-nav-button:hover{
    scale: 1.1;
}

.ham-nav-line{
    position: relative;
    width: 100%;
    margin-bottom: 8px;
    border-top: 1px solid rgb(129,81,83);
    transition: 0.5s;
    transform-origin: center;
    transform-origin: top right;
}

.ham-nav1{
    transform: rotate(-47deg);
}

.ham-nav2{
    transform: rotate(47deg) translate(5px,3px);
}

.ham-nav{
    letter-spacing: 2px;
    background-image: url('background.webp');
    width: 100%;
    height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: fixed;
    transition: 0.5s;
    z-index: 2;
}

.ham-nav.active{
    height: 100%;
}


.ham-nav img{
    width: 100px;
    margin-bottom: 50px;
}

.ham-nav a:link, .ham-nav a:visited{
    line-height: 1;
    color: rgba(129,81,83,0.8);
    border-left: 3px solid rgba(129,81,83,0);
    text-decoration: none;
    padding: 1px 8px 0 8px;
    margin: 15px 0;
    transition: 0.5s;
}

.ham-nav a:hover, .ham-nav a:active{
    color: rgb(129,81,83,0.5);
    border-left: 3px solid rgba(129,81,83,0.2);
}



header{
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}



.header-title{
    position: absolute;
    top: 53%;
    left: 50%;
    transform: translate(-50%,-50%);
    letter-spacing: 1px;
    font-size: 10px;
    color: rgba(129,81,83,0.5);
}

header a{
    color: rgba(129,81,83,0.8);
    text-decoration: none;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 0;
    height: 80px;
}


header p{
    font-size: 10px;
    letter-spacing: 0;
    scale: 0.8;
}

header a:hover p{
    animation-name: scrollp;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    transform: translateY(0);
}

@keyframes scrollp{
    0% {
        transform: translateY(0);
    }
    20%{
        transform: translateY(-10px);
    }
    40%{
        transform: translateY(0);
    }
    60% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.scroll-line{
    height: 100%;
    position: relative;
}
  
.scroll-line>div{
    position: absolute;
    width: 1px;
    height: 0;
    border-left: 1px solid rgba(129, 81, 83, 0.5);
    animation: scrollline 2s infinite;
}
  
@keyframes scrollline{
    0%{
      top: 0;
      height: 0;
    }50%{
      top: 0;
      height: 100%;
    }51%{
      top: auto;
      bottom: 0;
      height: 100%;
    }100%{
      bottom: 0;
      height: 0;
    }
}


.about-why-box{
    margin: 0 10px;
    display: grid;
    grid-template-columns: 55px auto;
    overflow: hidden;
}

#about{
    padding-top: 30px;
}

.about-why-content{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255,253,248,0.5);
    border: 6px double rgba(129,81,83,0.05);
    padding: 70px 20px;
    min-width: 250px;
}

#about>.about-why-content{
    border-bottom: none;
}

.intro-logo{
    position: relative;
    margin: 20px 0;
}

.intro-logo>img{
    opacity: 0;
    width: 90px;
    transform: translateY(-50px);
    transition: 0.8s;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}

.intro-logo>img.active{
    opacity: 1;
    transform: translateY(0);
}



.logo-idea{
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    position: absolute;
    font-size: 10px;
    line-height: 1;
    text-indent: 0;
    letter-spacing: 1px;
    scale: 0.7;
}

.logo-idea>p{
    opacity: 0;
    transform: translateY(30px);

}

.logo-idea>p.active{
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
    transition-delay: 1s;
}


.logo-idea:first-of-type{
    top: 30px;
    left: -98%;
    text-align: right;
}

.logo-idea:nth-of-type(2){
    right: -110%;
    bottom: 30px;
}

.logo-line{
    border-top: 1px solid rgb(129,81,83);
    width: 0;
}

.logo-line.active{
    width: 100%;
    transition: 1s;
    transition-delay: 0.5s;
}

#logo-line-left{
    width: 45px;
    margin-left: 10px;
    transform: rotateY(180deg);
}

#logo-line-right{
    width: 35px;
    margin-right: 10px;
}

.title-line{
    width: 100%;
    border-top: 1px solid rgba(129,81,83,0.3);
    padding: 2px;
}

.intro-title{
    margin: 10px 0;
    opacity: 0;
}

.intro-title>h2{
    margin: 0 10px;
    font-size: 13px;
    font-weight: 400;
}

.intro-content{
    text-indent: 0;
    padding-left: 5px;
    opacity: 0;
}

.intro-title.active, .intro-content.active{
    opacity: 1;
    transition: 2s;
    transition-delay: 1.5s;
}

#why>.about-why-content{
    padding-top: 50px;
    border-top: none;
}

#why img{
    width: 250px;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}

.about-why-content>h2{
    opacity: 0;
    transform: translateY(50px);
}

.about-why-content>h2.active{
    opacity: 1;
    transform: translateY(0);
    transition: 1.5s;
}

.why-list{
    max-width: 300px;
    display: grid;
    grid-template-columns: auto auto;
    text-indent: 0;
    transform: translateY(50px);
    opacity: 0;
}

.why-list.active{
    opacity: 1;
    transform: translateY(0);
    transition: 1.5s;
    transition-delay: 0.5s;
}

.why-list>div{
    padding: 10px 0 7px 0;
    border-bottom: 1px solid rgba(129,81,83,0.2);
}


.why-list>div:last-child,.why-list>div:nth-last-child(2){
    border-bottom: none;
}

.why-list>div:nth-of-type(odd){
    color: rgba(129,81,83,0);
    width: 15px;
    padding: 10px 10px 0 10px;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}


.why-list.active>div:nth-of-type(odd){
    color: rgba(129,81,83,0.5);
    transition: color 1s;
}

.why-list.active>div:nth-of-type(1){
    transition-delay: 1s;
}

.why-list.active>div:nth-of-type(3){
    transition-delay: 1.5s;
}

.why-list.active>div:nth-of-type(5){
    transition-delay: 2s;
}

.why-list.active>div:nth-of-type(7){
    transition-delay: 2.5s;
}

.why-list.active>div:nth-of-type(9){
    transition-delay: 3s;
}

.what-how-box{
    margin: 0 10px;
    display: grid;
    grid-template-columns: 55px auto;
}

.check-svg{
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #8151534d;
    stroke-width: 1px;
    padding: 5px 7px 0 4px;
}

.what-content-area{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.what-content-area>div{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
    overflow: hidden;
}

.product-box{
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    max-width: 280px;
    min-width: 200px;
    margin: 150px 10px 0 10px;
    padding: 80px 30px 30px 30px;
    background-color: rgba(255,253,248,0.5);
    opacity: 0;
    transform: translateX(50px);
}

.product-box.active{
    opacity: 1;
    transform: translateX(0);
    transition: 1s;
}

.product-sample{
    display: flex;
    justify-content: center;
    width: 250px;
    position: absolute;
    top: -70px;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}

.product-sample>img{
    pointer-events: none;
    position: relative;
    width: 100%;
}

.product-sample>img:nth-of-type(2){
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20%;
    z-index: 1;
}

.product-img-mac{
    position: absolute;
    width: 193px;
    height: 130px;
    top: 3px;
    left: 31px;
    background-position: top;
    background-size: cover;
}

.product-img-iphone{
    position: absolute;
    width: 46px;
    height: 95px;
    right: 2px;
    bottom: 2px;
    background-position: top;
    background-size: cover;
    border-radius: 5px;
}

.product-sample:hover .product-img-mac, .product-sample:hover .product-img-iphone{
    transition: 7s;
    transition-timing-function: linear;
    background-position: bottom;
}

#semi-product-pc{
    background-image: url("beige-pc-demo.webp");
}

#semi-product-phone{
    background-image: url("beige-phone-demo.webp");
}


#web-card-card{
    width: 70%;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 5px;
}

.product-list{
    display: grid;
    grid-template-columns: auto auto;
    text-indent: 0;
    opacity: 0;
    transform: translateX(50px);

}

.product-box.active .product-list{
    opacity: 1;
    transform: translateX(0);
    transition: 1s;
    transition-delay: 0.5s;
}

.product-list>div{
    padding-top: 3px;
    border-bottom: 1px solid rgba(129,81,83,0.2);
}

.product-list>div:last-child,.product-list>div:nth-last-child(2){
    border-bottom: none;
}

.product-list>div>img{
    width: 15px;
    margin: 5px 8px 0 5px;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}

#templatebutton:link, #templatebutton:visited{
    color: rgb(129,81,83);
    font-weight: 700;
    border: 1px solid rgba(129,81,83,0.5);
    border-radius: 30px;
    padding: 6px 20px 5px 20px;
    margin: 50px 0 100px 0;
    text-decoration: none;
    transition: 0.5s;    
}

#templatebutton:hover, #templatebutton:active{
    color: rgb(237,236,232);
    background-color: rgba(129,81,83,0.9);
}








.how-content-area{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0 100px 0;
}

.how-content-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.how-content{
    position: relative;
    margin: 30px 10px 30px 50px;
    max-width: 200px;
    opacity: 0;
    transform: translateY(50px);
}

.how-content-box.active .how-content{
    opacity: 1;
    transform: translateY(0);
    transition: 1s;
}


.how-content>h2{
    text-align: left;
    text-indent: 0;
}

.behind-title{
    position: absolute;
    opacity: 0;
    top: -12px;
    left: -25%;
    font-size: 25px;
    letter-spacing: 1px;
}

.how-content-box.active .behind-title{
    opacity: 0.3;
    transition: 1s;
}

.how-content-box.active div:nth-child(1) .behind-title{
    transition-delay: 0.5s;
}
.how-content-box.active div:nth-child(2) .behind-title{
    transition-delay: 2.3s;
}
.how-content-box.active div:nth-child(3) .behind-title{
    transition-delay: 4.3s;
}

.how-content::after{
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 1px solid rgba(129,81,83,0.3);
    border-top: none;
    top: 35px;
    left: -10%;
}

.how-content-box.active .how-content::after{
    height: 110%;
    transition: 1s;

}

.how-content-box.active .how-content:nth-child(1):after{
    transition-delay: 1.3s;
}

.how-content-box.active .how-content:nth-child(2):after{
    transition-delay: 3.3s;
}

.how-content:last-child::after, .how-content-box.active .how-content:last-child::after{
    width: 0;
    height: 0;
}

.how-content-area>a:link, .how-content-area>a:visited{
    color: rgb(129,81,83);
    font-weight: 700;
    border: 1px solid rgba(129,81,83,0.5);
    border-radius: 30px;
    padding: 6px 20px 5px 20px;
    margin-top: 50px;
    text-decoration: none;
    transition: 0.5s;    
}

.how-content-area>a:hover, .how-content-area>a:active{
    color: rgb(237,236,232);
    background-color: rgba(129,81,83,0.9);
}

footer{
    color: rgba(237,236,232,0.8);
    background-color: rgb(124,80,83);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-indent: 0;
    letter-spacing: 2px;
    text-align: center;
    position: relative;
}

footer>a{
    position: absolute;
    font-size: 10px;
    letter-spacing: 0;
    text-decoration: none;
    color: rgba(237,236,232,0.7);
    background-color: rgb(124,80,83);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: -15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.footer-content>img{
    margin: 50px 0 0 0;
    width: 150px;
    filter: brightness(300%);
    opacity: 0.8;
    pointer-events: none;
    user-select:none;    
    -webkit-user-select:none;
    -moz-user-select:none;
    -o-user-select:none;
}

.footer-url{
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.footer-url>div{
    margin: 10px 20px 0 20px;
}


.footer-url a:link, .footer-url a:visited{
    display: inline-flex;
    align-items: center;
    color: rgba(237,236,232,0.8);
    border-left: 3px solid rgba(237,236,232,0);
    text-decoration: none;
    line-height: 1;
    padding: 1px 8px 0 8px;
    transition: 0.5s;
}

.footer-url a:hover, .footer-url a:active{
    color: rgb(237,236,232,0.5);
    border-left: 3px solid rgba(237,236,232,0.2);
}


.fa{
    padding-right: 5px;
}

.fa-instagram{
    padding-left: 1px;
}

footer svg{
    width: 13px;
    height: 13px;
    padding: 0 5px 0 1px;
    fill: currentColor;
}

#ins-svg{
    width: 15px;
    height: 15px;
    padding: 0 5px 0 0;
}

footer>p{
    width: 100%;
    letter-spacing: 1px;
    padding: 5px 0;
    margin: 0;
    font-size: 10px;
    border-top: 1px solid rgba(255,255,255,0.3);
}


@media screen and (min-width: 1000px){
    .how-content-box{
        flex-direction: row;
        align-items: baseline;
    }
    .behind-title{
        left: 25%;
    }    
    .how-content::after{
        width: 0;
        height: 0;
        border-left: none;
        border-top: 1px solid rgba(129,81,83,0.3);
        top: 10%;
        left: 72%;
    }
    .how-content-box.active .how-content::after{
        width: 80%;        
    }
}


@media screen and (min-width: 850px){
    .footer-content{ flex-direction: row;}
    .footer-url{ flex-direction: row; text-align: left; margin: 0;}
    .footer-content>img{ margin: 60px;}
}


@media screen and (min-width: 700px){
    h1{
        writing-mode: initial;
        padding: 20px 0 0 20px;
    }
    .about-why-box{
        grid-template-columns: 1fr 3fr 1fr;
    }
    .what-how-box{
        grid-template-columns: 1fr 6fr;
    }
}


@media screen and (min-width: 500px){
    .ham-nav-button,.hamnavbg{ display: none;}
    body.active .ham-nav-button{ display: block;}
    .nav{ display: flex;}
}

@media screen and (min-width: 450px){
    .logo-idea:first-of-type{
        left: -125%;
    }    
    .logo-idea:nth-of-type(2){
        right: -135%;
    }
    #logo-line-left{
        width: 75px;

    }    
    #logo-line-right{
        width: 60px;
    }
}
