/*
Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution 2.5 License
*/

body {
    margin: 0;
    padding: 0;
    background: #000000 url(images/img01.jpg) repeat left top;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #4D4D4D;
    /* Without this, the body has excess horizontal scroll when the menu is open */
    overflow-x: hidden;
}

h1, h2, h3 {
    margin: 10px;
    padding: 0;
    font-weight: normal;
    color: #3E3530;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2.0em;
}

h3 {
    font-size: 1.6em;
    text-decoration: underline
}

p, ul, ol {
    margin-top: 0;
    line-height: 180%;
}

ul, ol {
}

a {
    text-decoration: underline;
    color: #3E3530;
}

a:hover {
    cursor: pointer;
}

#wrapper {
    background: #FFFFFF;
    max-width: 900px;
    margin: 0;
    padding: 0;

    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    border: 1px solid gray;
    /*display: inline-block;*/
}

/* Header */

#header {
    /*min-width: 965px;*/
    /*width: 100%;*/
    height: 50px;
    margin: 0;
    padding: 20px 0 0 0;
}

#header-wrapper{
    background: #4B4646;
}

/* Map */
.deviceTag {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 2px 8px 2px 8px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font: 11px sans-serif;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    min-width: 50px;
}

.streamingDiv {
    position: absolute;
    -ms-transform: translate(-50%);
    transform: translate(-50%);
    left: 50%;
    top: 100px;
    width: 500px;
    height: 175px;
    z-index: 900;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 2px 8px 2px 8px;
    display: inline-block;
    text-decoration: none;
    font: 11px sans-serif;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.switchTag {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 2px 2px 2px 2px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font: 8px sans-serif;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

.green-border {
    border: 1px solid springgreen;
}

.white-border {
    border: 1px solid white;
}

.orange-border {
    border: 1px solid orange;
    background: rgba(255, 165, 0, 0.3);
}

.red-border {
    border: 1px solid red;
    background: rgba(255, 0, 0, 0.3);
}

.device-warning {
    border: 1px solid red;
    color:red;
    text-align:center;
    background: rgba(255, 255, 255, 0.8);
}

.motion-detection {
    border: 1px solid red;
    color:red;
    text-align:center;
    background: rgba(255, 255, 255, 0.8);
}

.motion-warning {
    border: 1px solid orange;
    color:black;
    text-align:center;
    background: rgba(255, 176, 78, 0.8);
}

.motion-ok {
    border: 1px solid green;
    color:white;
    text-align:center;
    background: rgba(0, 144, 0, 0.8);
}

#actionList{
    position: fixed;
    overflow: auto;
    /*top: 70%;*/
    left: 50%;
    margin-top: 100px;
    margin-left: -30%;
    width: 70%;
    min-width: 450px;
    min-height: 200px;
    max-height: 500px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
}

#errorMessage{
    position: fixed;
    overflow: auto;
    top: 60%;
    left: 50%;
    margin-top: -20%;
    margin-left: -30%;
    width: 60%;
    min-height: 200px;
    z-index: 1000;
    background: rgba(255, 0, 0, 0.8);

    font-size:14pt;
    color: #FFFFFF;
    
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid red;
}

#temperatureChart {
    position: fixed;
    overflow: auto;
    /*top: 70%;*/
    left: 50%;
    margin-top: 100px;
    margin-left: -40%;
    width: 80%;
    height: 480px;
    max-height: 80%;

    background: rgba(255, 255, 255, 0.8);

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
}

#liveDataBox{
     position: absolute;
     overflow: auto;
     left: 83%;
     top: 140px;
     width: 250px;
     min-height: 150px;
     max-height: 80%;

     background: rgba(255, 255, 255, 0.8);

     -webkit-border-radius: 5px;
     -moz-border-radius: 5px;
     border-radius: 5px;
     border: 1px solid gray;
 }

#logList{
    position: fixed;
    overflow: auto;
    /*top: 70%; /* was 60%, has to move down a bit */
    left: 60%;
    margin-top: 100px;
    margin-left: -40%;
    min-width: 60%;
    max-width: 80%;
    min-height: 250px;
    max-height: 80%;

    background: rgba(255, 255, 255, 0.8);

    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
}​

    /* Logo */

#logo {
    margin: 0 0 0 35px;
    padding: 0;
    color: #000000;
}

#logo h1, #logo p {
    margin: 0;
    padding: 0;
}

#logo h1 {
    text-align: center;
    letter-spacing: -1px;
}

#logo p {
    margin: 0;
    padding: 0px 0 0 2px;
    font: normal 14px Georgia, "Times New Roman", Times, serif;
    font-style: italic;
    color: #FFFFFF;
}

#logo a {
    border: none;
    background: none;
    text-decoration: none;
    color: #FFFFFF;
}

/* Search */

#search {
    float: left;
    width: 240px;
    height: 30px;
    padding: 20px 0px 0px 0px;
}

#search form {
    height: 41px;
    margin: 0;
    padding: 10px 0 0 50px;
}

#search fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

#search-text {
    width: 120px;
    padding: 6px 5px 2px 5px;
    border: 1px solid #DEDEDE;
    background: #FFFFFF;
    text-transform: lowercase;
    font: normal 11px Arial, Helvetica, sans-serif;
    color: #5D781D;
}

#search-submit {
    width: 50px;
    height: 22px;
    border: none;
    background: #B9B9B9;
    color: #000000;
}

/* Menu */

#menu {
    width: 980px;
    height: 90px;
    margin: 0;
    padding: 0;
}

#menu ul {
    margin: 0;
    padding: 50px 0px 0px 0px;
    list-style: none;
    line-height: normal;
}

#menu li {
    float: left;
}

#menu a {
    display: block;
    width: 130px;
    height: 30px;
    margin-right: 1px;
    padding: 9px 0px 0px 0px;
    text-decoration: none;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #FFFFFF;
    border: none;
}

#menu a:hover, #menu .current_page_item a {
    text-decoration: none;
}

#menu .current_page_item a {
    padding-left: 0;
}

/* Page */
#page {
    max-width: 940px;
    min-height: 600px;
    width: 100%;
    margin: 0;
    padding: 0px;

}

#page-bgtop {
    background: url(images/img03.jpg) no-repeat left top;
}

#page-bgbtm {
    background: url(images/img05.jpg) no-repeat left bottom;
}

/* Content */
#content {
    /*float: left;*/
    /*min-width: 945px;*/
    padding: 0px 10px 0px 0px;
}

.post {
    margin-left: 10px;
    /*border-bottom: 1px dotted #E7E2DC;*/
    max-width: 100%;
}

.post .title {
    letter-spacing: -.5px;
    padding: 10px 10px 0px 30px;
    /*font-size: 30px;*/
}

.post .title a {
    color: #3E3530;
    border: none;
}

.post .meta {
    margin-bottom: 30px;
    padding: 0px 30px 0px 30px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    font-style: italic;
}

.post .meta .date {
    float: left;
}

.post .meta .posted {
    float: right;
}

.post .meta a {
}

.post .entity {
    padding: 10px 30px 10px 30px;
    margin: 10px 0 10px 0;
    text-align: justify;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;
    overflow: scroll;
}

.post .row {
    padding: 0px 30px 30px 00px;
    padding-bottom: 20px;
    text-align: justify;
}

.post .row .label {
    font-weight: bold;
}

.post .framed {
    padding: 10px 30px 20px 30px;
    margin: 10px;
    padding-bottom: 10px;
    text-align: justify;
    border-style: solid;
    border-width: 1px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    border-left: solid;
    border-radius: 5px;
}

.links {
    padding-top: 20px;
    font-size: 12px;
    font-weight: bold;
}

.buttons {
    padding: 10px;
    font-size: 12px;
    font-weight: bold;
}

.deviceTable {
    width: 100%;
    border-width: 1px;
    border-spacing: 2px;
    border-style: outset;
}

.adminTable {
    width: 100%;
    border-width: 1px;
    border-spacing: 2px;
    border-style: outset;
    border-color: gray;
    border-collapse: separate;
    background-color: WhiteSmoke;
}

.adminTable th {
    border-width: 1px;
    padding: 5px;
    border-style: dotted;
    border-color: gray;
    background-color: white;
    -moz-border-radius: 10px;
}

.adminTable td {
    border-width: 1px;
    padding: 5px;
    border-style: dotted;
    border-color: gray;
    background-color: white;
    -moz-border-radius: 10px;
}

/* Sidebar */

#sidebar {
    float: left;
    /*width: 240px;*/
    margin: 0px;
    padding: 0px 0px 0px 0px;
    color: #787878;

    /* critical sizing and position styles */
    /*width: 965px;*/
    min-height: 100%;
    height: 880px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;

    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

#sidebar-items {
    background: url(images/img04.jpg) repeat-y left top;
}

/*
#sidebar-filler{
    background: #FFFFFF url(images/img08.jpg) repeat-y left top;
    min-width:965px;
}
  */

#sidebar-table {
    background: #FFFFFF;
    margin: 0;
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
}

#sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#sidebar li {
    margin: 0;
    padding: 0;
}

#sidebar li ul {
    margin: 0px 0px;
    padding-left: 25px;
    padding-bottom: 15px;
}

#sidebar li li {
    line-height: 30px;
    margin: 0px 30px;
    padding: 0px 0px 0px 15px;
    border-left: none;
    background: url(images/img07.jpg) no-repeat left 12px;
}

#sidebar li ul li ul li {
    line-height: 30px;
    margin: 0px -20px;
    padding: 0px 0px 0px 15px;
    border-left: none;
    /* background: url(images/img07.jpg) no-repeat left 12px; */
}

#sidebar li li span {
    display: block;
    margin-top: -20px;
    padding: 0;
    font-size: 11px;
    font-style: italic;
}

#sidebar h2 {
    height: 46px;
    padding-top: 13px;
    padding-left: 50px;
    margin-bottom: 10px;
    background: url(images/img06.jpg) no-repeat left 4px;
    letter-spacing: -.5px;
    font-size: 1.8em;
    color: #696969;
}

#sidebar p {
    margin: 0 0px;
    padding: 0px 30px 20px 50px;
    text-align: justify;
}

#sidebar a {
    border: none;
    color: #4D4D4D;
}

#sidebar a:hover {
    text-decoration: underline;
    color: #8A8A8A;
}

/* Calendar */

#calendar {
}

#calendar_wrap {
    padding: 20px;
}

#calendar table {
    width: 100%;
}

#calendar tbody td {
    text-align: center;
}

#calendar #next {
    text-align: right;
}

/* Footer */

#footer {
    height: 10px;
    margin: 0;
    /*padding: 0px 0 15px 20px;*/
    font-family: Arial, Helvetica, sans-serif;
    /*background: url(images/img08.jpg) repeat-y left top;*/
}

#footer p {
    margin: 0;
    /*padding-top: 5px;*/
    line-height: normal;
    font-size: 9px;
    text-transform: uppercase;
    text-align: center;
    color: #A0A0A0;
}

#footer a {
    color: #8A8A8A;
}

/* Custom CSS */
.live-icon {
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 5px 5px 5px 5px;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
    min-width: 50px;
}

.live-grey {
    font: 40px sans-serif;
    border: 1px solid gray;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    width: 200px;
    height: 100px;
}

.live-orange {
    font: 40px sans-serif;
    border: 1px solid orange;
    background: rgba(255, 180, 60, 0.5);
    color: #FFFFFF;
    width: 200px;
    height: 100px;
}

.live-red {
    font: 40px sans-serif;
    border: 1px solid red;
    background: rgba(255, 00, 0, 0.5);
    color: #FFFFFF;
    width: 200px;
    height: 100px;
}

.live-muteOn {
    font: 16px sans-serif;
    border: 1px solid red;
    background: rgba(255, 0, 0, 0.3);
    color: #FFFFFF;
}

.live-finish {
    font: 16px sans-serif;
    border: 1px solid dimgrey;
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
}

.scene-buttons {
    text-align: center;
    display: table;
}

.scene-buttons span {
    display: inline-block;
}

.scene-common {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding: 2px 8px 2px 8px;
    display: table-cell;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    font: 11px sans-serif;
    font-weight: bold;
    margin-left: 10px;
    color: #FFFFFF;
    width: 70px;
    height: 70px;
}

.scene-grey {
    border: 1px solid gray;
    background: rgba(0, 0, 0, 0.5);
}

.scene-preview {
    border: 1px solid green;
    background: rgba(96, 255, 96, 0.5);

}

.scene-live {
    border: 1px solid red;
    background: rgba(255, 0, 0, 0.5);
}

.alert {
    background: rgb(255,255,255,0.8);
}

.alert-success {
    color: ForestGreen;
    padding: 10px 30px 20px 30px;
    margin: 10px;
    padding-bottom: 10px;
    text-align: justify;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;

}

.alert-error {
    color: Red;
    padding: 10px 30px 20px 30px;
    margin: 10px;
    padding-bottom: 10px;
    text-align: justify;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;
}

.alert-warning {
    color: Orange;
    padding: 10px 30px 20px 30px;
    margin: 10px;
    padding-bottom: 10px;
    text-align: justify;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;
}

.registered {
    background-color: #4CAF50;
}

.error {
    color: Red;
}

.warning {
    color: Orange;
}

.hasError {
    border: 1px solid red;
}

.actions {
    white-space: nowrap;
}

.UNKNOWN {
    color: orange;
}

.NOT_AVAILABLE {
    color: orange;
}

.INVALID {
    color: red;
}

.VALID {
    color: green;
}

.UPLOADING{
    color: orange;
}

.READY{
    color: green;
}

.PLAYING{
    color: green;
}

.NOT_ENOUGH_SPACE{
    color: red;
}

.ERROR{
    color: red;
}

.DISABLED {
    color: Red;
}

.OFFLINE{
    color: red;
}

.BUSY{
    color: orange;
}

.SCHEDULED{
    color: green;
}

.STOPPED {
    color: green;
}

.FINISHED {
    color: green;
}

.stepRow {
    outline: thin solid black;
    height: 25px;
}

.taskRow {
    border-right: thin solid black;
}

.taskRowLineBottom {
    border-bottom: thin solid black;
}

.taskTable td {
    padding-left: 6px
}

.flowHeaderTable td {
    border-width: 1px;
    padding: 5px;
    border-style: solid;
    border-color: gray;

    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    text-align: center;
    min-width: 53px;
}

.rounded-button {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 2px 8px 2px 8px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    background: #222222;
    color: #FFFFFF;
    cursor: pointer;
    font: 11px sans-serif;
    min-width: 35px;
    vertical-align: middle;
}

.rounded-button:hover {
    text-decoration: none;
    color: #000000;
    background: #FFFFFF;
    cursor: pointer;
    border: 1px solid gray;
    vertical-align: middle;
}

.pin-button {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid gray;
    padding: 2px 8px 2px 8px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    background: #EEEEEE;
    color: #000000;
    cursor: pointer;
    font: 11px sans-serif;
    min-width: 55px;
    min-height: 55px;
}

.pin-button:hover {
    text-decoration: none;
    color: #000000;
    background: #FFFFFF;
    cursor: pointer;
    border: 1px solid gray;
}

.popup {
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 35px;
    padding-left: 70px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    text-align: center;
    vertical-align: middle;

    height: 50px;
    width: 500px;
    display: none;

    border: 1px solid #000000;
    border-radius: 25px;
    color: #000000;
    background-color: #AAAAAA;
}


/* Site Wrapper - Everything that isn't navigation */
.site-wrap {
    /* Critical position and size styles */
    min-height: 100%;
    /*min-width: 965px;*/
    /*background-color: white; /* Needs a background or else the nav will show through */
    position: relative;
    top: 0;
    bottom: 100%;
    left: 0;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

/* Nav Trigger */
.nav-trigger {
    /* critical styles - hide the checkbox input */
    position: absolute;
    clip: rect(0, 0, 0, 0);
}

label[for="nav-trigger"] {
    /* critical positioning styles */
    position: fixed;
    left: 15px;
    top: 15px;
    z-index: 2;

    /* non-critical apperance styles */
    height: 30px;
    width: 30px;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' x='0px' y='0px' width='30px' height='30px' viewBox='0 0 30 30' enable-background='new 0 0 30 30' xml:space='preserve'><rect width='30' height='6' style='fill:rgb(255,255,255)'/><rect y='24' width='30' height='6' style='fill:rgb(255,255,255)'/><rect y='12' width='30' height='6' style='fill:rgb(255,255,255)'/></svg>");
    background-size: contain;
}

/* Make the Magic Happen */
.nav-trigger + label, .site-wrap {
    transition: left 0.2s;
}

.nav-trigger:checked + label {
    left: 200px;
}

.nav-trigger:checked ~ .site-wrap {
    left: 250px;
    /*box-shadow: 0 0 5px 5px rgba(0,0,0,0.5);*/
}

@media screen and (max-width: 720px) {
    .nav-trigger:checked ~ .site-wrap {
        left: 180px;
        box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.5);
    }

    .post .entity {
        padding: 10px;
    }

    .post .title {
        padding: 10px;
    }
}
