@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600;700&display=swap");

body {
    font-family: "Fira Code", "Courier New", monospace;
    background-color: var(--color-bg-0);
    background-image: url(../../application/images/background/background-page.png);
    background-repeat: repeat-y;
    background-size: 100% auto;
    background-position: center top;
}

.app_Main {
    width: 100%;
    flex: 1;
    min-width: 0;
    margin-left: 18px;
}

.app_M {
    display: flex;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

body::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent) 85%, #000 15%);
}

body::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent) 100%, #000 0%);
}

html {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-0);
}

@media (max-width: 1100px) {
    .app_M {
        flex-direction: column;
        gap: 12px;
    }

    .app_Main {
        margin-left: 0;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Bottom fixed menu */
.bottom-menu {
    display: none;
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    width: calc(97% - 24px);
    max-width: 520px;
    padding: 8px 10px;
    border-radius: .3rem;


    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: .3rem;
    color: #dfffd8;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .4px;
    box-shadow:
        0 0 0 1px rgba(152, 232, 76, 0.2) inset,
        0 10px 22px rgba(0, 0, 0, 0.55);
    transition: transform .08s ease, filter var(--transition-fast), border-color .12s ease, box-shadow var(--transition-fast);
}

.bottom-menu a:hover {
    filter: brightness(1.08);
    border-color: rgba(152, 232, 76, 0.45);
    box-shadow:
        0 0 0 1px rgba(152, 232, 76, 0.35) inset,
        0 12px 26px rgba(0, 0, 0, 0.58),
        0 0 22px rgba(152, 232, 76, 0.25);
}

.bottom-menu a:active {
    transform: translateY(1px);
}

.bottom-menu i {
    font-size: 16px;
}

@media (max-width: 1100px) {
    .bottom-menu {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 8px 10px;
    }

    .bottom-menu a {
        padding: 9px 12px;
        font-size: 14px;
    }

    /* espaço extra para não colidir com o bottom menu fixo */
    body,
    .app_Main {
        padding-bottom: 110px;
        box-sizing: border-box;
    }
}

.bottom-menu a.active {
    border-color: rgba(165, 255, 0, 0.55);
    box-shadow:
        0 0 0 1px rgba(152, 232, 76, 0.45) inset,
        0 12px 26px rgba(0, 0, 0, 0.58),
        0 0 24px rgba(152, 232, 76, 0.26);
    filter: brightness(1.08);
}
