﻿html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

.openseadragon-container .openseadragon-canvas +div{
    left: 8px !important;
    top: 16px !important;
}

* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

*:focus{
  outline: none;
}

/*default light*/
:root{
  background-color: #F2F2F6;
  --bg-color: #F2F2F6;
  --text-color: black;
}

@media (prefers-color-scheme: dark) {
    :root {
      --bg-color: #141414;
      background-color: #141414;
      --text-color: #f0f0f0;
    }
  }

/* OpenSeadragon container (id is configurable); ensure full size when used full screen */
#viewer_container{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* OpenSeadragon internal container should also stretch */
.openseadragon-container,
.openseadragon-container > canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Existing styles */
.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    z-index: 100;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

textarea, input[type="number"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none;
}

/* Overlay canvas follows viewer size and sits on top without blocking OSD input */
canvas {
    pointer-events: none;
}


#rsl-info {
    position: fixed;
    top: 10px;
    right: 10px;
    /* background-color: rgba(0, 0, 0, 0.95); */
    color: white;
    border-radius: 5px;
    display: flex;
    user-select: none;
}

#rsl-info .icon {
    background-image: url('./plugin/images/icon.png');
    width: 48px;
    height: 48px;
    display: inline-block;
}

@media (prefers-color-scheme: dark) {
    #rsl-info .icon {
        background-image: url('./plugin/images/icon_dark.png');
    }
}

#rsl-info #resblock {
    color: rgba(144, 144, 147, 1);
    display: inline-block;
    line-height: 48px;
}
#resblock:not(:empty) {
    padding-left:10px; 
}

#info-overlay {
    position: fixed;
    top: 60px;
    right: 10px;
    z-index: 1000;
    color: #fff;
    background: rgba(0, 0, 0, 0.95);
    padding: 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: sans-serif;
    user-select: none;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    pointer-events: none; /* 防止遮挡地图交互 */
}

/* 显示时的动画状态 */
#info-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#info-overlay .it {
    color: white; /* 橙色 */
    line-height: 22px;
}
#info-overlay .ic {
    color: rgba(144, 144, 147, 1); /* 绿色 */
    line-height: 22px;
}