
.flex-container {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    flex-flow: row wrap;
    text-align: center;
}

.flex-container > * {
    padding: 15px;
    -webkit-flex: 1 100%;
    flex: 1 100%;
}

.article {

}

header {
  background: black;
  color: white;
  height: 50px;
  font-size: 32px;
  background-image: url('../img/logo.png');
  background-repeat: no-repeat;
  background-position: left top;
}

.logLab {
    font-weight: bold;
    font-size:14px;
    padding-left:26px;
    width:75px;
    text-transform: uppercase;
    display:inline-block
}

.logTd {
    font-weight: normal;
    font-size:12px;
    padding-left:26px;
    width:75px;
    display:inline-block
}

footer {background: #aaa;color:white;}
.nav {
  background: #4d5158;
}

.nav ul {
    list-style-type: none;
    padding: 0;
}
.nav ul a {
    text-decoration: none;
}

@media all and (min-width: 768px) {
    .nav {text-align:left;-webkit-flex: 1 auto;flex:1 auto;-webkit-order:1;order:1; width: 200px;}
    .article {-webkit-flex:5 0px;flex:5 0px;-webkit-order:2;order:2;}
    footer {-webkit-order:3;order:3;}
}

.alarm-box {
   position: absolute;
   top: 15px;
   right: 15px;
   width: 400px;
   height: 20px;
   border: 0px;
   font-size: 12px;
   text-align: right;
}

.alarm-name {
   display: inline-block;
   padding-right: 15px;
   font-size: 14px;
}

.gsm-box {
   position: absolute;
   top: 45px;
   right: 15px;
   width: 400px;
   height: 20px;
   border: 0px;
   color: #aaa;
   font-size: 14px;
   text-align: right;
}

.gsm-name {
   display: inline-block;
   padding-right: 0px;
   font-size: 14px;
}

.alarm-item {
   display: inline-block;
   width: 20px;
   border-radius: 3px;
   border: 1px solid #555;
   margin-left: 2px;
   margin-right: 2px;
   text-align: center;
   background-color: inherit;
}

.warn-item {
   display: none;
   width: 22px;
   height: 20px;
   text-align: center;
   font-size: 20px;
   color: #fa0;
}

.info-item {
   display: none;
   width: 22px;
   height: 20px;
   text-align: center;
   font-size: 20px;
   color: #0af;
}

.info-key {
   position: absolute;
   left: 20px;
   display: inline-block;
   width: 22px;
   height: 20px;
   text-align: center;
   font-size: 20px;
   color: #fff;
   cursor: pointer;
}

.clock_date {
   display: inline-block;
   color: #ddd;
   margin-right: 5px;
}

.clock_time {
   display: inline-block;
   color: #ddd;
   margin-right: 20px;
}

.stream_view {
   float: left;
   margin: 20px;
   padding: 10px;
   padding-bottom: 30px;
   border: 0px;
   border-radius: 5px;
   box-shadow: 10px 10px 5px #ccc;
   width: 177px;
   height: 101px;
   background: gray;
   background-repeat: no-repeat;
   background-position: 10px 116px;
   display: none;
}

.stream_view_cam {
   margin: 0px;
   padding: 0px;
   width: 176px;
   height: 100px;
   border: 1px solid #b3b3b3;
   background: black;
   cursor: zoom-in;
}

.stream_view_cam_rec {
   margin: 0px;
   padding: 0px;
   width: 176px;
   height: 100px;
   border: 1px solid #ffffff;
   background: black;
   cursor: zoom-in;
}

.stream_view_cam_label {
   color: #fff;
   font-size: 16px;
   line-height: 32px;
   cursor: pointer;
}

.rtab {
   display: table;
}

.rrow {
   display: table-row;
}

.rcell {
   padding: 5px;
   display: table-cell;
}

.rtcap {
   display: table-caption;
}

.stream_view_full_settings {
   margin: 20px;
   padding: 10px;
   padding-bottom: 30px;
   border: 0px;
}

.stream_view_full {
   margin: 20px;
   padding: 10px;
   padding-bottom: 30px;
   border: 0px;
   border-radius: 5px;
   box-shadow: 10px 10px 5px #ccc;
   width: 641px;
   height: 361px;
   background: gray;
   background-repeat: no-repeat;
   background-position: 10px 376px;
   float: left;
}

.stream_view_ffull {
   display: none;
}

.stream_view_cam_full {
   margin: 0px;
   padding: 0px;
   width: 640px;
   height: 360px;
   border: 1px solid #b3b3b3;
   background: black;
   cursor: zoom-out;
   position: relative;
}

.stream_view_cam_full_rec {
   margin: 0px;
   padding: 0px;
   width: 640px;
   height: 360px;
   border: 1px solid #ffffff;
   background: black;
   cursor: zoom-out;
   position: relative;
}

.stream_view_cam_label_full {
   color: #fff;
   font-size: 16px;
   line-height: 32px;
   cursor: pointer;
}

.group_title {
  font-size: 22px;
  text-align: left;
  padding-bottom: 15px;
}

.streams_status {
   padding: 5px 0px;
   border: 0px;
   margin: 0px;
   background: #000;
   text-align: right;
}

.stream_status {
   display: inline-block;
   width: 20px;
   height: 10px;
   background: #0f0;
   padding: 0px;
   border: 0px;
   margin: 0px 20px;
   border-radius: 5px;
}

.motionStyle {
   display: none;
   position: absolute;
   margin: 0px;
   padding: 0px;
   border: 0px;
   background-color: white;
   opacity: 0.3;
   top: 0px;
   left: 0px;
   width: 640px;
   height: 360px;
   cursor: pointer;
}

.trackStyle {
   display: none;
   position: absolute;
   margin: 0px;
   padding: 0px;
   border: 0px;
   top: 0px;
   left: 0px;
   width: 640px;
   height: 360px;
   background-image: url('../img/track.png');
   background-repeat: no-repeat;
   background-position: left top;
}

/**
 * system update
 */

 #sys-update-button {
     border: 1px solid #ccc;
     border-radius: 5px;
     background: #13769d;
     box-shadow: 5px 5px 5px #ccc;
     color: white;
     display: inline-block;
     padding: 6px 12px;
     cursor: pointer;
 }

 #cfg-update-button {
     border: 1px solid #ccc;
     border-radius: 5px;
     background: #13769d;
     box-shadow: 5px 5px 5px #ccc;
     color: white;
     display: inline-block;
     padding: 6px 12px;
     cursor: pointer;
 }

 /**
  * input slider
  */

input[type=range][orient=vertical]
{
    writing-mode: bt-lr; /* IE */
    -webkit-appearance: slider-vertical; /* WebKit */
    width: 8px;
    height: 175px;
    padding: 0 5px;
    display: inline;
}

.CamParLabel {
   display:table-caption;
   font-weight:normal;
   text-align:center;
   font-size:11px;
   color:#666;
}

table td {
  display: table-cell;
  vertical-align: top;
}

#myKeybd {
  display: none;
  position: absolute;
  z-index: 9;
  background-color: #f1f1f1;
  border: 1px solid #d3d3d3;
  text-align: center;
}

#myKeybdHead {
  height: 20px;
  cursor: move;
  z-index: 10;
  background-color: #13769d;
  color: #fff;
}
