:root {    
  --small-radius: 0.2em;
  --mid-radius: 0.7em;
  --large-radius: 1.4em;  
  --header-height: 4em;
  --nav-menu-width: 5em;
  --small-icon-height: 1.5em;
  --side-nav-icon-height: 1.6em;
  --nav-icon-height: 2.2em;
  --small-avatar-height: 3.3em;
  --large-avatar-height: 5.75em;
  --control-height: 2.4em;  
  --control-padding: 0.6em 1.00em;
  --control-margin: 0.25em;
  --control-border: 0px;
  --control-box-shadow: 0px 2px 3px #00000030;
  --small-font-size: 0.80em;
  --normal-font-size: 1.0em;
  --medium-font-size: 1.15em;
  --large-font-size: 1.3em;
  --huge-font-size: 1.5em;  
  --side_nav_width: 20em;
  --edge-width: 0.08em;
  --footer-height: 3.0em;
  --margin-very-large: 4em;
  --margin-large: 3em;  
  --margin-medium: 2em;
  --margin-small: 1em;
  --margin-tiny: 0.5em;
  --mom-width: 45em;
  --side-menu-margin: 1.6em;

}

@font-face {
  font-family: 'Jambo-Light';
  src: url('/fonts/Inter-Light.ttf');
}

@font-face {
  font-family: 'Jambo-Medium';
  src: url('/fonts/Inter-Regular.ttf');
}

@font-face {
  font-family: 'Jambo-Bold';
  src: url('/fonts/Inter-Medium.ttf');
}

@font-face {
  font-family: 'Jambo-ExtraBold';
  src: url('/fonts/Inter-Bold.ttf');
}

@font-face {
  font-family: 'Jambo-Heading-Light';
  src: url('/fonts/Ubuntu-Light.ttf');
}

@font-face {
  font-family: 'Jambo-Heading-Medium';
  src: url('/fonts/Ubuntu-Regular.ttf');
}

@font-face {
  font-family: 'Jambo-Heading-Bold';
  src: url('/fonts/Ubuntu-Medium.ttf');
}

@font-face {
  font-family: 'Jambo-Heading-ExtraBold';
  src: url('/fonts/Ubuntu-Bold.ttf');
}

.medium_bold {
  font-family: Jambo-Bold;
}

h1, h2, h3, h4, h5, h6 {font-family: Jambo-Heading-Medium;}

body{
  margin: 0em;
}

html {
  width: 100%;
  height: 100%;
  scrollbar-color: #00000040; 
  font-family: Jambo-Medium;
}

.main_body {
  height: 100%;
}

.header {
  background-color: var(--accent1-mid-color);
  margin: 0;
  height: var(--header-height);
  width: 100%;
  position: absolute;
  z-index: 10;
  background-image: var(--header-gradient);
  top: 0;
}

.content {
  position: relative;
  top: var(--header-height);
  margin: 0;
  height: calc(100% - var(--header-height)  - var(--footer-height));
}

.footer {
  background-color: var(--gray-high-color);
  margin: 0;
  height: var(--footer-height);
  width: 100%;
  position: absolute;
  z-index: 10; 
  bottom: 0;
  text-align: center;
}

.config_button {
  margin: 0.8em;
  user-select: none;
  cursor: pointer;

  float: right;
}

.config_icon {
  height: 3em;
  user-drag: none;
}

.heading_logo {
  margin: 0.6em;
  height: 2.6em;
  position: absolute;
  user-select: none;
  cursor: pointer;
  filter: invert(var(--svg-invertion));
  user-drag: none;
}

.popup {
  
}

.control {
  border-radius: var(--small-radius);
  background-color: var(--light-bg-color);
  border: var(--control-border) solid var(--edge-color);
  min-height: var(--control-height);
  display: inline-block;
  text-align: center;
  padding: var(--control-padding);
  box-sizing: border-box;
  box-shadow: var(--control-box-shadow);
  user-select: none;
  font-family: Jambo-Medium;
  font-size: var(--normal-font-size);
  cursor: pointer;
  margin: var(--control-margin);
  color: var(--dark-text-color);
}

.control:hover {
  background-color: var(--light-hover-bg-color);
}

.button {
  -webkit-appearance: none;
}

.toggled {
  background-color: lightgreen;
}

.toggled:hover {
  background-color: #0f0;
}

.alerted {
  background-color: #F99;
}

.alerted:hover {
  background-color: #F88;
}

.popup_back{
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--popup-back-bg-color);
  width: 100%;
  height: 100%;
  z-index: 11;
  padding: 2em;
  box-sizing: border-box;
}

.popup_frame{
  margin: 0 auto;
  border-radius: var(--mid-radius);
  border: var(--control-border) solid var(--edge-color);
  background-color: var(--gray-high-color);
  box-shadow: var(--control-box-shadow);
  padding: var(--margin-medium);  
  max-height: 100%;
  overflow: auto;
  color: var(--dark-text-color);  
  width: max-content;
  max-width: 96%;  
  box-sizing: border-box;
  position: relative;
}

.footer-button {
  display: inline-block;
  width: var(--footer-height);
  height: var(--footer-height);
  margin: 0 0.3em ;
}

.footer-button-op {
  opacity: 0.4;
}

.footer-button-image {
  width: calc(var(--footer-height) - 0.2em);
  height: calc(var(--footer-height) - 0.2em);
  margin: 0.1em;
}
.context_back {
  position: fixed;
  top: 0;
  left: 0;
  
  width: 100%;
  height: 100%;
  z-index: 11;
  padding: 2em;
  /*padding-top: 5em;*/
  box-sizing: border-box;
}

.context_menu {
  background-color: var(--light-bg-color);
  border-radius: var(--mid-radius);
  position: absolute;
  box-shadow: 0em 0.1em 0.3em var(--faint-shadow);
  padding: var(--small-radius) 0;
  border: var(--edge-width) solid var(--edge-color);
  right: 2em; 
  top: 4em;
}

.context_item{
  margin: 0.25em 0em;
  padding: 0.5em 2.0em;
  cursor: pointer;
  user-select: none;
  font-family: Jambo-Medium;
  font-size: var(--normal-font-size);
}

.context_item:hover {
  background-color: var(--gray-high-color);
  color: var(--dark-text-color);
}

.fade_in {
  animation: fadeIn ease 0.4s;
}

.fade_out {
  animation: fadeOut ease 0.4s;
  opacity: 0;
}


.ql-toolbar.ql-snow {
  margin-right: 0;
}


@keyframes momIn {
  0% {
    right: calc(0em - var(--mom-width));
  }
  100% {
    right: 0em;
  }
}

@keyframes momOut {
  0% {
    right: 0em;
  }
  100% {
    right: calc(0em - var(--mom-width));
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.grow_up{
  height: auto;
  animation: growUp ease 0.5s;
}

@keyframes growUp {
  0% {
    max-height: 50px;
  }
  100% {
    max-height: 500px;
  }
}

.zoom_in {
  animation: zoomIn ease 0.2s;
}

.fade_in_delayed {
  animation: fadeInDelayed ease 0.8s;
}


@keyframes fadeInDelayed {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1.0);
  }
}
