
/* Global Variables*/

:root {
    --myColor : red;
}

body {
    height: 100vh;
}

#frame-header {
    position: relative;
    display: flex;
    height: 8vh;
    width: 100%;
    border: 0;
    padding: 0;
}



/*************** Section horizontal (Side Bar + iframe), after Header  **************** */
section {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 92vh;
    background: url("../../img/background.svg?v=1.0") no-repeat center;
    background-size: cover;
    z-index: 0;
    scrollbar-width: none;
}



/*************** Side Bar  **************** */
aside {
    position: relative;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-right: 1px solid hsl(0, 0%, 9%, 0.2);
    box-shadow: 10px 0 25px -15px #888;
    /*transition: flex 2s, width 2s;*/
    z-index: 0;
    overflow-y: scroll;
    scrollbar-width: none;
}



#sidebar::-webkit-scrollbar {
    display: none;
}


/*************** Collapse Side Bar  **************** */

#collapseSideBar {
    position: fixed;
    display: flex;
    height: 120px;
    width: 40px;
    background: linear-gradient(to right, hsl(10deg 0% 90%), hsl(10 0% 85%));
    border: solid 1px gray;
    margin-top: 40vh;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

    #collapseSideBar:hover {
        background: linear-gradient(to right, hsl(292, 5%, 95%), hsl(345, 10%, 90%));
    }

@media screen and (max-width:768px) {

    #collapseSideBar {
        display: none;
    }
}

#MobileCollapseSideBar {
    position: absolute;
    display: none;
    margin-left: 62%;
    margin-top: 5%;
    width: 15%;
    height: 15%;
    cursor: pointer;
    background: url("../../img/close_icon.svg?v=1.0") no-repeat center;
    background-size: contain;
    z-index: 3;
}

@media screen and (max-width:768px){

    #MobileCollapseSideBar {
        display: block;
        position: fixed;
    }
}


/*************** Side Bar Menu  **************** */

#sidebar details {
    position: relative;
    border-bottom: 0.05em solid hsl(0, 0%, 38%, 0.42);
    padding-right: 4%;
}

#sidebar details > summary {
    position: relative;
    margin-top: 2%;
    margin-bottom: 2%;
    padding-left: 5%;
    font-size: 1.0vw;
    cursor: pointer;
    margin-left: 4%;
}

@media screen and (max-width:768px) {

    #sidebar details > summary {
        font-size: 3.2vw;
    }
}

#sidebar details > summary > a {
    position: relative;
    display: inline-flex;
    padding-top: 4%;
    padding-bottom: 4%;
    /*background: green;*/
}


#sidebar details[data-menu-state="Default"] > summary {
    display: list-item;
    background: url("../../img/SideMenu.svg?v=1.0") no-repeat ;
    background-size: contain;
    color: black;
    opacity: 1;
}

#sidebar details[data-menu-state="Default"] > summary > a {
    color: black;
}

#sidebar nav details[data-menu-state="Selected"] > summary {
    background: url("../../img/SideMenuSelected.svg?v=1.0") no-repeat 10%;
    background-size: contain;
    color: white;
}

#sidebar nav details[data-menu-state="UnderSelected"] > summary {
    background: url("../../img/SideMenuSelected.svg?v=1.0") no-repeat 10%;
    background-size: contain;
    color: white;
    opacity: 0.6;
}

#sidebar details[data-menu-state="Selected"] > summary > a {
    color: white;
}

.summaryTitle {
    display: inline-flex;
    position: relative;
    width: 90%;
}

/* Summary Main Tab Hover */
#sidebar details summary:hover {
    background: url("../../img/SideMenuSelected.svg?v=1.0") no-repeat;
    background-size: contain;
    opacity: 1.0;
    color: white;
}

#sidebar details summary:hover > a {
    color: white;
}


/*************** SideBar Sub Tab  **************** */


.sidebarSub {
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    margin-left: 10%;
    margin-bottom: 1%;
    padding-left: 10%;
    font-size: 1.0vw;
    cursor: pointer;
    border-bottom: 0.05em solid hsl(0, 0%, 38%, 0.42);
}

@media screen and (max-width:768px) {

    .sidebarSub {
        font-size: 3.2vw;
    }
}

nav details > a:last-child > div{
    margin-bottom: 5% !important;
}

a[data-sub-state="Default"] > div {
    background: url("../../img/SideMenuOpen.svg?v=1.0") no-repeat center;
    background-size: cover;
    color: black;
}

a[data-sub-state="Selected"] > div {
    background: url("../../img/SideMenuSelected.svg?v=1.0") no-repeat center;
    background-size: cover;
    color: white;
}


.sidebarSub:hover {
    background: url("../../img/SideMenuSelected.svg?v=1.0") no-repeat center;
    background-size: cover;
    color: white;
}


/*************** Document Page  **************** */

@media screen and (max-width:768px) {
    #frame-sidemenu {
        position: absolute;
        background: red;
        background: url("../../img/background.svg?v=1.0") no-repeat center;
        background-size: cover;
        height: 100%;
        width: 60%;
        z-index: 2;
    }
}

#DocArea {
    position: relative;
    flex: 4;
    /*width: 80%;*/
    height: auto;
    z-index: 1;
    overflow-y: scroll;
    /*    background: hsl(42, 100%, 98%);*/
}

@media screen and (prefers-color-scheme: light) {

}

.backgroundBlur {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    background: hsl(0, 0%, 15%);
    filter: blur(8px);
    opacity: 95%;
    z-index: 19;
}

.EnlargeImgBox {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.EnlargeImgBox > img {
    display: flex;
    position: relative;
    width: 89vw;
    height: 50vw;
    object-fit: contain;
}

.EnlargeImgBox > video {
    display: flex;
    position: relative;
    width: 89vw;
    height: 50vw;
    object-fit: contain;
}

/*********************** Toot Tip ***********************/

.tooltip {
    position: relative;
    display: inline-block;
}

    .tooltip .tooltiptext {
        visibility: hidden;
        width: 140px;
        background-color: #555;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 150%;
        left: 50%;
        margin-left: -75px;
        opacity: 0;
        transition: opacity 0.3s;
    }

        .tooltip .tooltiptext::after {
            content: "";
            position: absolute;
            top: 100%;
            left: 50%;
            margin-left: -5px;
            border-width: 5px;
            border-style: solid;
            border-color: #555 transparent transparent transparent;
        }

    .tooltip:hover .tooltiptext {
        visibility: visible;
        opacity: 1;
    }