/**
 * Map Editor CSS
 * Ported from original Warbarons mapeditor.css + interface styles
 * Uses sprite buttons from interface4/mapeditor.png
 * ALL selectors scoped under #scene-map-editor to prevent conflicts with game-ui.css
 */

/* Main container */
#scene-map-editor .mapeditor-container {
  width: 100%;
  height: 100%;
  background-image: url(/interface4/main_background.png);
  display: flex;
  flex-direction: column;
}

/* Menu bar */
#scene-map-editor .mapeditor-menubar {
  height: 25px;
  display: flex;
  align-items: center;
  padding: 2px 5px;
  background-image: url(/interface4/contentback.png);
  border-bottom: 1px solid #8a7649;
}

/* Menu topics (File, Game, Help) */
#scene-map-editor .menutopic {
  font-family: arial, sans-serif;
  color: #3f320c;
  font-size: 14px;
  float: left;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
}

#scene-map-editor .menutopic:hover {
  color: #000;
}

/* Dropdown menus */
#scene-map-editor .dropmenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  background-image: url(/interface4/dropdownbg.png);
  background-color: #f6dca4;
  border: 1px solid #8a7649;
  min-width: 150px;
}

#scene-map-editor .menutopic:hover .dropmenu {
  display: block;
}

#scene-map-editor .dropmenu ul {
  list-style: none;
  margin: 0;
  padding: 5px 0;
}

#scene-map-editor .dropmenu li {
  padding: 4px 10px;
  cursor: pointer;
}

#scene-map-editor .dropmenu li:hover {
  background-color: #fffce7;
}

#scene-map-editor .dropmenu a {
  color: #3f320c;
  text-decoration: none;
  font-family: arial, sans-serif;
  font-size: 13px;
}

/* Map info display (cities, ruins, temples counts) */
#scene-map-editor .mapeditor-info {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 15px;
}

#scene-map-editor .mapeditor-info span {
  font-size: 14px;
  font-weight: bold;
  color: #3f320c;
}

/* Working map info */
#scene-map-editor #workingmapinfo {
  color: #3f320c;
  font-size: 14px;
  font-weight: bold;
  margin-left: 20px;
}

/* Main content area */
#scene-map-editor .mapeditor-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;  /* Needed for floating sidebar positioning */
}

/* Left palette panel - 2 columns of 64px tiles */
#scene-map-editor .mapeditor-palette {
  width: 146px;
  padding: 3px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Palette terrain tiles */
#scene-map-editor div.palettetools1 {
  margin: 2px;
  border: 1px solid #000000;
  width: 64px;
  height: 64px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: content-box;
}

#scene-map-editor div.palettetools1:hover {
  border-color: #fff;
}

#scene-map-editor div.palettetools2 {
  margin: 2px;
  border: 1px solid #FFFFFF;
  width: 64px;
  height: 64px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-sizing: content-box;
}

/* Palette child divs need to fill the space */
#scene-map-editor div.palettetools1 > div,
#scene-map-editor div.palettetools2 > div {
  width: 64px;
  height: 64px;
}

/* Map canvas area */
#scene-map-editor .mapeditor-maparea {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#scene-map-editor #outerDiv {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  cursor: grab;
}

#scene-map-editor #outerDiv.dragging {
  cursor: grabbing;
}

#scene-map-editor #innerDiv {
  position: relative;
  left: 0px;
  top: 0px;
  z-index: 0;
}

/* Resolution/coordinate info bar */
#scene-map-editor #resolutionInfo {
  padding-left: 5px;
  font: normal 10px sans-serif;
  background-image: url(/interface4/contentback.png);
  height: 26px;
  text-align: left;
  color: #3f320c;
  line-height: 26px;
}

/* Right sidebar */
#scene-map-editor .mapeditor-sidebar {
  width: 312px;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

/* Floating minimap for large maps (>100x100) - stays visible in viewport */
#scene-map-editor .mapeditor-minimap.floating {
  position: fixed;
  right: 5px;
  top: 30px;
  z-index: 100;
}

/* Minimap container */
#scene-map-editor .mapeditor-minimap {
  position: relative;
}

#scene-map-editor div.minimapinner {
  position: relative;
  width: 300px;
  height: 300px;
  background-color: #000000;
}

#scene-map-editor #newminimap {
  border: solid 1px black;
}

#scene-map-editor #magnifier {
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 15;
  background-color: transparent;
  border: solid white 2px;
  cursor: move;
}

/* Tools panel */
#scene-map-editor .mapeditor-tools {
  display: flex;
  margin-top: 10px;
}

#scene-map-editor .mapeditor-tools-column {
  display: flex;
  flex-direction: column;
}

#scene-map-editor .mapeditor-tools table {
  border-collapse: collapse;
}

#scene-map-editor .mapeditor-tools td {
  padding: 2px;
  vertical-align: top;
}

#scene-map-editor .mapeditor-tools b {
  color: #3f320c;
  font-size: 12px;
}

/* Tool indicator (enabled/disabled) */
#scene-map-editor .btn_disabled {
  background: url('/interface4/mapeditor.png') -138px -2px;
  width: 19px;
  height: 19px;
}

#scene-map-editor .btn_enabled {
  background: url('/interface4/mapeditor.png') -161px -2px;
  width: 19px;
  height: 19px;
}

/* Button sprites from mapeditor.png */
#scene-map-editor .btn_undo1 { background: url('/interface4/mapeditor.png') -0px -0px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_undo2 { background: url('/interface4/mapeditor.png') -68px -0px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_grid1 { background: url('/interface4/mapeditor.png') -0px -36px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_grid2 { background: url('/interface4/mapeditor.png') -68px -36px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_edit1 { background: url('/interface4/mapeditor.png') -0px -72px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_edit2 { background: url('/interface4/mapeditor.png') -68px -72px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_square1 { background: url('/interface4/mapeditor.png') -0px -108px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_square2 { background: url('/interface4/mapeditor.png') -68px -108px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_3x31 { background: url('/interface4/mapeditor.png') -0px -144px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_3x32 { background: url('/interface4/mapeditor.png') -68px -144px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_2x21 { background: url('/interface4/mapeditor.png') -0px -180px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_2x22 { background: url('/interface4/mapeditor.png') -68px -180px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_mapedit1 { background: url('/interface4/mapeditor.png') -0px -216px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_mapedit2 { background: url('/interface4/mapeditor.png') -68px -216px; width: 68px; height: 36px; float: left; cursor: pointer; }

#scene-map-editor .btn_measure1 { background: url('/interface4/mapeditor.png') -0px -288px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_measure2 { background: url('/interface4/mapeditor.png') -68px -288px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_mirror1 { background: url('/interface4/mapeditor.png') -136px -288px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_mirror2 { background: url('/interface4/mapeditor.png') -204px -288px; width: 68px; height: 36px; float: left; cursor: pointer; }

#scene-map-editor .btn_1x11 { background: url('/interface4/mapeditor.png') -136px -36px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_1x12 { background: url('/interface4/mapeditor.png') -204px -36px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_coords1 { background: url('/interface4/mapeditor.png') -136px -72px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_coords2 { background: url('/interface4/mapeditor.png') -204px -72px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_minimaptog1 { background: url('/interface4/mapeditor.png') -136px -108px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_minimaptog2 { background: url('/interface4/mapeditor.png') -204px -108px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_addtrigg1 { background: url('/interface4/mapeditor.png') -136px -144px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_addtrigg2 { background: url('/interface4/mapeditor.png') -204px -144px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_removtrigg1 { background: url('/interface4/mapeditor.png') -136px -180px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_removtrigg2 { background: url('/interface4/mapeditor.png') -204px -180px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_scenarioedit1 { background: url('/interface4/mapeditor.png') -136px -216px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_scenarioedit2 { background: url('/interface4/mapeditor.png') -204px -216px; width: 68px; height: 36px; float: left; cursor: pointer; }

#scene-map-editor .btn_copy1 { background: url('/interface4/mapeditor.png') -0px -253px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_copy2 { background: url('/interface4/mapeditor.png') -68px -253px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_paste1 { background: url('/interface4/mapeditor.png') -136px -253px; width: 68px; height: 36px; float: left; cursor: pointer; }
#scene-map-editor .btn_paste2 { background: url('/interface4/mapeditor.png') -204px -253px; width: 68px; height: 36px; float: left; cursor: pointer; }

/* Team tabs */
#scene-map-editor .lefttab {
  cursor: pointer;
  border: solid 1px #8a7649;
  margin-bottom: 5px;
  padding: 4px;
  width: 70px;
  float: left;
  background-color: #e8d4a0;
}

#scene-map-editor .lefttab:hover {
  border-color: #FFFFFF;
}

#scene-map-editor .lefttabactive {
  cursor: pointer;
  border: solid 1px #8a7649;
  border-right: 2px solid #f0d290;
  position: relative;
  z-index: 2;
  margin-bottom: 5px;
  padding: 4px;
  width: 70px;
  float: left;
  background-color: #f6dca4;
}

/* Hover markers */
#scene-map-editor .markhover {
  float: left;
}

#scene-map-editor .markhover:hover {
  background-color: #fffce7;
  border-radius: 5px;
  cursor: pointer;
}

/* Brush window (floating palette) */
#scene-map-editor .brushwin {
  position: absolute;
  min-width: 340px;
  min-height: 30px;
  width: 340px;
  z-index: 900;
  background-color: #f6dca4;
  border: 1px solid #8a7649;
  border-radius: 3px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

#scene-map-editor .brushwin-header {
  width: 100%;
  cursor: move;
  border-bottom: solid 1px #8a7649;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #3f320c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e8d4a0;
  user-select: none;
}

#scene-map-editor .brushwin-header span:last-child {
  font-size: 18px;
  cursor: pointer;
  padding: 0 5px;
}

#scene-map-editor .brushwin-header span:last-child:hover {
  color: #000;
}

#scene-map-editor .brushwin-content {
  max-height: 400px;
  border-top: solid 1px #f6e1a6;
  padding: 5px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#scene-map-editor .brushwin-tile {
  width: 66px;
  height: 66px;
  border: 1px solid #8a7649;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: #3a5c2a; /* Fallback green if image fails */
}

#scene-map-editor .brushwin-tile:hover {
  border-color: #fff;
}

#scene-map-editor .brushwin-tile.brushwin-selected {
  border: 1px solid #fff;
}

#scene-map-editor .brushwin-tile > div {
  width: 64px !important;
  height: 64px !important;
  display: block !important;
  background-repeat: no-repeat;
}

/* Bigtile label overlay */
#scene-map-editor .bigtile-label {
  position: absolute;
  bottom: 2px;
  right: 2px;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 2px;
  pointer-events: none;
}

/* Popup styles matching Warbarons theme - scoped to map editor to avoid conflict with city.css */
#scene-map-editor .mapeditor-container .misc_gpopstyle {
  background-color: #f6dca4;
  border: 1px solid #8a7649;
  border-radius: 3px;
  padding: 10px;
}

#scene-map-editor .basic_popup {
  background-color: #f6dca4;
  border: 1px solid #8a7649;
  padding: 10px;
}

/* Popup buttons — override city.css button.ok3 with higher specificity */
#scene-map-editor #popTextWin button.ok3 {
  background: url('/interface4/basepopup.png') -130px -48px;
  background-color: #f1d28f;
  width: 151px;
  height: 36px;
  border: 0;
  margin-top: 6px;
  cursor: pointer;
}

#scene-map-editor #popTextWin button.ok3:hover {
  background: url('/interface4/basepopup.png') -130px -4px;
}

#scene-map-editor #popTextWin label {
  margin-right: 10px;
  cursor: pointer;
}

#scene-map-editor #popTextWin input[type="radio"] {
  margin-right: 3px;
}

/* Dark overlay */
#scene-map-editor .dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 800;
  display: none;
}

/* Selection highlight */
#scene-map-editor .select2 {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 2px solid #fff;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 10;
}

/* Grid overlay */
#scene-map-editor .gridoverlay {
  position: absolute;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0,0,0,0.3);
  box-sizing: border-box;
  pointer-events: none;
}

/* Coordinate display on tiles */
#scene-map-editor .coordtext {
  position: absolute;
  font-size: 9px;
  color: #fff;
  text-shadow: 1px 1px 1px #000;
  z-index: 5;
  pointer-events: none;
}

/* Palette brush selector */
#scene-map-editor #palettediv {
  width: 850px;
  height: 110px;
  float: left;
}

#scene-map-editor #brush {
  width: 150px;
  height: 110px;
  float: left;
}

/* City select context menu */
#scene-map-editor #cityselectmenu {
  position: absolute;
  padding: 5px;
  background-color: #f6dca4;
  border: 1px solid #8a7649;
  z-index: 950;
}

#scene-map-editor #cityselectmenu .marker {
  font-weight: bold;
  padding: 3px;
  cursor: pointer;
}

#scene-map-editor #cityselectmenu .marker:hover {
  background-color: #fffce7;
}

/* Popup window styles */
#scene-map-editor .chatpopup {
  position: fixed;
  z-index: 900;
  display: none;
}

/* Loading indicator */
#scene-map-editor .mapeditor-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  color: #3f320c;
  font-weight: bold;
}

/* Road tile indicator */
#scene-map-editor .road {
  width: 64px;
  height: 64px;
  background: linear-gradient(45deg, #8b7355 0%, #a08060 50%, #8b7355 100%);
}

/* Road variations - grassland roads from lushgrass.png */
/* Unscoped so TextureManager probe div can read them for PixiJS rendering */
/* End tiles (single connection) */
div.ngx1 { background: url(/terrain/grass/lushgrass.png) -256px -128px; width:64px; height:64px; } /* bottom end */
div.ngx2 { background: url(/terrain/grass/lushgrass.png) -128px -128px; width:64px; height:64px; } /* right end */
div.ngx3 { background: url(/terrain/grass/lushgrass.png) -192px -128px; width:64px; height:64px; } /* left end */
div.ngx4 { background: url(/terrain/grass/lushgrass.png) -64px -128px; width:64px; height:64px; } /* top end */

/* Straight roads */
div.ngx14 { background: url(/terrain/grass/lushgrass.png) 0px -128px; width:64px; height:64px; } /* vertical */
div.ngx23 { background: url(/terrain/grass/lushgrass.png) 0px -64px; width:64px; height:64px; } /* horizontal */

/* Corner roads */
div.ngx12 { background: url(/terrain/grass/lushgrass.png) -192px -64px; width:64px; height:64px; } /* curve1 */
div.ngx13 { background: url(/terrain/grass/lushgrass.png) -256px -64px; width:64px; height:64px; } /* curve2 */
div.ngx24 { background: url(/terrain/grass/lushgrass.png) -128px -64px; width:64px; height:64px; } /* curve3 */
div.ngx34 { background: url(/terrain/grass/lushgrass.png) -64px -64px; width:64px; height:64px; } /* curve4 */

/* T-junctions */
div.ngx123 { background: url(/terrain/grass/lushgrass.png) -128px 0px; width:64px; height:64px; } /* T cross1 */
div.ngx124 { background: url(/terrain/grass/lushgrass.png) -64px 0px; width:64px; height:64px; } /* T cross2 */
div.ngx134 { background: url(/terrain/grass/lushgrass.png) 0px 0px; width:64px; height:64px; } /* T cross3 */
div.ngx234 { background: url(/terrain/grass/lushgrass.png) -192px 0px; width:64px; height:64px; } /* T cross4 */

/* Crossroads */
div.ngx1234 { background: url(/terrain/grass/lushgrass.png) -256px 0px; width:64px; height:64px; }

/* Eraser/Delete tool icon */
#scene-map-editor .eraser-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
  position: relative;
  cursor: pointer;
}

#scene-map-editor .eraser-icon::before,
#scene-map-editor .eraser-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 6px;
  background: #ff4444;
  border-radius: 2px;
}

#scene-map-editor .eraser-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#scene-map-editor .eraser-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* City marker for palette */
#scene-map-editor .city_me2 {
  width: 64px;
  height: 64px;
  background-color: #888;
  border: 2px dashed #fff;
}

/* Map editor popup styles (using Popup component) */
.mapeditor-popup .wb-popup-body-inner {
  overflow-y: auto;
  max-height: 468px;
  padding: 10px;
}

.mapeditor-popup .wb-popup-body-inner input[type="text"],
.mapeditor-popup .wb-popup-body-inner input[type="number"],
.mapeditor-popup .wb-popup-body-inner select,
.mapeditor-popup .wb-popup-body-inner textarea {
  padding: 4px 6px;
  border: 1px solid #8a7649;
  background-color: #fffce7;
  color: #3f320c;
  font-size: 13px;
}

.mapeditor-popup .wb-popup-body-inner input[type="radio"],
.mapeditor-popup .wb-popup-body-inner input[type="checkbox"] {
  margin-right: 5px;
}

.mapeditor-popup .wb-popup-body-inner label {
  color: #3f320c;
  font-size: 13px;
}

.mapeditor-popup .wb-popup-body-inner b {
  color: #3f320c;
}

.mapeditor-popup .wb-popup-body-inner table {
  color: #3f320c;
}

.mapeditor-popup .wb-popup-body-inner button {
  padding: 4px 10px;
  border: 1px solid #8a7649;
  background-color: #f6dca4;
  color: #3f320c;
  font-size: 12px;
  cursor: pointer;
}

.mapeditor-popup .wb-popup-body-inner button:hover {
  background-color: #fffce7;
}

/* Modal styles for map editor popups (used by building/unit/item editors) */
#scene-map-editor .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-image: url(/interface4/contentback.png);
  background-color: #f6dca4;
  border-bottom: 1px solid #8a7649;
}

#scene-map-editor .modal-header h2 {
  margin: 0;
  color: #3f320c;
  font-size: 18px;
  font-family: arial, sans-serif;
}

#scene-map-editor .modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #3f320c;
  padding: 0 5px;
}

#scene-map-editor .modal-close:hover {
  color: #000;
}

#scene-map-editor .modal-body {
  padding: 20px;
  background-image: url(/interface4/contentback.png);
  background-color: #f6dca4;
  max-height: 500px;
  overflow-y: auto;
}

#scene-map-editor .modal-body h3 {
  margin: 0 0 10px 0;
  color: #3f320c;
  font-size: 14px;
  font-weight: bold;
}

#scene-map-editor .modal-body input[type="text"],
#scene-map-editor .modal-body select {
  padding: 5px 8px;
  border: 1px solid #8a7649;
  background-color: #fffce7;
  font-size: 13px;
}

#scene-map-editor .modal-body input[type="radio"],
#scene-map-editor .modal-body input[type="checkbox"] {
  margin-right: 5px;
}

#scene-map-editor .modal-body label {
  color: #3f320c;
  font-size: 13px;
}

#scene-map-editor .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px;
  background-image: url(/interface4/contentback.png);
  background-color: #f6dca4;
  border-top: 1px solid #8a7649;
}

#scene-map-editor .modal-footer .btn {
  padding: 8px 20px;
  border: 1px solid #8a7649;
  background-image: url(/interface4/contentback.png);
  background-color: #f6dca4;
  color: #3f320c;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#scene-map-editor .modal-footer .btn:hover {
  background-color: #fffce7;
}

#scene-map-editor .modal-footer .btn-primary {
  background-color: #e4c680;
}

#scene-map-editor .modal-footer .btn-primary:hover {
  background-color: #f0d890;
}

/* Modal overlay for map editor */
#scene-map-editor #modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#scene-map-editor #modal-overlay.hidden {
  display: none;
}

#scene-map-editor #modal-content {
  background-color: #f6dca4;
  border: 2px solid #8a7649;
  min-width: 400px;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
