html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    font-family: sans-serif;
}

.image-container {
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.image-container img {
    height: 100vh;
    width: auto;
    display: block;
}

.rectangle {
    position: absolute;
    border: 2px solid red;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
}

.info-box {
    padding: 20px;
    background: #fff;
    border-left: 1px solid #ccc;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.info-box h2 {
    margin-bottom: 1ex;
}

table {
   width: 100%;
    border-collapse: collapse;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
}

th {
    border-left: 4px solid #ccc;
    background-color: #f2f2f2;
}

td {
    border-right: 0px;
}

.codeblock {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    overflow-x: auto;
}

/* Coordinate info-box */
.coordinate-info {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(30, 41, 59, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    display: none;
}

.coordinate-info.active {
    display: block;
}