:root {
    --bg: #22272E;
    --border: #555b63;
    --sidebar-main: #444e5c;
    --sidebar-content: #2f3742;
    --nav: #353e49;
    --white: #f0f0f0;
    --text: #8a8a8a;
    --whitehovered: #cecece;
    --whitetransparent: #f0f0f01f;
    --whitetransparent-light: #f0f0f00e;
    --column-bg: #303741;
    --table-row-1: #303741;
    --table-row-1: #3b4450;
    --add-button: #0682d4;
    --remove-button: #ec0e0e;
    --generic-button: #38404b;
}

a {
    text-decoration: none;
}

body {
    background: var(--bg);
    padding: none;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 5rem);
    height: 4rem;
    position: fixed;
    overflow: hidden;
    background: var(--nav);
    margin-left: 5rem;
}

nav>div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0rem 3rem;
}

nav h1 {
    font-family: sans-serif;
    color: var(--text);
    font-weight: 600;
    font-size: 24px;
}

.main {
    display: flex;
    flex-direction: row;
    height: auto;
}

.sidebar {
    display: flex;
    justify-content: space-between;
    width: 20rem;
    height: 100vh;
    position: fixed;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 5rem;
    overflow: hidden;
}

.sidebar-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--sidebar-main);
    width: 3rem;
    height: 100vh;
    position: absolute;
    padding: 0 1rem;
    border-right: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
}

.sidebar-main>div {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
}

.sidebar-main-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 24px;
    transition: all 300ms ease;
    width: 3rem;
    height: 3rem;
    border-radius: 18px;
}

.sidebar-main-icon:hover {
    color: var(--whitehovered);
    background: var(--whitetransparent);
}

.show-menu {
    transition: all 300ms ease;
    transform: rotate(180deg);
}

.sidebar-content {
    background: var(--sidebar-content);
    width: 15rem;
    margin-left: 5rem;
    margin-top: 4rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 1);
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Style the scrollbar */
.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sidebar-content::-webkit-scrollbar-button {
    display: none;
}

.sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: var(--bg) transparent;
}

.sidebar-content:hover {
    scrollbar-width: thin;
    scrollbar-color: var(--bg) transparent;
}

.sidebar-content::-moz-scrollbar-button {
    display: none;
}

.sidebar-content h1 {
    display: flex;
    align-items: center;
    justify-content: left;
    margin: 0 24px;
    color: var(--white);
    font-family: sans-serif;
    font-size: 18px;
    height: 36px;
    white-space: nowrap;
}

.sidebar-content h2 {
    color: var(--text);
    font-family: sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    white-space: nowrap;
    font-weight: 400;
    margin: 4px 24px;
    border-radius: 12px;
    transition: all 300ms ease;
}

.sidebar-content button:hover,
.sidebar-content h2:hover {
    color: var(--white);
    background: var(--whitetransparent-light);
    margin: 4px 24px;
    border-radius: 12px;
    padding: 8px 12px;
}

.sidebar-content h3 {
    color: var(--white);
    font-family: sans-serif;
    font-size: 16px;
    padding: 8px 12px;
    white-space: nowrap;
    font-weight: 600;
    background: var(--whitetransparent);
    margin: 4px 24px;
    border-radius: 12px;
}

.translated {
    transform: translateX(0rem);
}

.rotated {
    transition: all 0.3s ease;
    transform: rotate(180deg);
}

.main-content {
    margin-top: 4rem;
    margin-left: 20rem;
    padding: 1rem;
    width: calc(100% - 5rem);
    max-width: 150rem;
    background: var(--bg);
    transition: margin-left 0.3s ease;
    overflow: hidden;
}

.main-content h1 {
    font-family: sans-serif;
    color: var(--white);
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.main-content h2 {
    font-family: sans-serif;
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.main-content.collapsed {
    margin-left: 5rem;
    width: calc(100% - 5rem);
}

.columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: calc(100% - 2rem);
    padding: 1rem;
    flex-wrap: wrap;
}

.column-4-3,
.column-4,
.column-3,
.column-3-2,
.column-2,
.column-1 {
    display: flex;
    flex-direction: column;
    height: auto;
}

.box {
    margin: 8px;
    background: var(--column-bg);
    padding: 16px;
    min-height: 5rem;
    height: auto;
    width: calc(100% - 48px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    border-radius: 12px;
}

.column-1 {
    width: 100%;
}

.column-2 {
    width: 50%;
}

.column-3 {
    width: 33.33333333333%;
}

.column-3-2 {
    width: 66.66666666666%;
}

.column-4 {
    width: 25%;
}

.column-4-3 {
    width: 75%;
}

.buttons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: right;
}

.buttons button {
    color: var(--white);
    background-color: var(--generic-button);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
    transition: all 300ms ease;
}

.buttons button:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}


.buttons .add {
    background-color: var(--add-button);
}

.buttons .ban {
    background-color: var(--remove-button);
}

.buttons .post {
    background-color: var(--generic-button);
}

.top-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    height: 54px;
    width: calc(100% + 2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(1px);
}

.modal-content {
    background-color: var(--column-bg);
    margin: 160px auto;
    padding: 20px;
    border: 1px solid var(--border);
    width: 30%;
    height: auto;
    border-radius: 12px;
    min-height: 20rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
    opacity: 1;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal h1 {
    margin: 0;
    color: var(--white);
    font-family: sans-serif;
}

.modal h2 {
    margin: 0;
    color: var(--text);
    font-family: sans-serif;
    font-size: medium;
}

.modal textarea,
.modal input,
.modal select {
    font-family: sans-serif;
    color: var(--white);
    background-color: var(--bg);
    border: 1px solid var(--border);
    padding: 8px;
    border-radius: 8px;
    box-shadow: inset 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.modal textarea {
    width: calc(100% - 20px);
    height: 20rem;
    resize: none;
}

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

.modal-divider {
    height: 1px;
    width: calc(100% - 20px);
    margin: 10px;
    background-color: var(--border);
}