* {
    margin: 0;
    padding: 0;
}
body { 
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
 }

#ui-bar {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4.25rem;
    width: 100%;
    z-index: 50;
    background-color: #111000;
    border-top: 2px solid #222333;
}

#ui-bar p {
    margin: 14px;
    font-size: 2rem;
    color: #CCC;
}

#ui-bar a {
    color: lightsteelblue;
}

#zSomething {
    color: #5555FF;
    font-weight: bold;
    margin-left: 20px;
}

.subItem {
    font-size: 0.6em;
    color: #CCC000;
    font-weight: normal;
    margin-left: 7px;
}

#wrapper {
    position: absolute;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#knoxy {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#cssLayer,
#cssLayer2 {
    z-index: 0;
    position: absolute;
    top: 0;
    pointer-events: none;
}

#ui {
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 15px;
    padding-left: 15px;
    z-index: 5;
    display: none;
}

#ui-inner {
    position: relative;
    min-height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 5px;
    padding: 5px 10px;
    overflow: hidden;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

#ui-inner.mini {
    max-height: 117px;
    transition: max-height 0.4s ease-in-out;
}

#ui-inner.expanded {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
    background-color: rgba(0, 0, 0, 0.75)
}

#ui-inner p {
    margin: 0;
    display: inline-block;
    color: #fff;
    font-family: monospace;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 2em;
}

#ui-inner p a {
    color: #fff;
}
#ui-inner p a:hover {
    color: rgb(90, 160, 255);
}

.ui-text { 
    margin-right: 10px;
}

.show {
    opacity: 1;
    transition: opacity 600ms;
}
.hide {
    opacity: 0;
    transition: opacity 600ms;
}


.blinking-cursor {
    background-color: #fff;
    width: 0.7em;
    height: 1.3em;
    line-height: 1;
    -webkit-animation: 0.45s blink step-end infinite;
    -moz-animation: 0.45s blink step-end infinite;
    -ms-animation: 0.45s blink step-end infinite;
    -o-animation: 0.45s blink step-end infinite;
    animation: 0.45s blink step-end infinite;
}

@keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-moz-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-webkit-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-ms-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}

@-o-keyframes blink {
    from,
    to {
        background-color: transparent;
    }
    50% {
        background-color: white;
    }
}


#labels {
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    z-index: 1;
}

#labels>div {
    white-space: nowrap;
    text-align: center;
    position: absolute;
    left: 0;             
    top: 0;
    cursor: pointer;
    font-size: large;
    user-select: none;
    text-shadow:
        -1px -1px 0 #000,
        0   -1px 0 #000,
        1px -1px 0 #000,
        1px  0   0 #000,
        1px  1px 0 #000,
        0    1px 0 #000,
        -1px  1px 0 #000,
        -1px  0   0 #000;
}
#labels>div:hover { color: red; }

#labels .show { opacity: 1 }
#labels .hide { 
    opacity: 0;
    transition: opacity 400ms;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    display: none;
    z-index: 10;
    overflow-y: auto;
}
#overlayClose {
    position: fixed;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    color: #FFF;
    font-size: 6rem;
    font-weight: bold;
    cursor: pointer;
}
#overlayClose:hover {
    color: #003c67;
}
#overlayContent {
    position: absolute;
    width: 66%;
    background-color: rgba(255, 255, 255, 0.8);
    min-height: 350px;
    top: 16.67%;
    left: 16.67%;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    -webkit-box-shadow: 10px 10px 150px 7px rgba(12,112,227,1);
    -moz-box-shadow: 10px 10px 150px 7px rgba(12,112,227,1);
    box-shadow: 10px 10px 150px 7px rgba(12,112,227,1);
}
#overlayContent h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
}
#overlayContent p {
    margin-top: 2rem;
    font-size: 2rem;
}
#overlayFooter {
    margin-top: 200px !important;
    min-height: 15%;
    width: 100%;
}

#overlayFooter button {
    box-shadow: inset 0px 1px 0px 0px #54a3f7;
    background: linear-gradient(to bottom, #007dc1 5%, #0061a7 100%);
    background-color: #007dc1;
    border-radius: 3px;
    border: 1px solid  #124d77;
    display: inline-block;
    cursor: pointer;
    color: #ffffff;
    font-family: Arial;
    font-size: 2.5rem;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-shadow: 0px 1px 0px #154682;
}
#overlayFooter button:hover {
    background:linear-gradient(to bottom, #0061a7 5%, #007dc1 100%);
    background-color:#0061a7;
}
#overlayFooter button:active {
    position:relative;
    top:1px;
}



#contextMenu {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #54a3f7;
    border: 2px solid #FFF;
    border-radius: 8px;
    padding: 5px;
    min-height: 12px;
    min-width: 80px;
    display: none;
    z-index: 5;
}

#contextContent {
    list-style: none;
    font-size: 1.25rem;
}

#contextContent li {
    padding: 5px;
    cursor: pointer;
}
#contextContent li:hover {
    color: #ffff00;
}

#contextClose {
    color: #FFF;
    display: block;
    margin-top: 10px;
}
#contextClose:hover {
    font-weight: bold;
}

iframe {
    border: none;
    width: 100%;
    height: 100%;
    position: relative;
}

#monitorContainer {
    width: 1600px;
    height: 900px;
    overflow: hidden;
    background-color: #000;
}


#monitor2Container {
    height: 1600px;
    width: 900px;
    overflow: hidden;
    background-color: #000; 
}

#btnPowerM1,
#btnPowerM2,
#btnPowerE3,
#btnPowerLamp {
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
}

#frame1,
#frame2 {
    display: none;
}

@media screen and (max-width: 1024px) {

    #ui-inner.mini {
        max-height: 78px;
    }

    #ui-inner p {
        font-size: 1em;
    }

    #loadingOverlay {
        font-size: 0.5em;
        padding: 5px;
    }

}
