
@import url('https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100;200;300;400;500;600;700;800;900&family=Hahmlet:wght@100;200;300;400;500;600;700;800;900&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Noto+Sans+Display:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Display', sans-serif;
    padding: 10px;
    background: #eff3f8;
    max-width: 1024px;
    margin: auto;
    font-display: swap;
}

figcaption {
    color: cadetblue;
    text-align: center;
}

article {
    background: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
}

article div {
    font-size: 10pt;
}

article H2 {
    color: #492f91;
    text-align: left;
}


article p {
    font-family: 'Open Sans';
    text-align: justify;
}

H2 {
    font-family: "Hahmlet";
}

H3 {
    font-family: "Lora";
}

img {
    width: 95%;
    border-radius: 3px;
}



.header {
    /*padding: 30px 30px 30px 0px;*/
    /*text-align: center;*/
    background: white;
    border-radius: 3px;
    height: 127px;
}

.header img {
    width: 35%;
    max-width: 270px;
    object-fit: contain;
    float: left;
    margin-top: 2%;
    margin-left: 1%;
}

.sub-header {
    background: white;
    border-radius: 3px;
    width: 100%;
    display: inline-block;
}

/* Style the top navigation bar */
.topnav {
    overflow: hidden;
    background: linear-gradient(#2e2974 66%, #c6bedc);
    border-radius: 2px;
    margin-bottom: 20px;

}

/* Style the topnav links */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Change color on hover */
.topnav a:hover {
    border-radius: 2px;
    /*background: #ddd;*/
    background: linear-gradient(#c6bedc 33%, #fdfdfd);
    color: #2e2974;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.sidebar {
    float: left;
    width: 18%;
    margin-top: 10px;
}


/* Right column */
.content {
    float: left;
    width: 85%;
    padding-left: 20px;
    text-align: justify;
    /*text-justify: inter-word;*/
    font-size: 14px;
}


.row:after {
    content: "";
    display: table;
    clear: both;
}


/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    /*background: #e0e0f0;*/
    background: linear-gradient(#e0e0f0 66%, #c6bedc);
    margin-top: 20px;
    font-size: 13px;
}

.footer a {
    text-decoration: none;
    color: #333;
}

.footer a:hover {
    text-decoration: underline;
}







ul.drop-down-menu {
    width: 100%;
    display: inline-block;
    background: linear-gradient(#2e2974 66%, #c6bedc);
    border-radius: 2px;
    /*margin-bottom: 20px;*/
    list-style: none;
    margin: 0;
    padding: 0;

}

ul.drop-down-menu li {
    position: relative;
    white-space: nowrap;
    background: linear-gradient(#2e2974 66%, #c6bedc);
    list-style: none;
    margin: 0;
    padding: 0;


}

ul.drop-down-menu>li:last-child {
    border-right: none;
}

ul.drop-down-menu>li {
    float: left;
    /* 只有第一層是靠左對齊*/

}

ul.drop-down-menu a {
    color: #f2f2f2;
    display: block;
    padding: 0 16px;
    text-decoration: none;
    line-height: 40px;

}

ul.drop-down-menu a:hover {
    /* 滑鼠滑入按鈕變色*/
    background: linear-gradient(#c6bedc 33%, #fdfdfd);
    color: #2e2974;
}

ul.drop-down-menu li:hover>a {
    /* 滑鼠移入次選單上層按鈕保持變色  #ef5c28*/
    background: linear-gradient(#c6bedc 33%, #fdfdfd);
    color: #2e2974;
}

ul.drop-down-menu ul {
    position: absolute;
    z-index: 99;
    left: -1px;
    top: 100%;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 0;

}

ul.drop-down-menu ul li {
    background: #f7f7fc;
    color: #f2f2f2;
    border-top: 1px dotted #8e8984;
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.drop-down-menu ul li a {
    color: #2e2974;
}

ul.drop-down-menu ul a:hover {
    /* 滑鼠滑入按鈕變色*/
    background: linear-gradient(#fdfdfd 33%, #c6bedc);
    color: #2e2974;
}

ul.drop-down-menu ul li:hover>a {
    /* 滑鼠移入次選單上層按鈕保持變色  #ef5c28*/
    background: linear-gradient(#fdfdfd 33%, #c6bedc);
    color: #2e2974;
}


ul.drop-down-menu ul li:last-child {
    border-bottom: 2px solid #2e2974;
}

ul.drop-down-menu ul li:first-child {
    border-top: 2px solid #2e2974;
}


ul.drop-down-menu ul .last-menu a:hover {
    /* 滑鼠滑入按鈕變色*/
    background: linear-gradient(#fdfdfdbb 33%, #c6bedcbb), url("image/product-list.png");
    color: #2e2974;
    background-image: ;
    background-repeat: no-repeat;
    background-position: right;
    border-bottom: none;
}

ul.drop-down-menu .last-menu {
    background-image: url("image/product-list.png");
    background-repeat: no-repeat;
    background-position: right;
    border-bottom: none;
}


ul.drop-down-menu ul ul {
    /*第三層以後的選單出現位置與第二層不同*/
    z-index: 999;
    top: 0px;
    left: 90%;
}

ul.drop-down-menu ul {
    /*隱藏次選單*/
    left: -9999px;
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

ul.drop-down-menu li:hover>ul {
    /* 滑鼠滑入展開次選單*/
    opacity: 1;
    -webkit-transition: opacity 0.7s;
    transition: opacity 0.7s;
    left: -1px;
}

ul.drop-down-menu li:hover>ul ul {
    /* 滑鼠滑入之後、次選單之後的選單依舊隱藏*/
    left: -9999px;
}

ul.drop-down-menu ul li:hover>ul {
    /* 第二層之後的選單展開位置*/
    left: 100%;
}


.main-portion {
    float: left;
    padding: 10px;
}

.home-side {
    width: 30%;
    text-align: center;
}

.home-side-block {
    width: 100%;
    text-align: center;
    border-radius: 5px;
    background: #492f912b;
    margin-bottom: 20px;
    height: 250px;
}

.home-side-block a,
.home-side-block a:visited {
    text-decoration: none;
    display: block;
    padding-top: 10px;
    color: #333;
}

.home-side-block a:hover {
    background: linear-gradient(#2e2974 66%, #c6bedc);
    color: #f2f2f2;
    height: 100%;
}


.slider_container {
    width: 70%;
    position: relative;
    min-height: 540px;
    text-align: center;

}

.slider_container div img {
    width: 90%;
    height: 521px;
    object-fit: contain;
}


.slider_container div {
    position: absolute;

    left: 0;
    margin: auto;
    opacity: 0;
    filter: alpha(opacity=0);
}


.slider_container div {
    -webkit-animation: round 15s linear infinite;
    animation: round 15s linear infinite;
    border-radius: 3px;
}

@-webkit-keyframes round {
    4% {
        opacity: 1;
        filter: alpha(opacity=100);
        /* 0 - 1秒 淡入*/
    }

    20% {
        opacity: 1;
        filter: alpha(opacity=100);
        /* 1- 5秒靜止*/
    }

    24% {
        opacity: 0;
        filter: alpha(opacity=0);
        /* 5-6秒淡出*/
    }
}

@keyframes round {
    4% {
        opacity: 1;
        filter: alpha(opacity=100);
        /* 0 - 1秒 淡入*/
    }

    20% {
        opacity: 1;
        filter: alpha(opacity=100);
        /* 1- 5秒靜止*/
    }

    24% {
        opacity: 0;
        filter: alpha(opacity=0);
        /* 5-6秒淡出*/
    }
}



.slider_container div:nth-child(5) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
}

.slider_container div:nth-child(4) {
    -webkit-animation-delay: 3s;
    animation-delay: 3s;
}

.slider_container div:nth-child(3) {
    -webkit-animation-delay: 6s;
    animation-delay: 6s;
}

.slider_container div:nth-child(2) {
    -webkit-animation-delay: 9s;
    animation-delay: 9s;
}

.slider_container div:nth-child(1) {
    -webkit-animation-delay: 12s;
    animation-delay: 12s;
}

.slider_container span {
    color: #2e2974;
    background: #f7f7fc;
    position: absolute;
    left: 0%;
    top: 440px;
    max-width: 600px;
    height: 80px;
    font-size: 20px;
    text-align: center;
    line-height: 80px;
    -webkit-transform: scaleY(0);
    -ms-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.slider_container:hover span {
    width: 100%;
    -webkit-transform: scaleY(1);
    -ms-transform: scaleY(1);
    transform: scaleY(1);
}

/*.slider_container:hover div {
    -webkit-animation-play-state: paused;
            animation-play-state: paused;
}*/


.categories {
    border-radius: 5px;
    background: #FFFFFF;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}



.cat-cube {
    /* width: 30%; */
    width: 180px;
    height: 256px;
    display: inline-block;
    padding: 5px;
    /*background: #e0e0f15c;*/
    background: linear-gradient(#e0e0f15c 66%, #c6bedc);
    margin: 5px;
    vertical-align: middle;
    text-align: center;
    border-radius: 3px;
    font-size: 12px;
}

.cat-cube img {
    height: 185px;
    max-width: 100%;
    margin: 5px;
    object-fit: contain;
}

.cat-cube a {
    display: block;
    color: #2e2974;
    text-decoration: none;
}

/* Change color on hover */
.cat-cube a:hover {
    border-radius: 2px;
    /*background: #ddd;*/
    background: linear-gradient(#2e2974 66%, #c6bedc);
    color: #f2f2f2;
    height: 100%;
}


.FP {
    border-radius: 5px;
    background: #eff3f8;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
}



.desc {
    font-size: 10px;
    line-height: 1.6;
    text-align: left;
    height: 112px;
    color: #000;
    font-family: 'Encode Sans';
}

.desc a:visited {
    color: #000;
}

.CAT {
    font-size: 13px;
    margin: 10px;
    color: #006621;
}

.CAT a {

    color: #006621;
}

.CAT a:visited {
    color: #006621;
}




.two-colume {
    width: 80%;
    column-count: 2;
    column-gap: 30px;
    column-rule-style: dotted;
    column-rule-width: 1px;
    column-rule-color: lightblue;
    margin-top: 10px;
    margin: auto;
}

.two-colume div {
    text-align: justify;
}







.header-contact {
    font-size: 0.82em;
    line-height: 145%;
    color: rgb(143, 143, 143);
    text-align: right;
    float: right;
    margin-top: 4%;
    margin-right: 4%;
}



.stock_check {
    border-radius: 5px;
    background: #CCF;
    font-size: 9px;
}



/* Modal window sample styles */
/* Vertical centering trick https://css-tricks.com/centering-in-the-unknown/ */
.modal::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin: 0;
}

.target {
    display: block;
    left: 0;
    position: fixed;
    top: 0;
    width: 0;
    height: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal {
    position: fixed;
    top: 20%;
    left: 25%;
    z-index: 100;
    text-align: center;
    display: none;
    /* Fallback for legacy browsers */
    background-color: rgba(0, 0, 0, 0.6);
    width: 60%;
}

.modal>.content {
    /*text-align: left;*/
    display: inline-block;
    /*   background-color: #e0e0f0;*/
    background-color: #ffffff;
    box-sizing: border-box;
    color: white;
    position: relative;
    /*width: 500px;*/
    padding: 20px;
}

.modal>.content .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 15px;
    height: 15px;
    color: black;
    font-size: 18px;
    text-decoration: none;
}


:root .modal {
    display: block;
    background-color: transparent;
    transition: transform 0.3s cubic-bezier(0.5, -0.5, 0.5, 1.5);
    transform-origin: center center;
    transform: scale(0, 0);
}

:root .modal>.content {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

:root .target:target+.modal {
    transform: scale(1, 1);
}



.form-popup {
    background: #e1e1f1;
    font-size: 45px;
    font-weight: bold;
    width: 80%;
    margin: auto;
    margin-top: auto;
    text-align: center;
    margin-top: 30px;
    padding: 30px;
    border: cadetblue;
    border-right-style: solid;
    border-right-width: medium;
    border-left-style: solid;
    border-left-width: medium;
    border-block-style: solid;
    border-radius: 10px;
}

.form-popup a {
    text-decoration: none;
}

.form-popup a:hover {
    text-decoration: underline;
}


.slide-1 {
    max-width: 512px;
}

.slide-1 img {
    border-radius: 10px;
}



.FP-item {
    /*width: 20%;*/

    height: 325px;
    max-width: 85%;
    min-width: 128px;
    display: inline-block;
    padding: 5px;
    /*    background: #492f912b;*/
    /*background: linear-gradient(#e0e0f15c 66%, #c6bedc);*/
    background-color: #fff;
    margin: 5px;
    vertical-align: middle;
    text-align: center;
    border-radius: 8px;
    /*font-size: x-small;*/
    overflow: hidden;
    text-overflow: ellipsis;
    border-style: solid;
    border-width: 1px;
    border-color: #aebdbd;

}

.FP-item img {
    height: 144px;
    max-width: 100%;
    margin: auto;
    margin-bottom: 5px;
    object-fit: contain;
    border-radius: 8px;
}

.FP-item figure {
    width: 100%;
    margin: auto;
}

.FP-item figcaption {
    line-height: 1.5;
    text-align: center;
    font-weight: bolder;
    color: #1A0DAB;
    font-size: 14px;
    font-family: 'Lora';
}

.FP-item a {
    display: block;
    text-decoration: none;
}

/* Change color on hover */

.FP-item a:hover {
    border-radius: 5px;
    /*background: #ddd;*/
    /*    background: linear-gradient(#c6bedc 66%, #2e2974);*/
    /*    background: linear-gradient(#2e2974 33%, #c6bedc);*/
    /*color: #2e2974;
    f2f2f2;*/
    text-decoration: underline;
    /*height: 100%;*/
}


nav {
    font-weight: bolder;
    color: #006621;
    margin-left: 25px;
    margin-top: 15px;
    margin-bottom: 5px;
}

nav a {
    font-weight: normal;
    text-decoration: none;
    color: #006621;
}

nav a:hover {
    font-weight: normal;
    text-decoration: underline;
    color: #006621;
}





@media only screen and (max-width: 551px),
(min-device-width: 559px) and (max-device-width: 1024px) {

    .FP {
        display: none;
    }

    .color-table table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    .color-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .color-table tr {
        border: 1px solid #ccc
    }

    .color-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    .color-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }

    .color-table td:nth-of-type(1):before {
        content: "LED P/N Suffix";
    }

    .color-table td:nth-of-type(2):before {
        content: "";
    }

    .color-table td:nth-of-type(3):before {
        content: "Description";
    }

    .color-table td:nth-of-type(4):before {
        content: "Chemistry";
    }

    .color-table td:nth-of-type(5):before {
        content: "# of Elements";
    }

    .color-table td:nth-of-type(6):before {
        content: "Color Temperature(CCT Typ)";
    }

    .color-table td:nth-of-type(7):before {
        content: "Peak Wavelength(λ/xcoord)";
    }

    .color-table td:nth-of-type(8):before {
        content: "Dominant Wavelength(λ/xcoord)";
    }

    .color-table td:nth-of-type(9):before {
        content: "Forward Voltage(Vf Typ)";
    }

    .color-table td:nth-of-type(10):before {
        content: "Forward Voltage(Vf Max)";
    }

    .color-table td:nth-of-type(11):before {
        content: "Brightness";
    }

    .two-colume {
        width: 90%;
        column-count: 1;
        margin-top: 10px;
        margin: auto;
    }

    .two-colume div {
        text-align: justify;
    }


}