:root {
    --background-1: #141414;
    --background-2: #1e1e1e;
    --background-3: #000000;
    --accent: #ff9900;
    --accent-2: #ffffff;
    --border: #404040;
}

@font-face {
    font-family: 'DM Mono';
    src: url('DM\ Mono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: DM Mono;
}

body {
    display: flex;
    margin: 0;
    height: 100dvh;
    width: 100dvw;
    background-color: var(--background-1);
}

#left {
    width: 275px;
    height: 100%;
    border-right: 1px var(--border) solid;
    transition: width 200ms ease;
}
nav {
    background-color: var(--background-1);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 16px;
    gap: 16px;
    position: relative;
}
#name {
    font-size: 2.25rem;
    color: var(--accent);
    user-select: none;
    transition: scale 200ms linear;
    width: fit-content;
}
#name:hover {
    cursor: pointer;
    scale: 1.04;
}
#tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}
.tab {
    width: fit-content;
    font-size: 1.2rem;
    padding: 10px;
    font-weight: 1000;
    display: inline-flex;
    color: var(--accent-2);
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    transition: padding 100ms linear;
}
.tab.active {
    background-color: var(--accent);
}
.tab:hover {
    cursor: pointer;
    padding-left: 18px;
}
.tab:hover:not(.active) {
    background-color: var(--background-2);
}
.tab:last-child {
    margin-top: auto;
}

#right {
    width: 100%;
    height: 100%;
    flex-direction: column;
    display: flex;
    transition: width 200ms linear;
}
header {
    background-color: var(--background-2);
    width: 100%;
    height: 70px;
    border-bottom: 1px var(--border) solid;
    display: flex;
    box-sizing: border-box;
    padding: 16px;
    gap: 16px;
}
#opensidebar {
    border: 1px solid var(--border);
    background-color: var(--background-2);
    box-sizing: border-box;
    border-radius: 4px;
    height: 100%;
    width: 60px;
    align-items: center;
    justify-content: center;
    display: none;
}
#opensidebar svg {
    width: 40%;
}
#closesidebar {
    display: none;
    border: 1px solid var(--border);
    background-color: var(--background-2);
    box-sizing: border-box;
    border-radius: 4px;
    width: 60px;
    height: 36px;
    right: 16px;
    align-items: center;
    justify-content: center;
    transform: rotate(180deg);
    position: absolute;
}
#closesidebar svg {
    width: 40%;
}

@media only screen and (max-width: 800px) {
    #opensidebar {
        display: flex;
    }
    #left:not(.active) {
        width: 0px;
    }
    #left:not(.active) * {
        display: none;
    }
    #left.active {
        width: 100%;
    }
    #left.active + #right {
        width: 0%;
        display: none;
    }
    #closesidebar {
        display: flex;
    }
}

#path {
    color: var(--accent);
    margin: auto 0;
    font-size: 1.5rem;
}

main {
    background-color: var(--background-3);
    display: none;
    height: 100%;
    grid-template-columns: repeat(4, 1fr);
/*    grid-template-rows: masonry; maybe someday */
    padding: 16px;
    box-sizing: border-box;
    width: 100%;
    overflow-y: auto;
    gap: 16px;
    position: relative;
}

main.active {
    display: block;
}

.window {
    border: 1px solid var(--border);
    background-color: var(--background-2);
    padding: 16px;
    box-sizing: border-box;
    border-radius: 4px;
    height: fit-content;
    overflow-y: scroll;
    color: var(--accent-2);
    position: absolute;
}
.window .header {
    display: flex;
    gap: 8px;
}
.window .header img, .window .header svg {
    height: 32px;
    width: 32px;
    object-fit: cover;
}
.window .title {
    color: var(--accent-2);
    font-size: 1.3rem;
}
.window .container {
    margin-top: 16px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

#commentbox {
    width: 100%;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}
#commentbox .input-field {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}
#commentbox input {
    width: 100%;
    padding: 4px;
    padding-right: 74px;
    box-sizing: border-box;
    height: 32px;
    background-color: var(--background-1);
    border: none;
    outline: none;
    color: var(--accent-2);
    font-size: 1.1rem;
}
#commentbox .input-field span {
    position: absolute;
    right: 4px;
    color: var(--accent);
    top: 20%;
    pointer-events: none;
    background-color: var(--background-1);
}
#commentbox #send {
    width: 32px;
    margin-top: 2px;
    height: 100%;
    transition: transform 300ms ease-in-out;
}
#commentbox #send:hover {
    cursor: pointer;
    transform: rotate(-380deg) scale(1.05) translateY(-2px);
}
#commentscroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: auto;
    box-sizing: content-box;
    max-height: 26rem;
}
.comment {
    padding: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background-color: var(--background-1);
    width: 100%;
}
.comment .date {
    color: var(--accent);
}
.comment .content {
    color: var(--accent-2);
    word-wrap: break-word;
}

#rose {
    background-color: var(--accent);
}

.accent {
    color: var(--accent);
}
.accent-2 {
    color: var(--accent-2);
}

input[type="color"] {
    border: none;
    padding: 0;
    cursor: pointer;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.7);
}
