@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,400;0,700;0,900;1,400&display=swap");
@import url("./styles/tippy.css");
@import url("./styles/enums.css");

.material-symbols-rounded {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.material-symbols-rounded.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}
.material-symbols-rounded.big {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 48;
}
.material-symbols-rounded.big.filled {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 48;
}

@media (prefers-reduced-motion) {
    * {
        transition: none !important;
        transition-duration: 0ms !important;
    }
}

:root {
    --bg: #f5f6fa;
    --bg0: rgb(245, 246, 250, 0);

    --text-default: rgba(0, 0, 0, 0.87);
    --text-default0: rgba(0, 0, 0, 0);

    --text: var(--text-default);
    --text-on-primary: rgba(255, 255, 255, 0.95);
    --primary: #07847f;
    --primary-10: rgba(7, 132, 127, 0.1);
    --primary-35: rgba(7, 132, 127, 0.35);
    --primary-10-bg: #deeaee;
    --secondary: #fd6b36;
    --disabled: #a0a0a0;
    --rating: #ffc107;
    --error: #ff4040;

    --white80: rgba(255, 255, 255, 0.8);

    --text-selection-default: rgba(7, 132, 127, 0.2);
    --text-selection: var(--text-selection-default);

    --navbar-height: 4rem;

    --default-content-padding: 2rem 2rem;

    --font-families: Montserrat, sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue";

    font-family: var(--font-families);
    font-size: 16px;
    line-height: 1.25em;
    font-weight: 400;
    color-scheme: light dark;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;

    background-color: var(--bg);
    color: var(--text);
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --bg0: rgb(18, 18, 18, 0);

    --text-default: #ffffff;

    --text: var(--text-default);
    --text-on-primary: #ffffff;
    --primary-10: rgba(255, 255, 255, 0.1);
    --primary-10-bg: #deeaee;

    --text-selection-default: rgba(10, 155, 150, 0.2);
    --text-selection: var(--text-selection-default);
  }
} */

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

/* width */
*::-webkit-scrollbar {
    width: 10px;
}

/* Track */
*::-webkit-scrollbar-track {
    background: var(--bg);
}

/* Handle */
*::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

/* Handle on hover */
*::-webkit-scrollbar-thumb:hover {
    filter: brightness(0.75);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;

    scroll-behavior: smooth;
}

img:not(.draggableImage) {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

html {
    width: 100vw;
    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;
}

html.noscroll {
    overflow-y: hidden;
}

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;
}

main {
    display: block;
    min-height: 100vh;
    height: 100vh;
    max-width: 100vw;
}

section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

i {
    display: inline-block;
}

i.h2d {
    display: block;
    height: 2rem;
}
i.v {
    display: block;
    height: 1rem;
}

p.sub,
b.sub,
span.sub {
    font-weight: normal;
    font-size: smaller;
    opacity: 0.7;
}

a,
b,
p,
span,
i,
h1,
h2,
h3,
h4,
h5,
details,
summary,
button,
h6 {
    /* color: var(--text); */
    color: inherit;
}

a {
    text-decoration: none;
    cursor: pointer;
}
a:visited {
    color: unset;
}
a:hover {
    color: var(--primary);
}

.material-symbols-rounded {
    font-size: 1em;
}
.material-symbols-rounded.vcenter {
    line-height: inherit;
}
.material-symbols-rounded.vmiddle {
    vertical-align: middle;
}

button,
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    color: var(--text);
}

button:active,
.btn:active,
button:focus,
.btn:focus,
button:hover,
.btn:hover {
    filter: brightness(0.87);
}

button:disabled,
.btn:disabled {
    cursor: not-allowed;
    filter: brightness(0.87);
}

.expand {
    width: 100%;
    height: 100%;
}

.center {
    text-align: center;
}
.left {
    text-align: left;
}
.right {
    text-align: right;
}

input,
select {
    font-size: 1rem;
    border: 1px solid var(--disabled);
    border-radius: 0.75rem;
    padding: 0.5rem;
    color: var(--text);
    background-color: var(--bg);

    outline: none;

    transition: border-color 300ms ease-out;
}

select:active,
input:active,
select:focus,
input:focus {
    outline: none;

    border-color: var(--primary);
}

select::cue {
    margin-right: 1rem;
}

input {
    font-family: var(--font-families);
}

input:focus-visible {
    outline: 2px solid var(--text);
}

input:user-invalid {
    border-color: var(--error);
    outline-color: var(--error);
}

.primaryCard {
    background-color: var(--primary);

    --text: var(--text-on-primary);
    --text-selection: rgba(0, 0, 0, 0.87);
}
.primaryCardReset {
    --text: var(--text-default) !important;
    --text-selection: var(--text-selection-default) !important;
}

.borderRadiusMini {
    border-radius: 0.4rem;
}

@media only screen and (max-width: 768px) {
    :root {
        --appbar-h: 4rem;
        --appbar-h-hpad: 0.5rem;
    }
}

.vb {
    --viewbox-padding-v: 4rem;
    --viewbox-padding-h: 6rem;

    padding: var(--viewbox-padding-v) var(--viewbox-padding-h);
}

@media only screen and (min-width: 1536px) {
    .vb {
        --viewbox-padding-h: 12rem;
        --viewbox-padding-v: 6rem;
    }

    i.h2d {
        height: 3.5rem;
    }
}
@media only screen and (max-width: 1080px) {
    .vb {
        --viewbox-padding-h: 1.5rem;
    }
}
@media only screen and (max-width: 768px) {
    .vb {
        --viewbox-padding-h: 1rem;
    }
}

form {
    display: contents;
}
