body {
    margin: 0;
    background-color: whitesmoke;
    --is-current-scale: 1;
    --is-pulse-duration: 2s;
    --is-appear-duration: 0.25s;
    --is-icon-color: #fff;
}

:not(:root):fullscreen::backdrop {
    position: fixed;
    /* inset: 0px; */
    background: whitesmoke;
}

.is-loader {
    position: absolute;
    /* Position the loader on top of the container */
    display: none;
    /* Hidden by default */
    z-index: 1000;
    /* Ensure it's on top of other elements */
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent background */
    background-image: url("./assets/to-loader.svg");
    background-repeat: no-repeat;
    /* Prevent the image from repeating */
    background-position: center;
    /* Center the image horizontally and vertically */
    background-size: 50px 50px;
    /* Set the size of the image (adjust as needed) */
}

.svgContainer {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    right: 2px;
    overflow: hidden;
}

.is-fade-out {
    animation: fadeOut 0.5s ease forwards;
    animation-iteration-count: 1;
}

.is-fade-in {
    animation: fadeIn 0.5s ease forwards;
    animation-iteration-count: 1;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseOpacity {
    0% {
        stroke-opacity: 0;
    }

    50% {
        stroke-opacity: 1;
    }

    100% {
        stroke-opacity: 0;
    }
}

.is-normal {
    fill: gray;
    fill-opacity: 0;
    filter: drop-shadow(0 0 0px rgba(0, 136, 204, 0));
    /* No glow initially */
    transition: filter 0.5s ease, fill-opacity 0.5s ease;
    /* Smooth transition for both filter and opacity */
}

.is-normal:hover {
    fill-opacity: 0.3;
    /* Slightly change opacity on hover */
    fill: #08c;
    /* Change the fill color */
    cursor: pointer;
    /* Change cursor to pointer */
    filter: drop-shadow(0 0 6px rgba(0, 136, 204, 0.8));
    /* Full glow on hover */
}

.is-selected,
.is-selected:hover,
.is-normal[data-selected="true"],
.is-normal[data-selected="true"]:hover {
    fill-opacity: 0.7 !important;
    fill: #f80 !important;
    cursor: pointer;
    mix-blend-mode: multiply;
    animation: none;
    filter: none;
}

.is-link {
    stroke: #08c;
    stroke-width: 2px;
    stroke-dasharray: 6px 4px;
    animation: strokePulse 300ms 3;
    /* transition: stroke-opacity 0.5s ease; */
}

.is-error {
    stroke: red;
    animation: strokePulse 2s infinite;
}

@keyframes strokePulse {
    0% {
        stroke-width: 1px;
        stroke-opacity: 0.2;
    }

    50% {
        stroke-width: 3px;
        stroke-opacity: 1;
    }

    100% {
        stroke-width: 1px;
        stroke-opacity: 0.2;
    }
}

.info-box {
    font: 12px/20px "Helvetica Neue", Arial, Helvetica, sans-serif;
    position: absolute;
    width: 25%;
    top: 0;
    right: 0;
    padding: 10px;
}

.info-box .info-box-inner {
    background-color: #fefefe;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}

.example-buttons {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px;
}

.info-box h2 {
    line-height: 24px;
    display: block;
    margin: 0 0 10px;
}

button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.25s;
}

button:disabled {
    cursor: no-drop;
}

button:focus,
button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
}

.sketch-delete-btn {
    position: absolute;
    top: 9px;
    right: 9px;
    background-color: #ffffff;
    padding: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    border: 1px solid #f1f1f1;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 1px 3px 10px rgb(0, 0, 0, 0.1);
}

#sketch-title {
    position: fixed;
    z-index: 1041;
    background: rgba(228, 228, 228, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 10px 0 100px;
    left: 0;
    right: 0;
    top: 46px;
}

#sketch-toolbar {
    height: calc(100vh - 46px);
    position: fixed;
    top: 46px;
    left: 0;
    z-index: 1043;
    background-color: #fff;
    border-right: 1px solid #eee;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    overflow: scroll;
    scrollbar-width: none;
}

#sketch-toolbar::-webkit-scrollbar {
    display: none;
}

#sketch-toolbar button {
    width: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    gap: 8px;
    border: none;
    outline: none;
    border-radius: 0;
    padding: 12px 8px;
    transition: background-color 0.3s ease-out;
}

#sketch-toolbar button.active {
    background-color: #badced;
}

#sketch-toolbar button.active:hover {
    background-color: #badced;
}

#sketch-toolbar button i {
    color: #606060;
    transition: color 0.3s ease-out;
}

#sketch-toolbar button small {
    color: #909090;
}

#sketch-toolbar button:hover {
    background-color: #f0f0f0;
}

#sketch-toolbar button:hover i {
    color: #404040;
}

#sketch-toolbar-box,
#sketch-edit-box {
    width: 350px;
    background-color: #ffffff;
    padding: 15px;
    height: calc(100vh - 46px);
    position: fixed;
    top: 46px;
    z-index: 1042;
}

#sketch-toolbar-box {
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transform: translateX(-200%);
    transition: transform 0.5s ease-out;
}

#sketch-edit-box {
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    right: -100%;
    box-sizing: border-box;
    overflow: auto;
    transition: right 0.5s ease-out;
}

#sketch-edit-box .popover {
    max-width: 310px;
}

#sketch-toolbar-box.visible,
#sketch-edit-box.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#sketch-toolbar-box.visible {
    left: 86px;
    right: 0;
    transform: translateX(0%);
}

#sketch-edit-box.visible {
    right: 0;
}

@keyframes blinkColor {

    0%,
    100% {
        fill: #68ade1;
    }

    50% {
        fill: white;
    }
}

.sketch-interactive .is-normal {
    fill-opacity: 0.3;
    animation: blinkColor 2s infinite alternate ease-in-out;
}

.sketch-interactive .is-selected {
    fill-opacity: 0.7;
    fill: #f80;
    animation: none;
}

#edit-mode-close .icon-remove {
    background-color: transparent;
    color: #08c;
}

.custom-popover {
    position: absolute;
    background: #FFF;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    z-index: 300;
    max-width: 300px;
    transform: translateX(-50%);
}

.custom-popover::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #FFF transparent transparent transparent;
}

@media only screen and (max-width: 979px) {

    #sketch-toolbar,
    #sketch-toolbar-box,
    #sketch-edit-box {
        height: calc(100vh - 38px);
    }

    #sketch-toolbar,
    #sketch-title,
    #sketch-toolbar-box,
    #sketch-edit-box {
        top: 38px;
    }
}

:root {
    --marker-text-color: white;
    --marker-base-color: #08c;
}

svg [id^="marker-count-"] {
    font-family: Open Sans, Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-anchor: middle;
    fill: var(--marker-text-color, white);
    stroke: none;
    font-size: 24pt;
}

body {
    --is-current-scale: 1;
    --is-pulse-duration: 2s;
    --is-appear-duration: 0.25s;
    --is-icon-color: #fff;
}

@font-face {
    font-family: TAwesome;
    src: url(../font/TAwesome.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}

svg use.marker {
    animation: scaleUp var(--is-appear-duration, 0.2s) ease-out forwards;
    transform-origin: var(--transform-origin);
    transform: scale(0);
}

svg use.marker.pulsing {
    animation: scaleUp var(--is-appear-duration, 0.2s) ease-out forwards, scalePulse var(--is-pulse-duration, 1.5s) ease-in-out var(--is-appear-duration, 0.2s) infinite;
    transform-origin: var(--transform-origin);
}

svg use.marker:hover {
    cursor: pointer;
}

svg text.marker {
    x: 50%;
    y: 60%;
}

svg text.marker,
use.marker {
    -webkit-user-select: none;
    user-select: none;
    font-family: TAwesome;
    font-weight: 400;
    font-style: normal;
    text-decoration: inherit;
    -webkit-font-smoothing: antialiased;
    text-anchor: middle;
    fill: var(--is-icon-color, #fff);
    text-rendering: geometricPrecision;
}

svg text.tooltip-text {
    -webkit-user-select: none;
    user-select: none;
    font-family: Open Sans, Arial, Helvetica, sans-serif;
    text-anchor: middle;
    text-rendering: geometricPrecision;
    font-size: 10px;
}

@keyframes scaleUp {
    to {
        transform: scale(calc(1 / var(--is-current-scale, 1)));
    }
}

@keyframes scalePulse {

    0%,
    to {
        transform: scale(calc(1 / var(--is-current-scale, 1)));
    }

    50% {
        transform: scale(calc(1.3 / var(--is-current-scale, 1)));
    }
}

:root {
    --crossfade-duration: 0.3s;
    --crossfade-scale: 0.3;
}

.svg-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(var(--crossfade-scale, 0.5));
    transition: opacity var(--crossfade-duration) ease-in-out, transform var(--crossfade-duration) ease-in-out;
}

.svg-wrapper.active {
    opacity: 1;
    transform: scale(1);
}

.hidden {
    visibility: hidden;
    pointer-events: none;
}

#sketch-modal-backdrop {
    z-index: 1041;
}