@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Noto+Sans+Mono:wght@100..900&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined');


html {
    --md-sys-typescale-display-large-font: 'Lato';
    --md-sys-typescale-display-large-weight: 400;
    --md-sys-typescale-display-large-size: 57px;
    --md-sys-typescale-display-large-line-height: 54px;
    --md-sys-typescale-display-large-tracking: -0.25px;

    --md-sys-typescale-display-small-font: 'Lato';
    --md-sys-typescale-display-small-weight: 400;
    --md-sys-typescale-display-small-size: 36px;
    --md-sys-typescale-display-small-line-height: 44px;
    --md-sys-typescale-display-small-tracking: 0;

    --md-sys-typescale-headline-small-font: 'Lato';
    --md-sys-typescale-headline-small-weight: 400;
    --md-sys-typescale-headline-small-size: 24px;
    --md-sys-typescale-headline-small-line-height: 32px;
    --md-sys-typescale-headline-small-tracking: 0;

    --md-sys-typescale-title-small-font: 'Noto Sans';
    --md-sys-typescale-title-small-weight: 400;
    --md-sys-typescale-title-small-size: 22px;
    --md-sys-typescale-title-small-line-height: 28px;
    --md-sys-typescale-title-small-tracking: 0;

    --md-sys-typescale-body-large-font: 'Noto Sans';
    --md-sys-typescale-body-large-weight: 400;
    --md-sys-typescale-body-large-size: 16px;
    --md-sys-typescale-body-large-line-height: 24pt;
    --md-sys-typescale-body-large-tracking: 0.25px;

    --md-sys-typescale-body-medium-font: 'Noto Sans';
    --md-sys-typescale-body-medium-weight: 400;
    --md-sys-typescale-body-medium-size: 14px;
    --md-sys-typescale-body-medium-line-height: 20pt;
    --md-sys-typescale-body-medium-tracking: 0.25px;

    --md-sys-typescale-label-large-font: 'Noto Sans';
    --md-sys-typescale-label-large-weight: 500;
    --md-sys-typescale-label-large-size: 14px;
    --md-sys-typescale-label-large-line-height: 20pt;
    --md-sys-typescale-label-large-tracking: 0.1px;
}

html {
    --md-sys-color-primary: rgb(215 192 255);
    --md-sys-color-surface-tint: rgb(211 188 253);
    --md-sys-color-on-primary: rgb(29 8 64);
    --md-sys-color-primary-container: rgb(155 134 196);
    --md-sys-color-on-primary-container: rgb(0 0 0);
    --md-sys-color-secondary: rgb(209 198 223);
    --md-sys-color-on-secondary: rgb(25 19 37);
    --md-sys-color-secondary-container: rgb(150 141 164);
    --md-sys-color-on-secondary-container: rgb(0 0 0);
    --md-sys-color-tertiary: rgb(245 188 201);
    --md-sys-color-on-tertiary: rgb(43 11 22);
    --md-sys-color-tertiary-container: rgb(182 131 144);
    --md-sys-color-on-tertiary-container: rgb(0 0 0);
    --md-sys-color-error: rgb(255 186 177);
    --md-sys-color-on-error: rgb(55 0 1);
    --md-sys-color-error-container: rgb(255 84 73);
    --md-sys-color-on-error-container: rgb(0 0 0);
    --md-sys-color-background: rgb(21 18 24);
    --md-sys-color-on-background: rgb(231 224 232);
    --md-sys-color-surface: rgb(21 18 24);
    --md-sys-color-on-surface: rgb(255 249 255);
    --md-sys-color-surface-variant: rgb(73 69 78);
    --md-sys-color-on-surface-variant: rgb(207 200 211);
    --md-sys-color-outline: rgb(167 161 171);
    --md-sys-color-outline-variant: rgb(134 129 139);
    --md-sys-color-shadow: rgb(0 0 0);
    --md-sys-color-scrim: rgb(0 0 0);
    --md-sys-color-inverse-surface: rgb(231 224 232);
    --md-sys-color-inverse-on-surface: rgb(44 41 47);
    --md-sys-color-inverse-primary: rgb(81 62 117);
    --md-sys-color-primary-fixed: rgb(235 221 255);
    --md-sys-color-on-primary-fixed: rgb(24 2 59);
    --md-sys-color-primary-fixed-dim: rgb(211 188 253);
    --md-sys-color-on-primary-fixed-variant: rgb(62 44 98);
    --md-sys-color-secondary-fixed: rgb(233 222 248);
    --md-sys-color-on-secondary-fixed: rgb(20 14 32);
    --md-sys-color-secondary-fixed-dim: rgb(205 194 219);
    --md-sys-color-on-secondary-fixed-variant: rgb(58 51 70);
    --md-sys-color-tertiary-fixed: rgb(255 217 225);
    --md-sys-color-on-tertiary-fixed: rgb(37 6 17);
    --md-sys-color-tertiary-fixed-dim: rgb(240 183 197);
    --md-sys-color-on-tertiary-fixed-variant: rgb(81 42 54);
    --md-sys-color-surface-dim: rgb(21 18 24);
    --md-sys-color-surface-bright: rgb(59 56 62);
    --md-sys-color-surface-container-lowest: rgb(15 13 19);
    --md-sys-color-surface-container-low: rgb(29 27 32);
    --md-sys-color-surface-container: rgb(33 31 36);
    --md-sys-color-surface-container-high: rgb(44 41 47);
    --md-sys-color-surface-container-highest: rgb(54 52 58);
  }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

  body {
    font-family: var(--md-sys-typescale-body-medium-font);
    font-weight: var(--md-sys-typescale-body-medium-weight);
    font-size: var(--md-sys-typescale-body-medium-size);
    line-height: var(--md-sys-typescale-body-medium-line-height);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
   
}

hr {
    border-color: var(--md-sys-color-outline-variant);
    margin: 16px;
}


/*
*::-webkit-scrollbar {
    width: 1em;
}

*::-webkit-scrollbar-track {
    box-shadow: none;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--mds-sys-color-surface-container);
    outline: none;
    border-radius: 16px;
}*/

nav#top-app-bar {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    position: fixed;
    top: 0;
    z-index: 9;
}

nav#top-app-bar.scrolled {
    background: var(--md-sys-color-surface-container);
}

nav#top-app-bar > span#character-name {
    font-family: var(--md-sys-typescale-title-small-font);
    font-weight: var(--md-sys-typescale-title-small-weight);
    font-size: var(--md-sys-typescale-title-small-size);
    line-height: var(--md-sys-typescale-title-small-line-height);
    letter-spacing: var(--md-sys-typescale-title-small-tracking);
}


#app-container {
    background-color: var(--md-sys-color-surface);
    width: 100%;
    height: calc(100% - 60px - 80px);
    position: fixed;
    display: flex;
    flex-direction: column-reverse;
    color: var(--md-sys-color-on-surface);
    margin-top: 64px;
}

main {
    height: 100%;
    width: 100%;
    background-color: var(--md-sys-color-surface);
    overflow-y: auto;
    overflow-x: hidden;
}

nav {
    width: 100%;
    height: 80px;
    background-color: var(--md-sys-color-surface-container);
    color: var(--md-sys-color-on-surface-container);
    position: fixed;
    bottom: 0;
}

main div#hit-points-armor-class {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    height: 265px;
}

main section#hit-points {
    flex: auto;
    height: fit-content;
    text-align: center;
    margin: 4px 0px 4px 8px;
    padding: 10px 24px 16px 24px;
    border-radius: 8px;
    background-color: var(--md-sys-color-surface-container-low);
    line-height: 1;
    align-items: center;
}

meter {
    width: 100%;
    height: 16px;
    margin: 6px 0;
}

meter::-webkit-meter-bar {
    background-color: var(--md-sys-color-surface-container-lowest);
} 


meter::-webkit-meter-optimum-value {
    background-color: var(--md-sys-color-primary-container);
} 

meter::-webkit-meter-suboptimum-value {
    background-color: var(--md-sys-color-secondary-container);
} 

meter::-webkit-meter-even-less-good-value {
     background-color: var(--md-sys-color-error-container);
} 

main section#hit-points label {
    font-family: var(--md-sys-typescale-headline-small-font);
    font-weight: var(--md-sys-typescale-headline-small-weight);
    font-size: var(--md-sys-typescale-headline-small-size);
    line-height: var(--md-sys-typescale-headline-small-line-height);
    letter-spacing: var(--md-sys-typescale-headline-small-tracking);
}

#hit-points-values {
    margin: 0 8px;
}

#armor-class-stat {
    width: 33%;
}

#armor-class-stat > div.stat {
    width: auto;
}

.ability-points-section {
    display: flex; 
    flex-direction: column;
}


div.stat {
    height: 120px;
    width: 33%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    flex: auto;

    background-color: var(--md-sys-color-surface-container-low);

    margin: 4px 4px 4px 4px;
    
    padding: 24px 12px;
    border-radius: 8px;

    line-height: 1;
    text-align: center;    
   
}

div.stat.stat-small {
    flex-direction: row;
    align-items: center;
    line-height: 1;
    height: 60px;
}

div.stat.stat-small > p {
    margin-right: 4px;
}

div.stat.stat-small > span {
    margin-bottom: 0px;
}

/*
div.stat:first-of-type {
    margin: 4px 4px 4px 8px;
}

div.stat:last-of-type {
    margin: 4px 8px 4px 4px;
}*/

div.stat span {  
    font-family: 'Noto Sans Mono';
    font-weight: var(--md-sys-typescale-headline-small-weight);
    font-size: var(--md-sys-typescale-headline-small-size);
    line-height: var(--md-sys-typescale-headline-small-line-height);
    letter-spacing: var(--md-sys-typescale-headline-small-tracking);
    margin-bottom: 4px;
}

main section#attributes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto; 
}

main section#attributes div.stat {
    display: flex;
    justify-content: space-between;
    margin: 0 auto; 
}

main section#attributes div.stat-small {
    margin: 4px;
    display: flex;
}

div.stat {
    background-color: var(--md-sys-color-surface-container-high);
}

ul.chip-list {
    list-style: none;
}

ul.chip-list li.chip {
    display: inline-flex;
}

button.input-chip {
    height: 32px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: 8px;
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface);
    font-size: 14px;
    line-height: 14px;
    padding: 8px;
    margin: 4px 2px;
    display: inline-flex;
    white-space: nowrap;
}

button.input-chip.background-primary {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

button.input-chip.background-secondary {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

button.input-chip.background-tertiary {
    background: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
}

button.input-chip.disadvantage {
    background: var(--md-sys-color-surface-container-lowest);
    color: var(--md-sys-color-on-surface);
}

button.icon-button {
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface-variant);
    box-shadow: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
   
}


main section#hit-points button.icon-button span {
    line-height: 1;
    font-size: 22px;
    padding-left: 2px;
    padding-top: 2px;
}


button.disabled {
    opacity: 0.5;
}