@font-face {
    font-family: "monospace-fallback";
    src: local("Fira Mono"), local("DejaVu Sans Mono"), local("Menlo"), local("Consolas"),
         local("Liberation Mono"), local("Monaco"), local("Lucida Console");

    size-adjust: 89%;
    letter-spacing: -0.3px;
    word-spacing: -0.05px;
    font-weight: normal;
}

:root {
    --gray1: #222222;
    --gray2: #444444;
    --gray3: #bbbbbb;
    --gray4: #eeeeee;
    --cyan: #6e85b7;
}

::-webkit-scrollbar {
    width: 5px;
    background: var(--gray1);
    -webkit-border-radius: 1ex;
}

::-webkit-scrollbar-thumb {
    background: var(--gray2);
    -webkit-border-radius: 1ex;
}

::-webkit-scrollbar-corner {
    background: var(--gray1);
}

html {
    background-color: var(--gray1);
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;

    scrollbar-color: var(--gray2) var(--gray1);
    scrollbar-width: thin;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    font-family: "Anonymice Nerd Font", "monospace-fallback", monospace;
    color: var(--gray3);
    background-color: var(--gray1);
    font-size: 0.85rem;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;

    -webkit-box-shadow: 0px 2px 7px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 2px 7px -1px rgba(0,0,0,0.75);
    box-shadow: 0px 2px 7px -1px rgba(0,0,0,0.75);

    z-index: 99999;
}

header * {
    font-size: 0.85rem;
}

html, body {
    background-image: url("../img/wallpaper.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
}

.tags ul {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.tags ul li {
    position: relative;
    display: inline-block;
    width: 1.3rem;
    text-align: center;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
}

.tags ul li.tag-active {
    background-color: var(--cyan);
}

.tags ul li:last-child {
    margin-left: 0.5rem;
}

.tags ul li.tag-has-window:before {
    content: '';
    position: absolute;
    left: 0.1rem;
    display: block;
    width: 0.25rem;
    height: 0.25rem;
    border-color: currentColor;
    border-style: solid;
    border-width: 1px;
}

.tags ul li.tag-active.tag-has-window:before {
    background: currentColor;
}

.title {
    background-color: var(--cyan);
    flex-grow: 1;
    padding-left: 0.5rem;

    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.title:empty {
    background-color: var(--gray1);
}

.status .text > span:before {
    content: '| ';
}

.status .text > span:last-child:after {
    content: ' |';
}

.status .text > span > span.icon {
    margin-right: 1rem;
}

.status .text > span > span.content + span.icon:before {
    content: ' ';
} 

.status {
    display: flex;
    flex-direction: row;
    align-items: stretch;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status .text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
}

.status .icons {
    display: inline-flex;
    flex-direction: row;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
    gap: 0.2rem;
}

.status .icons img {
    width: 0.9rem;
    height: 100%;
    object-fit: scale-down;
}

main {
    flex-grow: 1;
    height: calc(100vh - 1.075rem);
}

.tag-content {
    width: 100%;
    height: 100%;
    display: none;
}

.tag-content.tag-content-active {
    display: block;
}

.tag-content .window {
    width: 100%;
    height: 100%;
    border-color: var(--cyan);
    border-style: solid;
    border-width: 1px;

    background-color: magenta;
}