:root {
    --prime: #02b8b8;       /* #00D4AA; */
    --second: #00807a;      /* #008066; */
    --darker: #01382d;    
    --bkg: #131321;
    --clr: #bbb;
    --hiclr: #fff;
    --tab-bkg: #250769;     /* #032921 */
    --home-bkg: #94e2ec;
    --home-clr: #0e616c;
    --about-bkg: #aedaf8;
    --donate-bkg: #e8d6f8;
    --contact-bkg: #fde5da;
    --border-clr: #777;
    --border-clr-dark: #444;
    --nav-bkg: #00060c;
    --home-btn-bkg: #8725e2;
    --btn-bkg: #02b8b8;
    --btn-bkg-hi: #250769; /* #8725e2; */
    --btn-bkg-dark: #006969;
    --chart-bar-width: 480px;
    --chart-bar-gap: 15px;
    --chart-bar-padding: 15px;    

    --cp-bg-color: transparent;
    --slider-width: 25px;
    --picker-width: 260px;
    --picker-height: 190px;

    --svoast-font-size: 20px;
    --svoast-bg: var(--tab-bkg);
    --svoast-error-colour: crimson;
    --svoast-icon-size: 28px;
    --svoast-text: #fff;
}

html {
    overflow: hidden;
    scroll-behavior: smooth;
}

html, body {
	position: relative;
	width: 100%;
	height: 100%;
	scrollbar-color: var(--darker) var(--bkg);
	scrollbar-width: 8px;    
}

body {
    background-color: var(--bkg);
	color: var(--clr);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    font-size: 20px;
	font-family: "Barlow Condensed", sans-serif;
}

* {
    box-sizing: border-box;
}

a { 
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav.mainbar {
    width: var(--chart-bar-width);
    min-width: var(--chart-bar-width);
    background-color: var(--nav-bkg);
    height: 100%;
    padding: 10px 5px 10px;
}

.textitem {
    margin: 5px 10px 25px;
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
    filter: grayscale(1);
}

.badge {
    text-transform: uppercase;
    font-size: 13px;
    background-color: rgb(4, 190, 113);
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
    padding: 1px 5px 2px;
    border-radius: 5px;
    width: fit-content;
    text-shadow: 1px 1px #000;
    letter-spacing: 0.7px;
}



.charttype {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}


.charttype h6 {
    margin: 0;
    text-align: center;
}

.charttype.scroller {
    overflow-x: scroll;
    overflow-y: hidden;
    scrollbar-width: none; 
    scroll-behavior: smooth;
}

.charttype.scroller::-webkit-scrollbar { 
    width: 0;
    height: 0;
}

.charttype > span,
.charttype > a {
    cursor: pointer;
    padding: 8px;
    transition: transform 0.3s ease;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    border: 1px solid transparent;
}

.charttype > span:not(.sel):hover,
.charttype > a:not(.sel):hover {
    transform: scale(1.1);
}

.charttype > span.sel,
.charttype > a.sel {
    background-color: var(--tab-bkg);
    border-color: #4d4d4d;
    cursor: default;
}

.charttype img {
    height: 64px;
}

.split {
    display: flex;
    gap: 15px;
    margin: 5px 0;
    align-items: center;
    width: 100%;
}

.eachside {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin: 5px 0 0;
    align-items: center;
    width: 100%;
}

.horz {
    display: flex;
    gap: 5px;
    align-items: center;
}

.vert {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.share {
    display: flex;
    align-items: center;
    gap: var(--chart-bar-gap);
    width: 100%;
}


.cmds {
    margin: 15px 10px 30px;
    display: flex;
    gap: 8px;
}

.cmds button {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-transform: uppercase;
    min-width: 70px;
}

.cmds i {
    font-size: 24px;
}

.cmds .dwn {
    width: 110px;
}

.cmds label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
}    

.ang90  > em { transform: rotate(90deg); }
.ang180 > em { transform: rotate(180deg); }
.ang270 > em { transform: rotate(270deg); }


menu.xtracmds {
    position: absolute;
    bottom: 26px;
    left: -35px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 111;
}


/* AWESOME COLOR PICKER */
.text-input {
    display: none !important;
}

.wheel > .color-picker > .wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

.wheel > .color-picker > .wrapper > .h, .wheel > .color-picker > .wrapper > .a {
    margin-left: 12px !important;
}

/* ---------------------------- */

/* SVOAST */

.svoast {
    align-items: center;
}

/* ---------------------------- */

/*  MARCHING ANTS */

.marching-ants {
    padding: 7px;
    background-image: linear-gradient(to right, transparent 50%, var(--red) 50%), linear-gradient(to right, transparent 50%, var(--red) 50%), linear-gradient(to bottom, transparent 50%, var(--red) 50%), linear-gradient(to bottom, transparent 50%, var(--red) 50%);
    background-size: 16px 2px, 16px 2px, 2px 16px, 2px 16px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    animation: marching-ants 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    border-bottom-left-radius:16px;
    border-bottom-right-radius:16px;
    overflow: hidden;
/*     animation-play-state: paused; */
}

/* .marching-ants > * {
    pointer-events: none;
    visibility: hidden;
} */

@keyframes marching-ants {
    0% {
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    }
    100% {
    background-position: 32px 0, -32px 100%, 0 -32px, 100% 32px;
    }
}

/* ---------------------------- */



h5 {
    margin: 0 0 5px;
    color: #e5e5e5;
    letter-spacing: 1px;
}

h6 {
    margin: 0 0 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.buttonbox {
    width: 36px !important;
    height: 31px;
    min-width: 36px;
    border: 1px dotted #888;
    border-radius: 6px;
    cursor: pointer;
}

.buttonbox.clean {
    border-color: transparent;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.just {
    text-align: justify;
}

.fillin {
    flex-grow: 1;
}

.off {
    pointer-events: none;
    user-select: none;
}

section.institutional {
    width: 100%;
    /* min-height: 100vh; // Causa o sumiço da barra de menu no about */
    color: var(--home-clr);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section.institutional.home {
    background-color: var(--home-bkg);
}

section.institutional.home svg path {
    fill: var(--home-bkg);
}


section.institutional.about {
    background-color: var(--about-bkg);
}

section.institutional.about svg path {
    fill: var(--about-bkg);
}

section.institutional.donate {
    background-color: var(--donate-bkg);
}

section.institutional.donate svg path {
    fill: var(--donate-bkg);
}

section.institutional.contact {
    background-color: var(--contact-bkg);
}

section.institutional.contact svg path {
    fill: var(--contact-bkg);
}

section.institutional a {
    color: navy;
    transition: all 0.3s ease;
}

section.institutional a:hover {
    text-decoration: underline;
}   


section.institutional .content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 1em;
}

section.institutional .hero {
    display: flex;
    margin: 3vw auto 0;
    width: fit-content;
}


section.institutional .hero a {
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

section.institutional .hero a.large {
    font-size: calc(1vw + 8px);
    padding: 0.4em 1em;
    background-color: var(--home-btn-bkg);
    border-radius: 6px;
    color: #fff;
}

section.institutional .hero a.hollow {
    font-size: calc(1vw + 8px);
    padding: 0.4em 1em;        
    border: 3px solid var(--home-btn-bkg);
    background-color: transparent;
    color: var(--home-btn-bkg);
    border-radius: 6px;
}


section.institutional .hero a:not(.hollow):hover {
    background-color: #0b8047;
}

section.institutional .hero a.hollow:hover {
    border-color: #0b8047;
    color: #0b8047;    
}

section.institutional .hero > div {
        width: 35vw;

    }

section.institutional .hero > div img {
        object-fit: contain;
        width: 100%;

    }

section.institutional h1 {
    font-family: "Momo Trust Display", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: calc(1.5vw + 15px);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}






section.hidepanel nav.mainbar {
    position: absolute;
    z-index: 1;
    left: 100%;
}

button {
    border: 2px solid var(--btn-bkg);
    background: var(--btn-bkg);
    border-radius: 5px;
    padding: 2px 10px;
    color: #fff;
    text-shadow: 1px 1px #000;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 1px;    
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Barlow Condensed", sans-serif;
}

button.hollow {
    background-color: transparent;
    color: var(--btn-bkg);
}

button:not(.hollow):hover {
    background-color: var(--btn-bkg-hi);
    border-color: var(--btn-bkg-hi);
    color: #fff;
}

button.hollow:hover {
    border-color: var(--btn-bkg-hi);
    color: var(--btn-bkg-hi);
}

input[type=text], input[type=number], input[type=date]  {
    padding: 7px 12px;
    border: none;
    width: 100%;
    background-color: var(--bkg);
    color: var(--clr);
    outline: none;
    font-size: 14px;
    margin: 0;
    border-radius: 6px;
}

input[type=date] {
    position: relative;
}

input[type=date]::-webkit-calendar-picker-indicator {
    opacity: 0;
    display: block;
    position: absolute;
    right: 10px;
    width: 12px;
    height: 100%;
    cursor: pointer;
}

input[type=range] {
    position: relative;
    width: 100%;
}

.hidepanel .chart {
    max-width: calc(100vw - 110px) !important;
}


/* ADD GRIP HANDLE DO CHART */
[data-orientation='columns'] > svelte-split-pane-divider {
    position: relative;
}

[data-orientation='columns'] > svelte-split-pane-divider::before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 10px;
    height: 30%;
    left: 0;
    top: 35%;
    margin: 0; 
    background-color: transparent;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAUCAYAAAHD6ZzAAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAFBhaW50Lk5FVCA1LjEuMTGKCBbOAAAAuGVYSWZJSSoACAAAAAUAGgEFAAEAAABKAAAAGwEFAAEAAABSAAAAKAEDAAEAAAACAAAAMQECABEAAABaAAAAaYcEAAEAAABsAAAAAAAAAGAAAAABAAAAYAAAAAEAAABQYWludC5ORVQgNS4xLjExAAADAACQBwAEAAAAMDIzMAGgAwABAAAAAQAAAAWgBAABAAAAlgAAAAAAAAACAAEAAgAEAAAAUjk4AAIABwAEAAAAMDEwMAAAAAAGNdRzso9yOwAAADdJREFUKFNjYBgIsGDBgv8LFiz4D2MzoStgYGBgoFAQO0C2FcbGDgapSmQBXGzSAC5TRk0kGgAA/m6J2fMLluMAAAAASUVORK5CYII=);
}

/* Custom white icon overlay */
input[type=date]::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="silver" viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM7 12h5v5H7z"/></svg>');
    position: absolute;
    right: 10px;
    top: 57%;
    transform: translateY(-50%);
    pointer-events: none; 
}

select {
    padding: 7px 12px;
    border: none;
    width: 100%;
    background-color: var(--bkg);
    color: var(--clr);
    outline: none;
    font-size: 13px;
    margin: 0;
    border-radius: 6px;
}

textarea {
    padding: 7px 12px;
    border: none;
    width: 100%;
    background-color: var(--bkg);
    color: var(--clr);
    outline: none;
    font-size: 14px;
    margin: 0;
    border-radius: 6px;
    resize: none;
}






/*   A C C O R D I O N   */

.tab {
    position: relative;
    margin-bottom: 25px;
}
.tab input[type=checkbox] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}
.tab__content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s;
}
.tab input[type=checkbox]:checked ~ .tab__content {
    max-height: 515rem;
}

/* Visual styles */
.accordion {
    color: var(--clr);
    overflow: hidden;
}
.tab__label,
.tab__close {
    display: flex;
    color: white;
    background: var(--tab-bkg); /* rgb(5, 16, 27); */
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}
.tab__label {
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 4px;
    margin-right: 5px;
}
.tab__label::after {
    content: "\276F";
    width: 1em;
    height: 1em;
    text-align: center;
    transform: rotate(90deg);
    transition: all 0.35s;
}
.tab input[type=checkbox]:checked + .tab__label::after {
    transform: rotate(270deg) translateY(-10px);
}
.tab__content p {
    margin: 0;
    padding: 1rem;
}
.tab__close {
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}
/*     .accordion--radio {
    --theme: var(--secondary);
} */

/* Arrow animation */
.tab input[type=checkbox]:not(:checked) + .tab__label:hover::after {
    /* animation: bounce 0.5s infinite; */
}
@keyframes bounce {
    25% {
        transform: rotate(90deg) translate(0.25rem);
    }
    75% {
        transform: rotate(90deg) translate(-0.25rem);
    }
}


@media (max-width: 1024px) {
    body {
        --chart-bar-width: 380px;
        --chart-bar-gap: 5px;
        --chart-bar-padding: 5px;
    }
}

@media (max-width: 900px) {
    body {
        --chart-bar-width: 350px;
    }    

    section.institutional .hero {
        flex-direction: column-reverse;
    }

    section.institutional .hero > div {
        width: 95%;
        text-align: center;
    }

    section.institutional .hero div.sep {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .charttype {
        gap: 0;
    }    
}

@media (max-width: 768px) {
    nav.mainbar {
        width: 100%;
        height: fit-content;
    }  

    menu.xtracmds {
        /* top: 76px;
        right: 40px;
        display: flex;
        flex-direction: row;
        gap: 5px;
        z-index: 111; */
        display: none;
    }

    .hidepanel .chart {
        max-width: 100% !important;
    }

    .charttype img {
        height: 52px;
    }
}

@media (max-width: 600px) {
    body {
        --chart-bar-width: 320px;
    }    

    .charttype img {
        height: 52px;
    }

    .charttype img {
        height: 44px;
    }

}

@media (max-width: 480px) {
    .charttype img {
        height: 48px;
    }

    select {
        font-size: 12px;
        padding: 7px 4px;
    }

    button {
        padding: 2px 5px;
    }
}