body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #111;
    position: relative;
    cursor: none;
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-stem-width, 4px);
    height: var(--cursor-height, 36px);
    background-color: white;
    pointer-events: none;
    transform-origin: 0% 0%;
    z-index: 9999;
}

#cursor-dot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--cursor-height, 36px);
    height: var(--cursor-stem-width, 4px);
    background-color: white;
}

#debug-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
    transform: translate(-50%, -50%); /* Center the dot on its coordinates */
    pointer-events: none;
    z-index: 10000; /* Highest z-index */
}

#dot-container {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.dot {
    position: absolute;
    width: var(--brick-width, 48px);
    height: var(--brick-height, 18px);
    background-color: transparent;
    border: 1px solid #4a4a4a;
    box-sizing: border-box;
    border-radius: 2px;
    transition: border-color 0.3s ease-out;
    will-change: transform;
}

.edge-bar {
    position: fixed;
    background-color: transparent;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, top 0.4s ease-in-out, bottom 0.4s ease-in-out, left 0.4s ease-in-out, right 0.4s ease-in-out;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.edge-bar.top {
    top: calc(var(--edge-bar-width, 80px) * -1);
    left: 0;
    width: 100%;
    height: var(--edge-bar-width, 80px);
}

.edge-bar.bottom {
    bottom: calc(var(--edge-bar-width, 80px) * -1);
    left: 0;
    width: 100%;
    height: var(--edge-bar-width, 80px);
}

.edge-bar.left {
    left: calc(var(--edge-bar-width, 80px) * -1);
    top: 0;
    width: var(--edge-bar-width, 80px);
    height: 100%;
}

.edge-bar.right {
    right: calc(var(--edge-bar-width, 80px) * -1);
    top: 0;
    width: var(--edge-bar-width, 80px);
    height: 100%;
}

.edge-bar.top.is-visible {
    top: 0;
    opacity: 1;
}

.edge-bar.bottom.is-visible {
    bottom: 0;
    opacity: 1;
}

.edge-bar.left.is-visible {
    left: 0;
    opacity: 1;
}

.edge-bar.right.is-visible {
    right: 0;
    opacity: 1;
}

.edge-bar.left, .edge-bar.right {
    flex-direction: column;
}

.menu-button {
    position: relative;
    width: var(--button-size, 24px);
    height: var(--button-size, 24px);
    background-color: var(--btn-bg, #555);
    border: 1px solid var(--btn-border, #777);
    border-radius: 4px;
    margin: var(--button-margin, 10px);
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--dock-animation-speed, 0.1s) ease-out;
    will-change: transform;
}

.menu-button:hover {
    filter: brightness(1.3);
}

.menu-button .tooltip {
    position: absolute;
    background-color: #222;
    color: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.menu-button:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.edge-bar.top .menu-button .tooltip {
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.edge-bar.bottom .menu-button .tooltip {
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.edge-bar.left .menu-button .tooltip {
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
}

.edge-bar.right .menu-button .tooltip {
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
} 