*{
    overflow: hidden;
}
    body {
        margin: 0;
        padding: 0;
        background-color: #282828;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }

    #topbar {
        background-color: #535353;
        width: 100%;
        height: 36px;
        border-bottom: 2px solid #383838;
        display: flex;
        padding-left: 8px;
    }
    #tool-option-bar{
        background-color: #535353;
        width: 100%;
        height: 40px;
        border-bottom: 2px solid #383838;
        display: flex;
        padding-left: 8px;
    }
    #footbar {
        background-color: #535353;
        width: 100%;
        height: 32px;
        border-top: 2px solid #383838;
        display: flex;
        color: #D6D6D6;
        font-size: small;
        gap: 6px;
    }
    #footbar button{
        font-size: smaller;
        color: #D6D6D6;
    }
    #footbar span{
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #scale-radio{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: #454545;
    }
    #scale-radio input{
        width: 100px;
        height: 6px;
    }

    fui-menubutton {
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        padding: 2px 8px;
        margin: 4px 4px;
    }

    #topbar fui-menubutton:hover {
        background-color: rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }
    #tool-option-bar fui-menubutton:hover {
        background-color: rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }
    #app {
        display: flex;
        flex: 1;
    }

    * {
        box-sizing: border-box;
        user-select: none;
    }

    #toolbar {
        height: 100%;
        width: 42px;
        background-color: #535353;
        padding: 4px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        justify-content: flex-start;
        border-right: 2px solid #474747;
        border-left: 2px solid #474747;
    }
    #toolbar button {
        background: transparent;
        border: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: hsl(0, 0%, 100%);
        aspect-ratio: 1/1;
    }

    #toolbar button.active {
        background-color: rgba(0, 0, 0, 0.4) !important
    }

    #toolbar button:hover {
        background-color: rgba(0, 0, 0, 0.3);
        cursor: pointer;
    }

    .placeholder {
        flex: 1;
    }

    canvas {
        display: inline-block;
        touch-action: none;
        user-select: none;
        cursor: crosshair;
        image-rendering: pixelated;
    }

    #right {
        flex: 1;
        height: 100%;
        overflow: none;
        display: flex;
        flex-direction: column;

    }
    #image{
        flex: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100%;
        position: relative;
    }

    #main-canvas {
        position: absolute;
        cursor: none !important;
    }

    #debug {
        position: absolute;
        top: 0;
        right: 0;
        color: white;
        word-wrap: none;
        white-space: nowrap;
        width: 50%;
        display: inline;
        pointer-events: none;
        text-shadow: 0 0 2px black;
    }

    #title-bar {
        background-color: #535353;
        width: 100%;
        height: 48px;
        border-bottom: 2px solid #383838;
        display: flex;
        padding-left: 8px;
        color: white;
        ;
        align-items: center;
        padding-left: 16px;
    }

    .pop-up-list {
        position: absolute;
        background-color: #535353;
        border: 2px solid #383838;
        border-radius: 4px;
        padding: 8px;
        flex-direction: column;
        gap: 8px;
        z-index: 9999;
        color: white;
        width: 150px;
        height: max-content;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .pop-up-list .option {
        padding: 4px 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        cursor: pointer;
        width: 100%;
    }

    .pop-up-list .option:hover {
        background-color: #3A3A3A;
    }