@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Comfortaa:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100;300;400;500;700;900&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}


body {
    overflow-x: hidden;   
    font-family: 'Bungee', sans-serif; 
    /* font-family: 'Noto Sans TC', sans-serif; */
}

a {
    cursor: pointer;
    display: block;
    width: 120px;
    height: 50px;
}



header {
    width: 100vw;
    height: auto;
    z-index: 10000;
    position: fixed;
}

.logo-container {
    width: 120px;
    height: 50px;
}

#obj3 {
    max-width: 100%;
    height: auto;
    margin-left: 2rem;
    position: absolute;
    
}

.logoStyle {
    fill: #0abfbf;
    stroke: #406887;
}

.nav-bar {
    /* overflow: hidden;    */
    width: 100vw;
    height: 100%;
    color: #0abfbf;
    font-family: 'Bungee', sans-serif;
}
/* .nav-bar a {
    width: 100%;
    position: absolute;
} */

.navbar-toggle {
    position: absolute;
    top: 4px;
    right: 20px;
    cursor: pointer; 
    font-size: 24px;
}

.active {
    display: block;
    z-index: 1000;
}

.nav-bar-ul {
    display: none;
    list-style: none;
    width: 100%;
    height: 100%;
    font-size: 1.3rem;
    position: relative;
    text-align: right;
}

.nav-list a {
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-list a:link {
    text-decoration: none;
    color:#0abfbf;
}

.nav-list a:hover {
    color:#fff;
}

.nav-list a:visited {
    color:#406887;
}

.side-nav-bar {
    grid-area: side-nav;
    height: 100vh;
    width: 4vw;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-shadow: 1px 0px 5px #8888;
    z-index: 100;
    position: fixed;
}

.section {
    width: 100vw;
    height: 100vh;
    background-image: url(./img/sec03-bg-1.png);
    background-position: center;
    background-size: cover;
    background-attachment:fixed;
    
}



/* Section03 Style ********************/
.slide {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 10vh auto;
    position: relative;
    grid-gap: 1rem;
}

.work-card {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100vw;
}

#work01 {
    grid-area: 2/1/3/2;
    display: flex;
    flex-direction: column;
    color:#0abfbf;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#work01 h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}
#obj4 {
    width: 30%;
    /* margin-left: 5rem; */
}

#work02 {
    grid-area: 3/1/5/2;
}


#work03 {
    grid-area: 5/1/6/2;
}


.work-box{
    height: 400px;
    width: 100vw;
    background-color:#4f4f4f;
    /* border-radius: 5px;  */
    box-shadow: 2px 2px 2px #8888;
    position: relative;
    

}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background: rgba(39, 54, 67, 0.9);
    padding: 1.3rem;
    border-radius: 5px; 
}

.work-box:hover .overlay {
    opacity: 1;
}

.overlay p {
    color: #fff;
    /* font-family: 'Comfortaa', cursive; */
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 10%;
}


#w-box1 {
    background-image: url(./img/restaurant/restaurant-app-mockup.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

#w-box-info {
    background: url(./img/infographic/infographic-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

#w-box-madmovie {
    background-image: url(./img/madmovie/madmovies-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
#w-box-parallax {
    background-image: url(../img/skateboards.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
#w-box-easygroceries {
    background-image: url(./img/easygroceries/easygroceries-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
#w-box-signout {
    background-image: url(./img/signout/signout-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

#w-box-homebakery {
    background-image: url(./img/homebakery/homebakery-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
#w-box-dtapp {
    background-image: url(./img/downtownapp/downtownapp-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}
#w-box-porthope {
    background-image: url(./img/porthope/porthope-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

#w-box-sugardustbakery {
    background-image: url(./img/sugardustbakery/sugardustbakery-2.jpg);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

#w-box-matching {
    background-image: url(./img/matching/matching-1.png);
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-study {
    color:#335668;
    margin-top: 2rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}
.case-study-heading {
    color:#335668;
    font-size: 1.3rem ;
    margin-bottom: 2rem;
}
.case-study-heading2 {
    color:#fff;
    font-size: 1.3rem ;
    margin-bottom: 2rem;
}

.case-study-text {
    /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.5;
    font-size: 1rem;
}

.case-study-text span {
    color:#3fcad4;
}


.sub-heading h4 {
    color: #3fcad4;
}

.sub-heading p {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.5;
    font-size: 1rem;
    margin-top: 5px;

}

.hashtag {
    margin-top: 2rem;
    font-family: 'Noto Sans TC', sans-serif;
    color: #3fcad4;
    font-size: 1rem;
}

.branding {
    grid-column: 1/-1;
    margin: 2rem 0rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap:10px;
    
}


.design-indepth  {
    width: 100%;
}

.app-design {
    width: 80%;
    margin-top: 6rem;
}

.branding-2 img, .branding-app img {
    width: 500px;
    max-width: 100%;
    height:auto;
}

.branding-2, .branding-app {
    display: flex;
    flex-flow: column nowrap ;
    justify-content: space-between;
    align-items: center;
    gap:10px;
}

.screenshots {
    width: 100%;
    display: flex;
    gap: 10px;
    margin-top: 2rem;

}

.screenshots img {
    width: 32%;
    height: auto;
}

.gallery {
    width: 100vw;
    height: 400px;
    /* max-height: 100%; */
    max-width: 100%;
    margin-top: 2rem;
    grid-gap: 10px;
    margin-bottom: 2rem;
    padding: 2rem;
    place-content: center;
    background-color:#26414cc8;
    background-image: url(./img/sec03-bg-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    /* overflow: scroll; */
}


.gallerybox {
    display: flex;
    overflow-x: scroll;
    flex-wrap: nowrap;
    gap: 10px;
}

.gallery img {
    width: 350px;
    height: 202px;
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%;
    margin-right: 20px;
}

.marvel-device.iphone5s, .marvel-device.iphone5c, .macbook_pro {
    position: relative;
    /* margin-bottom: 1rem; */
}

.laptop-size {
    bottom: 454px;
    width: 960px;
    height: 604px;
    right: 396px;
}

.macbook_pro > a > img {
    max-width: 100%;
}

.bottom-nav {
    display: flex; 
    justify-content: space-around;
    align-items: center;
}

.view_work h2 {
    white-space: nowrap;
}

.view_work a {
    color:#26414c;
    text-decoration: none;
}

.view_work a:hover {
    color:#406887;
}


.bottom-nav-a {
    color:#26414c;
}

.bottom-nav-a:hover {
    color:#3fcad4;
}


.view_work > a {
    color:#3fcad4;
}



/* iframe styling */
iframe {
    /* height: 667px;
    width: 375px; */
    width: 100%;
    height:100%;
    border: none;
    position:absolute;
}


.fp-controlArrow.fp-prev {
    margin-left: 2.2rem;
    border-color: transparent #4068875b  transparent transparent ;
}

.fp-controlArrow.fp-next {
    margin-right: 2.2rem;
    border-color: transparent transparent transparent #4068875b;
}

.fp-controlArrow {
    border-color: transparent transparent transparent #4068875b; 
}




/* Small only */
@media screen and (max-width: 39.9375em) {
    
    #obj3 {
        max-width: 35%;
        height: auto;
        margin-left: 1rem;
        top: 10px;
    }

    
    .side-nav-bar {
        display: none;
    }
    
    .active {
        height: 230px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: #333;
        padding-top: 2rem;
        margin-top: -1rem;
    }

    header {
        height: 45px;
    }

    .nav-bar {
        height: 45px;  
        background: #333; 
    }

    .logo-container {
        width: 100%;
        height: 100%;
        position: relative;
    }


    .navbar-toggle {
        font-size: 29px;
    }

    .nav-bar-ul li{
        margin: 10px 0;
    }

    
    #work01 h2 {
        margin-bottom: 2em;
        margin-top: 2rem;
    }

    
    .app-design {
        width: 78%;
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    /* infographic */
    .macbook_pro > a > img {
        width: 100vw;
    }

    .case-study {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }


    .branding {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        
    }

    .gallery {
        height: 350px;
    }

    .screenshots {
        flex-wrap: wrap;
        justify-content: center;
    }

    .screenshots img {
        width: 110px; 
        height: 200px;
        max-height: 100%;
        max-width: 100%;
    }

    .gallerybox {
        max-width: 100%;
        height: auto;
    }

    .view_work h2 {
        font-size: 19px;
        white-space: pre-wrap;
    }

}

/* Medium and up */
@media screen and (min-width: 40em) {

    .side-nav-bar {
        display: none;
    }

    .nav-bar {
        height: auto;  
        background: #333; 
    }

    .nav-bar-ul li{
        margin-top: 10px;
        margin-right: 20px;
        
    }

    #obj3{
        width: 50px;
        margin-left: 20px;
        top: 10px;
    }

    .marvel-device.iphone5s, .marvel-device.iphone5c {
        position: relative;
        margin-bottom: 10rem;
    }

    .branding {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        
    }

    #parallax-stie, .branding-2 {
        grid-area: 1/2/3/3;
    }

}

/* Medium only */
/* @media screen and (min-width: 40em) and (max-width: 63.9375em) {
    
} */

/* Large (1440px) and up */
@media screen and (min-width: 90em) {
    .navbar-toggle {
        display: none;
    }

    .nav-bar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 60px;
        background: white;  
    }
    
    #obj3{
        width: 50px;
        margin-left: 20px;
        top: 9px;
        position: absolute;
    }

    .nav-bar-ul {
        display: flex;
        justify-content: flex-end;
        font-size: 1.5rem;
    }
    .nav-list a {
        margin-right: 2rem;
    }

    #obj4 {
        display: none;
    }

    .work-box {
        height: 500px;
    }

    .overlay p {
        font-size: 2rem;
    }

    .case-study {
        margin-top: 2rem;
        /* padding: 2rem 8rem; */
    }


    .gallerybox {
        overflow-x: scroll;
        flex-wrap: nowrap;
    }


    .gallery img {
        width: 400px;
        border-radius: 5px;
        max-width: 100%;
        height: 100%;
        max-height: 100% ;
    }

    .branding {
        margin: 2rem 0rem;
    }

    .case-study {
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    }


    .branding {
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
        
    }

    .device-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Large only (1024px - 1440px)  */
@media screen and (min-width: 64em) and (max-width: 90em) {

    .logo-container {
        width: 50px;
        height: 50px;
        position: relative;
    }

    #obj3 {
        width: 50px;
        margin-left: 20px;
        top: 9px;
        position: absolute;
    }

    #obj4 {
        display: none;
    }

    .work-box {
        height: 400px;
    }

    .overlay p {
        font-size: 2rem;
    }


    .case-study {
        margin-top: 2rem;
        padding: 2rem 8rem;
    }

    .case-study {
        grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
    }


    .branding {
        grid-template-columns: repeat(auto-fit, minmax(800px, 1fr));
        
    }
}
