body {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f0f2f5;
}

.iframe-wrapper {
  display: flex;
  flex: 1;
  width: 100%;
  flex-direction: column;
  position: relative;
  user-select: none;
}

#split-0,
#split-1 {
  display: flex;
  width: 100%;
  overflow: hidden;
}

/* layout vertical padrão */
.iframe-wrapper:not(.horizontal-layout) {
  min-height: 450px;
}

.iframe-wrapper:not(.horizontal-layout) #split-0 {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
  display: block;
}

.gutter {
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: 50%;
}

.gutter.gutter-vertical {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlKQQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
    cursor: row-resize;
}

.gutter.gutter-horizontal {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUgAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: col-resize;
    order: 2;
}

.toggle-button {
  position: fixed;
  top: 10px;
  left: 10px;
  background-color: #27ae6061;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
  z-index: 1000;
}
.toggle-button:hover {
  background-color: #27ae6061;
}


.horizontal-layout {
  flex-direction: row;
  height: 100%;
  min-width: 1024px;
  margin: 0 auto;
}
.horizontal-layout #split-0 {
  width: 50%;
  height: 100%;
  order: 1;
}

.horizontal-layout #split-1 {
  width: 50%;
  height: 100%;
  order: 3;
}

#split-0,
#split-1 {
  width: 100%;
}
