/*Paging*/
.paging-section {
    width: 100%;
    text-align: center;
    height: 120px;
    margin-top: 30px;
    margin-bottom: 50px;
}

    .paging-section table {
        display: inline-block;
        width: auto;
    }

    .paging-section a {
        display: block;
        text-decoration: none;
        font-size: 10px;
        font-weight: bold;
        color: whitesmoke;
        height: 25px;
        width: 25px;
        line-height: 25px;
        text-align: center;
    }

.paging-arrow {
    width: 5px;
    height: 9px;
    margin-top: 8px;
}

.paging-back {
    background-color: var(--sec-color);
}

/* slider */
#sliderbtn {
    position: relative;
    display: flex;
    width: 120px;
    height: 30px;
    font-weight: bold;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    background-color: var(--btn-color);
    margin: 20px 6% 0px 6%;
}

    #sliderbtn:hover {
        background-color: var(--hover-color);
    }

#sliderbtntext {
    color: whitesmoke;
    margin-left: 5px;
    margin-right: 5px;
    font-weight: bold;
    font-size: 13px;
}

#slidtdiv {
    position: relative;
    margin-top: 10%;
    margin-left: 15%;
    color: whitesmoke;
}

#slidertitle {
    color: whitesmoke;
    font-size: 2.2vw;
    font-weight: bold;
    margin: 12% 6% 0px 6%;
}

#slidertext {
    color: whitesmoke;
    font-size: 1.4vw;
    margin: 0px 8% 0px 8%;
    font-weight: normal;
}

/*Default Banner*/
.defbanner {
    position: relative;
    width: 100%;
    background-color: var(--thi-color);
    height: 200px;
    margin-top: 30px;
    overflow: hidden;
}

.dbannerhov {
    position: absolute;
    margin: 5px 80px;
}

.deftitle {
    color: whitesmoke;
    font-size: 26px;
    font-weight: bold;
    margin: 20px 5% 0px 5%;
}

.defdesc {
    color: darkgray;
    font-size: 16px;
    font-weight: normal;
    margin: 10px 7% 0px 7%;
}

/*profile*/
.profile-section {
    width: 80%;
    height: auto;
    min-height: 160px;
    background-color: var(--thi-color);
    margin: 20px 10%;
    overflow: hidden;
}

.profile-area {
    margin: 20px 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0px 20px;
}

.profile-title {
    color: whitesmoke;
    font-size: 18px;
    margin-top: 0px;
    margin-bottom: 5px;
}

.profile-position {
    color: whitesmoke;
    font-size: 16px;
    font-weight: normal;
    margin: 0px;
}

.profile-desc {
    color: whitesmoke;
    font-size: 14px;
    word-wrap: break-word;
    margin: 0px;
}

/*Gallery*/
#galleryp {
    position: relative;
    width: 100%;
    /*background-color: var(--thi-color);*/
    margin-top: 30px;
    margin-bottom: 50px;
}

#gallery {
    flex-flow: row;
    width: 100%;
    overflow-x: scroll;
    white-space: nowrap;
    overflow-y: hidden;
    display: flex;
    padding: 50px 0px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
}

    #gallery::-webkit-scrollbar {
        display: none;
    }

    #gallery img {
        transition: 0.1s all ease-in-out;
    }

        #gallery img:hover {
            transform: scale(1.1);
        }

#gallery-scroll-left {
    padding: 20px 8px;
    background-color: rgba(10, 10, 10, 0.7);
    position: absolute;
    top: 50%;
    border: 0px;
    z-index: 9999;
    transform: translate(0%, -50%);
}

#gallery-scroll-right {
    padding: 20px 8px;
    background-color: rgba(10, 10, 10, 0.7);
    position: absolute;
    top: 50%;
    right: 0px;
    border: 0px;
    z-index: 9999;
    transform: translate(0%, -50%);
}

/*product items*/
#product-section {
    display: inline-block;
    width: 96%;
    margin: 100px 2%;
}

.product {
    width: 31%;
    height: 30vw;
    background-color: forestgreen;
    display: block;
    float: left;
    margin: 1vw 1%;
    background-color: var(--thi-color);
    border-radius: 5px;
    overflow: hidden;
}

.product-img-section {
    background-color: var(--back-img);
    height: 58%;
    text-align: center;
    overflow: hidden;
}

.product-body-section {
    width: 100%;
    position: relative;
    display: inline-block;
    height: 42%;
}

.product-img {
    height: 100%;
    width: 100%;
    transition: 0.1s all ease-in-out;
}

    .product-img:hover {
        transform: scale(0.9);
    }

.product-title {
    color: whitesmoke;
    margin: 10px 3% 5px 3%;
    font-size: 1.25vw;
}

.product-abstract {
    color: darkgray;
    font-weight: normal;
    margin: 0px 5%;
    font-size: 1.05vw;
    line-height: 1.5vw;
}

.product-more {
    position: absolute;
    right: 4%;
    text-decoration: none;
    font-size: 1.0vw;
    font-weight: bold;
    bottom: 10px;
}

.product-download {
    position: absolute;
    right: 28%;
    text-decoration: none;
    font-size: 1.0vw;
    font-weight: bold;
    bottom: 10px;
}

/* Top Post */
#toppost {
    display: inline-block;
    margin: 40px 0px 0px 15%;
    width: 70%;
    background-color: var(--thi-color);
    overflow: hidden;
}

.toppost-title {
    color: whitesmoke;
    margin: 20px 6% 5px 6%;
    font-size: 1.7vw;
}

.toppost-abstract {
    color: darkgray;
    font-weight: normal;
    margin: 25px 7% 5px 7%;
    font-size: 1.2vw;
}

.toppost-more {
    float: right;
    margin-bottom: 20px;
    margin-right: 7%;
    text-decoration: none;
    font-size: 1.0vw;
    font-weight: bold;
}

.toppost-img {
    width: 60%;
    margin-top: 20px;
    margin-left: 20%;
}

/* Select */
.select-editable {
    position: relative;
    background-color: white;
    border: solid grey 1px;
    border-radius: 5px;
    width: 96%;
    margin-left: 2%;
    margin-top: 20px;
    height: 35px;
}

    .select-editable select {
        position: absolute;
        top: 0px;
        left: 0px;
        font-size: 14px;
        border: none;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 5px;
        background-color: white !important;
    }

    .select-editable input {
        position: absolute;
        left: 0;
        top: 0;
        padding: 1px;
        font-size: 12px;
        border: none;
        width: 90%;
        margin-right: 20px;
        border-radius: 5px 0 0 5px;
        height:100%;
        background-color:white !important;
    }

        .select-editable select:focus, .select-editable input:focus {
            outline: none;
        }

/*Modeal*/
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 50%;
    top: 100px;
    width: 400px;
    height: auto;
    padding: 20px 0px;
    overflow: hidden;
    background-color: var(--thi-color);
    transform: translate(-200px);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Message */
.msgsp {
    color: greenyellow;
    margin-left: 20px;
}

.msgfp {
    color: red;
    margin-left: 20px;
}

@media screen and (max-width: 900px) {
    #product-section {
        display: block;
    }

    .product {
        width: 96%;
        height: 88vw;
        float: initial;
        margin: 8vw 2%;
    }

    .product-title {
        font-size: 4vw;
    }

    .product-abstract {
        margin: 0px 5%;
        font-size: 3.2vw;
        height: 20vw;
        line-height: 4vw;
    }

    .product-more {
        font-size: 3.2vw;
    }

    .product-download {
        font-size: 3.2vw;
    }

    #toppost {
        display: none;
    }

    #slidertitle {
        font-size: 26px;
    }

    #slidertext {
        font-size: 14px;
    }

    .profile-section {
        width: 94%;
        margin-left: 3%;
        margin-top: 20px;
        margin-bottom: 0;
    }
}