:root {
    --webmap_main_width: 1700px;
    /* ratio: 3:2 */
    --webmap_main_height: calc(var(--webmap_main_width) / 2);
}

#webmap_main {
    width: var(--webmap_main_width);
    height: var(--webmap_main_height);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    position: relative;
    border-color: darkblue;
    border-style: solid;
    border-width: calc(var(--webmap_main_width) / 400);
}

#webmap_container {
    width: var(--webmap_main_width);
    height: var(--webmap_main_height);
    background-color: black;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    z-index: 50;
}

#webmap_overlay {
    width: var(--webmap_main_width);
    height: var(--webmap_main_height);
    display: none;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    justify-content: center;
    align-items: center;
}

#webmap_editor_overlay_move_svg_dialog {
    display: block;
    background-color: rgba(255, 255, 255, 0.9);
}

#webmap_editor_hint {
    position: absolute;
    visibility: hidden;
    width: calc(var(--webmap_main_width) / 4);
    max-width: calc(var(--webmap_main_width) / 4);
    background-color: rgb(52, 189, 86);
    z-index: 9998;
    border-style: solid;
    border-color: rgb(255, 255, 255);
    border-width: 1px;
    user-select: none;
    font-size: calc(var(--webmap_main_width) / 70);
    padding: calc(var(--webmap_main_width) / 390);
}

#webmap_editor_hint:hover {
    opacity: 0.3;
}

#webmap_editor_pannel {
    background-color: red;
    grid-row: span 5;
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 5% auto 45%;
}

#webmap_editor_pannel_nav {
    background-color: gold;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.webmap_editor_navs {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-color: black;
    border-width: 1px;
    border-style: solid;
    font-size: calc(var(--webmap_main_width) / 60);
    cursor: pointer;
    user-select: none;
}

#webmap_editor_pannel_list {
    background-color: blueviolet;
    grid-row: 2;
    overflow-y: auto;
}

.webmap_editor_pannel_list_entry_button_add {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: rgb(255, 0, 0) solid 1px;
    border-bottom: rgb(255, 0, 0) solid 1px;
    background-color: black;
    color: lime;
    font-size: calc(var(--webmap_main_width) / 70);
    padding-top: 1.5%;
    padding-bottom: 1.5%;
    cursor: pointer;
}

.webmap_editor_pannel_list_entry_group {
    display: grid;
    grid-template-columns: 5fr 2fr 2fr;
    grid-template-rows: repeat(3, 1fr);
    height: calc(var(--webmap_main_height) / 10);
    padding-top: 1%;
    padding-bottom: 1%;
    border-top: black dotted 1px;
    border-bottom: black dotted 1px;
    background-color: lightgreen;
}

.webmap_editor_pannel_list_entry_group_name {
    grid-column: 1;
    grid-row: 1;
    font-size: calc(var(--webmap_main_width) / 90);
    color: black;
    display: block;
    text-align: center;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webmap_editor_pannel_list_entry_group_desc {
    grid-column: 1;
    grid-row: 2;
    font-size: calc(var(--webmap_main_width) / 105);
    color: black;
    display: block;
    text-align: center;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webmap_editor_pannel_list_entry_group_id {
    grid-column: 1;
    grid-row: 3;
    font-size: calc(var(--webmap_main_width) / 120);
    font-style: italic;
    color: rgb(56, 56, 56);
    display: flex;
    justify-content: center;
}

.webmap_editor_pannel_list_entry_group_groups {
    grid-column: 2;
    grid-row: span 3;
    font-size: calc(var(--webmap_main_width) / 105);
    list-style-type: "→ ";
    overflow: hidden;
    text-wrap: nowrap;
}

.webmap_editor_pannel_list_entry_group_delete {
    color: white;
    grid-column: 3;
    grid-row: span 3;
    font-size: calc(var(--webmap_main_width) / 25);
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    cursor: pointer;
}

.webmap_editor_pannel_list_entry_group_delete:hover {
    color: red;
}


.webmap_editor_pannel_list_entry_object {
    grid-template-columns: 1fr 4fr 2fr;
    grid-template-rows: repeat(3, 1fr);
    height: calc(var(--webmap_main_height) / 10);
    padding-top: 1%;
    padding-bottom: 1%;
    border-top: black dotted 1px;
    border-bottom: black dotted 1px;
}

.webmap_editor_pannel_list_entry_object_svg {
    grid-column: 1;
    grid-row: span 3;
    width: 100%;
    height: 100%;
}

.webmap_editor_pannel_list_entry_object_name {
    grid-column: 2;
    grid-row: 1;
    font-size: calc(var(--webmap_main_width) / 90);
    color: black;
    display: block;
    text-align: center;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webmap_editor_pannel_list_entry_object_desc {
    grid-column: 2;
    grid-row: 2;
    font-size: calc(var(--webmap_main_width) / 105);
    color: black;
    display: block;
    text-align: center;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webmap_editor_pannel_list_entry_object_id {
    grid-column: 2;
    grid-row: 3;
    font-size: calc(var(--webmap_main_width) / 120);
    font-style: italic;
    color: rgb(56, 56, 56);
    display: flex;
    justify-content: center;
}

.webmap_editor_pannel_list_entry_object_groups {
    grid-column: 3;
    grid-row: span 3;
    font-size: calc(var(--webmap_main_width) / 105);
    list-style-type: "→ ";
    overflow: hidden;
    text-wrap: nowrap;
}

.webmap_editor_pannel_list_entry_template {
    display: grid;
    grid-template-columns: 1fr 4fr 2fr;
    grid-template-rows: repeat(2, 1fr);
    height: calc(var(--webmap_main_height) / 10);
    padding-top: 1%;
    padding-bottom: 1%;
    border-top: black dotted 1px;
    border-bottom: black dotted 1px;
}

.webmap_editor_pannel_list_entry_template_svg {
    grid-column: 1;
    grid-row: span 2;
    width: 100%;
    height: 100%;
}

.webmap_editor_pannel_list_entry_template_name {
    grid-column: 2;
    grid-row: 1;
    font-size: calc(var(--webmap_main_width) / 90);
    color: black;
    display: block;
    text-align: center;
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.webmap_editor_pannel_list_entry_template_id {
    grid-column: 2;
    grid-row: 2;
    font-size: calc(var(--webmap_main_width) / 120);
    font-style: italic;
    color: rgb(56, 56, 56);
    display: flex;
    justify-content: center;
}

.webmap_editor_pannel_list_entry_template_delete {
    color: white;
    grid-column: 3;
    grid-row: span 2;
    font-size: calc(var(--webmap_main_width) / 25);
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    cursor: pointer;
}

.webmap_editor_pannel_list_entry_template_delete:hover {
    color: red;
}

#webmap_editor_pannel_menu {
    background-color: burlywood;
    grid-row: 3;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-template-columns: repeat(4, 1fr);
}

.webmap_editor_pannel_menu_setting {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: antiquewhite;
    flex-wrap: wrap;
    box-sizing: border-box;
    border: solid black 1px;
    grid-column: span 2;
}

#webmap_editor_pannel_menu_setting_tagList {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--webmap_main_width) / 220);
    box-sizing: border-box;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}

.webmap_editor_pannel_menu_setting_tagEntry {
    display: grid;
    grid-template-columns: 6fr, 1fr;
    grid-template-rows: 1fr;
    background-color: lime;
    border: solid black 1px;
    box-sizing: border-box;
    padding: calc(var(--webmap_main_width) / 250);
    border-radius: 5px;
}

.webmap_editor_pannel_menu_setting_tagEntry_text {
    grid-column: 1;
    grid-row: 1;
    margin-right: calc(var(--webmap_main_width) / 300);
    font-weight: bold;
    text-wrap: nowrap;
}

.webmap_editor_pannel_menu_setting_tagEntry_remove {
    grid-column: 2;
    grid-row: 1;
    border-style: none;
    background-color: yellow;
}

.webmap_editor_pannel_menu_setting_tagEntry_remove:hover {
    color: red;
}

#webmap_editor_pannel_menu_setting_groupList {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--webmap_main_width) / 220);
    box-sizing: border-box;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}

.webmap_editor_pannel_menu_setting_groupEntry {
    display: grid;
    grid-template-columns: 6fr, 1fr;
    grid-template-rows: 1fr;
    background-color: rgb(85, 248, 221);
    border: solid rgb(165, 149, 255) 1px;
    color: rgb(38, 122, 17);
    box-sizing: border-box;
    padding: calc(var(--webmap_main_width) / 250);
}

.webmap_editor_pannel_menu_setting_groupEntry_text {
    grid-column: 1;
    grid-row: 1;
    margin-right: calc(var(--webmap_main_width) / 300);
    font-weight: bold;
    text-wrap: nowrap;
}

.webmap_editor_pannel_menu_setting_groupEntry_remove {
    grid-column: 2;
    grid-row: 1;
    border-style: solid;
    border-width: 1px;
    border-color: gold;
    background-color: rgb(255, 255, 255);
    color: rgb(245, 106, 106);
    padding: 2px;
}

.webmap_editor_pannel_menu_setting_groupEntry_remove:hover {
    color: darkred;
}


.webmap_editor_pannel_menu_setting_pointsList_addOption {
    background-color: greenyellow;
    font-size: calc(var(--webmap_main_width) / 70);
    color: white;
    cursor: pointer;
}

.webmap_editor_pannel_menu_setting_pointsList_addOption:hover {
    background-color: darkgreen;
}

.webmap_editor_pannel_menu_setting_pointsList_entry {
    background-color: lightcoral;
    font-size: calc(var(--webmap_main_width) / 130);
    user-select: none;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(3, auto);
}

.webmap_editor_pannel_menu_setting_pointsList_entry>p {
    margin-top: calc(var(--webmap_main_width) / 220);
    margin-bottom: calc(var(--webmap_main_width) / 220);
    grid-column: 1;
}

.webmap_editor_pannel_menu_setting_pointsList_entry_id {
    font-size: calc(var(--webmap_main_width) / 160);
}

.webmap_editor_pannel_menu_setting_pointsList_entry_remove {
    grid-column: 2;
    grid-row-start: 1;
    grid-row-end: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--webmap_main_width) / 40);
    background-color: lightskyblue;
    color: black;
}

.webmap_editor_pannel_menu_setting_pointsList_entry_remove:hover {
    color: brown;
}

#webmap_editor_image_container {
    background-color: green;
    grid-row: span 4;
    grid-column: 3 / 7;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
}

#webmap_editor_map_contextmenu {
    position: absolute;
    display: none;
    width: calc(var(--webmap_main_width) / 12);
    background-color: lightblue;
    z-index: 9999;
    border-style: solid;
    border-color: black;
    border-width: 1px;
    user-select: none;
}

.webmap_editor_map_contextmenu_item {
    border-top: solid 1px black;
    border-bottom: solid 1px black;
    font-size: calc(var(--webmap_main_width) / 100);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.webmap_editor_map_contextmenu_item:hover {
    background-color: white;
}

#webmap_editor_bar {
    background-color: blue;
    grid-row: 5;
    grid-column: 3 / 7;
    display: grid;
    grid-template-columns: 1fr 2fr 5%;
    grid-template-rows: 1fr;
}

#webmap_editor_bar_menu {
    background-color: grey;
    grid-column: 3;
    font-size: calc(var(--webmap_main_width) / 50);
    text-align: center;
    grid-row: 1;
}

#webmap_editor_bar_menu>i:hover {
    color: goldenrod;
}

#webmap_editor_bar_menu>i:active {
    color: yellow;
}

#webmap_editor_bar_info {
    grid-column: 2;
    grid-row: 1;
    background-color: white;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: repeat(6, 1fr);
    overflow-x: auto;
    text-wrap: nowrap;
}

.webmap_editor_bar_info_title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--webmap_main_width) / 100);
}


.webmap_editor_bar_info_content {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(var(--webmap_main_width) / 95);
}

#webmap_editor_bar_options {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr 5fr;
    grid-template-rows: repeat(5, 1fr);
    font-size: calc(var(--webmap_main_width) / 110);
    background-color: rgb(255, 109, 109);
    grid-row: 1;
    font-weight: bold;
}

#webmap_editor_bar_options_hideNonDescriptivePoints {
    grid-row: 1;
    grid-column: 1;
}

#webmap_editor_bar_options_hideNonDescriptivePoints_label {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

#webmap_editor_image_file {
    z-index: 1;
    image-rendering: pixelated;
    position: relative;
    display: none;
    pointer-events: none;
}

#webmap_svg {
    z-index: 2;
    position: absolute;
    display: none;
    top: 0;
    left: 0;
}

#webmap_editor_image_container::-webkit-scrollbar {
    display: none;
}

.webmap_img_dragging {
    cursor: grabbing !important;
}