@charset "UTF-8";

/* === Dungeon Overlay === */
.dungeon-overlay {
    position: relative;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    z-index: 5000;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.85);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: background-image 0.5s ease-in-out;
}

.dungeon-overlay.blurred {
    filter: blur(5px) brightness(0.6);
    pointer-events: none;
}

.dungeon-overlay > button {
    z-index: 1001;
}

/* === Main Area === */
.dungeon-main-area {
    flex-grow: 1;
    position: absolute;
    display: flex;
    flex-direction: column;
    margin-right: 20px;
    overflow-y: auto;
    background-color: rgba(10, 10, 10, 0.1);
    padding: 15px;
    border-radius: 8px;
    height: 100%;
    width: 100%;
}

/* === Room Description === */
.dungeon-room-description {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #444;
    min-height: 150px;
    max-height: 40%;
    overflow-y: auto;
    font-size: 0.9em;
    margin-top: auto;
}

/* === Actions === */
.dungeon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #444;
}

/* === Canvas Overlay === */
#dungeon-room-overlay-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#dungeonRoomFabricCanvas {
    display: block;
}

/* === Combat in Dungeon === */
.combat.in-dungeon-combat {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    box-sizing: border-box;
    background-color: rgba(30, 0, 0, 0.92);
    z-index: 6000;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.combat.in-dungeon-combat.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
