* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html,
body,
#__next,
.baseBody {
    height: 100%;
    margin: 0;
    padding: 0;
    color-scheme: light dark;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.win11 {
    --cardbackground: color-mix(in oklch, #fff 100%, transparent) !important;
    --cardbackgroundHover: color-mix(in oklch, var(--colorNeutralBackgroundInverted), transparent 95%) !important;
}
.svg {
    pointer-events: none;
}

@media (prefers-color-scheme: dark) {
    .svg {
        filter: invert(1);
        -webkit-filter: invert(1);
    }
    .win11 {
        --cardbackground: color-mix(in oklch, #fff, transparent 95%) !important;
        --cardbackgroundHover: color-mix(in oklch, var(--colorNeutralBackgroundInverted), transparent 90%) !important;
    }
}

.baseBody {
    display: flex;
    flex-direction: column;
    -moz-user-select: -moz-none;
    -moz-user-select: none;
    -o-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    --bouncy: linear(0, 0.296 2.3%, 0.554 4.7%, 0.773 7.2%, 0.961 9.9%, 1.11 12.7%, 1.173 14.2%, 1.226 15.7%, 1.271 17.3%, 1.308 18.9%, 1.337 20.6%, 1.358 22.3%, 1.367 23.4%, 1.374 24.5%, 1.378 25.7%, 1.379 26.9%, 1.378 28.2%, 1.374 29.5%, 1.368 30.9%, 1.358 32.4%, 1.339 34.8%, 1.312 37.5%, 1.184 48.9%, 1.126 54.6%, 1.099 57.7%, 1.077 60.7%, 1.057 63.8%, 1.041 66.9%, 1.029 69.8%, 1.02 72.9%, 1.012 76.1%, 1.007 79.6%, 1.001 87.2%, 1)
}

img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
}

.portal {
    z-index: 100 !important;
}

.base-div {
    display: flex;
    flex-direction: column;
}

.layout-root {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    align-items: stretch;
    --cardbackground: var(--colorNeutralCardBackground);
    --cardbackgroundHover: var(--colorNeutralCardBackgroundHover);
}

@media (min-width: 768px) {
    .layout-root {
        flex-direction: row;
    }
}

.main-content {
    height: max-content;
    display: block;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    padding: 16px;
    padding-top: 0;
    padding-bottom: calc(var(--safe-area-inset-bottom) + 60px);
}

.card {
    background: var(--cardbackground);
    border-radius: var(--borderRadiusMedium);
    border: solid 1px rgba(0, 0, 0, 0.075);
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    background: var(--cardbackgroundHover);
}

@media (min-width: 768px) {
    .main-content {
        height: calc(100vh - 34px);
        padding-bottom: 16px;
        margin-left: 70px;
        border-radius: var(--border-radius);
        /* background: rgba(255, 255, 255, 0.04); */
        background: rgba(255, 255, 255, 0.35);
        border: solid rgba(0, 0, 0, 0.075);
        border-width: var(--border-width, 0 0 0 1px);
    }

    @media (prefers-color-scheme: dark) {
        .main-content {
            background: rgba(255, 255, 255, 0.04);
            border: solid rgba(0, 0, 0, 0.4);
            border-width: var(--border-width, 0 0 0 1px);
        }
    }

}

.app-nav-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--safe-area-inset-bottom) + 56px);
    flex-shrink: 0;
    z-index: 90;
}

@media (min-width: 768px) {
    .app-nav-wrapper {
        top: 0;
        left: 0;
        bottom: 0;
        width: 70px;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .app-nav-wrapper {
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
    }
}

h2 {
    font-size: 20px;
    font-weight: 500;
}

canvas {
    display: none;
}