@font-face {
    font-family: "nerd";
    src: url("../assets/fonts/JetBrainsMonoNerdFont-Regular.ttf") format("truetype");
}

.firefox * {
    scrollbar-width: thin;
    scrollbar-color: #7c424d transparent;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: beige;
    background: black;
    /* background-image: linear-gradient(to bottom, black, #7c424d); */
    font-family: "nerd", sans-serif;
    font-size: 14px;
    font-weight: 500;
    /* overflow-x: hidden; */
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #7c424d;
}

::-webkit-scrollbar-thumb:hover {
  background: #64353d;
}

::-webkit-scrollbar-corner {
  background: #7c424d;
}

::selection {
    background: #201e1e;
}

/* navbar layout */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #201e1e;
    font-weight: bold;
    width: 100%;
    height: 27px;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    z-index: 9;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.workspace, .window, .navbar li {
    min-width: 0;
    float: left;
}

.workspace-tab:hover, .workspace-tab.active {
    cursor: pointer;
    background-color: #7c424d;
}

.status > * {
    margin-right: 8px;
    padding: 4px 0;
    /* float: right; */
    color: white;
}

.status {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    min-width: 0;
}

#clockModule {
    cursor: default;
}

#volumeModule:hover {
    cursor: pointer;
}

#musicModule:hover  {
    cursor: pointer;
}
#musicModule {
    display: inline-flex;
    justify-content: center;
    max-width: 350px;
    min-width: 0;
    width: fit-content;
    white-space: nowrap;
    flex: 0 1 auto;
    overflow: hidden;
}

#musicPlayer {
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.musicPlayer-clone {
    position: absolute;
    left: 100%;
    top: 0;
    white-space: nowrap;
    /* padding-left: 22px; */
}

.music-scrolling-text-container {
    overflow: hidden;
}
.music-scrolling-text-inner {
    display: flex;
    white-space: nowrap;
    --marquee-speed: 10s;
    --direction:scroll-left
}
.music-scrolling-text {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.music-scrolling-text-inner > div {
    animation: var(--direction) var(--marquee-speed) steps(20) infinite;
}
@keyframes scroll-left {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}
@keyframes scroll-right {
    0% {
        transform: translateX(-105%);
    }
    100% {
        transform: translateX(105);
    }
}

.viewport {
    position: relative;
    height: 200vh;
    overflow: hidden;
    display: block;
}

/* navbar workspaces */
.workspace-tab {
    display: block;
    color: white;
    padding: 4px 8px;
    transition: none;
    text-decoration: none;
}

/* window text alignment */
.window {
    text-align: left;
    padding: 4px;
    background-color: #7c424d;
    cursor: default;
}

/* art */
.workspace-container {
    display: flex;
    padding-top: 27px;
    height: 100vh;
    width: max-content;
    /* transition: transform 0.3s ease; */

}

.workspace-page {
    flex: 0 0 100vw;
    height: calc(100vh - 36px);
}

.art {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
    padding: 50px;
    box-sizing: border-box;
}

.artitems {
    position: relative;
    display: flex;
    flex-direction: column;

    min-height: 0;
    overflow: hidden;

    width: 100%;
    /* height: 100%; */
    border: 4px solid #444444ff;
    box-sizing: border-box;
}

.infotext {
    /* scroll-padding: 8px; */
    min-height: 0;

    padding: 8px;
    text-align: left;

    word-break: break-word;
    overflow-wrap: anywhere;

    position: relative;
    z-index: 1;
}
.infotext ::selection {
    background: #97a8b4;
    color: #201e1e;
}

.termlinks {
    color: #8f5670;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.selectabletermlinks {
    text-decoration: none;
    color: #8f5670;
}

.selectabletermlinks:hover {
    background-color: #7c425d;
    color: #201e1e;
    cursor: pointer;
}

.frenfetch-text {
    background: linear-gradient(to top, #15a0cb, #97a8b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    overflow: hidden;

    /* wrapping this is funny but happens to easily and is too ugly */
    /* white-space: pre-wrap; */
    /* word-wrap: break-word; */
    /* overflow-wrap: break-word; */
    margin: 0;
}

#infoterm1, #infoterm2, #infoterm3, .donateText {
    color: #97a8b4;
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.ps1-user {
    color: #a14570;
}
.ps1-sep {
    color: #7c425d;
}
.ps1-host {
    color: #638299;
}
.ps1-path {
    color: #51697b;
}
.ps1-bracket {
    color: #3c4f5d;
}
.ps1-symbol {
    color: #7a8f9f;
}
.command {
    color: #64635d;
}
.commandinput {
    color: #7c424d;
    text-decoration: underline;
}

.term-cursor {
    display: inline-block;
    width: 2px;
    height: 20px;
    background: #7e7867;
    animation: blink 1s step-start infinite;
    vertical-align: text-bottom;
    /* transform: translateY(1px); */
    /* margin: 0; */
}

@keyframes blink {
    50% { opacity: 0; }
}

.artitems::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(12%);
    transform: scale(1.2);
    z-index: 0;
    pointer-events: none;
}

.artitems img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.artmaster {
    grid-row-start: 1;
    grid-row-end: 3;
}

.artitems:hover, .artitems.focus {
    border-color: #7c424d;
}

.donatePage .artitems::before {
    content:none;
}

.donatePage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.donateRow {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    overflow-y: auto;
}

.donateImageBTC {
    flex: 0 0 auto !important;
    width: clamp(200px, 10vw, 120px) !important;
    height: auto !important;
    object-fit: contain;
    align-self: flex-start;
}
.donateImageMONERO {
    flex: 0 0 auto !important;
    width: clamp(200px, 10vw, 120px) !important;
    height: auto !important;
    object-fit: contain;
    align-self: flex-start;
}

#donateArrow {
    /* visibility: hidden; */
    position: fixed;
    bottom: 10px;
    left: 10px;
    height: 8%;
    z-index: 9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#donateArrow.flipped {
    transform: rotateX(180deg);
}

#helper {
    position: fixed;
    bottom: 24px;
    right: 16px;
    height: 25%;
    z-index: 9;
}
