:host {
  height: 100%;
}

:host,
input,
button,
select,
textarea {
  font-family: 'Roboto', sans-serif;
}

.zea-layout {
  color: var(--color-foreground-1);
  display: flex;
  width: 100%;
  height: 100%;
}

.zea-layout.vertical {
  flex-direction: column;
}

.zea-layout-cell {
  flex-grow: 1;
  position: relative;
  box-sizing: border-box;
  background-color: var(--color-background-1);

  /* these will be overriden by js
  according to whether it's vertical
  or horizontal */
  width: 100%;
  height: 100%;
}

.with-borders .zea-layout-cell {
  border: 1px solid var(--color-grey-1);
}

.zea-layout-cell:nth-child(1) {
  flex-grow: 0;
  width: 100px;
  height: auto;
}

.zea-layout-cell:nth-child(3) {
  flex-grow: 0;
  width: 100px;
  height: auto;
}

.vertical .zea-layout-cell:nth-child(1) {
  flex-grow: 0;
  height: 100px;
  width: auto;
}

.vertical .zea-layout-cell:nth-child(3) {
  flex-grow: 0;
  height: 100px;
  width: auto;
}

.zea-resize-handle {
  position: absolute;
  display: block;
  content: '';
  width: 6px;
  height: 100%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAXCAYAAAAoRj52AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEFJREFUeNpinDRp0v+XL18yLF26lFFMTIwhJiYGzGf6/fs3w58/fxhgAMZnYsABRiWGrwQLCwsDMzMzXADGBwgwAF78GJLqRabNAAAAAElFTkSuQmCC);
  z-index: 1000000;
  top: 0;
  opacity: 0.5;
  cursor: col-resize;
}

.zea-resize-handle:hover {
  background-color: var(--color-background-2);
  opacity: 1;
}

.vertical .zea-resize-handle {
  left: 0 !important;
  right: 0 !important;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAGCAYAAAAooAWeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAD1JREFUeNpinDhx4v8/f/4wUBuwsrIysLx8+ZLh79+/VDechYWFgVFBQYGBVoBFTEyMdoZHR0cPzTAHCDAAG7UW+bsxwNcAAAAASUVORK5CYII=');
}

.zea-layout-cell:nth-child(1) .zea-resize-handle {
  right: -1px;
}

.zea-layout-cell:nth-child(3) .zea-resize-handle {
  left: -1px;
}

.vertical .zea-resize-handle {
  position: absolute;
  width: 100%;
  height: 6px;
  cursor: row-resize;
  margin-left: 0;
  left: 0;
  background-repeat: no-repeat;
}

.vertical .zea-layout-cell:nth-child(1) .zea-resize-handle {
  bottom: -1px;
  top: auto;
}

.vertical .zea-layout-cell:nth-child(3) .zea-resize-handle {
  top: -1px;
}
