@font-face{
    font-family: "Thin Font";
    src: url('/resources/Fonts/NeueHaasDisplayThin.ttf');
}

@font-face{
    font-family: "Light Font";
    src: url('/resources/Fonts/NeueHaasDisplayLight.ttf');
}

@font-face{
    font-family: "Medium Font";
    src: url('/resources/Fonts/NeueHaasDisplayMedium.ttf');
}

@font-face{
    font-family: "Roman Font";
    src: url('/resources/Fonts/NeueHaasDisplayRoman.ttf');
}

@font-face{
    font-family: "Bold Font";
    src: url('/resources/Fonts/NeueHaasDisplayBold.ttf');
}

@font-face{
    font-family: "Black Font";
    src: url('/resources/Fonts/NeueHaasDisplayBlack.ttf');
}

html, body{
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    width: 100%;
    color: var(--preto-real);
    background-color: var(--branco-puro) !important;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Roman Font', sans-serif;
    cursor:default;
}

body::-webkit-scrollbar{
    width: 12px;
}

body::-webkit-scrollbar-track{
    background-color: var(--cinza-real);
}

body::-webkit-scrollbar-thumb{
    background-color: var(--cinza-softer);
    border: none;
}

body::-webkit-scrollbar-thumb:hover{
    background-color: var(--cinza-smoke);
}

#topbar{
    background-color: var(--preto-darker);
    display: flex;
    flex-direction: row;
    height: 40px;
    width: 100%;
    border-radius: 0;
    box-shadow: 0px 1px 4px var(--preto-real);
    position: fixed;
    transition: width 0.3s ease;
    z-index: 92;
    box-sizing: border-box;
    block-size: 3.5rem;
    vertical-align: initial;
    padding: 0;
    margin: 0;
    inset-block-start: 0;
    inset-inline: 0;
}

.dropMenu{
    position: absolute;
    display: flex;
    top: 10px;
    left: 15px;
    width: 28px;
    height: 28px;
    margin: 5px;
    background-image: url('/resources/Icons/icon-side-left.svg');
    background-size: cover;
    border: none;
    background-color: transparent;
    cursor: pointer;
    z-index: 93;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 60;
    display: none;
}

/* #region FHD/HD */

.menuList{
    display: flex;
    flex-direction: column;
    width: 300px;
    box-sizing: border-box;
    background-color: var(--branco-puro);
    margin: 12px 0 0 0;
    height: 100%;
    z-index: 36;
    box-shadow: 0px 0px 2px var(--branco-darker);
    overflow-y: scroll;
    overflow-x: hidden;
    position: fixed;
    direction: rtl;
    vertical-align: initial;
    transition: all 0.6s ease;
    z-index: 30;
}

.menuList div{
    direction: ltr;
}

.menuList::-webkit-scrollbar{
    width: 12px;
}

.menuList::-webkit-scrollbar-track{
    background: transparent;
    border-radius: 10px;
}

.menuList::-webkit-scrollbar-thumb{
    background-color: var(--cinza-real);
    border-radius: 0 4px 4px 0;
}

.menuList::-webkit-scrollbar-thumb:hover{
    background-color: var(--cinza-light);
}

#searchPad{
    position: absolute;
    top: 14px;
    right: 32px;
    height: 40px !important;
    width: 250px;
    border-radius: 12px;
    background-color: var(--branco-puro);
    z-index: -20;
    overflow: hidden;
    display: block;
    opacity: 0;
    transition: all 0.1s ease;
}

#results {
    position: absolute;
    top: 42px;
    right: 32px;
    width: 250px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    background-color: var(--branco-puro);
    max-height: 70vh;
    overflow-x: hidden;
    overflow-y: scroll;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: all 0.4s ease;
    visibility: visible;
    opacity: 1;
    z-index: 85;
    line-height: 26px;
    display: block;
}

#results::-webkit-scrollbar{
    display: none;
}

#results div {
    width: 96%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topicResult{
    font-size: 14px;
    font-family: 'Roman Font', sans-serif;
    font-weight: 900;
    padding-left: 10px;
    color: var(--preto-real);
    text-decoration: none;
}

.subtopicResult{
    font-size: 14px;
    font-family: 'Roman Font', sans-serif;
    font-weight: 500;
    padding-left: 10px;
    color: var(--preto-real);
    text-decoration: none;
}

.titleDropdown{
    cursor: pointer;
    margin: 2px 0 !important;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: 0;
    padding: 0;
    transition: all 0.6s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 18px;
    width: 240px;
    left: 0;
    letter-spacing: 0.015rem;
    font-weight: 600;
    font-family: "Medium Font", sans-serif;
}

.titleDropdown:hover, .titleDropdown:focus{
    letter-spacing: 0.072rem;
    transition: all 0.2s ease !important;
}

.dropdownContent{
    display: none;
    overflow: hidden;
    transition: max-height 1s ease;
    padding: 0 0 0 24px;
    margin: 0;
}

.iconDropdown{
    position: relative;
    margin-right: 2px;
    left: 0%;
    top: 2%;
    width: 22px;
    height: auto;
    justify-self: center;
}

.menuContent{
    display: block;
    margin: 12px 0;
}

.topicContent{
    margin: 10px 0 8px 0 !important;
    padding-left: 10px;
}

.hyperlink, .hyperlink:visited{
    font-family: 'Thin Font', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.015rem;
    color: var(--preto-real);
    text-decoration: none;
    cursor: pointer;
}

.hyperlink:hover, .hyperlink:active{
    letter-spacing: 0.03rem;
    transition: all 0.2s ease !important;
}

.innerMenu::marker {
    content: '' !important;
}

.homeBtn {
    position: absolute;
    display: flex;
    top: 9px;
    left: 52px;
    width: 28px;
    height: 28px;
    margin: 5px;
    background-image: url('/resources/Icons/icon-home.svg');
    background-size: cover;
    border: none;
    background-color: transparent;
    cursor: pointer;
    z-index: 93;
}

.systemName{
    position: absolute;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    margin-left: 26px;
    margin-top: 14px;
    width: 300px;
    justify-content: center;
    color: var(--branco-puro);
    font-weight: 600;
    font-family: "Medium Font", sans-serif;
}

.searchField{
    width: 100vw;
    align-items: center;
    display: flex;
    justify-content: end;
}

.searchBtn{
    position: relative;
    margin: 0 32px 0 0;
    border: none;
    border-radius: 20px;
    height: 22px;
    width: 22px;
    background-image: url('/resources/Icons/icon-search.svg');
    background-size: 18px 18px;
    background-color: var(--branco-puro);
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.5s;
    cursor: pointer;
}

.searchBtn:focus, .searchBtn:hover{
    width: 220px;
    background-position-x: 6px;
    float: left;
    padding-left: 28px;
    outline: none;
    transition: width 0.4s;
}

.focus{
    width: 220px;
    background-position-x: 6px;
    float: left;
    padding-left: 28px;
    outline: none;
    transition: width 2s;
}

.innerMenu{
    padding-top: 46px;
    opacity: 1;
}

.innerMenu::marker {
    content: '' !important;
}

.majorBoard{
    position: absolute;
    display: flex;
    min-height: auto;
    width: 100vw;
    margin-top: 3.5rem;
    margin-left: 0;
    box-sizing: inherit;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-grow: 1;
}

.pageTitle{
    color: var(--branco-puro);
    display: flex;
    padding-left: 32px;
    max-inline-size: 100%;
    font-size: 28px;
    position: relative;
    margin: 0.4rem 0 0.6rem;
    transition: padding 0.6s ease;
    font-weight: 500;
}

.insideBar{
    z-index: 21;
    --height: 10rem;
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 300px;
    width: 100vw; 
    height: 15rem;
    height: var(--height);
    color: var(--branco-puro);
    background-color: var(--preto-softer);
    box-shadow: 0px 0px 2px var(--preto-real);
    transition: margin 0.6s ease;
}

.insideBar-with-stickyBar{
    height: calc(var(--height) - 6.2rem);
}

.stickyBar{
    align-items: flex-start;
    display: block;
    flex-direction: row;
    flex-flow: wrap;
    position: sticky;
    justify-content: space-between;
    top: 3.49rem; 
    min-width: 100%;
    max-width: max-content;
    min-height: 18px;
    height: max-content;
    max-height: 100%;
    z-index: 20;
    background-color: var(--cinza-darker);
    margin-left: 300px;
    margin-right: 0px;
    transition: margin 0.6s ease;
    overflow-x: hidden;
    overflow-y: hidden;
    box-shadow: 0px 1px 5px var(--preto-real);
}

.arrowContainer{
    display: flex;
    width: 1280px;
    position: sticky;
    z-index: 156;
    transition: width 0.6s ease;
}

.mainItems{
    display: flex;
    justify-content: left;
    margin-bottom: 4px;
    padding: 0 20px;
}

.subtopicItem{
    display: inline-flex;
    position: sticky;
    font-size: 16px;
    font-family: 'Roman Font', sans-serif;
    font-weight: 500;
    color: var(--branco-puro);
    justify-content: center;
    align-items: center;
    margin: 4px 12px;
    width: max-content;
    cursor: pointer;
}

.subtopicItem::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--branco-puro);
    transition: width 0.6s ease, left 0.6s ease;
}

.subtopicItem:hover::after{
    width: 100%;
    left: 0;
}

.arrowLeft,
.arrowRight{
    display: none;
    position: absolute;
    background-color: var(--branco-puro);
    width: 26px;
    height: 32px;
    justify-content: center;
    align-items: center;
    z-index: 158;
    cursor: pointer;
    box-shadow: 0 -3px 8px 1px var(--preto-real);
}

.arrowLeft{
    border-top-right-radius: 6px;
}

.arrowRight{
    border-top-left-radius: 6px;
    right: 0;
}

.arrowLeft::before,
.arrowRight::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--preto-real);
    border-right: 2px solid var(--preto-real);
}

.arrowLeft::before {
    transform: translate(-25%, -50%) rotate(-135deg);
}

.arrowRight::before {
    transform: translate(-75%, -50%) rotate(45deg);
}

.mainBoard{
    transition: transform 0.45s ease, opacity 0.3s ease, margin 0.3s ease-in-out;
    display:flex;
    position:relative;
    height: auto;
    margin-bottom: 2.9rem;
    margin-left: 20%;
    box-sizing: inherit;
    flex-grow: 1;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    background-color: var(--branco-puro);
}

.minorBoard{
    display: none;
    box-sizing: border-box;
    padding: 1rem 4rem;
    width: 100%;
    max-width: 1920px;
    margin: auto;
    transition:all 0.3s ease;
    flex-shrink: 0;
    height: auto;
    overflow: hidden;
}

.active{
    display: block;
}

.newLink {
    font-family: 'Roman Font', sans-serif;
    font-size: 18px;
    color: var(--preto-real);
    letter-spacing: 0.01rem;
    margin: 0.5rem 0 0.5rem 0;
    display: block;
    font-weight: 500;
    text-decoration: underline var(--preto-real);
}

.minorTitle{
    font-family: 'Light Font', sans-serif;
    font-size: 24px;
    letter-spacing: 0.04rem;
    margin: 0 0 1rem 0;
    display: block;
    z-index: 23;
    font-weight: 600;
}

.minorText{
    font-family: 'Roman Font', sans-serif;
    text-align: justify;
    font-size: 16px;
    justify-content: center;
    align-content: center;
}

.subTitle{
    font-family: 'Light Font', sans-serif;
    font-weight: 600;
    text-align: justify;
    margin-bottom: 20px;
    font-size: 18px;
}

.minorVideo{
    width: 58vw;
    text-align: center;
    margin: 20px 0;
}

.ytbPlayer{
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    border-radius: 12px !important;
    z-index: 29;
}

.content-old{
    opacity: 1;
}

.showMenu {
    display: none;
}

.ce-element hyperlink:hover{
    pointer-events: none;
}

.ce-element tabBtn:hover{
    pointer-events: none;
    background: none !important;
    color: inherit !important;
    cursor: default !important;
}

.ce-element tabBtn:before{
    pointer-events: none;
}

.ce-element hdnTabBtn:hover{
    pointer-events: none;
    background: none !important;
    color: inherit !important;
    cursor: default !important;
}

.ce-element hdnTabBtn:hover{
    pointer-events: none;
}

/* #endregion */

/* #region Portrait */

@media screen and (max-width: 1280px){
    .systemName{
        width: 300px;
    }

    .searchField{
        position: relative;
        width: 100vw;
        justify-content: end;
    }

    .searchBtn{
        position: relative;
    }
    
    .menuList{
        width: 0px;
        height: 100%;
        transition: all 0.6s ease;
        z-index: 55;
    }

    .majorBoard{
        align-items:center;
    }

    .pageTitle{
        font-size: 32px;
        transition: padding 0.6s ease;
        padding-left: 12px;
    }

    .firstTitle {
        font-size: 22px !important;
    }
    
    .insideBar {
        margin-left: 0px;
        height: 50px;
        width: 100vw;
    }

    .stickyBar{
        justify-content: left;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        height: max-content;
        transition: margin 0.6s ease;
    }

    .mainItems{
        overflow-x: hidden;
        position: relative;
    }

    .mainItems::-webkit-scrollbar{
        display: none;
    }

    .mainItemsPC{
        overflow-x: auto !important;
    }

    .mainItemsPC::-webkit-scrollbar{
        display: block !important;
    }
    
    .mainItemsPC::-webkit-scrollbar-track{
        background-color: var(--cinza-darker);
    }
    
    .mainItemsPC::-webkit-scrollbar-thumb{
        background-color: var(--cinza-softer);
        border: 2px solid var(--cinza-real);
        border-radius: 30px;
    }
    
    .mainItemsPC::-webkit-scrollbar-thumb:hover{
        background-color: var(--cinza-real);
    }
    .mainBoard{
        height: 100vh;
        margin: 0px;
        padding: 0px;
        width: 100vw;
    }

    .minorBoard{
        padding: 1rem 1rem;
        margin: 0px;
        transition: all 0.9s ease;
    }

    .minorVideo{
        aspect-ratio: 16/10;
        width: 100%;
    }
}

/* #endregion */