@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

* {
    font-family: 'Noto Sans TC';
}

main {
    width: 100%;
    font-family: 'Noto Sans TC';
}

.banner_section {
    width: 100%;
    height: 24vw;
    background: url('../imgs/tf_banner.jpg') no-repeat;
    background-position: center 50%;
    background-size: 100%;
}

.headline_coffee {
    position: absolute;
    width: 30vw;
    height: auto;
    top: 15vw;
    right: 0;
}

.headline_coffee img {
    width: 100%;
}

.first_section {
}

.first_sectionTop {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    color: #8b3e0f;
    height: 13em;
    padding-bottom: 2em;
}

.first_sectionTop h2 {
    font-weight: 300;
    font-size: 1.75em;
}

.first_sectionTop img {
    width: 3vw;
    min-width: 3em;
    margin: 0 1em 0 1em;
}

.first_sectionMid {
    /*min-height: 68vw;*/
}

.tf_kind {
    margin-bottom: 2em;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.current_kind {

    position: absolute;
    /*-webkit-transform: translateX(-7.5em);
    -ms-transform: translateX(-7.5em);
    transform: translateX(-7.5em);*/

    height: 5em;
    width: 5em;
    border: 1px solid grey;
    font-size: 12px;
    background: rgba(100, 100, 100, 0.1)
}

#text {
    width: 0;
}

.kind {
    border-right: 1px solid rgba(100, 100, 100, 0.2);
    font-size: 12px;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    height: 5em;
    width: 5em;
    list-style: none;
    text-align: center;
    cursor: pointer;
}

.tf_product_wrapper {
    padding: 1em 10% 1em 10%;
}

.tf_product_wrapper > .row {
    margin-bottom: 5vw;
}

.product {
    min-height: 28vw;
    -webkit-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
    -webkit-box-shadow: 0 0 1px rgba(100, 100, 100, .9);
    box-shadow: 0 0 1px rgba(100, 100, 100, .9);
    margin: 0% 0% 0% 5%;;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 15px 0 15px;
}

.product:hover {
    -webkit-box-shadow: 0 0 5px grey;
    box-shadow: 0 0 5px grey;
}

.product > span {

    margin: 2% 0 0 0;
    height: auto;
}

.product > span > p {
    font-size: 1vw;
    margin: 0;
}

.product > span:first-child > p {
    font-size: 1vw;
    margin: 0;
}

.product > p {
    color: #9c202b;
    font-size: 12px;
    margin: 1em 0;
}

.col-md.photo:last-child {
    margin: 0% 5% 0% 5%;
}

.product > .image_overflow {
    height: 100%;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    display: contents;
}

.product > .image_overflow > img {
    margin-top: 5%;
    width: 100%;
    height: auto;
}

.first_sectionBot {
    border-bottom: 1px solid grey;
    height: 5vw;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.pageNum_box > span {
    margin: 0 10px 0 0;
}

.current_page {
    background: #8b3e0f;
    color: white;
    padding: 0 2px 0 2px;
}

.ingredient_box {

    display: inline-block;
    margin-bottom: 25px;
    margin-right: 15px;
}

.ingredient_box p {
    text-align: center;
}

.panel-group img {
    max-width: 100%;
}


@media (max-width: 1280px) {
    .product > span > p {
        font-size: 0.75em;
        margin: 0;
    }
}

@media (max-width: 768px) {

    .banner_section {
        height: 40vw;
    }

    .first_sectionTop {
        height: 7em;
        padding: 0;
        -webkit-transform: scale(0.8);
        -ms-transform: scale(0.8);
        transform: scale(0.8);
    }

    .headline_coffee {
        display: none;
    }

    .tf_photo_wrapper > .row {
        margin-bottom: 2em;
    }

    .col-md.photo:last-child {
        margin: 0% 0% 0% 0%;
    }

    .tf_product_wrapper > .row {
        display: block;
    }

    .product {
        height: auto;
        min-height: 25em;
        margin-bottom: 2em;
        margin-left: 0;
    }

    .product > .image_overflow {
        height: auto;
        overflow: hidden;
        margin-top: 5%;
        width: 90%;
    }

    .image_overflow > img {
        margin: 0 !important;
        height: 100%;
    }

    .product > span > p {
        font-size: 15px;
    }

    .first_sectionBot {
        height: 5em;
    }

    .panel-group img {
        height: auto !important;
    }

}


@media (max-width: 768px) {
    .product_empty {
        display: none;
    }

}

