    body, html{
        margin: 0;
        padding: 0;
        overflow: hidden;
        height: 100%;
        width: 100%;
        user-select: none;
        font-family: sans-serif;
    }

    :root{
        --border-width: 1.5px;
    }


    /* USER INTERFACE */

    #ui{
        position: relative;
        z-index: 1;
    }
    button img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button{
        -webkit-appearance: none;
    }
    input[type=number]{
        -moz-appearance: textfield;
    }
    .HBox{
        display: flex;
        flex-direction: row;
        gap: 6px;
        padding: 0px;
        align-items: center;
    }
    .VBox{
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 0px;
        align-items: center;
    }
    #overlay{
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.3);
        z-index: 3;
    }

    #transformInfo{
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 0px;
        position: fixed;
        bottom: 1%;
        right: 1%;
        font-size: 12px;
        color: gray;
        pointer-events: none;
        z-index: 0;
    }

    /* DIALOG BOX DEFAULT */

    .dialogBox{
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 8px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        z-index: 4;
        font-size: 14px;
        background: rgba(217, 217, 217,1);
        border-radius: 8px;
        outline: 2px solid gray
    }
    .dialogBox .title{
        font-size: 20px;
        align-self: center;
        margin-top: -15px;
    }
    .dialogBox .header{
        font-size: 16px;
    }
    .dialogBox .errorMsg{
        font-size: 11px;
        margin-top: -5px;
        margin-bottom: -2px;
        color: red;
        visibility: hidden;
    }
    .dialogBox li{
        list-style-position: inside;
    }
    .dialogBox .x{
        border-radius: 50%;
        width: 20px;
        height: 20px;
        text-align: center;
        font-size: 12px;
        margin-top: -2px;
        margin-right: -2px;
        border-color: gray; 
        align-self: flex-end
    }

    /* CONTEXT MENU */

    #contextMenu{
        display: flex;
        flex-direction: column;
        gap: 2px;
        width: 200px;
        position: fixed;
        transform-origin: bottom left;
        background-color: rgba(220, 220, 220, .9);
        border-color: gray;
        border-radius: 2px;
        z-index: 2;
    }
    #contextMenu button{
        height: 20px;
        width: 100%;
        text-align: left;
        padding: 2px;
        margin-bottom: 2px;
        background: none;
        border: 1px solid gray;
        border-radius: 2px;
    }


    /* LAYERS PANEL  */

    #layersPanel{
        position: fixed;
        height: 391px;
        top: 50%;
        left: 1%;
        transform: translateY(-50%);
        background-color: rgba(179, 200, 232,0.75);
        border-radius: 4px;
        overflow-y: scroll;
        z-index: 0;
    }
    #layersPanel .layerTab{
        background: white;
        gap: 2px;
        padding: 2px;
        padding-top: 4px;
        padding-bottom: 4px;
        border-radius: 2px;
        font-size: 10px;
    }
    #layersPanel .layerTab input{
        width: 30px;
        height: 10px;
        font-size: 10px;
    }
    #layersPanel .layerTab button{
        font-size: 10px;
    }


    /* TOOLBARS */

    #mainToolbar{
        position: fixed;
        top: 1%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(179, 200, 232,0.75);
        border-radius: 4px;
        z-index: 1;
    }
    #mainToolbar button{
        height: 25px;
        padding-left: 5px;
        padding-right: 5px;
        white-space: nowrap;
    }
    #shapeOptions{
        position: absolute;
        left: 0px;
        top: 25px;
        background: white;
        outline: 1px dashed black;
        outline-offset: -1px;
        max-height: 107px;
        overflow-y: scroll;
        scrollbar-width: none;
    }
    #shapeOptions button{
        width: 20%;
        padding: 3px;
        border: 1px solid gray;
        background: none;
    }
    #shapeOptions button:hover {
        outline: 1.5px solid black;
        outline-offset: -1.5px;
    }

    #objectToolbar{
        position: fixed;
        top: 1%;
        left: 50%;
        transform: translateX(-50%) translateY(40px);
        background-color: rgba(179, 200, 232,0.75);
        border-radius: 4px;
        z-index: 0;
    }
    #objectToolbar button{
        height: 20px;
        padding-left: 5px;
        padding-right: 5px;
        white-space: nowrap;
        text-align: center;
    }
    #fontDropdown{
        position: absolute;
        left: 0px;
        top: 21px;
        background: white;
        outline-offset: -1px;
        outline: 1px dashed black;
        max-height: 107px;
        overflow-y: scroll;
        scrollbar-width: none;
    }
    #fontDropdown button{
        width: 113px;
        height: 20px;
        text-align: left;
        font-size: 12px;
        border: 1px solid gray;
        background: none;
    }


    /* SELECTION INDICATORS */

    #selector{
        position: absolute;
        top: 0px;
        left: 0px;
        width: 0px;
        height: 0px;
        display: none;
        z-index: 1;
    }
    #selectedBorder{
        position: absolute;
        top: 0px;
        left: 0px;
        width: 0px;
        height: 0px;
        outline: transparent;
        display: none;
        cursor: move;
        z-index: 3;
        pointer-events: none;
    }


    /* ALL HANDLES */

    .resizehandle{ /*child of #selectedBorder*/
        position: absolute;
        width: calc(var(--border-width)*8);
        height: calc(var(--border-width)*8);
        pointer-events: auto;
    }
    #topright {
        position: absolute;
        cursor: nesw-resize;
        top: calc(var(--border-width)*-5);
        right: calc(var(--border-width)*-5);
    }
    #top{
        position: absolute;
        cursor: ns-resize;
        top: calc(var(--border-width)*-5);
        left: 50%;
        transform: translateX(-50%);
    }
    #topleft{
        position: absolute;
        cursor: nwse-resize;
        top: calc(var(--border-width)*-5);
        left: calc(var(--border-width)*-5);
    }
    #left{
        position: absolute;
        cursor: ew-resize;
        top: 50%;
        left: calc(var(--border-width)*-5);
        transform: translateY(-50%);
    }
    #bottomleft{
        position: absolute;
        cursor: nesw-resize;
        bottom: calc(var(--border-width)*-5);
        left: calc(var(--border-width)*-5);
    }
    #bottom{
        position: absolute;
        cursor: ns-resize;
        bottom: calc(var(--border-width)*-5);
        left: 50%;
        transform: translateX(-50%);
    }
    #bottomright{
        position: absolute;
        cursor: nwse-resize;
        bottom: calc(var(--border-width)*-5);
        right: calc(var(--border-width)*-5);
    }
    #right{
        position: absolute;
        cursor: ew-resize;
        top: 50%;
        right: calc(var(--border-width)*-5);
        transform: translateY(-50%);
    }

    #rotationhandle{
        width: calc(var(--border-width)*8);
        height: calc(var(--border-width)*8);
        background-image: url("https://cdn-icons-png.flaticon.com/512/54/54529.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        position: absolute;
        cursor: grab;
        top: calc(var(--border-width)*-20);
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
        z-index: 2;
    }


    /* MAIN CANVAS ELEMENTS */

    #cameraLayer{
        width: 0px;
        height: 0px;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 0;
    }
    #world{
        width: 0px;
        height: 0px;
        position: relative;
    }
    #worldBackground{
        position: relative;
        background: white;
        outline: none;
        z-index: 0;
        transform-origin: center;
    }
    #layers{
        position: absolute;
        left: 0px;
        top: 0px;
        height: 0px;
        width: 0px;
        z-index: 2;
    }
    #layers .layer{
        position: absolute;
        left: 0px;
        top: 0px;
        height: 0px;
        width: 0px;
        will-change: transform;
    }
    #layers .layer .layerBorder{
        position: absolute;
        background: none;
        outline: calc(var(--border-width)*2) solid black;
        transform-origin: center;
        pointer-events: none;
        z-index: 0;
    }


    /* ALL OBJECTS */

    .object{
        position: absolute;
        transform-origin: 0 0;
    }
    .object:hover:not(.selected):not(:focus){
        outline: calc(var(--border-width)*2) solid #6a9beb;
    }
    .selected, .object:focus{
        outline: calc(var(--border-width)*2) solid #1c59ba;
    }
    .object img{
        width: 100%;
        height: 100%;
        object-fit: fill;
        display: block;
    }
    .textbox{
        padding: 10px;
        min-width: 10px;
        max-width: 200px;
        display: block;
        box-sizing: border-box;
    }
    .textbox div{
        padding: 0px;
        width: 100%;
        height: 100%;
        overflow-wrap: break-word;
        display: block;
        box-sizing: border-box;
        font-size: 12px;
        outline: none;
        color: rgb(.01,.01,.01); /*prevents black text from becoming text nodes. Everything will be wrapped in <font color="#rrggbb"></font>*/
    }
    .circle{
        width: 100%;
        height: 100%;
        border-radius: 50%;
    }
    .rectangle{
        width: 100%;
        height: 100%;
    }
    .polygon{
        width: 100%;
        height: 100%;
    }