/* City Environment */
#env-city {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.skyline {
    position: absolute;
    bottom: 150px;
    /* On top of pavement */
    width: 100%;
    height: 200px;
    z-index: 0;
}

.building {
    position: absolute;
    bottom: 0;
    background: #1a237e;
    /* Dark Blue */
    border: 2px solid #000;
}

.b1 {
    left: 10%;
    width: 60px;
    height: 180px;
    box-shadow: inset -5px 0 rgba(0, 0, 0, 0.3);
}

.building-window {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffeb3b;
    border: 1px solid #000;
    box-sizing: border-box;
    cursor: pointer;
}

.b1 .w1 {
    top: 10px;
    left: 10px;
}

.b1 .w2 {
    top: 10px;
    left: 30px;
}

.b1 .w3 {
    top: 40px;
    left: 10px;
}

.b1 .w4 {
    top: 40px;
    left: 30px;
}

.b2 {
    left: 30%;
    width: 80px;
    height: 120px;
    background: #283593;
}

.b3 {
    right: 20%;
    width: 100px;
    height: 220px;
    background: #303f9f;
}

.ground-pavement {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: #757575;
    /* Gray */
    border-top: 4px solid #424242;
    z-index: 0;
}

.street-lamp {
    position: absolute;
    bottom: 150px;
    left: 70%;
    width: 40px;
    height: 180px;
    z-index: 1;
}

.street-lamp-pole {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: #212121;
}

.street-lamp-head {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 20px #fff;
}

/* Beach Environment */
#env-beach {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

.sun-beach {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: #ff9800;
    /* Orange/Gold */
    border-radius: 50%;
    box-shadow: 0 0 30px #ff9800;
}

.ocean {
    position: absolute;
    bottom: 100px;
    /* Behind sand but higher up visual plane? No, ocean is background */
    /* 2.5D perspective: ocean is 'behind' the beach ground */
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, #0288d1, #4fc3f7);
    z-index: 0;
    bottom: 150px;
    /* Same line as ground start for visual continuity */
    pointer-events: auto;
}

.sand {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: #ffe082;
    /* Sand */
    border-top: 4px solid #ffd54f;
    z-index: 1;
    pointer-events: none;
}

.palm-tree {
    position: absolute;
    bottom: calc(150px - 3%);
    right: 15%;
    width: 253px;
    /* Wider container for leaves */
    height: 317px;
    z-index: 1;
    pointer-events: none;
}

.palm-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.umbrella {
    position: absolute;
    bottom: 120px;
    /* Stuck in sand */
    left: 20%;
    width: 80px;
    height: 120px;
    z-index: 2;
    /* In front of character? No behind */
    z-index: 1;
}

.umbrella-pole {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) rotate(10deg);
    width: 4px;
    height: 100%;
    background: #e6e6e6;
    border: 1px solid #bdbdbd;
    z-index: 1;
}

.umbrella-top {
    position: absolute;
    top: -4px;
    left: 54%;
    transform: translateX(-50%) rotate(10deg);
    width: 100px;
    height: 50px;
    background: repeating-linear-gradient(90deg, #f44336 0, #f44336 10px, #fff 10px, #fff 20px);
    border-radius: 40px 40px 8px 8px;
    z-index: 2;
}


/* UI Overlay Button */
#btn-back-map {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 100;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    border-radius: 2px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

#btn-back-map:hover {
    background: #d4d4d4;
}

#btn-back-map:active {
    border-style: inset;
    box-shadow: none;
}

/* Web (Iframe) Environment */
#env-web {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#web-iframe {
    width: 100%;
    height: 100%;
    border: none;
    /* pointer-events enabled for user interaction */
}

/* Poetic Web Gallery Environment */
#env-poetic {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

#poetic-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
