html {
    min-height:100%;
    position:relative;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* overflow-y: hidden !important; */
    -ms-touch-action: none;
}

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 16px;
    background:#FFF;
    color: #474747;

}

body.content_page {
    background: url(/img/bg/bg_content3.jpg) no-repeat center center fixed transparent;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body.login_page {
    background: url(/img/bg/bg_home.jpg) no-repeat top center transparent;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

input {
    border: 1px solid #bfbfbf;
    -webkit-box-shadow:inset 0px 5px 10px -5px rgba(71, 71, 71, 0.5);
    -moz-box-shadow:inset 0px 5px 10px -5px rgba(71, 71, 71, 0.5);
    box-shadow:inset 0px 5px 10px -5px rgba(71, 71, 71, 0.5);
    height: 28px;
    font-size: 18px;
    line-height: 18px;
    margin: 0px;
    padding: 8px 8px 3px;
    vertical-align: middle;
    width: auto;
    border-radius: 0px;
    text-align: center;
    margin-top:5px;
    color: #474747;
    background-color: rgba(255,255,255,0.85);
}
input[type="submit"] {
    cursor: pointer;
    text-align: center;
    width: 150px;
    height: 42px;
    background: rgba(34, 80, 92, 0.85);
    color: #FFF;
    font-size: 18px;
    padding: 5px;
    line-height: 20px;
    margin: 5px;
    border: none;
}

input[type="text"]:disabled {color: #A0A0A0;}

input, select {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

a {
    font-size: 18px;
    color: rgba(34, 80, 92, 0.85);
    text-decoration: none;
}

.home {
    max-width: 970px;
    margin: 30px auto 20px;
}

.home-block {
    margin: 5px 5px 0 0;
    width: 475px;
    height:260px;
    opacity: 0.8;
    float: left;
    position: relative;
}

.home-block-content {
    margin-left: -475px;
    width: 435px;
    padding: 20px 20px;
    z-index:10;
    float:left;
    position: relative;
}

#content{
    margin-top: 30px;
}

.halfscreen {
    display: inline;
    float: left;
    width: 50%;
}

.block_title {
    font-size: 22px;
    color: #474747;
    text-align:center;
    text-transform: uppercase;
}

.block_instructions {
    margin-top: 20px;
}

.button {
    border: 0px none;
    cursor: pointer;
    font-size: 20px;
    height: 26px;
    line-height: 17px;
    margin: 0px;
    padding: 12px 8px 3px;
    vertical-align: middle;
    border-radius: 0px;
    text-align: center;
}

.button_blue {
    background: rgba(34, 80, 92, 0.85);
    color: #FFF;
}

.button_grey {
    background: linear-gradient(to bottom, #474747 0%, #474747 100%) repeat scroll 0% 0% #474747;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
}

.button_switch {
    width: 100%;
    height: 35px;
    margin: auto;
    cursor: pointer;
    cursor: hand;
	position: absolute;
    bottom: 2px;
}

.GATEWAY {
    background: url('../img/devices/picto_siren_TSC10.png') no-repeat center;
}

.SOLAR_SIREN {
    background: url(../img/devices/picto_solar_siren.png) no-repeat center;
}

.SOLAR_SIREN.TSC10 {
    background: url(../img/devices/picto_solar_siren_TSC10.png) no-repeat center;
}

.SIREN {
    background: url(../img/devices/picto_siren.png) no-repeat center;
}

.SIREN_INTERNAL {
    background: url('../img/devices/picto_siren_TSC10.png') no-repeat center;
}

.VOICE_SIREN {
    background: url(../img/devices/picto_siren.png) no-repeat center;
}

.PIR_DETECTOR {
    background: url(../img/devices/picto_PIR_sensor.png) no-repeat center;
}

.PIR_DETECTOR.TSC10 {
    background: url(../img/devices/picto_PIR_sensor_TSC10.png) no-repeat center;
}

.MAGNETIC {
    background: url(../img/devices/picto_door_magnetic_sensor.png) no-repeat center;
}

.MAGNETIC.TSC10 {
    background: url(../img/devices/picto_door_magnetic_sensor_TSC10.png) no-repeat center;
}

.REMOTE {
    background: url(../img/devices/picto_remote_control.png) no-repeat center;
}

.REMOTE.TSC10 {
    background: url(../img/devices/picto_remote_control_TSC10.png) no-repeat center;
}

.KEYPAD {
    background: url(../img/devices/picto_keypad.png) no-repeat center;
}

.KEYPAD.TSC10 {
    background: url(../img/devices/picto_keypad_TSC10.png) no-repeat center;
}

.NFC_TAG {
    background: url(../img/devices/picto_nfc_tag.png) no-repeat center; 
}

.SMOKE {
    background: url(../img/devices/picto_smoke_sensor.png) no-repeat center;
}

.FLOOD {
    background: url(../img/devices/picto_flood.png) no-repeat center;
}


.ON_OFF_PLUG_ON, .ON_OFF_PLUG {
    background: url(../img/devices/picto_plug_on.png) no-repeat center;
}

.ON_OFF_PLUG_OFF {
    background: url(../img/devices/picto_plug_off.png) no-repeat center;
}

.WALL_SWITCH_OFF {
    background: url(../img/devices/picto_switch_off.png) no-repeat center;
}

.WALL_SWITCH_ON {
    background: url(../img/devices/picto_switch_on.png) no-repeat center;
}

.LED_BULB_ON {
    background: url(../img/devices/picto_LED_bulb_on.png) no-repeat center;
}

.LED_BULB_OFF {
    background: url(../img/devices/picto_LED_bulb_off.png) no-repeat center;
}

.DIMMER_SWITCH_ON {
    background: url(../img/devices/picto_dimmer_on.png) no-repeat center;
}

.DIMMER_SWITCH_OFF {
    background: url(../img/devices/picto_dimmer_off.png) no-repeat center;
}

.RELAY_12V {
    background: url(../img/devices/picto_relay_12v.png) no-repeat center;
}

.RELAY_12V_OFF {
    background: url(../img/devices/picto_relay_12v_off.png) no-repeat center;
}

.RELAY_12V_ON {
    background: url(../img/devices/picto_relay_12v.png) no-repeat center;
}

.CAMERA {
    background: url(../img/devices/picto_camera2.png) no-repeat center;
}

.TEMP_HUM {
    background: url(../img/devices/picto_temperature.png) no-repeat center;
}

.WALL_SWITCH {
    background: url(../img/devices/picto_switch.png) no-repeat center;
}

.SOLAR_SIREN_device_nok {
    background: url(../img/devices/picto_solar_siren_alert.png) no-repeat center;
}

.SOLAR_SIREN_device_nok.TSC10 {
    background: url(../img/devices/picto_solar_siren_alert_TSC10.png) no-repeat center;
}

.SIREN_device_nok  {
    background: url(../img/devices/picto_siren_alert.png) no-repeat center;
}

.VOICE_SIREN_device_nok  {
    background: url(../img/devices/picto_siren_alert.png) no-repeat center;
}

.PIR_DETECTOR_device_nok  {
    background: url(../img/devices/picto_PIR_sensor_alert.png) no-repeat center;
}

.PIR_DETECTOR_device_nok.TSC10  {
    background: url(../img/devices/picto_PIR_sensor_alert_TSC10.png) no-repeat center;
}

.MAGNETIC_device_nok  {
    background: url(../img/devices/picto_door_magnetic_sensor_alert.png) no-repeat center;
}

.MAGNETIC_device_nok.TSC10  {
    background: url(../img/devices/picto_door_magnetic_sensor_alert_TSC10.png) no-repeat center;
}

.REMOTE_device_nok  {
    background: url(../img/devices/picto_remote_control_alert.png) no-repeat center;
}

.REMOTE_device_nok.TSC10  {
    background: url(../img/devices/picto_remote_control_alert_TSC10.png) no-repeat center;
}

.KEYPAD_device_nok.TSC10  {
    background: url(../img/devices/picto_keypad_alert_TSC10.png) no-repeat center;
}

.SMOKE_device_nok  {
    background: url(../img/devices/picto_smoke_sensor_alert.png) no-repeat center;
}

.FLOOD_device_nok  {
    background: url(../img/devices/picto_flood_alert.png) no-repeat center;
}


.ON_OFF_PLUG_OFF_device_nok, .ON_OFF_PLUG_ON_device_nok  {
    background: url(../img/devices/picto_plug_on_alert.png) no-repeat center;
}

.LED_BULB_OFF_device_nok, .LED_BULB_ON_device_nok  {
    background: url(../img/devices/picto_LED_bulb_on_alert.png) no-repeat center;
}

.DIMMER_SWITCH_OFF_device_nok, .DIMMER_SWITCH_ON_device_nok  {
    background: url(../img/devices/picto_dimmer_off_alert.png) no-repeat center;
}

.CAMERA_device_nok  {
    background: url(../img/devices/picto_camera2_alert.png) no-repeat center;
}

.TEMP_HUM_device_nok  {
    background: url(../img/devices/picto_temperature_alert.png) no-repeat center;
}

.button_on {
    background: url(../img/btn/btn_automation_on.png) no-repeat center;
}

.button_off {
    background: url(../img/btn/btn_automation_off.png) no-repeat center;
}


.slider{
    position: absolute;
    border-width: 1px;
    border-style: solid;
    border-color: #333 #333 #777 #333;
    border-radius: 3px;
    width: 100px;
    height: 13px;
    background-color: #8e8d8d;
    background: url('../img/slider/bg-track.png') repeat top left;
    /*box-shadow: inset 0 1px 5px 0px rgba(0, 0, 0, .5),
                                  0 1px 0 0px rgba(250, 250, 250, .5);*/
    margin-left:10px;
    width: 80px;
}
.slider_tooltip {
    position: relative;
    display: block;
    margin-left:30px;
    width: 25px;
    height: 16px;
    color: #fff;
    text-align: center;
    font: 8pt Tahoma, Arial, sans-serif ;
    border-radius: 2px;
    border: 1px solid #707070;
    -webkit-box-shadow:  1px 1px 2px 0px rgba(0, 0, 0, .3);
    box-shadow:  1px 1px 2px 0px rgba(0, 0, 0, .3);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background: #BBB;
    /*	background: -moz-linear-gradient(top,  rgba(69,72,77,0.5) 0%, rgba(0,0,0,0.5) 100%); /* FF3.6+ */
    /*	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(69,72,77,0.5)), color-stop(100%,rgba(0,0,0,0.5))); /* Chrome,Safari4+ */
    /*	background: -webkit-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Chrome10+,Safari5.1+ */
    /*	background: -o-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* Opera 11.10+ */
    /*	background: -ms-linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* IE10+ */
    /*	background: linear-gradient(top,  rgba(69,72,77,0.5) 0%,rgba(0,0,0,0.5) 100%); /* W3C */
    /*	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8045484d', endColorstr='#80000000',GradientType=0 ); /* IE6-9 */
}

.slider_tooltip_container {
    height: 12px;
}


.ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 21px;
    height: 21px;
    cursor: pointer;
    color: #1C94C4;
    top: -10px;
    margin-left: -16px;
    border-radius: 15px;
    background: #ffffff;
    border: #707070 1px solid;
    outline: none;
}
/*
.ui-slider .ui-slider-handle {
        position: absolute;
        z-index: 2;
        width: 25px;
        height: 25px;
        cursor: pointer;
        background: url('../img/slider/handle.png') no-repeat 50% 50%;
        color: #1C94C4;
        top: -7px;
        margin-left: -16px;
        outline: none;
}
*/
.ui-slider-handle:hover, .ui-slider-handle:focus {
    /*border: none !important;
    background: url('../img/slider/handle.png') no-repeat scroll 50% 50% !important;*/
}


.ui-slider-range {
    background: #ffffff repeat scroll 0% 0%;
    border-radius: 3px;
    height: 5px;
    margin-top: -2px;
    margin-left: -1px;
    border: #707070 1px solid;
}

/*
.ui-slider-range {
        background: #ffffff; /// Old browsers
        background: -moz-linear-gradient(top,  #ffffff 0%, #eaeaea 100%); // FF3.6+
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#eaeaea)); // Chrome,Safari4+
        background: -webkit-linear-gradient(top,  #ffffff 0%,#eaeaea 100%); // Chrome10+,Safari5.1+ 
        background: -o-linear-gradient(top,  #ffffff 0%,#eaeaea 100%); // Opera 11.10+ 
        background: -ms-linear-gradient(top,  #ffffff 0%,#eaeaea 100%); /// IE10+ 
        background: linear-gradient(top,  #ffffff 0%,#eaeaea 100%); // W3C 
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 ); // IE6-9 
        border: 0;
        height: 100%;
        border-radius: 25px;
}
*/

/* Styles for dialog window */

.br {
    clear:both;
}

.fp-slidesNav.bottom {
    bottom: -40px !important;
}

#fp-nav li .active span, .fp-slidesNav .active span {
    background: #474747 !important;
}

#fp-nav span, .fp-slidesNav span {
    border-color: #474747 !important;
}

@media (max-width: 975px) {

    body {
        font-size: 15px;
    }

    .home {
        max-width: 640px;
        margin: 30px auto 20px;
    }

}

@media (max-width: 690px) {

    body {
        font-size: 14px;
    }
    .halfscreen {
        float: none;
        width: 50%;
    }

    #content {
        margin-top: 20px;
    }

    .home {
        max-width: 400px;
    }

}

@media (max-width: 450px) {

    body {
        font-size: 12px;
    }

    .block_title {
        font-size: 16px;
    }

    input {

        height: 20px;
        font-size: 14px;
        line-height: 14px;
        padding: 6px 6px 2px;
        margin-top:5px;
    }

    .button {
        font-size: 16px;
        height: 20px;
        line-height: 14px;
        padding: 8px 6px 2px;
    }

    a {
        font-size: 14px;
    }

    #content {
        margin-top: 10px;
    }

    .home {
        max-width: 400px;
        margin: 20px auto 20px;
    }
}
