* {
  overscroll-behavior: none;
}

body {
  margin: 0;
  padding: 0;
  background-color: #282828;
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
}

#container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#address-bar {
  width: calc(100% - 0.8rem);
  padding: 0.4rem;
  position: sticky;
  top: 0;
  background-color: #303030;

  display: flex;
  align-items: center;

  z-index: 1;
}

#address-bar-icons-left {
  display: flex;
  align-items: center;
  margin-right: 0.3rem;
}

#address-bar-icons-right {
  display: flex;
  align-items: center;
  margin-left: 0.3rem;
}

input {
  border: none;
  outline: none;
  background-color: #282828;
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  padding: 0;
}

#address-bar input {
  height: 1.3rem;
  flex-grow: 1;
}

.address-bar-spacer {
  height: 1.3rem;
  width: 1px;
  background-color: #404040;
  margin: 0 0.25rem;
}

.icon {
  color: #ccc;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  font-size: 1.4rem;
}

.icon-wide-margin {
  margin: 0 0.075rem;
}

.icon-small {
  font-size: 1.25rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.modal-open {
  display: block;
}

.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #303030;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #282828;
}

.modal-header-title {
  font-size: 14px;
  margin: 0.2rem 0.4rem;
}

.modal-content {
  padding: 0.4rem;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.settings-label {
  margin-right: 0.4rem;
}

select {
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  border: none;
  outline: none;
  appearance: none;
  border-radius: 0;
  height: 1.3rem;
  padding-right: 1.1rem;

  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='lightgray'><polygon points='0,33 67,33 33,83'/></svg>") no-repeat;
  background-size: 0.8rem;
  background-position: 100% 50%;
  background-repeat: no-repeat;
  background-color: #282828;
}

textarea {
  color: #ccc;
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  border: none;
  outline: none;
  resize: none;
  background-color: #282828;
  padding: 0;
}

#main-row {
  display: flex;
  flex-grow: 1;
  overflow: hidden;
  margin-top: 0;
}

#output-frame {
  flex-grow: 1;
  border: none;
}

.right-sidebar {
  width: 25rem;
  background-color: #303030;
  display: none;
  padding: 0 0.4rem 0.4rem;
}

.sidebar-open {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#tree-settings {
  padding: 0.2rem 0.2rem 0.2rem 0.4rem;
  border: 1px solid #404040;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tree-settings-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  font-size: 13.5px;
}

.tree-settings-label {
  margin-top: 0.1rem;
  margin-right: 0.4rem;
  display: flex;
  align-items: center;
}

.tree-settings-label-icon {
  display: flex;
  align-items: center;
  margin-left: 0.2rem;
}

.tree-settings-row select {
  font-size: 13.5px;
}

.tree-settings-row textarea {
  font-size: 13.5px;
  height: 3.5rem;
  width: 60%;
}

.tree-settings-row input {
  font-size: 13.5px;
  width: 60%;
  height: 1.2rem;
}

#sidebar-tree {
  border: 1px solid #404040;
  flex-grow: 1;
  overflow: scroll;
  scrollbar-width: none;
}

#sidebar-tree::-webkit-scrollbar {
  display: none;
}

.current-node {
  background-color: #484848;
}

.node-content {
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  height: 1.2rem;
  display: flex;
  align-items: center;
}

.node-url {
  font-size: 13.5px;
}

.node-buttons {
  display: none;
  position: fixed;
  background-color: #404040;
  border-radius: 0.2rem;
  height: 1.2rem;
  padding: 0.1rem 0.1rem;
  align-items: center;
}

.node-buttons .icon {
  font-size: 1.2rem;
}

.node-content:hover {
  background-color: #484848;
}

.node-content:hover .node-buttons {
  display: flex;
}

.node-children {
  display: flex;
  min-width: fit-content;
}

.node-children-spacer {
  margin: 0 0.4rem 0 0.6rem;
  border-left: 1px solid #404040;
}

.node-children-content {
  flex-grow: 1;
  overflow: auto;
  min-width: fit-content;
}
