:root {
    --room-color: white; /* Default color, will be set by JavaScript */
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    border: 2px solid var(--room-color);
    position: relative;
    overflow: visible;
    box-sizing: border-box;
    /* Size set by JavaScript */
}

.perspective-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1000;
    overflow: hidden;
}

.perspective-lines .corner-line {
    stroke: var(--room-color);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.perspective-lines .floor-line {
    stroke: var(--room-color);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.perspective-lines .ceiling-line {
    stroke: var(--room-color);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.perspective-lines .depth-line {
    stroke: var(--room-color);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.center-box {
    border: 2px solid var(--room-color);
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.depth-plane {
    position: absolute;
    background-color: transparent;
    outline: 2px solid var(--room-color);
    outline-offset: -2px;
    pointer-events: none;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.object-container-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 33%;
    height: 100%;
    padding-top: 10%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    border: 0px solid red;
    box-sizing: border-box;
}

.object-container-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 33%;
    height: 100%;
    padding-top: 10%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    border: 0px solid red;
    box-sizing: border-box;
}

.room-object {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
}

.floor-object {
    stroke: aqua;
    stroke-width: 2px;
    fill: aqua;
    max-width: 20%;
    max-height: 50%;
    object-fit: contain;
    vector-effect: non-scaling-stroke;
    position: relative;
    z-index: 1000;
}

.position-overlay {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--room-color);
    font-family: monospace;
    font-size: 24px;
    pointer-events: none;
    z-index: 1000;
}
