:root {
  --topbarHeight: 60px;
  --bottombarHeight: 40px;
  font-family: monospace;
}

body {
  margin: 0;
}

.page {
  width: 100vw;
  height: calc(100vh - var(--topbarHeight) - var(--bottombarHeight));
  background: #112;
  display: flex;
}

.topbar {
  cursor: default;
  background: black;
  height: var(--topbarHeight);
  width: 100vw;
  display: flex;
}

.topbar > .right {
  height: 100%;
  align-items: center;
  display: inline-flex;
  width: fit-content;
}

.topbar > .left {
  display: inline-flex;
  float: right;
  height: 100%;
  align-items: center;
}

.topbar button {
  height: 40px;
  outline: none;
  border: none;
  background: #334;
  fill: white;
  color: white;
  cursor: pointer;
  margin-right: 5px;
}

.topbar button:disabled {
  color: #667;
  fill: #667;
  cursor: default;
}

.topbar button:not(:disabled):hover {
  background: #556;
}

#projectTitle {
  margin-right: 10px;
  outline: none;
  border: none;
  padding: 0 10px;
  font-size: 15px;
  display: inline flex;
  align-items: center;
  background: #334;
  height: var(--bottombarHeight);
  width: fit-content;
  color: white;
}

#configButton {
  width: 40px;
}

.bottombar {
  padding: 10px;
  color: lightgray;
  z-index: 10;
  background: black;
  height: calc(var(--bottombarHeight) - 20px);
  width: calc(100vw - 20px);
}

#mainEditorContainer {
  background: #333;
  display: inline flex;
  width: 50%;
  height: 100%;
  flex-direction: column;
}

.editor {
  width: 100%;
  height: 100%;
  display: none;
}

.editor.visible {
  display: inline-block;
} 

.tabBar {
  background: #456;
  user-select: none;
  width: 100%;
  height: 10%;
  display: flex;
}

.tab {
  overflow: clip;
  font-size: 3vh;
  cursor: pointer;
  
  height: 100%;
  
  background: #123;
  display: flex;
  
  justify-content: center;
  align-items: center;
  
  color: white;
  
  width: calc(100% / 3);
}

.tab:not(:first-child) {
  margin-left: 4px;

}

.tab:hover {
  background: #345;
}

.tab.active {
  background: #456;
}

iframe {
  background: white;
  border: none;
  width: 50%;
  height: 100%;
  float: right;
  z-index: 50;
}

#sep {
  cursor: e-resize;
  z-index: 0;
  display: inline-block;
  height: 100%;
  width: 10px;
  background: black;
}

#dragger {
  z-index: 999;
  position: absolute;
  cursor: e-resize;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

.downloadButton {
  margin-left: 10px;
  padding: 5px;
  height: 25px;
  cursor: pointer;
  background: none;
  fill: white;
  border: none;
}

.downloadButton:hover {
  background: #678;
}

.active .downloadButton:hover {
  background: #789;
}