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;

}
button:active,
button:hover,
button:focus{
    outline: none;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
#waiting-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff url(/img/bg/bg_content3.jpg) no-repeat center center fixed;
    background-size: cover;
	box-sizing: border-box;
    z-index: 9999;
    top: 0;
    left: 0;
}
#waiting-screen .logo {
    background: url(/img/pictos/home_icon.png) no-repeat;
    width: 108px;
    height: 124px;
    display: block;
    margin: 100px auto 30px;
}
#waiting-screen .wheel {
    background: url(/img/loaders/loader2.gif) no-repeat center center;
    display: block;
    margin: 0 auto;
    width: 64px;
    height: 64px;
}
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);
    -webkit-appearance: none;
}
/*button submit for oauth login*/
input[type="submit"],button[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 0;
    border: none;
    -webkit-appearance: 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;
}

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

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

.PIR_DETECTOR2 {
    background: url(../img/devices/picto_PIR_sensor2.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;
}

.MAGNETIC2 {
    background: url(../img/devices/picto_door_magnetic_sensor2.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;
}

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

.WIFI_ROUTER {
    background: url(../img/devices/picto_wifi_router.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_COMPACT {
    background: url(../img/devices/picto_plug_an183.png) no-repeat center;
}

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

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

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

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

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

.INWALL_RELAY {
    background: url(../img/devices/picto_inwall_relay_on.png) no-repeat center;
}
.INWALL_RELAY_ON {
    background: url(../img/devices/picto_inwall_relay2_on.png) no-repeat center;
}
.INWALL_RELAY_OFF {
    background: url(../img/devices/picto_inwall_relay2_off.png) no-repeat center;
}

.INWALL_DIMMER {
    background: url(../img/devices/picto_inwall_dimmer_off.png) no-repeat center;
}
.INWALL_DIMMER_ON {
    background: url(../img/devices/picto_dimmer_on.png) no-repeat center;
}
.INWALL_DIMMER_OFF {
    background: url(../img/devices/picto_dimmer_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, .LED_BULB_OFF {
    background: url(../img/devices/picto_LED_bulb_off.png) no-repeat center;
}

.DIMMER_SWITCH {
    background: url(../img/devices/picto_plug_dimmer.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;
}

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

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

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

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

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

.DOORBELL, .DOORBELLM {
    background: url(../img/devices/picto_ring_device.png) no-repeat center 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;
}

.SHUTTER_SWITCH {
    background: url(../img/devices/picto_legrand_shutter.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;
}

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

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

.PIR_DETECTOR2_device_nok  {
    background: url(../img/devices/picto_PIR_sensor2_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;
}

.MAGNETIC2_device_nok  {
    background: url(../img/devices/picto_door_magnetic_sensor2_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;
}
.WALL_SWITCH_device_nok {
    background: url(../img/devices/picto_switch_alert.png) no-repeat center;
}
.KEYPAD_device_nok {
    background: url(../img/devices/picto_keypad_alert.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;
}
.ON_OFF_PLUG_COMPACT_OFF_device_nok, .ON_OFF_PLUG_COMPACT_ON_device_nok  {
    background: url(../img/devices/picto_plug_alert.png) no-repeat center;
}
.INWALL_RELAY_OFF_device_nok, .INWALL_RELAY_ON_device_nok  {
    background: url(../img/devices/picto_inwall_relay_alert.png) no-repeat center;
}
.INWALL_DIMMER_OFF_device_nok, .INWALL_DIMMER_ON_device_nok  {
    background: url(../img/devices/picto_inwall_dimmer_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;
}
.CAMERA_VC707_device_nok  {
    background: url(../img/devices/picto_camera_vc707_alert.png) no-repeat center;
}
.TEMP_HUM_device_nok  {
    background: url(../img/devices/picto_temperature_alert.png) no-repeat center;
}
.IR_device_nok {
    background: url(../img/devices/picto_ir_relay_alert.png) no-repeat center;
}
.WIFI_ROUTER_device_nok {
    background: url(../img/devices/picto_wifi_router_alert.png) no-repeat center;
}
.DOORBELL_device_nok {
    background: url(../img/devices/picto_ring_device_alert.png) no-repeat center center;
}
.TANK_METER, .LOW_LEVEL_TANK_METER, .EMPTY_LEVEL_TANK_METER {
    background: url(../img/devices/picto_tank_meter.png) no-repeat center;
}
.TANK_METER_device_nok {
    background: url(../img/devices/picto_tank_meter_alert.png) no-repeat center;
}
.POWER_METER {
    background: url(../img/devices/picto_siren.png) no-repeat center;
}
.POWER_METER_device_nok {
    background: url(../img/devices/picto_siren_alert.png) no-repeat center;
}
.REPEATER {
    background: url(../img/devices/picto_repeater.png) no-repeat center;
}
.REPEATER_device_nok {
    background: url(../img/devices/picto_repeater_alert.png) no-repeat center;
}
.SYNOLOGY_NAS {
    background: url('/img/devices/picto_nas.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;
}



.btn-shutter {
    width: 35px;
    background: no-repeat center center;
    background-size: 65px;
}
.button_down_off {
    background-image: url(../img/btn/btn_automation_down_off.png);
}
.button_down_on,.button_down_off:hover {
    background-image: url(../img/btn/btn_automation_down_on.png);
}

.button_stop_off {
    background-image: url(../img/btn/btn_automation_stop_off.png);
}
.button_stop_on, .button_stop_off:hover {
    background-image: url(../img/btn/btn_automation_stop_on.png);
}

.button_up_off {
    background-image: url(../img/btn/btn_automation_up_off.png);
}
.button_up_on, .button_up_off:hover {
    background-image: url(../img/btn/btn_automation_up_on.png);
}


.SHUTTER_SWITCH_0 {
    background: url(../img/pictos/picto_shutter_level_0.png) no-repeat center;
}
.SHUTTER_SWITCH_100 {
    background: url(../img/pictos/picto_shutter_level_100.png) no-repeat center;
}
.SHUTTER_SWITCH_25 {
    background: url(../img/pictos/picto_shutter_level_25.png) no-repeat center;
}
.SHUTTER_SWITCH_50 {
    background: url(../img/pictos/picto_shutter_level_50.png) no-repeat center;
}
.SHUTTER_SWITCH_75 {
    background: url(../img/pictos/picto_shutter_level_75.png) no-repeat center;
}
.button_down_on, .button_down_off {
	right: 22px;
}
.button_stop_on, .button_stop_off {
    left: 26px;
}
.button_up_on, .button_up_off {
    left: 64px;
}
.slider{
    position: absolute;
    border: 1px solid #333;
    border-bottom-color: #777;
    border-radius: 3px;
    height: 13px;
    background: #8e8d8d 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;
}

#password_strength_estimator {
    height: 3px;
    background: rgba(255,255,255,0.85);
    width: 100%;
    position: relative;
}
#password_strength_estimator:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(34, 80, 92, 0.85);
    transition-duration: 350ms;
    width: 0;
}
.score-0:after {
    width: 3% !important;
}
.score-1:after {
    width: 10% !important;
}
.score-2:after {
    width: 25% !important;
}
.score-3:after {
    width: 50% !important;
}
.score-4:after {
    width: 100% !important;
}
#password_strength_label {
    font-size: 11px;
    text-align: left;
    width: 100%;
}
#footer-logo-container, #footer-logo {
    display: none;
}
@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;
        margin: 0;
    }

    .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;
    }

    .button_up_on, .button_up_off {
        right: 18px;
    }
    .button_stop_on, .button_stop_off {
        left: 59px;
    }
    .button_down_on, .button_down_off {
        left: 22px;
    }
}
