:root {
    --accent-background-dark-color: rgb(167, 171, 183);
    --accent-background-color: #BCBFB5;
    --accent-card-color: #FFFFFF;
    --accent-card-light: whitesmoke;
    --accent-card-dark: #505A67;
    /*--accent-card-background: #CEE5F2;*/
    --accent-card-background: #EDF7FB;

    --accent-color: #7c98b3;
    --accent-color-darker: #536b78;

    --font: Spectral;
}

html {
    position: relative;
    width: 100%;
    height: 100dvh;
    bottom: 0;
    top: 0;
    left: 0;
    right: 0;
}

#light-mode {
    background: #FFFFFF;
}

#light-mode * {
    color: gray;
}

#dark-mode {
    background: #324A5F;
}

#dark-mode * {
    color: whitesmoke;
}

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

.block {
    display: block;
    margin: 5px;
}

button {
    outline: none;
    border: 1px solid var(--accent-color);
    background: var(--accent-color);
    border-radius: 5px !important;
    padding: 5px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 100px;
}

button > span {
    color: white !important;
    margin-left: 10px;
}

button > img {
    filter: brightness(0) saturate(100%) invert(89%) sepia(100%) saturate(34%) hue-rotate(81deg) brightness(113%) contrast(107%) !important;
}

button * {
    margin: 5px;
}

button:active {
    transform: scale(0.95);
    background: var(--accent-color-darker);
}

.btn-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: -webkit-fill-available;
}

body {
    width: 100%;
    height: 100dvh;
    margin: 0;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
    background: url("/static/graphics/svg/bg.255f1717e57d.svg");
    background-size: cover;
}

*:not(input) {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
}

input {
    margin: 5px 10px;
    min-width: 250px;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 5px;
    background: var(--accent-card-background);
    font-size: 12px;
    width: -webkit-fill-available;
}

.input {
    padding: 0 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 10px;
    background: var(--accent-card-background);
}

#repository {
    width: inherit;
    height: 100%;
    margin-top: auto;
    transition: transform .3s;
    background: var(--accent-card-color);
    border-radius: 0 0 10px 10px;
    display: flex;
}

@media only screen and (min-width: 520px) {
    #repository {
        scale: 0.95;
        /*border: 1px solid var(--accent-card-light);*/
    }
}

@media only screen and (max-width: 520px) {
    #repository {
        scale: 0.99;
        /*border: 1px solid var(--accent-card-light);*/
    }
}

.icon-sm {
    width: 10px;
    height: 10px;
}

.icon {
    width: 15px;
    height: 15px;
}

.selected {
    background: var(--accent-color) !important;
    color: white !important;
    transition: background-color 0.2s cubic-bezier(0.42, 0, 1, 1);
}

.selected > * {
    color: white !important;
    filter: brightness(0) saturate(100%) invert(89%) sepia(100%) saturate(34%) hue-rotate(81deg) brightness(113%) contrast(107%) !important;
}

.card {
    border: 1px solid var(--accent-card-dark);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.line {
    width: -webkit-fill-available;
    width: -moz-fill-available;
    width: -moz-available;
    height: 1px;
    /*background: var(--accent-color);*/
    background: var(--accent-card-background);
}

.line-v {
    width: 1px;
    height: 100%;
    /*background: var(--accent-color);*/
    background: var(--accent-card-background);
}

.textarea {
    border: none;
    outline: none;
    margin: 8px;
    resize: none;
    width: -webkit-fill-available;
    width: -moz-available;
    width: -moz-fill-available;
    min-height: 100px;
    background: var(--accent-card-background);
    padding: 10px;
    border-radius: 5px;
}

/* Works in Chrome, Edge, Safari, Opera (WebKit browsers) */
::-webkit-scrollbar-button {
    display: none; /* hides the up/down or left/right arrows */
}

/* Optional: style scrollbar track & thumb */
::-webkit-scrollbar {
    width: 3px; /* vertical scrollbar width */
    height: 3px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Works in Firefox */
html {
    scrollbar-width: thin; /* or "none" to hide scrollbar entirely */
}

img {
    -webkit-user-drag: none; /* For Safari/Chrome */
    user-drag: none;
}

/* nav and view*/
#repository-nav, #repository-view, #repository-view-m {
    display: flex;
    flex: 1;
}

#repository-view-m {
    flex-direction: column;
}

#repository-nav {
    justify-content: space-between !important;
    background: var(--accent-card-background);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    align-items: center;
    margin: 5px 5px 0;
    border-radius: 5px;
    transition: transform .3s;
}

#repository-nav-view {
    position: relative;
    flex-direction: row;
    height: 50px;
}

#repository-view {
    transition: width .05s, height .1s, transform .3s;
}

.repository-nav-hidden {
    transform: translateY(100px);
}

#repository-nav-dp {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-left: 10px;
}

#repository-view {
    margin-bottom: 5px;
    height: -webkit-fill-available;
    height: -moz-fill-available;
    height: -moz-available;
}

#repository {
    flex-direction: column-reverse;
}

#repository-view {
    flex-grow: 1;
    border-left: 1px solid var(--accent-card-background);
    height: 100%;
}

@media only screen and (max-width: 768px) {
    #repository-view-main {
        width: 100%;
    }

    #repository-view-sub, #repository-view-side {
        width: 0;
        display: none;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    #repository-view-main {
        min-width: 400px;
    }

    #repository-view-sub {
        display: flex;
        width: 50%;
        height: 100%;
        border-left: 3px solid var(--accent-card-light);
    }

    #repository-view-side {
        width: 0;
    }
}

@media only screen and (min-width: 1024px) {
    #repository-view-side {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        width: 25%;
        height: 100%;
        border-right: 3px solid var(--accent-card-light);
    }

    #repository-view-sub {
        display: flex;
        width: 35%;
        height: 100%;
        border-left: 3px solid var(--accent-card-light);
    }
}

#repository-view-main {
    display: flex;
    height: 100%;
    overflow-x: hidden;
    transition: all 0.3s;
}

#repository-view-sub {
    justify-content: center;
    flex-direction: column;
}

.link {
    color: teal;
    text-overflow: ellipsis;
    text-decoration: none;
}


