@font-face {
    font-family: "riforma-regular";
    src: url("./assets/fonts/RiformaMuseum-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "riforma-bold";
    src: url("./assets/fonts/RiformaMuseum-Bold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    display: flex;
    height: 100%;
    overflow: hidden;
    font-family: "riforma-regular", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    user-select: none;
}

html {
    touch-action: manipulation;
    -webkit-text-size-adjust: none;
    height: 100%;
}

#sidebar {
    width: 20%;
    background: #f4f4f4;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    height: calc(100% - 80px);
    margin-top: 80px;
}

#sidebar-body {
    padding: 0px;
    padding-top: 40px;
    height: 100%;
    width: calc(100% - 11px);
    min-height: 200px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

#sidebar-body svg {
    margin-bottom: 40px;
}

#sidebar-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

#sidebar img {
    margin-bottom: 10px;
    width: 100%;
    cursor: grab;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
}

button {
    background: white;
    padding: 8px 20px;
    height: 48px;
    border-radius: 24px;
    font-size: 18px;
    border: none;
    color: black;
    cursor: pointer;
    font-family: "riforma-regular", sans-serif;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.2s ease;
}

#clearButton {
    position: absolute;
    bottom: 27px;
    left: 27px;
}

#main {
    position: relative;
    flex: 1;
    height: calc(100% - 80px);
    margin-top: 80px;
    overflow: hidden;
    /* background-color: #f9f9f9; */
    background-image: linear-gradient(
            rgba(200, 200, 200, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(200, 200, 200, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

#main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWDg4N3d3dtbW17e3t1dXWBgYGHh4d5eXlzc3OLi4ubm5uVlZWPj4+NjY19fX2JiYl/f39ra2uRkZGZmZlpaWmXl5dvb29xcXGTk5NnZ2c8TV1mAAAAG3RSTlNAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEAvEOwtAAAFVklEQVR4XpWWB67c2BUFb3g557T/hRo9/WUMZHlgr4Bg8Z4qQgQJlHI4A8SzFVrapvmTF9O7dmYRFZ60YiBhJRCgh1FYhiLAmdvX0CzTOpNE77ME0Zty/nWWzchDtiqrmQDeuv3powQ5ta2eN0FY0InkqDD73lT9c9lEzwUNqgFHs9VQce3TVClFCQrSTfOiYkVJQBmpbq2L6iZavPnAPcoU0dSw0SUTqz/GtrGuXfbyyBniKykOWQWGqwwMA7QiYAxi+IlPdqo+hYHnUt5ZPfnsHJyNiDtnpJyayNBkF6cWoYGAMY92U2hXHF/C1M8uP/ZtYdiuj26UdAdQQSXQErwSOMzt/XWRWAz5GuSBIkwG1H3FabJ2OsUOUhGC6tK4EMtJO0ttC6IBD3kM0ve0tJwMdSfjZo+EEISaeTr9P3wYrGjXqyC1krcKdhMpxEnt5JetoulscpyzhXN5FRpuPHvbeQaKxFAEB6EN+cYN6xD7RYGpXpNndMmZgM5Dcs3YSNFDHUo2LGfZuukSWyUYirJAdYbF3MfqEKmjM+I2EfhA94iG3L7uKrR+GdWD73ydlIB+6hgref1QTlmgmbM3/LeX5GI1Ux1RWpgxpLuZ2+I+IjzZ8wqE4nilvQdkUdfhzI5QDWy+kw5Wg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8JxjZsmxxy5+4w9CDNJY09T072iKG0EnOS0arEYgXqYnXcYHwjTtUNAcMelOd4xpkoqiTYICWFq0JSiPfPDQdnt+4/wuqcXY47QILbgAAAABJRU5ErkJggg==");
    opacity: 0.03;
    pointer-events: none;
}

.draggable {
    position: absolute;
    transform-origin: center;
    touch-action: none;
    user-select: none;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    /* image-rendering: crisp-edges; */
    image-rendering: pixelated;
    /* shape-rendering: crispEdges; */
}

.draggable-source {
    opacity: 1;
    transition: opacity 0s;
    position: relative;
    touch-action: none;
    user-select: none;
}

.dragging-clone {
    pointer-events: none;
    opacity: 1;
    filter: drop-shadow(2px -2px 5px rgba(0, 0, 0, 0.5));
    will-change: transform;
    backface-visibility: hidden;
}

#trash-container {
    position: absolute;
    bottom: 1px;
    right: 10px;
    z-index: 9999;
}

.trash-icon {
    font-size: 45px;
    cursor: help;
    padding: 20px;
    width: 45px;
    transition: transform 0.2s ease;
}

.trash-hover {
    transform: scale(1.2);
    opacity: 0.8;
}

#app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: #ffffff;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 110px;
    z-index: 1000;
}

#logo {
    height: 53px;
}

.os-scrollbar {
    --os-size: 15px; /* Width of the scrollbar */
    --os-padding-perpendicular: 0px; /* Padding on the sides */
    --os-padding-axis: 0px; /* Padding on top/bottom */
    --os-track-border-radius: 0px; /* Rounded corners of track */
    --os-handle-border-radius: 0px; /* Rounded corners of handle */
    --os-handle-bg: #323232; /* Handle color */
    --os-handle-bg-hover: #666; /* Handle color on hover */
    --os-handle-bg-active: #454545; /* Handle color when clicked */
    --os-track-bg: rgba(0, 0, 0, 0.1); /* Track background */
}

.draggable-source.dragging {
    opacity: 0;
    transition: none;
}

.draggable-source:not(.dragging) {
    transition: opacity 0.3s ease-in-out;
}

.language-button svg {
    padding-left: 5px;
    width: 12px;
    height: 12px;
    transform: translate(2px, 1px);
    display: none;
}

.lang-arrow {
    font-size: 0.8em;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

#info-panel {
    position: fixed;
    /* top: 60px; */
    right: -450px;
    width: 450px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000000;
    padding: 15px;
    box-sizing: border-box;
    font-size: 18px;
    overflow: auto;
}

#info-panel a {
    color: #000;
}

#info-panel .impressum {
    font-size: 14px;
}

#info-panel.open {
    right: 0;
}

.close-info {
    position: fixed;
    top: 15px;
    right: 15px;
    /* background: none; */
    /* border: none; */
    /* font-size: 20px; */
    cursor: pointer;
    padding: 11px 17px 8px 17px;
}

.close-info:hover {
    background: #f0f0f0;
    border-radius: 50%;
}

.close-info svg {
    width: 15px;
}

h2 {
    font-size: 24px;
    font-family: "riforma-bold", sans-serif;
    margin-top: 60px;
}

h3 {
    font-size: 18px;
    font-family: "riforma-bold", sans-serif;
    margin-top: 40px;
}

svg {
    /* cursor: grab; */
    pointer-events: all;
    /* touch-action: none; */
    /* user-select: none; */
    width: 100%;
    height: auto;
    /* shape-rendering: crispEdges; */
    text-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
    /* image-rendering: crisp-edges; */
    -ms-interpolation-mode: nearest-neighbor;
}

svg g {
    cursor: grab;
    pointer-events: all;
    touch-action: none;
    user-select: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

svg g.dragging {
    opacity: 0;
    transition: none;
}

.poof-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    z-index: 9999;
    pointer-events: none;
    transform-origin: center;
}

.poof-sprite {
    width: 100%;
    height: 100%;
    background-image: url("./images/Poof.png");
    background-repeat: no-repeat;
    background-size: auto 100%;
}

.tooltip {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.tooltip-arrow {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid rgba(0, 0, 0, 0.8);
    filter: drop-shadow(-3px 0px 2px rgba(0, 0, 0, 0.2));
}

.tooltip-content {
    white-space: nowrap;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

#device-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100000000;
    padding: 20px;
    box-sizing: border-box;
}

#device-warning h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

#device-warning p {
    font-size: 18px;
    max-width: 600px;
    line-height: 1.5;
    margin-bottom: 30px;
}

#device-warning img {
    max-width: 150px;
    margin-bottom: 30px;
}

@media (min-width: 768px) and (min-height: 600px) and (pointer: coarse) {
    #device-warning {
        display: none;
    }
}

* {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version */
}

.simplebar-scrollbar:before {
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    border-radius: 0px;
    opacity: 1 !important;
    background: #323232;
}

.simplebar-track.simplebar-vertical {
    background: #e7e7e7;
}
