html,
body,
#root {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    height: 100%;
    background-color: #f8f9fa;
}

.menu {
    --s: 20px;
    /* control the size */
    --c: rgb(54, 54, 54);
    /* the color */
    height: var(--s);
    aspect-ratio: 1;
    border: none;
    padding: 0;
    border-inline: calc(var(--s)/2) solid #0000;
    box-sizing: content-box;
    --_g1: linear-gradient(var(--c) 20%, #0000 0 80%, var(--c) 0) no-repeat content-box border-box;
    --_g2: radial-gradient(circle closest-side at 50% 12.5%, var(--c) 95%, #0000) repeat-y content-box border-box;
    background: var(--_g2) left var(--_p, 0px) top, var(--_g1) left calc(var(--s)/10 + var(--_p, 0px)) top, var(--_g2) right var(--_p, 0px) top, var(--_g1) right calc(var(--s)/10 + var(--_p, 0px)) top;
    background-size: 20% 80%, 40% 100%;
    position: relative;
    clip-path: inset(0 25%);
    -webkit-mask: linear-gradient(90deg, #0000, #000 25% 75%, #0000);
    mask: linear-gradient(90deg, #0000, #000 25% 75%, #0000);
    cursor: pointer;
    transition: background-position .3s var(--_s, .3s), clip-path 0s var(--_s, .6s);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.menu:before,
.menu:after {
    content: "";
    position: absolute;
    border-radius: var(--s);
    inset: 40% 0;
    background: var(--c);
    transition: transform .3s calc(.3s - var(--_s, .3s));
}

.menu:checked {
    clip-path: inset(0);
    --_p: calc(-1*var(--s));
    --_s: 0s;
}

.menu:checked:before {
    transform: rotate(45deg);
}

.menu:checked:after {
    transform: rotate(-45deg);
}

.menu:focus-visible {
    clip-path: none;
    -webkit-mask: none;
    mask: none;
    border: none;
    outline: 2px solid var(--c);
    outline-offset: 5px;
}

img {
    box-shadow: none;
}

img:focus {
    outline: none;
    box-shadow: none;
    user-select: none;
}

.arc-container {
    position: relative;
    width: 300px;
    /* Adjust width as needed */
    height: 150px;
    /* Half height for the arc effect */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: 0 100%;
    /* Set the pivot point for rotation */
    font-size: 24px;
    /* Size of the icon */
}

.icon-button::selection {
    background: none;
}

#icon-container .selected-icon {
    border: 3px solid #fff;
    border-radius: 50%;
}

#app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#header {
    background-color: #f8f9fa;
    padding: 25px 15px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header nav>* {
    margin: 0 10px;
}

#logo {
    max-width: 60px;
}

#login {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    flex: 1;
}

#login #logo {
    max-height: 20vh;
}

#login form {
    justify-content: center;
    display: flex;
    flex-flow: column;
    align-items: center;
}

#login form input {
    padding: 14px 7px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #767676;
}

.fade-enter {
    opacity: 0;
}

.fade-enter-active {
    opacity: 1;
    transition: opacity 300ms;
}

.fade-exit {
    opacity: 1;
}

.fade-exit-active {
    opacity: 0;
    transition: opacity 300ms;
}

.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
}

.confirm-dialog {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#dashboard {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: 100%;
}

#dashboard-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
    overflow-x: scroll;
    padding-bottom: 100px;
}

#dashboard-content #tags {
    display: flex;
    flex-flow: column;
    width: 100%;
}

#content-container {
    display: flex;
    width: 100%;
    flex: 1;
    padding: 25px;
    box-sizing: border-box;
    overflow: auto;
}

#motive-container::-webkit-scrollbar {
    display: none;
}


/* Scrollbar Track */

#scrollable-content::-webkit-scrollbar {
    width: 10px;
    /* width for vertical scrollbar */
}


/* Scrollbar Handle */

#scrollable-content::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}


/* Scrollbar Handle on Hover */

#scrollable-content::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}


/* Scrollbar Track */

#scrollable-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#tags-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px 3px;
}

button.negative {
    background-color: #dc3545;
}

button.menu-button {
    background-color: #767676;
    display: flex;
    justify-content: space-between;
}

#edit-tags {
    display: flex;
    flex-direction: row;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.tag-tree {
    padding: 0px 10px;
    display: flex;
    flex-flow: column;
    border: #767676 1px solid;
    border-radius: 5px;
    margin: 10px 5px;
    width: 100%;
    font-size: 14px;
}

.tag-tree>div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.wheel {
    position: fixed;
    align-self: center;
    bottom: 0;
    z-index: 99;
    transform-origin: 50% 100%;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
    animation: 2s cubic-bezier(0.19, 1, 0.22, 1) 0s 1 rotateFromBottomMiddle;
}

#home-logo {
    position: fixed;
    align-self: center;
    bottom: 3vh;
    max-height: 13vh;
    z-index: 1;
    animation: 2s cubic-bezier(0.19, 1, 0.22, 1) 0s 1 slideInFromBottom;
}

#dashboard-content #tags {
    display: flex;
    flex: 1;
}

#create-tag input,
#create-tag select {
    padding: 14px 7px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #767676;
}

#create-tag form {
    display: flex;
    align-items: center;
}

#dashboard-sidebar {
    display: flex;
    flex-direction: column;
    width: 300px;
    background-color: #f8f9fa;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

#dashboard-sidebar nav {
    display: flex;
    flex-flow: column;
}

.wheel.spin {
    animation: 1s cubic-bezier(0.19, 1, 0.22, 1) 0s 1 rotateClockwise;
}

.wheel.shrink {
    transform: scale(0);
}

#wheel-trigger-container {
    position: fixed;
    bottom: calc(50% - 100px);
    right: -100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    background-color: #767676;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 50px;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.hide {
    transform: translateX(100%);
}

#wheel-trigger {
    z-index: 999;
    font-size: 100px;
}

#mobile-home-logo {
    position: fixed;
    bottom: calc(50% - 50px);
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    width: 100px;
    height: 100px;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
}

#pages {
    width: 100%;
    display: flex;
}

#pages .badge {
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 5px;
}

#pages #badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
}

#pages #thumbnails {
    display: flex;
    flex-direction: row;
}

#pages .image-item {
    display: flex;
    flex-direction: column;
}

#thumbnails img {
    width: 150px;
    height: 150px;
    margin: 10px;
    border-radius: 5px;
}

#language-selector {
    list-style: none;
    display: flex;
    padding: 0;
}

#language-selector li {
    margin-right: 15px;
    cursor: pointer;
}

#create-page-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#create-page-form section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#create-page-form input,
#create-page-form textarea {
    padding: 14px 7px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #767676;
}

#select-page ul li {
    display: flex;
    align-items: center;
}

.react-tabs {
    align-self: flex-start;
    width: 100%;
}

.react-tabs img {
    margin: 10px;
    margin-left: 0px;
}

.icon-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-uploader input[type="file"] {
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.icon-uploader button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.icon-uploader button:hover {
    background-color: #45a049;
}

.custom-file-upload {
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

.custom-file-upload:hover {
    background-color: #ddd;
}

#edit-tag input,
#edit-tag select {
    padding: 14px 7px;
    margin: 10px;
    border-radius: 5px;
    border: 1px solid #767676;
}

#edit-tag label {
    margin: 10px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 0px;
}

span.button {
    color: #007bff;
    font-size: 0.875rem;
    font-family: "Montserrat", "Helvetica", "Arial", sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

@media(max-width: 1600px) {
    #home-logo {
        max-height: 10vh;
        bottom: 1vh
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotateFromBottomMiddle {
    0% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes rotateClockwise {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-180deg);
    }
}

@keyframes hideToTheRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

@media(max-width: 1024px) {
    .wheel {
        justify-self: center;
        right: 0;
        bottom: 50%;
        transform-origin: 100% 50%;
    }
    #home-logo {
        display: none;
    }
}