﻿body {
    background: url("../images/bg.gif") repeat-x scroll center top #F2F2F0;
    font-size: .85em;
    font-family: "Open sans", "Trebuchet MS", Verdana, Helvetica, Sans-Serif;
    letter-spacing: 0.04em;
    margin: 0;
    padding: 0;
    color: #696969;
}

a:link {
    color: #64C345;
    text-decoration: underline;
}

a:visited {
    color: #64C345;
}

a:hover {
    text-decoration: none;
}

a:active {
    color: #12eb87;
}

a {
    cursor: pointer;
}

p, ul {
    margin-bottom: 20px;
    line-height: 1.6em;
}

header, footer, nav, section {
    display: block;
}

header {
    margin: 10px 0 5px 0;
}

/* HEADINGS   
----------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
    font-size: 1.5em;
    color: #000;
    margin: 0;
}

h1 {
    font-size: 2em;
    padding-bottom: 0;
    margin-bottom: 0;
}

h2 {
    padding: 0 0 0 0;
    font-weight: 300;
    color: #555;
    margin-top: 0.5em;
    font-size: 2em;
}

h3 {
    font-size: 1.2em;
}

h4 {
    font-size: 1.1em;
}

h5, h6 {
    font-size: 1em;
}

/* PRIMARY LAYOUT ELEMENTS   
----------------------------------------------------------*/

/* you can specify a greater or lesser percentage for the 
page width. Or, you can specify an exact pixel width. */
.page {
    /*width: 99%;*/
    margin-left: 10px;
    margin-right: 10px;
}

header, #header {
    position: relative;
    color: #000;
    padding: 0;
}

    header h1, #header h1 {
        font-weight: bold;
        margin: 0;
        color: #8E9396;
        border: none;
        padding-top: 5px;
    }

#main {
    padding: 15px 20px 15px 20px;
    background-color: #fff;
    box-shadow: 0 4px 5px rgba(0,0,0,0.2);
}


/* TAB MENU   
----------------------------------------------------------*/
ul#menu {
    padding: 0 0 2px;
    position: relative;
    margin: 0;
    text-align: right;
    margin-top: 5px;
    letter-spacing: 0.07em;
}

    ul#menu li {
        display: inline-block;
        list-style: none;
    }

        ul#menu li#greeting {
            padding: 10px 20px;
            font-weight: bold;
            text-decoration: none;
            line-height: 2.8em;
            color: #fff;
        }

        ul#menu li a {
            margin-left: 8px;
            padding: 5px 20px;
            text-decoration: none;
            line-height: 2.8em;
            background-color: #666;
            color: #fff;
        }

        ul#menu li.action a {
            background-color: #64C345;
        }

        ul#menu li a:hover {
            color: #000;
            text-decoration: none;
        }

        ul#menu li a:active {
            color: #000;
            text-decoration: none;
        }

        ul#menu li.selected a {
            background-color: #fff;
            color: #000;
        }

/* FORM LAYOUT ELEMENTS   
----------------------------------------------------------*/

fieldset {
    border: 1px solid #ddd;
    padding: 0 1.4em 1.4em 1.4em;
    margin: 0 0 1.5em 0;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
}

textarea {
    min-height: 75px;
}

input[type="text"], input[type="password"] {
    border: 1px solid #ccc;
    padding: 2px;
    font-size: 1.2em;
    color: #444;
    width: 200px;
}

select {
    border: 1px solid #ccc;
    padding: 2px;
    font-size: 1.2em;
    color: #444;
}

input[type="submit"] {
    font-size: 1.2em;
    padding: 5px;
}

/* TABLE
----------------------------------------------------------*/

table {
    border: solid 1px #e8eef4;
    border-collapse: collapse;
}

    table td {
        padding: 5px;
        border: solid 1px #e8eef4;
    }

    table th {
        padding: 6px 5px;
        text-align: left;
        background-color: #e8eef4;
        border: solid 1px #e8eef4;
    }

/* MISC  
----------------------------------------------------------*/
.clear {
    clear: both;
}

.error {
    color: Red;
}


div#title {
    display: block;
    float: left;
    text-align: left;
}

#logindisplay {
    font-size: 1.1em;
    display: block;
    /*text-align: right;*/
    margin: 0px 20px 0px 20px;
    color: black;
    float: left;
    text-align: left;
}

    #logindisplay h1 {
        margin-left: 20px;
        display: inline-block;
    }

    #logindisplay a:link {
        color: #64C345;
        text-decoration: underline;
    }

    #logindisplay a:visited {
        color: #64C345;
        text-decoration: underline;
    }

    #logindisplay a:hover {
        text-decoration: none;
    }

/* Styles for validation helpers
-----------------------------------------------------------*/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000;
    background-color: #ffeeee;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

/* Styles for editor and display helpers
----------------------------------------------------------*/
.display-label, .editor-label {
    margin: 1em 0 0 0;
}

.display-field, .editor-field {
    margin: 0.5em 0 0 0;
}

.text-box {
    width: 30em;
}

    .text-box.multi-line {
        height: 6.5em;
    }

.tri-state {
    width: 6em;
}

/* timeline specific */
#TimeLineIncident {
    height: 30px;
    background-color: lightgray;
    margin-bottom: 5px;
    margin-top: 5px;
    overflow-y: hidden;
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

    #TimeLineIncident .incident {
        position: absolute;
        width: 1px;
        height: 30px;
        background-color: white;
        cursor: pointer;
    }

    #TimeLineIncident .incidentPicture {
        background-color: #64C345;
        z-index: 1;
    }

    #TimeLineIncident .incidentTag {
        background-color: red;
        z-index: 3;
    }

    #TimeLineIncident .incidentGPIO {
        background-color: purple;
        z-index: 2;
    }



#TimelineScrollView {
    position: relative;
}

    #TimelineScrollView .timeline {
        height: 1em;
        background-color: #777777;
        margin: 1.1em 0em 1.1em 0em;
        position: relative;
    }

        #TimelineScrollView .timeline:hover {
            background-color: #999999;
        }

        #TimelineScrollView .timeline .slider {
            top: -0.1em;
            height: 1.1em;
            position: absolute;
            border: 0.1em solid red;
            width: 3.8em;
            cursor: w-resize;
        }

        #TimelineScrollView .timeline .handle {
            position: absolute;
            top: 2em;
            left: -0.1em;
            background-color: #fff;
            border: 0.1em solid red;
            width: 3.8em;
            cursor: w-resize;
            height: 1em;
        }

            #TimelineScrollView .timeline .handle span {
                position: absolute;
                top: 0;
                font-size: 0.9em;
                color: #000;
                line-height: 1em;
            }

            #TimelineScrollView .timeline .handle .handleline {
                position: absolute;
                left: 50%;
                width: 1px;
                background-color: red;
                height: 1em;
                top: -1em;
            }

        #TimelineScrollView .timeline .slider .marker {
            position: absolute;
            left: 50%;
            width: 1px;
            background-color: red;
            height: 100%;
        }

        #TimelineScrollView .timeline .clock {
            color: #fff;
            line-height: 1.2em;
            font-size: 0.8em;
        }

        #TimelineScrollView .timeline .clockleft {
            position: absolute;
            left: 0;
            top: 0;
        }

        #TimelineScrollView .timeline .clockright {
            position: absolute;
            right: 0;
            top: 0;
        }

#TimelineView {
    width: 100%;
    background-color: gray;
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}

    #TimelineView .pictureview {
        position: absolute;
        background-color: #ccc;
        height: 2048px;
        width: 1;
    }

    #TimelineView img.pictureblock {
        position: absolute;
        z-index: 500;
    }

    #TimelineView div.tagread {
        width: 200px;
        overflow: hidden;
        background-color: #FFFF33;
        border: 1px solid black;
        opacity: 0.6;
        filter: alpha(opacity=60); /* For IE8 and earlier */
        cursor: w-resize;
        position: absolute !important;
        z-index: 1000;
    }

    #TimelineView.lefttoright div.tagread {
        background-image: url("images/tagreadborder.png");
        background-repeat: repeat-y;
        background-position: top right;
    }

    #TimelineView.righttoleft div.tagread {
        background-image: url("images/tagreadborder.png");
        background-repeat: repeat-y;
        background-position: top left;
    }

    #TimelineView div.tagread span.text {
        opacity: 1;
        filter: alpha(opacity=100); /* For IE8 and earlier */
        color: Black;
        margin-left: 5px;
        display: inline-block;
        white-space: nowrap;
    }

    #TimelineView div.tagread.otherdragging {
        opacity: 0.2;
        filter: alpha(opacity=20); /* For IE8 and earlier */
    }


#TimelineRuler {
    height: 25px;
}

#TimelineMainView {
    z-index: 1;
    position: relative;
    overflow: hidden;
}

#TimelineSlize {
    height: 100%;
    position: absolute;
    width: 1px;
    background-color: Red;
    display: none;
    z-index: 999;
}


div.group {
    display: inline-block;
}

    div.group .radio {
        display: inline-block;
        margin: 3px;
        text-align: center;
        line-height: 20px;
        min-width: 20px;
        background-color: Gray;
        color: White;
        cursor: pointer;
        padding: 0.3em 0.7em;
    }

        div.group .radio.selected {
            background-color: #64C345;
        }

#Toolbar {
    position: relative;
}

    #Toolbar div.group .button {
        display: inline-block;
        margin: 3px 0;
        text-align: center;
        line-height: 20px;
        min-width: 20px;
        background-color: Gray;
        color: White;
        cursor: pointer;
        padding: 0.3em;
    }

    #Toolbar .right {
        float: right;
        position: relative;
        top: 5px;
    }

    #Toolbar .toolbartime {
        position: relative;
        top: 3px;
    }


#SelectedTime {
    display: inline-block;
    font-weight: bold;
    font-size: 1.6em;
}

#HoverTime {
    display: inline-block;
    font-weight: bold;
    font-size: 1.6em;
}


#TimelineLeftControls {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100px;
    opacity: 0.4;
    filter: alpha(opacity=40); /* For IE8 and earlier */
    background-color: White;
    z-index: 1001;
    margin-top: 25px;
    display: none;
}

    #TimelineLeftControls:hover {
        opacity: 1;
        filter: alpha(opacity=100); /* For IE8 and earlier */
    }

    #TimelineLeftControls div.tagChange {
        margin: 1px;
        font-size: 70%;
        border: 1px gray solid;
        padding: 1px;
        overflow: hidden;
        background-color: #99FF66;
    }

        #TimelineLeftControls div.tagChange div.controls {
            float: right;
        }

        #TimelineLeftControls div.tagChange div.info {
            float: left;
        }
