/* Shared CSS: base look for every page, light/dark theme */

:root {
    --bg: #1a1a1a;
    --bg2: #131313;
    --text: #fff;
    --text-muted: color-mix(in srgb, var(--text) 60%, transparent);
    --border: #aaaaaa;
    --alert: #f39c12;
    --action: #4CAF50;

    --shadow: 0 0 1px var(--border);
    --backdrop: blur(10px) saturate(50%);
    --backdrop-sm: blur(5px) saturate(50%);
    --backdrop-lg: blur(100px) saturate(50%);

    --text-white: rgb(255, 255, 255);

    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #ffffff;
    --bg2: #efefef;
    --text: #000;
    --border: #7e7e7e;

    color-scheme: light;
}

*::-webkit-scrollbar {
    display: none !important;
}

* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

button {
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

*::selection {
    background-color: var(--alert);
    color: var(--text);
}

i {
    pointer-events: none;
}

img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}

input:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--alert);
    outline-offset: 2px;
}

html * {
    transition: all 0.25s;
}

html.disable-transitions *,
html.disable-transitions *::before,
html.disable-transitions *::after {
    transition: none !important;
}

html {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

html, body {
    margin: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    padding: 0;
}

body.no-scroll {
    overflow: hidden;
}

/* Hover tooltip (see shared/js/hovermenu.js) */
#hover-mouse-menu {
    position: fixed;
    z-index: 10000;
    padding: 5px 10px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--text-white);
    font-size: 14px;
    pointer-events: none;
    transition: none;
}
