#debugPanel
{
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: none;
    pointer-events: none;
}


#debugPanel[data-display-area='left'] > div
{
    display: flex;
    flex-direction: column;
    width: 50%;
    margin-right: auto;
}


#debugPanel[data-display-area='left'] .titleBar
{
    flex-direction: row;
}


#debugPanel[data-display-area='left'] .debugSection
{
    position: initial;
    flex-direction: column;
}


#debugPanel[data-display-area='left'] .debugSection + .debugSection
{
    margin-top: 0.8em;
}


#debugPanel[data-display-area='left'] #runtimeInfo
{
    position: initial;
}


#debugPanel > div
{
    position: relative;
    height: 100%;
    width: 100%;
}


#debugPanel .titleBar > *, #debugPanel tr
{
    pointer-events: initial;
}


#runtimeInfo
{
    position: absolute;
    top: 40px;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-width: calc(100%-60px);
}


#runtimeInfo > *
{
    position: initial;
}


#statsDebug .titleBar, #performanceDebug .titleBar, #cameraAnnotationDebug .titleBar
{
    flex-direction: row-reverse;
}


#postprocessingDebug
{
    left: 0;
    bottom: 0;
    flex-direction: column-reverse;
}


#arcRotateCameraDebug
{
    left: 0;
    top: 0;
}


#cameraAnnotationDebug
{
    right: 0;
    top: 0;
    margin
}


.dashedSection
{
    border: 1px dashed var(--UI_TITLEBAR);
}


.dashedSection .pp
{
    border-bottom: dashed 1px var(--UI_SCROLLBAR);
}


#hardwareScalingLevelSlider
{
    width: 12rem;
}


#canvasfadingbtn
{
    position: relative;
    text-align: center;
    padding: 0px;
    font-size: 20px;
    height: 40px;
    width: 80%;
    right: 0;
    margin: 0.1em;
    background-color: var(--UI_TITLEBAR);
    color: var(--UI_BACKGROUND);
    border: none;
}


#canvasfadingbtn:active
{
    background-color: var(--UI_PARTITION);
}


#canvasfadingbtn:hover 
{
    background-color: var(--UI_HIGHLIGHT);
}


.debugSection
{
    position: absolute;
    display: flex;
    flex-direction: column;
    color: var(--UI_HIGHLIGHT);
    font-size: 0.8em;
    font-weight: bold;
}


.debugSection .titleBar > *
{
    cursor: pointer;
}


.debugSection .titleBar > *:hover
{
    color: var(--UI_HOVER);
}


.debugSection > table
{
    display: inline-block;
}


.debugSection .openingIcon
{
    display: none;
}


.debugSection .toggleIcon
{
    font-size: 1.25em;
}


.debugSection .titleBar
{
    display: flex;
    align-items: center;
}


.debugSection .titleBar h1
{
    font-size: 1em;
    text-decoration: underline;
    display: inline;
    margin: 0.6em 0.4em;
}


.container
{
    display: block;
    position: relative;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 6px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Hide the browser's default checkbox */
.container input
{
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


/* Create a custom checkbox */
.checkmark
{
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    text-align: center;
    background-color: #eee;
}


/* On mouse-over, add a grey background color */
.container:hover input~.checkmark
{
    background-color: #ccc;
}


/* When the checkbox is checked, add a blue background */
.container input:checked~.checkmark
{
    background-color: var(--UI_HIGHLIGHT);
}


/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after
{
    content: "";
    position: absolute;
    display: none;
}


/* Show the checkmark when checked */
.container input:checked~.checkmark:after
{
    display: block;
}


/* Style the checkmark/indicator */
.container .checkmark:after
{
    top: 0px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


::placeholder
{
    opacity: 0.5;
    color: var(--UI_HIGHLIGHT);
}


::-ms-input-placeholder
{
    opacity: 0.5;
    color: var(--UI_HIGHLIGHT);
}