@font-face {
    font-family: 'Montserrat';
    src: url('../core/montserrat.ttf') format('woff2-variations');
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('../core/roboto_mono.ttf') format('woff2-variations');
}

:root {
    --base-margin: 8px;
    --base-padding: 16px;
    --block-width: 118px;
    --base-width: 5vw;
    --block-half-width: 59px;
    --small-font-size: 10px;
    --small-font-family: Montserrat, Arial, sans-serif;
    --list-line-background-color: rgba(0, 0, 0, 0.1);
    --list-line-hover-background-color: rgba(0, 0, 0, 0.2);
    --header-font-size: 20px;
    --header-font-family: 'Montserrat', sans-serif;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

body {
    user-select: none;
    background: ghostwhite;
}

a {
    color: royalblue;
    text-decoration: none;
    transition: color 250ms;
}

a:visited {
    color: royalblue;
}

a:hover {
    color: orangered;
}

input {
    font-weight: 550;
    font-size: 13px;
    font-family: Montserrat, sans-serif;
}

.unibadge {
    display: flex;
    flex-direction: column;
    transition: background .2s;
    padding: 6px;
    margin: 3px;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.unibadge:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.unibadge .title {
    font-family: var(--small-font-family), sans-serif;
    font-size: var(--small-font-size);
    font-weight: bold;
}

.unibadge .value {
    font-family: 'Roboto Mono', sans-serif;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    flex-direction: row;
    align-items: center;
    user-select: text;
    overflow: clip;
    overflow-clip-margin: -8px;
}

.unibadge .value.small {
    font-size: 10px;
}

.uniframe {
    border: 1px solid var(--list-line-background-color);
    border-radius: 5px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uniframe:hover {
    border: 1px solid var(--list-line-hover-background-color);
}

.uniframe.row {
    flex-direction: row;
}

.uniframe.col {
    flex-direction: column;
}

.unicol {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.unirow {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.unirow.stretch {
    width: 100%;
}

.uniflag {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    min-width: 60px;
    min-height: 34px;
    flex: none;
    font-size: .8em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: none;
    border-radius: 6px;
    padding: 3px 6px;
    background: #efefef;
}

.uniflag.green {
    color: #fff;
    background: green;
}

.uniflag.orange {
    color: #fff;
    background: orange;
}

.uniflag.red {
    color: #fff;
    background: red;
}

.uniformula {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.uniformula > .title {
    flex: none;
}

.uniformula > .op {
    flex: none;
    margin: 0 12px;
}

.uniformula > .var {
    flex: none;
    padding: 0 3px;
}

.uniformula > .var:hover {
    background-color: cornsilk;
}

.uniformula > .result {
    flex: none;
    font-weight: 500;
}

.uniblock {
    transition: background-color .2s;
    padding: 16px;
    align-self: stretch;
    flex: none;
    box-sizing: border-box;
}

.uniblock:hover {
    background: rgba(240, 240, 240, 0.75);
}

.hidden {
    display: none!important;
}

.unistretch {
    flex-grow: 2;
}

.unicaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.unicaption > .title {
    font-size: 1.2em;
    font-weight: 600;
}

.unicaption > .subtitle {
    font-size: 0.6em;
    font-weight: 600;
}

.justify-end {
    justify-content: flex-end;
}

.align-end {
    align-items: flex-end;
}