#atlas_of_worlds {
  display: grid;
  width: 100%;
  height: 100%;
}

@media only screen and (min-width: 512px) {
  #atlas_of_worlds {
    grid-template-rows: [vstart] 96px [vmid-start] 1fr [vmid-end] 64px [vend];
    grid-template-columns: [hstart] 256px [hmid-start] 1fr [hmid-end] 256px [hend];
    /* position: absolute;
    top:0;
    left:0; */
    /* z-index: 10; */
    /* opacity:50%; */
  }
}
@media only screen and (max-width: 512px) {
  #atlas_of_worlds {
    grid-template-rows: [vstart] 1.333fr [vmid-start] 2fr [vmid-end] 7fr [vend];
    grid-template-columns: [hstart] 4fr [hmid-start] 8fr [hmid-end] 4fr [hend];
    /* position: absolute;
    top:0;
    left:0; */
    /* z-index: 10; */
    /* opacity:50%; */
  }
}
.pixi_atlas_of_worlds {
  grid-column: hstart/hend;
  grid-row: vstart/vend;
  pointer-events: all;
  /* margin-left:auto; */
  /* margin-right:auto; */
  max-width: 100%;
  max-height: 100%;
  -webkit-user-select: none;
  -moz-user-select: -moz-none;
  -ms-user-select: none;
  user-select: none;
}

.overlay {
  /* background-color: maroon; */
  z-index: 10;
  pointer-events: none;
  /* opacity:75%; */
}

.overlay.top {
  grid-column: hstart/hend;
  grid-row: vstart/vmid-start;
  /* background-color:aquamarine; */
}

.overlay.bottom {
  grid-column: hmid-start/hmid-end;
  grid-row: vmid-end/vend;
}

.overlay.left {
  grid-column: hstart/hmid-start;
  grid-row: vmid-start/vmid-end;
  pointer-events: visibleFill;
  /* background-color: beige; */
}

.overlay.right {
  grid-column: hmid-end/hend;
  grid-row: vmid-start/vmid-end;
  /* background-color: beige; */
}

#node_info, .overlay.left {
  position: relative;
  align-items: stretch;
  box-sizing: border-box;
  padding: 16px;
  opacity: 90%;
  pointer-events: visibleFill;
}

@media only screen and (max-width: 512px) {
  #node_info {
    /* TODO Make this accurate for mobile */
    max-height: 70vh;
    grid-column: hstart/hend;
    grid-row: vmid-end/vend;
  }

  .overlay.left {
    grid-column: hstart/hend;
    max-height: 50vh;
    min-height: 30vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #node_body {
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
  }
}
@media only screen and (min-width: 512px) {
  #node_info {
    grid-column: hmid-end/hend;
    grid-row: vmid-start/vmid-end;
    height: min-content;
    border-radius: 4px 0 0 4px;
  }

  .overlay.left {
    grid-column: hstart/hmid-start;
    min-height: 64px;
    max-height: 100%;
    border-radius: 0 4px 4px 0;
    /* height: min-content; */
  }

  #search_results ol {
    min-height: 64px;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
}
h2#node_name {
  max-width: 80%;
}

#node_info > *,
#node_body > *,
#search_results > *:not(li) {
  margin-bottom: 12px;
  width: 100%;
}

#search_results li:hover,
#node_connections_list li:hover {
  cursor: pointer;
  text-decoration: underline;
}

#node_body > #links > * * {
  display: inline;
  /* word-wrap: normal; */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#node_image {
  width: 64px;
  height: 64px;
}

#node_body table {
  width: fit-content;
}

#node_body td {
  height: 32px;
  width: 36px;
}

#node_info table, td {
  border: 1px solid var(--color-text);
  border-collapse: collapse;
  text-align: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 12px;
  margin: 2px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  margin-right: 0px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: -2px;
  bottom: -2px;
  background-color: white;
  -webkit-transition: 0.2s;
  transition: 0.2s;
  filter: drop-shadow(0px 0px 3px #444);
}

input:checked + .slider {
  background-color: var(--color-accent-1);
  /*#2196F3;*/
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(38px);
  -ms-transform: translateX(38px);
  transform: translateX(38px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
  border: 1px solid var(--color-accent-1);
}

.slider.round:before {
  border-radius: 50%;
}

header .swap_palette {
  background-color: var(--color-element);
  color: var(--color-text);
  border: none;
}

.dropdown_container {
  display: flex;
  /* flex-direction: column;
  height:100%; */
}

header .dropdown.content {
  position: absolute;
  top: 32px;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
}

.dropdown.content {
  box-sizing: content-box;
  padding: 12px;
}

.dropdown.content > ul {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.dropdown.content > ul > li {
  align-items: stretch;
}

.dropdown.content > ul > li > label {
  width: 100%;
  align-items: center;
  padding: 4px;
}

.dropdown.content > ul > li,
.dropdown.content > ul > li > label {
  display: flex;
  flex-direction: row;
  cursor: pointer;
  /* border-bottom: 1px solid var(--color-accent-2); */
}

.dropdown.content > ul > li:hover:not(:last-child),
.dropdown.content > ul > li:focus-within:not(:last-child) {
  background-color: var(--color-base-1);
  /* border-bottom: 1px solid var(--color-accent-2); */
}

.dropdown.options .switch {
  margin-left: auto;
}

.dropdown.content.options input {
  margin-left: auto;
  width: 46px;
  color: var(--color-text);
  background-color: var(--color-base-2);
  border: 1px solid var(--color-accent-1);
  box-sizing: border-box;
  padding-left: 4px;
  padding-right: 4px;
}

.dropdown.content * {
  margin-right: 0;
}

button.overlay_exit {
  align-self: flex-start;
  min-width: 28px;
  min-height: 28px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: large;
  text-align: center;
  background-color: #be1537;
}

button.overlay_exit:hover {
  background-color: #dc143c;
  filter: none;
}

ul {
  list-style-position: inside;
}

ul.nobullet {
  list-style: none;
}

ul.inline > * {
  display: inline;
}

.noselect {
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
     supported by Chrome and Opera */
}

header .dropdown.content button:hover,
header .dropdown.content button:focus {
  background-color: var(--color-accent-1);
  cursor: pointer;
}

.filled {
  background-color: var(--color-background);
  /*background-color: none;*/
  /* border: 1px solid var(--TEMPLATING-COLOR); */
  /*border-color: var(--color-accent-2);
  border-width: 2px;
  border-style: solid;*/
  /* border-radius: 4px; */
  /*box-shadow: 3px 3px 3px #999999;*/
}

.expand {
  height: 100%;
  width: 100%;
}

.centered {
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  position: absolute;
}

.centerh {
  left: 50%;
  -webkit-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
  position: absolute;
}

.centermv {
  margin-top: auto;
  margin-bottom: auto;
}

.centermh {
  margin-left: auto;
  margin-right: auto;
}

.marginLRauto {
  margin-left: auto;
  margin-right: auto;
}

.searchbar {
  background-color: var(--color-base);
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.15);
  /*var(--shadow);/*0 3px 4px rgba(0, 0, 0, 0.2);*/
  margin-top: 12px;
  margin-bottom: 12px;
  height: auto;
  width: clamp(16ch, 650px, 80%);
  max-width: 90vw;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;
  border-radius: 4px;
  /*Does not work in js retrieval for some reason*/
  --default-scale:0.95;
  scale: var(--default-scale);
  top: 10px;
}

.searchbar .material-icons {
  margin: 4px;
}

.searchbar * {
  pointer-events: all;
  background-color: inherit;
  border: none;
  outline: none;
  padding-top: 4px;
  /*1%;*/
  padding-bottom: 2px;
  /*.75%;*/
  margin-right: 8px;
}

.searchbar div.divider {
  /* display: block; */
  border-left: 1px solid green;
  border-right: 1px solid green;
  height: auto;
}

.searchbar .first {
  margin-left: 10px;
  margin-right: 10px;
}

.searchbar .dropdown {
  justify-self: flex-end;
}

.searchField {
  padding-left: 0px;
  width: 100%;
  font-size: 1.2em;
}

input.searchField::placeholder {
  color: var(--color-text);
  opacity: 0.6;
}

.widget_content {
  display: none;
  background-color: var(--color-base-2);
  border-radius: 0.5rem;
  padding: 0.35rem;
  color: var(--color-text-1);
}
.widget_content.open {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.widget_content * {
  color: inherit;
}

#widget_sidebar {
  background-color: var(--color-base);
  width: 100%;
  height: 100%;
  border-right: 2px solid var(--color-accent-1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  --w-header-height: 64px;
  max-height: var(--content-height);
}

#widget_sidebar > * {
  margin-top: 12px;
}

#widget_list {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(var(--content-height) - var(--w-header-height));
}

#w_header {
  height: var(--w-header-height);
  min-height: var(--w-header-height);
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
}

#w_sidebar_showhide {
  cursor: pointer;
  position: absolute;
  left: var(--sidebar-width);
  top: 48px;
  background-color: var(--color-element);
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
  border: 2px solid var(--color-accent-1);
  border-left: none;
  padding: 6px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#w_sidebar_showhide .material-icons {
  transition: transform 0.25s;
}

#widget_sidebar.hidden + #w_sidebar_showhide {
  left: 0;
}

#widget_sidebar.hidden + #w_sidebar_showhide > .material-icons {
  transform: rotate(180deg);
}

#w_sidebar_showhide:hover {
  background-color: var(--color-element-2);
}

.widget {
  margin: 4px;
  margin-bottom: 6px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.widget:hover {
  border: 1px solid var(--color-accent-1);
}

.widget:nth-child(even) {
  background-color: var(--color-element);
}

.widget:nth-child(odd) {
  background-color: var(--color-element-2);
}

.widget {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.w_head {
  height: 48px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  cursor: pointer;
}

.w_front,
.w_end {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.w_front > img {
  margin-right: 8px;
  width: 36px;
  height: 36px;
}

:root, button, input {
  font-family: "Fontin-Regular", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

button, .button {
  font-variant: small-caps;
}

table, footer, button.overlay_exit, #help_content {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

button.overlay_exit {
  font-family: Arial, Helvetica, sans-serif;
}

@font-face {
  /* A font by Jos Buivenga (exljbris) -> www.exljbris.com */
  /* https://www.exljbris.com/fontin.html */
  font-family: "Fontin-Regular";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/Fontin-Regular.woff2) format("woff2");
  font-display: swap;
}
.fontinR {
  font-family: "Fontin-Regular";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

#content_main {
  --sidebar-width: 384px;
  grid-row: mid-start/mid-end;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  /* pointer-events:none; */
  display: grid;
  grid-template-columns: [sidebar-start] min-content [atlas-begin] 4fr [atlas-end];
}

#widget_sidebar {
  width: var(--sidebar-width);
  grid-column: sidebar-start/atlas-begin;
}

#atlas_of_worlds {
  grid-column: atlas-begin/atlas-end;
}

#help_container {
  position: relative;
}

#help_content {
  /* TODO: Make this not terrible on mobile */
  width: 512px;
  max-width: 100vw;
  box-sizing: border-box;
  position: absolute;
  right: -128px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

#help_content hr {
  margin-top: 8px;
  margin-bottom: 6px;
}

div#options_content.dropdown.content {
  right: 0px;
  display: flex;
  flex-direction: column;
  width: 200px;
  margin-right: 0;
}

/* #options_button:hover {
    filter: brightness(80%);
} */
#reset_options_button {
  padding: 4px;
}

.swap_palette .material-icons {
  color: var(--color-accent-1);
}

.frame_container_outer {
  display: block;
  position: fixed;
  height: 100vh;
  width: 100vw;
  top: 0;
  right: 0;
  z-index: 101;
  border: none;
  background-color: rgba(80, 80, 80, 0.6);
}

.frame_container {
  display: block;
  position: fixed;
  height: 80vh;
  width: 80vw;
  top: 10vh;
  right: 10vw;
  border: 2px solid var(--color-element);
  background-color: var(--color-base);
}

#iframe_1 {
  width: 100%;
  height: 100%;
  border: none;
}

#iframe_1_exit {
  position: absolute;
  top: 8px;
  right: 8px;
}

/*# sourceMappingURL=map_style.css.map */
