/*----------------------------------
 *             HTML Element        *
 *---------------------------------*/

html {
}

body {
    overflow: auto;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

/*Header of a table*/
th{
    background-color: #4A4949;
    color: white;
    border-color: black;
    border-style: hidden;
    border-width: 10px;
}

select{
    width: 30%;
}

/*----------------------------------
 *             Class               *
 *---------------------------------*/

.menu-side{
    width: 100%;
    background-color: #4A4949;
    color: white;
    border-color: black;
    border-style: solid;
    border-width: 1px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    font-weight: bold;

}

.tableScroll{
    width: 100%;
    height:350px;
    overflow:auto;
}

.sent{
    color: #CC4E00;
}

.received{
    color: #2EA900;
}


.portForm {
    padding: 0 0.5em 0 0.5em;
    margin: 0;
    overflow: hidden;
}

.countingIndic{
    background-color: #5E646E;
    height: 15%;
    font-size: 60px;
    font-style: bold;
    color: white;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    margin-top: 0px;
    padding-top: 3%;
    vertical-align: center;
    font-weight: bold;
    text-align: center;
    /*line-height: normal;*/
}

.countingInfo{
    margin-bottom: 40px;
}

.locationIndic{
    background-color: #5E646E;
    height: 5%;
    width: 4%;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    margin-top: 0px;
    margin-right: 0px;
    margin-left: 0px;
    /*margin: 0px 0px 0rem;*/
    display: inline-block;
}

.locationDetected{
    background-color: #CC4E00;
    height: 5%;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    margin-top: 0px;
    margin: 0px 0px 0rem;
}


.side-nav-full{
    color :#CC4E00 ;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background-color: #5E646E;
    z-index: 2000;
    /*padding-left: 2%;*/
    overflow-y: auto;
    overflow-x: hidden;
    border-style: solid;
    border-width: 4px;
    border-color: black;
    display: none;
}

.fi-x{
    color: red;
}

.fi-check{
    color: green;
}


.button{
    border-style: solid;
    border-width: 1px;
    border-color: gray;
}

.buttonSettings{
    margin-top: 10px;
}

.video{
    display: none;
    width: 560px;
    position: absolute;
    right: 5px;
    top: 250px;
}

.debug, .countingFence, .serialPortName{
    display: none;
}


/*----------------------------------
 *             ID                   *
 *---------------------------------*/
.darkClass
{
    background-color: grey;
    filter:alpha(opacity=50); /* IE */
    opacity: 0.5; /* Safari, Opera */
    -moz-opacity:0.50; /* FireFox */
    z-index: 20;
    height: 200%;
    width: 100%;
    background-repeat:no-repeat;
    background-position:center;
    position:absolute;
    top: 0px;
    left: 0
}

#right{
    position: absolute;
    top: 0px;
    left: 5%;
}

#side-nav-display{
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 4%;
    font-size: 2em;
    background-color: #CC4E00;
    z-index: 2000;
    padding-top: 20%;
    padding-left: 1%;
    border-style: solid;
    border-width: 2px;
    border-color: black;
}

#side-nav-mode{
    position: absolute;
    left: 0px;
    top: 50%;
    height: 50%;
    font-size: 2em;
    width: 4%;
    background-color: #CC4E00;
    z-index: 2000;
    padding-top: 10%;
    padding-left: 1%;
    border-style: solid;
    border-width: 2px;
    border-color: black;
}

#side-nav-hide{
    position: fixed;
    left: 50%;
    top: 0;
    height: 100%;
    /*width: 2rem;*/
    background-color: #CC4E00;
    z-index: 2000;
    padding-top: 25%;
    border-style: solid;
    border-width: 2px;
    border-color: black;
    display: none;
}

#customPopup
{
   position: fixed;
   display: none;
   left: 50%;
   top: 50%;
   z-index: 2000;
   padding: 20px;
   width: 560px;
   background-color: #EEEEEE;
   font-size: 12px;
   line-height: 16px;
   color: #202020;
   border : 3px outset #555555;
}

#grayBack
{
    filter: blur(5px);
    opacity: .5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1999;
    opacity: 0.5;
}

#alertModule0 {
    background-color: #CC4E00;
}

#buttonOpenPort {
    margin-top: 15px;
}

#buttonClosePort {
    background-color: #CC4E00;
    /*margin-right: 20px;*/
}

#getPresence {
}

#buttonRow{
    display: inline-block;
}

#play{
    background-color: #CC4E00;
}

#title{
    background-color: #CC4E00;
    font-size: 20px;
    color: white;
    border-style: solid;
    border-width: 1px;
    border-color: grey;
    margin-top: 0px;
    margin-bottom: 50px;
    margin-left: 30%;
    font-weight: bold;
    text-align: center;
}

#myCanvas{
    margin-left: 0px;
}

.canvasSensorImg{
    /*position: absolute;*/
    margin-bottom: 0px;
    bottom: 240px;
    right: 75px;
}

#getSensorImage{
    background-color: #555555;
    margin-top: 10px;
}
#getHeatMap{
    background-color: #555555;
    margin-top: 10px;
}

#canvasTop{
    margin-top: 15px;
    height: 5px;
    margin-left: 195px;
    border:1px solid #000000;
}

#canvasRight{
    margin-left: 0px;
    width: 5px;
    border:1px solid #000000;
}

#canvasLeft{
  margin-left: 190px;
    width: 5px;
    border:1px solid #000000;
}

#canvasBottom{
    margin-left: 195px;
    height: 5px;
    border:1px solid #000000;
}


#CPU{
    display: inline-block;
}

#videoPlayer{
    width: 300px;
    height: 300px;
}

#image1{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 10;
}

#image2{
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: 11;
}

#countingIn{
    color: green;
}

#countingOut{
    color: red;
}
#countingLines, #countingLinesDebug{
    color: #CC4E00;
}

#counter{
    font-weight: bold;
    font-size: 32px;
}

#apiSettings input[type=number]{
	display: inline-block;
	color: black;
	width: 10%;
}

#apiSettings input[type=submit]{
	color: black;
}

#apiSettings{
    color: white;
}

#formParameters input[type=number]{
	display: inline-block;
	color: black;
	width: 10%;
}

#serialPort{
	display: inline-block;
	color: black;
	width: 20%;
}

#formParameters input[type=submit]{
	color: black;
}


#formParameters{
    color: white;
}

#resetButton{
	background-color: #CC4E00;
    margin-left: 195px;
    margin-top: 10px;
}

#linkServer{
    display: none;
}

#distanceToFenceError{
    display: none;
    font-weight: bold;
    color: red;
    margin-left: 5px;
}

.confirmationSend{
    color: green;
    font-weight: bold;
    margin-left: 8px;
    margin-bottom: 5px;
}

@media all and (max-width: 720px)
{
  .countingIndic{
    display:none;
  }

  #myCanvas{
    width:60%;
    height:auto;
  }

  #canvasTop{
      margin-left: 5px;
  }


  #canvasLeft{
    margin-left: 0px;
  }

  #canvasBottom{
      margin-left: 5px;
  }
  #resetButton{
    margin-left: 5px;
  }
}

@media all and (max-width: 540px)
{
  #myCanvas{
    width:80%;
    height:auto;
  }
}
@media all and (min-width: 720px)
{
  #myCanvas{
    width:400px;
    height:400px;
  }
}
