﻿
html {
    scroll-behavior: smooth;
}

.articleHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--corLogo);
    width: 100%;
    min-height: 10vh;
    padding: 20px;
    box-sizing: border-box;
}

    .articleHeader h1 {
        color: white;
        font-family: var(--defaultFont);
        font-size: 40px;
        text-align: center;
    }

.articleSection {
    display: flex;
    padding: 50px;
    margin: 10px auto;
    box-sizing: border-box;
    width: 95%;
    max-width: 2000px;
}

.articleContainer {
    padding: 0 30px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.articleTitleFixedContainer {
    display: flex;
    z-index: 2;
    width: 100%;
    align-items: center;
    background-color: var(--corLogo);
    justify-content: center;
    color: white;
    height: 2vh;
    padding: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    position: fixed;
    top: -50%;
    transition: 1s;
    pointer-events: none;
    left: 0;
    opacity: 0;
    z-index: 2;
}
    .articleTitleFixedContainer span{
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 100%;
        width: 100%;
    }

    .articleTitleFixedContainer.active {
        top: 0;
        pointer-events: auto;
        opacity: .9;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }



article {
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
}
    article figure {
        margin: 0 0 15px;
    }

article *{
    max-width: 100%;
    height: auto !important;
    /*é importante pq as tables e outros itens estao dando overflow*/
}

    article p {
        line-height: 24px;
        margin: 0 0 15px;
    }

    article li p {
        display: inline;
    }

    article img {
        vertical-align: middle;
    }

    article p,
    article ul,
    article ol,
    article h1,
    article h2,
    article h3{
        background: transparent;
    }

article iframe{
    min-height: 315px;
}

.articleContainer__header{
    display: flex;
    justify-content: space-between;
    align-items: start;        
    border-bottom: 2px solid var(--fontColor1);
}

.articleInfos {
    max-width: 2000px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    color: white;
    gap: 20px;
    padding: 10px;
    box-sizing: border-box;
    width: 50%;
}

.articleInfo {
    background-color: var(--corLogoEscuro);
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.articleSimpleInfos{
    display: flex;
    flex-direction: column;
    padding: 5px 0;
    margin-bottom: 5px;
}

.articleSimpleInfo{
    color: var(--fontColor1);
    font-family: var(--defaultFont);
    font-style: italic;
    font-size: 13px;
    font-weight: 300;
    opacity: .7;
}

#readTime{
    font-weight: bold;
}


/*artilce collapse*/

.collapsible_panel {
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    background-color: var(--backgroundColorHighlight);
    border-radius: 10px;
}

.collapsible_panel_noborder {
    border: none;
}

.collapsible_panel_head {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--fontColor1);
    user-select: none;
}

.collapsible_panel_icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    transition: transform 0.2s ease-in-out;
}

.collapsible_panel_title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--fontColor1);
}

.collapsible_panel_body {
    display: none;
    padding: 16px;
    color: var(--fontColor1);
    animation: fadeIn 0.3s ease-in-out;
}

/*bookmark*/


#bookmarkButton {
    padding: 5px;
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    color: var(--fontColor1);
    margin-bottom: 5px;
    outline: none;
    border: none;
    transition: .2s;
}
#bookmarkButton:hover{
    color: var(--corLogo);
}


.articleNavigation {
    position: sticky;
    top: 20px;
    height: max-content;
    transition: .3s;
    max-height: 100vh;
    padding: 0px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 2;
    padding-bottom: 30px;
}

.articleNavigation.adjusted{
    top: 2vh;
    padding-top: 3vh;
}

.articleNavigation.adjusted .openNav{
    margin-top: 100%;
}

    .articleNavigation::-webkit-scrollbar {
        width: 6px;
    }

    .articleNavigation::-webkit-scrollbar-track {
        background: transparent;
    }

    .articleNavigation::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

.articleNavigation {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}




ul.category-tree {
    list-style: none;
    padding-left: .5rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: sticky;
    max-width: 500px;
    min-width: 400px;
}

ul.category-tree:first-of-type{
    margin-top: 0;
}

.Category .categoryContent {
    max-height: 0px;
    overflow-y: hidden;
    transition: opacity .5s, height .2s;
    opacity: 0;
    border-left: 2px solid var(--corLogo);
}

li.Category > span {
    display: block;
    font-weight: bold;
    color: var(--corLogo);
    cursor: pointer;
    margin: 0.5rem 0;
    background-color: var(--corLogo);
    padding: 10px;
    color: white;
}

li.Category.show > .categoryContent {
    max-height: 5000px;
    overflow-y: auto;
    opacity: 1;
}



.categoryContent {
    margin-left: 1rem;
    padding-left: 0.1rem;
    display: flex;
    flex-direction: column;
}

.articlesList {
    list-style: disc;
    padding-left: .5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.1rem;
    padding: 5px;
    gap: 1px;
}

.articleItem {
    color: white;
    cursor: default;
    background-color: var(--corLogoEscuro);
    width: 100%;
    box-sizing: border-box;
    display: flex;
}

    .articleItem.select {
        border: 2px solid var(--corLogo);
    }



    .articleItem a {
        color: white;
        width: 100%;
        height: 100%;
        padding: 10px;
        box-sizing: border-box;
        border: 2px solid transparent;
        transition: .3s;
        text-decoration: none;
    }

        .articleItem a:hover {
            color: white;
            border: 2px solid var(--backgroundColor2);
        }

/*TODO: Esse bloco altera a formatação do texto produzido no artigo */
/*article * {
    color: var(--fontColor1) !important;
    max-width: 100%;
    background-color: transparent !important;
    position: static !important;
}*/

body.dark article * {
    color: var(--fontColor1) !important;
    background-color: transparent !important;

}

article figure{
    max-width: 100% !important;
    width: auto !important;
}

article img {
    max-width: 100%;
}

article table {
    background-color: var(--backgroundColor1) !important;
    border: 2px solid var(--backgroundColor2) !important;
}

article ul li p{
    display: inline;
}

.ck-plugin-anchor {
    scroll-margin-top: 10vh;   
}

article table * {
    color: var(--fontColor1) !important;
}

.openNav {
    background-color: var(--backgroundColor2);
    color: var(--fontColor2);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    display: none;
    transition: .3s;
}

 
.closeNav {
    background-color: var(--backgroundColor2);
    color: var(--fontColor2);
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    justify-content: center;
    align-items: center;
}



.articleNav {
    font-size: 20px !important;
    transition: .3s;
    min-width: 200px;
    z-index: 1000;
}

.loadingMsg {
    color: var(--fontColor1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
}


#languageInfo {
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}


    #languageInfo ul {
        max-height: 0;
        overflow: hidden;
        position: absolute;
        margin-top: 5px;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        gap: 5px;
        display: flex;
        flex-direction: column;
        transition: .3s;
        align-items: center;
        justify-content: center;
    }

    #languageInfo.show ul {
        max-height: 500px;
        overflow: visible;
    }

    #languageInfo ul li {
        list-style: none;
        background-color: var(--backgroundColor2);
        padding: 5px;
        border-radius: 5px;
        min-width: max-content;
        transition: .3s;
    }

        #languageInfo ul li a {
            color: var(--fontColor2);
            text-decoration: none;
            width: 100%;
            height: 100%;
            transition: .3s;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
        }

            #languageInfo ul li a img{
                width: 32px;
            }

        #languageInfo ul li:hover {
            transform: scale(1.2);
            background-color: var(--corLogoEscuro);
        }

            #languageInfo ul li:hover a {
                color: white;
            }


            /*breadcumb*/
.breadCumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

    .breadCumb a {
        display: flex;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: white;
    }

        .breadCumb a:hover span {
            transform: scale(1.1);
        }


     



        @media (min-width: 1280px){
            .articleSection{
                max-width: 1280px;
            }
        }

@media (max-width: 968px) {

    .articleInfo{
        flex: 1;
    }

    .openNav {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .closeNav{
        display: flex;
    }

    .articleNav {
        position: fixed;
        left: -150vw;
        height: 100vh;
        max-width: 100vw;
        min-width: 100vw;
        padding: 10px;
        top: 0;
        width: max-content;
        overflow-y: auto;
        background-color: var(--backgroundColor);
        display: flex;
        flex-direction: column;
        justify-content: start;
        box-sizing: border-box;
    }

        .articleNav.show {
            left: 0;
        }

        .articleContainer{
            width: 90%;
        }

        .articleSection{
            justify-content: space-around;
        }


    .articleHeader h1 {
        font-size: 30px;
    }

    .articleNavigation.adjusted {
        top: 2vh;
        padding-top: 0;
    }
}



@media (max-width: 628px) {
    .articleSection{
        padding: 20px;
    }
}