* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Monospace;
}

body {
    background-color: black;
    color: white;
}

h1 {
    font-size: 16px;
}

.square {
    width: 200px;
    height: 200px;
    border: 1px solid #0080ff;
    background-color: #0080ff80;
    padding: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    translate: calc(-100px + var(--x, 0px)) calc(-100px + var(--y, 0px));
    overflow-y: scroll;
}

img {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: calc(-100px + var(--x, 0px)) calc(-100px + var(--y, 0px));
    width: 200px;
    border: 1px solid #0080ff;
}