/****************************************************************************
 **
 ** This demo file is part of yFiles for HTML 1.3.0.1.
 ** Copyright (c) 2000-2015 by yWorks GmbH, Vor dem Kreuzberg 28,
 ** 72070 Tuebingen, Germany. All rights reserved.
 **
 ** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
 ** of demo files in source code or binary form, with or without
 ** modification, is not permitted.
 **
 ** Owners of a valid software license for a yFiles for HTML version that this
 ** demo is shipped with are allowed to use the demo source code as basis
 ** for their own yFiles for HTML powered applications. Use of such programs is
 ** governed by the rights and conditions as set out in the yFiles for HTML
 ** license agreement.
 **
 ** THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
 ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 ** NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 **
 ***************************************************************************/
.demo-app {
    /* make the body expand to fill the visible window */
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    touch-action: none;
    -ms-touch-action: none;
    touch-action: none;
}

body {
    /* don't disable scrollbars on the html element as well
       - otherwise, event coordinates will be wrong if scrolling
       is re-enabled later */
    overflow: hidden;
}

body, .option-ui-htmlblock {
}

aside.demo-right {
    /* the right sidebar needs an overflow due to the sidebar usage in e.g. graphviewer-demo.
       For the left sidebar it works better to have the overflow in the .demo-collapsible-pane*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.dojoTabPane {
    padding: 10px 10px 10px 10px;
}

/* This is the root element of the components of a yFiles demo.
   During initial loading, all components are hidden. */
#app {
    display: none;
}

/* While setting up the demo-framework, #app gets the 'demo-app' class and becomes visible. */
#app.demo-app, .demo-app {
    display: block;
}

.demo-container {
    width: 100%;
    height: 400px;
    background-color: #FFFFFF;
}

.demo-app .demo-left {
    position: absolute;
    left: 0;
}

.demo-app .demo-right {
    position: absolute;
    right: 0;
}

.demo-app header {
    width: 100%;
    height: 30px;
}

.demo-app footer {
    width: 100%;
    height: 25px;
}

/* Likely, this is obsolete. */
#description {
    width: 25%;
}

.demo-app .demo-sidebar {
    width: 50%;
}

.yfiles-canvascontrol {
    width: 100%;
    height: 100%;
}

.yfiles-canvascontrol.demo-overview-control {
    width: 100%;
    height: 200px;
}

.demo-app header {
    position: relative;
    border-bottom: 1px solid #aaa;
    background: #ffffff;
}

.demo-app header div {
    position: absolute;
    padding: 0 10px;
    bottom: 0;
}

.demo-app header div a {
    text-decoration: none;
    display: block;
}

.demo-app footer {
    position: absolute;
    bottom: 0;
    text-align: center;
    border-top: 1px solid #9f9f9f;
    line-height: 24px;
    background: #ffffff;
}

.demo-app footer>div>div {
    display: inline-block;
    width: 49%;
    vertical-align: top;
}

.demo-toolbar {
    background: #efefef;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 0.5rem;
    flex-direction: row;
    padding: 0 1rem;
}

.demo-combobox:hover:not(.demo-disabled) {
    border-color: #888;
}

.demo-context-menu {
    background: #F9F9F9;
    border: 1px solid #ccc;
    box-shadow: 0 0 12px rgba(0, 0, 0, .3);
    top: 0;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 100px;
}

.demo-context-menu li {
    position: relative;
    display: block;
    padding: 5px;
    border-bottom: 1px solid #ccc;
}

.demo-context-menu:last-child {
    border-bottom: none;
}

.demo-collapsible-pane {
    background-color: white;
    border-top: 1px solid #BEBEBE;
    max-height: 100%
}

.demo-collapsible-pane:FIRST-CHILD {
    border-top: none;
}

.demo-collapsible-pane-header, .demo-dialog h2 {
    display: block;
    min-height: 26px;
    margin: 0;
    padding: 3px 5px;
    background-color: #F7F7F7;
    color: #A0A0A0;
    font-size: 120%;
    font-weight: normal;
    line-height: 180%;
    letter-spacing: 1px;
    border-bottom: 0;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.demo-collapsible-pane[data-collapse="top"] .demo-collapsible-pane-header {
    cursor: pointer;
}

.demo-collapsible-pane-content {
    padding: 5px;
    line-height: 135%;
}

.demo-collapsible-pane-content, .demo-collapsible-pane, #descriptionContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sidebar Content */

.demo-collapsible-pane-content h1 {
    font-size: 130%;
    color: #333;
}

.demo-collapsible-pane-content h2 {
    font-size: 120%;
    color: #333;
}

.demo-collapsible-pane-content h3, .demo-collapsible-pane-content h4 {
    font-size: 100%;
    color: #333;
}

.demo-collapsible-pane-content h1, .demo-collapsible-pane-content h2, .demo-collapsible-pane-content h3,
.demo-collapsible-pane-content h4 {
    margin: 1.5ex 0 .5ex 0;
}

.demo-collapsible-pane-content p, .demo-collapsible-pane-content ul, .demo-collapsible-pane-content ol,
.demo-collapsible-pane-content pre  {
    margin: 1ex 0;
}

.demo-collapsible-pane-content ul, .demo-collapsible-pane-content ol {
    padding: 0 0 0 1.3em;
}

.demo-collapsible-pane-content li {
    padding: .3ex 0;
}

.demo-collapsible-pane-content a {
    color: #995100;
}

.demo-collapsible-pane-content em {
    color: #995100;
    font-style: normal;
}

.demo-collapsible-pane-content code, .demo-collapsible-pane-content tt {
    color: #995100;
    font-family: monospace;
}

.demo-collapsed .demo-collapsible-pane-content {
    display: none;
}

.demo-collapsed .demo-collapsible-pane-header {
    border-bottom: none;
}

.demo-bold {
  font-weight: bold !important;
}

.demo-blue {
  color: #007FFF !important;
}

.demo-green {
  color: green !important;
}

.demo-orange {
  color: darkorange !important;
}

.demo-purple {
  color: purple !important;
}

.demo-red {
  color: #B02222 !important;
}

/* Splitter */

.demo-splitter {
  background-color: #eee;
}
.demo-splitter:hover {
  background-color: #bbb;
}

.demo-splitter-horizontal {
    height: 5px;
    cursor: ns-resize;
}

.demo-splitter-vertical {
    width: 5px;
    cursor: ew-resize;
}

.demo-splitter-vertical .demo-splitter-thumb {
    height: 20px;
    width: 0;
    border-left: 1px solid #aaa;
    position: absolute;
    top: 49%;
    left: 49%;
}

.demo-splitter-horizontal .demo-splitter-thumb {
    width: 20px;
    height: 0;
    border-top: 1px solid #aaa;
    position: absolute;
    top: 49%;
    left: 49%;
}
.demo-splitter:hover  .demo-splitter-thumb {
  border-color: #888;
}
.demo-panel, .demo-borderlayout {
    width: 100%;
}

.demo-borderlayout {
}

/* Form and toolbar elements */

/* Error dialog */
.demo-dialog-anchor {
    position: absolute;
    right: 50%;
    top: 25px;
}

.demo-dialog {
    z-index: 10000;
    position: relative;
    right:-50%;
    width: 25em;
    background: #F9F9F9;
    border: 1px solid #A0A0A0;
    box-shadow: 0 0 12px rgba(0, 0, 0, .3);
}

.demo-dialog * {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.demo-dialog h2 {
    padding-left: 10px;
    padding-right: 10px;
}

.demo-dialog .demo-dialog-content {
    padding: 2px 10px 10px 10px;
}

.demo-dialog button {
    margin-top: 1ex;
}

.demo-dialog.demo-error-dialog {
    width: 40em;
    min-height: 400px;
}

.demo-error-dialog label .optional:before {
    margin-left: .5em;
    content: '(';
}

.demo-error-dialog label .optional:after {
    content: ')';
}

.demo-error-dialog label .optional {
    font-size: 90%;
}

/* loading animation */

#loader {
    width: 100vw;
    height: calc(100vh - 64px);
    display: flex;
    justify-content: center;
    align-items: center;
}

#loader.error {
    background: #FFF;
    border: 3px solid red;
    width: 300px;
    padding: 20px;
}

#loader.error h1 {
    font-size: 16px;
    margin-top: 0;
}

#loader.error p {
    position: static;
}

#loader p {
    position: absolute;
    bottom: 0;
}

.demo-fps-counter {
    text-align: center;
    width: 150px;
    min-height: 1.3em;
    margin: auto;
    font-family: monospace;
    background-color: yellow;
    font-weight: bold;
    font-size: 1.3em;
    border: 1px solid #C9404B;
}

/* GraphControl scrollbars */

.yfiles-canvascontrol .yfiles-scrollbar.yfiles-scrollbar-horizontal {
    background: #eee;
    height: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar.yfiles-scrollbar-vertical {
    background: #eee;
    width: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar-range.yfiles-scrollbar-range-horizontal .yfiles-scrollbar-slider, .yfiles-canvascontrol .yfiles-scrollbar .yfiles-button.yfiles-button-left:hover, .yfiles-canvascontrol .yfiles-scrollbar .yfiles-button.yfiles-button-right:hover {
    border: none;
    background: #cccccc;
    border-radius: 0;
    height: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar-range.yfiles-scrollbar-range-vertical .yfiles-scrollbar-slider, .yfiles-canvascontrol .yfiles-scrollbar .yfiles-button.yfiles-button-up:hover, .yfiles-canvascontrol .yfiles-scrollbar .yfiles-button.yfiles-button-down:hover {
    border: none;
    background: #cccccc;
    border-radius: 0;
    width: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar.yfiles-scrollbar-horizontal div,
.yfiles-canvascontrol .yfiles-scrollbar .yfiles-scrollbar-range.yfiles-scrollbar-range-horizontal {
    height: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar.yfiles-scrollbar-vertical div,
.yfiles-canvascontrol .yfiles-scrollbar .yfiles-scrollbar-range.yfiles-scrollbar-range-vertical {
    width: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar .yfiles-button {
    border: none;
    width: 15px;
    height: 15px;
    border-radius: 0;
}

.yfiles-canvascontrol .yfiles-scrollbar .yfiles-button:hover {
    background: #bbb;
}

.yfiles-canvascontrol .yfiles-scrollbar .yfiles-scrollbar-range.yfiles-scrollbar-range-horizontal {
    left: 15px;
    right: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar .yfiles-scrollbar-range.yfiles-scrollbar-range-vertical {
    top: 15px;
    bottom: 15px;
}

.yfiles-canvascontrol .yfiles-scrollbar-range.yfiles-scrollbar-range-horizontal .yfiles-scrollbar-slider:hover,
.yfiles-canvascontrol .yfiles-scrollbar-range.yfiles-scrollbar-range-vertical .yfiles-scrollbar-slider:hover {
    background: #bbb;
}

.demo-collapse-button {
  cursor: pointer;
}

.demo-collapse-button rect {
  stroke: #fff;
  stroke-width: 0px;
  transition: stroke-width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.demo-collapse-button:hover rect:first-child {
  stroke-width: 1.5px;
}
