@font-face {
    font-family: "Code New Roman";
    src: url("../fonts/code-new-roman.regular.otf");
    ascent-override: 95%;
}

body {
    overflow: hidden;
}

#printer-widget {
    position: absolute;
    left: 10%;
    top: calc(50% - 70.5px);
    cursor: grab;
    z-index: 100;
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

#printer-widget-bg {
    background: url("../images/widget/widget.svg");
    background-repeat: no-repeat;
    width: 203px;
    height: 142px;
    user-select: none;
    pointer-events: none;
}

#printer-print-btn {
    position: absolute;
    left: 25px;
    top: 48px;
    width: 72px;
    height: 72px;
    background: hsl(210, 3%, 75%);
    border-radius: 50%;
    cursor: pointer;
}

#printer-print-btn:hover {
    background: hsl(210, 3%, 70%);
}

#printer-print-btn:active {
    background: hsl(210, 3%, 65%);
}

#printer-print-icon {
    background: url("../images/widget/power.svg");
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 100%;
    filter: invert();
}

#printer-blend-btns {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 3px;
    top: 50px;
    z-index: -1;
}

.printer-blend-btn {
    width: 10px;
    height: 36px;
    cursor: pointer;
    user-select: none;
}

.printer-blend-btn::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 36px;
    background: #d8d9da;
    border: 1px solid #414042;
    left: 0;
    transition: left 0.1s ease-in-out;
}

.printer-blend-btn:hover::before {
    left: 3px;
}

#printer-scrollers {
    position: absolute;
    left: 120px;
    top: 46px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.printer-scroller {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 29px;
    background: #bcbec0;
    border: 1.5px solid #414042;
    border-radius: 6px;
    font-family: "Code New Roman", sans-serif;
    font-size: 20px;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
}

.scroller-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 50% 50% at center, #ffffff 25%, #a8a8a8 100%);
    opacity: 0.5;
}

.scroller-options {
    display: flex;
    flex-direction: row;
}

.scroller-option {
    width: 25px;
    text-align: center;
}

canvas {
    display: block;
    image-rendering: pixelated;
}

#context-menu {
    position: absolute;
    width: 100px;
    top: 0;
    left: 0;
    visibility: hidden;
    background: #1f1f1f;
    border: 1px solid #e3e3e3;
    font-family: sans-serif;
    font-size: 13px;
    color: #e3e3e3;
    filter: drop-shadow(3px 3px 3px rgba(0, 0, 0, 0.2));
    z-index: 200;
    user-select: none;
    text-align: center;
}

.context-entry {
    padding: 8px 16px;
}

.context-entry:hover {
    background: #363635
}
