html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
	margin:0;
}
#header {
    margin:0;
	height:49px;
	width:100%;
	position:fixed;
    background:#191820;
    display: flex;
    justify-content: flex-start;
}

#title {
	line-height: 48px;
	padding-left: 20px;
    font-size: 24pt;
}

#title img{
	height:42px;
	padding-left:22px;
	padding-top:2px;
}

#title a{
	text-decoration:none;
	color:#6a5d3f;
}

.topnav { 
    position: fixed;
    z-index: 0;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y:auto;
    scrollbar-width: none;
}
.topnav::-webkit-scrollbar{
    display: none;
}

.navbutton {
    padding-bottom:8px;
    padding-top:8px;
    padding-left:10px;
    padding-right:10px;
    left:8px;
    height: fit-content;
    width: fit-content;
    font-family:'Roboto', sans-serif;
    font-size: 12pt;
    margin-left:0;
    margin-right:10px;
    color:white;
    text-decoration:none;
    border-radius:6px 6px 0 0;
    cursor:pointer;
}

@media (hover: hover) {
    .navbutton:hover {
        border-bottom:3px solid white;
        border-top:3px solid #1d1f30;
        background:#333;
    }
}

#toggle-collapse {
    display:inline-flex;
    padding-bottom:8px;
    padding-top:8px;
    padding-left: 13px;
    padding-right: 13px;
    height: fit-content;
    width: fit-content;
}
@media (hover: hover) and (pointer: fine) { 
#toggle-collapse:hover{
    background: #0197d3;
}
}

#toggle-collapse.nav-active ~ img{
    display: inline-flex;
}

.hbox{
    display: table-cell;
    vertical-align:middle; 
    padding-left:25px;
    padding-right:25px;
    padding-bottom:5px;
    position: absolute;
    right: 60px;
}
.hbox:focus-within{
    background: rgb(171, 206, 216);
}

@media screen and (min-width: 780px) {
    #toggle-collapse {
        display: none;
    }
    .topnav {
        height:48px;
        width:fit-content;
        background: none;
        display: flex;
        flex-direction: row;
        overflow-y:unset;
    }
    .hbox {
        right:326px;
    }
    .navbutton {
        display:inline-flex;
    }
    #left-panel {
      width:100%;
    }
    #comms {
      width:100%;
    }
}

#filter{
    margin-left: 20px;
    padding: 4px;
    height: 1.2rem;
    align-self: center;
}

.split, .gutter.gutter-horizontal {
    float: left;
}
.gutter {
    background-color:#1e1f30; 
 
    background-repeat: no-repeat;
    background-position: 50%;
}
.gutter.gutter-horizontal {
    top: 49px;
    cursor: col-resize;
    height: calc(100% - 49px);
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
}

#main-panels{
    display:flex;
    position:fixed;
    top:49px;
    height:100%;
    width:100%;
    background:#222d3f;
}

.ace_gutter-layer{
  background:#0f0f0f;
}

#tabs-container {
    display: flex;
    flex-wrap: nowrap;
    background-color: #0f0f0f;
    height: 25px;
    padding-left: 40px;
}
#tabs {
    display: inline-flex;
    flex-direction: row;
    align-items: stretch;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    background-color: #1d1f31;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;

}
#tabs::-webkit-scrollbar{
    height:4px;
}
::-webkit-scrollbar-thumb {
    background: #888; 
}

.file-tab {
    display: flex;
    align-items: center;
    background-color: #414e6f;
    color: white;
    padding: 5px;
    margin: 2px;
    flex-shrink: 0;
}
.file-tab:hover {
    cursor: pointer;
    background-color: #1b287a;
}
.file-tab-active {
    cursor: pointer;
    background-color: #108496;
}
.file-tab-active:hover {
    cursor: pointer;
    background-color: #108496;
}
.close-tab {
    width:20px;
    height:18px;
    padding:0px;
    margin-left:5px;
    background-color: rgba(255, 255, 255, 0);
    color: #ffe2e2;
    border: none;
}
.close-tab:hover {
    cursor: pointer;
    font-weight: bold;
    color: red;
}
#add-tab {
    margin: 2px;
    border: none;
    background-color: #414e6f;
    color: white;
}
#add-tab:hover {
    cursor: pointer;
    font-weight: bold;
    color: #ffe16a;
}

#left-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  height: -moz-calc(100% - 49px);
  height: -webkit-calc(100% - 49px);
  height: -o-calc(100% - 49px);
  height: calc(100% - 49px);
  width: 65%; 
  margin-left: -1px;
  font-family:'PT Mono';
  font-size:12pt;
}

.editor {
  margin: 0;
  margin-left: -1px;
  flex-grow: 1;
  font-family:'PT Mono';
  display:none;
}
.editor-active {
    display:unset;
}

#comms {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: -moz-calc(100% - 49px);
    height: -webkit-calc(100% - 49px);
    height: -o-calc(100% - 49px);
    height: calc(100% - 49px);
    width: 35%;
    background:#191820;
    color:white;
    z-index: 1;
}
#file-path{
    min-height: 1.3rem;
    margin: 5px 15px 5px 15px;
    font-family: 'PT Mono', monospace;
    -ms-overflow-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    color:#AAA;
}
#file-path::-webkit-scrollbar{
    display: none;
}
#copy-output {
    align-self: center;
    margin-left: auto;
    margin-right: 1rem;
}
#ac-btns-toggle {
    margin-right:5px;
    background-color:#222d3f;
    border: none;
    color:#AAA;
}

#comms-icons {
    display: flex;
    flex-direction: row;
}

#ac-btns {
    margin: 1rem 1rem 0rem 1rem;
}
@media (max-width: 780px) {
#ac-btns {
    margin-top: 0.2rem;
}
}
.ac-btn {
    margin: 0.2rem;
    font-size: 14px;
}

.ac-btn{
    font-size:11pt;
    color: #DDD;
    text-decoration:none;
    background: #777;
    padding:4px 14px 4px 14px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    -khtml-border-radius: 5px;
    margin:0;
    margin:0.2rem;
    float:left;
	font-family: verdana, arial, sans-serif;
	border:none;
}

.ac-btn:hover{
    background:orange;
    color:white;
    border:none;
}

#ac-custom {
    display: inline-flex;
}
#ac-custom-input {
    display: inline-flex;
    text-align: center;
    width: 8rem;
}
#ac-custom-run {
    display: inline-flex;
    border-radius: 0;
}

#output {
    font-family:'PT Mono';
    position:relative;
    width: -moz-calc(100% - 20px);
    width: -webkit-calccalc(100% - 20px);
    width: -o-calccalc(100% - 20px);
    width: calc(100% - 35px);
    color:white;
    left: 20px;
    right: 15px;
    overflow: auto;
    font-size:12pt;
    margin-top: 8px;
    border-top:1px solid #555;
}

#login-page, #change-pwd {
    top: 100%;
    position: absolute;
    color:white;
}

#output p {
    white-space: normal;
    word-break: break-word;
    text-align: justify;
}

#output div.leaderboard table {
    width: 500px;
}
#output div.leaderboard table tr:first-of-type {
    background-color: #ea8a00e3;
}
#output div.leaderboard table tr:nth-child(odd):not(:first-of-type) {
    background-color: #ff934582;
}
#output div.leaderboard table tr:nth-child(even) {
    background-color: #f7c86982;
}
#output div.leaderboard td:nth-child(1) {
	text-align: center;
    width: 10%;
}
#output div.leaderboard td:nth-child(2) {
    width: 70%;
    text-align: center;
}
#output div.leaderboard td:nth-child(3) {
    width: 20%;
    text-align: right;
    padding-right: 10px;
}

.play{
    left:10px;
    position: relative;
    filter: brightness(0.6);
    border-radius:50%;
    background:#1d1f30;
    border:1px #333 solid;
    padding:12px;
    margin-right:8px;
    height:50px;
    width:50px;
}

.play:hover{
    filter: brightness(1);
    border:1px #777 solid;
}

.play img{
    height:24px;
}


.settings{
    left:10px;
    position: relative;
    border-radius:50%;
    padding:12px;
    margin-right:8px;
    height:45px;
    width:45px;
    filter: brightness(0.6);
}

.settings:hover{
    filter: brightness(1);
}

.settings img{
    height:24px;
}

#resize-btns{
    right: 30px;
    position:fixed;
    z-index: 99;
}
#resize-btns img{
    padding-top:5px;
    padding-bottom:5px;
    position: relative;
}


.fl{
       color:#AAAAFF;
       text-decoration:underline;
       padding:3px;
       padding-left:8px;
       font-weight:bold;
}

.fl:hover{
      background:blue;
      color:white;
}

.fs[onclick*="editDoc"]{
      color:#AAFFAA;
      padding:1px;
      padding-left:8px;
}

.fs[onclick*="editDoc"]:hover{
      background:green;
      color:white;
}

.fs[onclick*="removeDoc"]{
    color:red;
    padding:1px;
}

.fs[onclick*="removeDoc"]:hover{
    background:red;
    color:white;
}

#msg{
     background: #ffb400;
     padding:8px;
     border: 2px solid #e19f00;
     border-radius: 3px;
     -moz-border-radius: 3px;
     -webkit-border-radius: 3px;
     -khtml-border-radius: 3px;
     margin-bottom:10px;
     font-weight:bold;
}

#check{
    color:green;
    font-size:14pt;
    margin-right: 10px;
}

.no-close .ui-dialog-titlebar-close {display: none }
.ui-draggable { width: 450px; }

.ace_mobile-menu { display: none !important }

.button { 
     padding:12px;
     border: 2px solid #e19f00;
     border-radius: 4px;
     -moz-border-radius: 4px;
     -webkit-border-radius: 4px;
     -khtml-border-radius: 4px;
     font-size:14px;
}

#login-msg {
    color: #AAFFAA;
}

#pwds td {
    border: none;
}

#pwds a{
    color:#AAAAFF;
}

@media (pointer: coarse) { 
    /* Extra space for easier resizing by touch */
    .gutter:after {
      content:'';
      position:absolute;
      top:-10px; bottom:-10px; 
      left:-3px; right:-3px; 
    }
}
@media screen and (max-width: 780px) {
    #main-panels {
      flex-direction:column;
    }
    #left-panel {
      width:100%;
    }
    .gutter.gutter-vertical {
      position:relative;
      height:10px;
      width:100%;
      cursor: row-resize;
      background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=');
    }
    #comms {
      width:100%;
    }
    body {
      overscroll-behavior-y: contain;
    }
}

.contactemail{
    color:turquoise;
}

.contactus a{
    color:turquoise;
}

