/******************
bootstrap5 屏幕尺寸
https://getbootstrap.com/docs/5.0/layout/grid/#grid-options

xs	< 576px
sm	≥ 576px
md	≥ 768px
lg	≥ 992px
xl	≥ 1200px
xxl	≥ 1400px
******************/

body {
    margin: 0;
    padding: 0;
    line-height: 24px;
    user-select: none;
    background-color: #F5F5F5;
}

/******************************************************************************/

div.my-head {
    top: 0;
    width: 100%;
    height: 70px;
    background-color: #212529;
    position: fixed;
    z-index: 999;
    color: white;
}

img.my-logo {
    width: 54px;
    margin-top: 8px;
    vertical-align: top;
}

ul.nav {
    padding: 0;
    margin-top: 16px;
}

div.my-link {
    top: 0;
    right: 0;
    width: 250px;
    position: fixed;
    z-index: 999;
}

div.my-link-2 {
    width: 250px;
    margin-top: 8px;
    padding-top: 2px;
    margin-bottom: 8px;
    border-top: 2px solid lightgray;
}

div.my-title-1 {
    margin-top: 24px;
    display: inline-block;
}

div.my-title-2 {
    margin-top: 8px;
    margin-right: 8px;
    line-height: 180%;
    display: inline-block;
}

button.active {
    background-image: linear-gradient(to right bottom, #1397EA, #0950A2);
}

button.nav-link, button.nav-link:hover {
    color: white;
    margin-left: 3px;
    padding: 8px 10px;
    display: inline-block;
}

span.fas, span.fab {
    color: #1397EA;
}

/******************************************************************************/
div.my-menu { /* phone */
    width: 100%;
    color: white;
    padding-top: 70px;
    line-height: 200%;
    background-image: linear-gradient(to right bottom, #1397EA, #0950A2);
}

ul.my-menu1 {
    margin: 6px 0;
    padding: 0;
    color: white;
    list-style: none;
}

ul.my-menu1 > li {
    line-height: 200%;
    cursor: pointer;
    color: lightskyblue;
}

ul.my-menu2 {
    color: white;
    list-style: none;
    padding-left: 1em;
    display: none;
}

ul.my-menu2 > li {
    padding: 0 8px;
    border-radius: 6px;
    display: inline-block;
    cursor: pointer;
}

div[my-nav="product"] ul.my-menu1 li[my-focus="true"] {
    color: white;
}

div[my-nav="product"] ul.my-menu1 li[my-focus="true"] ul.my-menu2 {
    display: block;
}

div.my-menu[my-nav="product"] ul.my-menu2 > li[my-focus] {
    background-color: blue;
}

div.my-menu[my-nav="product"] ul.my-menu2 > li[my-focus][my-path="OPKON"] {
    background-color: red;
}

div.my-menu[my-nav="product"] ul.my-menu2 > li[my-focus][my-path="GEFRAN"] {
    background-color: #4FD3B0;
}

div.my-menu[my-nav="product"] ul.my-menu2 > li[my-focus][my-path="NOVO"] {
    background-color: black;
}

div.my-menu[my-nav="contact"] div.my-link-2 {
    display: none !important;
}

[class^="my-fa-"]:before {
    margin-right: 6px;
    font-weight: bold;
    font-family: "Font Awesome 6 Free";
}

[class^="my-fa-"]:after {
    margin-left: 6px;
    font-weight: bold;
    font-family: "Font Awesome 6 Free";
}

span.my-fa-caret-down:after {
    content: "\f0d7";
}

div.my-menu[my-nav="product"] li[my-focus="true"] span.my-fa-caret-down:after {
    content: "\f0da";
}

span.my-fa-bolt-lightning:before {
    content: "\e0b7";
}

span.my-fa-file-code:before {
    content: "\f1c9";
}

span.my-fa-magic-wand-sparkles:before {
    content: "\e2ca";
}

span.my-fa-water:before {
    content: "\f773";
}

span.my-fa-download:before {
    content: "\f019";
}

/******************************************************************************/
div.my-body {
    padding: 0;
    width: 100%;
}

div.carousel {
    width: 100%;
    padding: 10px;
    display: block;
}

div.carousel-caption {
    bottom: 0.25rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    background: linear-gradient(0deg, rgba(51, 51, 51, 1) 0%, rgba(51, 51, 51, 0) 100%);
}

ul.my-about {
    line-height: 200%;
    margin: 1em 1rem 0 0;
    word-break: break-all;
}

ul.my-about li {
    margin-bottom: 1em;
}

ul.my-about b {
    color: blue;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

/******************************************************************************/
div.my-foot {
    padding: 1rem;
    margin-top: 1rem;
    line-height: 180%;
    border-top: 1px solid lightgray;
}

/******************************************************************************/
div.card {
    width: 15em;
    margin: 10px;
    line-height: 200%;
    display: inline-block;
}

a.my-link {
    cursor: pointer;
}

img.my-logo2 {
    width: 180px;
    border-radius: 4px;
    vertical-align: top;
    border: 1px solid lightgray;
}

.tooltip-inner {
    text-align: left;
}

.my-tooltip {
    --bs-tooltip-opacity: 1;
    --bs-tooltip-bg: tomato;
    --bs-tooltip-bg: #0950A2;
    --bs-tooltip-bg: #1397EA;
    --bs-tooltip-color: white;
    --bs-tooltip-max-width: 32em;
}

/******************************************************************************/
ul.my-list {
    padding-left: 0;
    list-style: none;
    text-align: center;
}

ul.my-list li {
    text-align: left;
    position: relative;
    vertical-align: top;
    display: inline-block;
    margin: 1em 8px 1em 8px;
}

ul.my-list li::after {
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    opacity: 80%;
    padding: 0.5em;
    position: absolute;
    content: attr(my-title);
    border-radius: 8px 8px 0 0;
    background-image: linear-gradient(0deg, rgba(51, 51, 51, 1) 0%, rgba(51, 51, 51, 0) 100%);
    background-image: linear-gradient(0deg, #1397EA, #0950A2);
}

ul.my-list img {
    width: 345px;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid lightgray;
}

ul.my-list div.my-desc {
    min-height: 4em;
    max-width: 345px;
    user-select: text;
    word-break: break-all;
    white-space: pre-wrap;
}

/******************************************************************************/
@media (width < 900px) {
    /* mobi */
    .my-mobi {
        display: flex !important;
    }

    .my-desk {
        display: none !important;
    }

    a.my-logo {
        width: 70px;
        padding: 0 5px;
    }
}

@media (width >= 900px) {
    /* desk */
    .my-mobi {
        display: none !important;
    }

    .my-desk {
        display: flex !important;
    }

    a.my-logo {
        width: 300px;
        padding: 0 5px;
    }

    div.my-menu {
        top: 0;
        width: 300px;
        position: fixed;
        overflow-y: auto;
        height: -webkit-fill-available;
        z-index: 995;
    }

    div.my-body {
        padding-top: 70px;
        padding-left: 300px;
    }
}
