*{
    margin: 0;
    padding: 0;
}
div, ul, li{
    position: relative;
}
.clear{
    clear: both;
}
html{
    height: 100%;
}
body{
    background-color: #03031c;
    font-size: 15px;
    font-family: Helvetica, Arial, sans-serif;
    height: 100%;
}
body.frontend{
    background-image: url(/lnfm1.sai.msu.ru/viewer/graphics/all/texture.png);
}
body.frontend.full {
    background-color: #AAB1B5;
    background-image: none;
}
#wrap{
    width: 800px;
    margin: 0 auto;
    min-height: 100%;
    background-color: #aab1b5;
}
.viewer #wrap{
    width: 1200px;
}
/*image contents url(../../images/index/gradient-vertical.png);:15px of top shadow, 15px of bottom shadow, 19px of screen top border; 19px of screen bottom border*/
#head{
    width: 100%;
    height: 250px;
    background-color: #000;
    margin-bottom: -54px;
    background-repeat: no-repeat;
}
#observ_name{
    font-family: Georgia;
    font-size: 2em;
    position: absolute;
    left: 30px;
    top: 40px;
    font-weight: normal;
    margin-top: 0;
    
}
#observ_name a{
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    color: #111;
}
#observ_name a:hover{
    text-decoration: underline;
}
#sky{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.night_clear #sky{
    background-image: url(../../images/index/sky/night_clear.jpg);
}
.night_cloudy #sky{
    background-image: url(../../images/index/sky/night_cloudy.jpg);
}
.night_verycloudy #sky{
    background-image: url(../../images/index/sky/night_verycloudy.jpg);
}
.night_rain #sky{
    background-image: url(../../images/index/sky/night_rain.gif);
}
.day_clear #sky{
    background-image: url(../../images/index/sky/day_clear.jpg);
}
.day_cloudy #sky{
    background-image: url(../../images/index/sky/day_cloudy.jpg);
}
.day_verycloudy #sky{
    background-image: url(../../images/index/sky/day_verycloudy.jpg);
}
.day_rain #sky{
    background-image: url(../../images/index/sky/day_rain.gif);
}
.night_clear #observ_name a, .night_cloudy #observ_name a, .night_verycloudy #observ_name a{
    color: #eee;
}

#tabs{
    list-style: none;
    overflow: hidden;
    display: block;
}
#tabs a.tab{
    float: left;
}
#tabs .tab{
    width: 176px;
    height: 54px;
    /*background-image: url(../../images/index/tab.png);*/
    background-image: url(/images/sprite.png);
    background-position: 0 -34px;
    z-index: 5;
    position: relative;
    display: block;
    text-align: center;
    line-height: 65px;
    font-size: 1.5em;
    color: #485359;
    font-family: Georgia;
    text-decoration: none;
}
#tabs .inactive:hover{
    /*background-image: url(../../images/index/tab-hover.png);*/
    background-position: -176px -34px;
    text-decoration: underline;
}
#tabs .active{
    z-index: 15;
}
#body{
    width: 100%;
    min-height: 400px;
    background-color: #aab1b5;
    /*-moz-box-shadow: 0px 0px 20px #000;
    -webkit-box-shadow: 0px 0px 20px #000;*/
    z-index: 10;
    padding: 5px 0;
}
#body p{
    margin: 2px 10px;
}
#wrap b{
    position: absolute;
    display: block;
}
b.top, b.bottom{
    width: 100%;
    height: 15px;
    left: 0;
    background-image: url(../../images/index/gradient-vertical.png);
    background-repeat: repeat-x;
}
b.top{
    top: -15px;
}
b.bottom{
    top: 100%;
    background-position: 0 -15px;
}
b.left, b.right{
    background-image: url(../../images/index/gradient-horizontal.png);/* 15px:left shadow, 15px:right shadow */
    background-repeat: repeat-y;
    width: 15px;
    height: 100%;
    top: 0;
}
b.left{
    left: -15px;
}
b.right{
    left: 100%;
    background-position: -15px 0;
}

b.t, b.b{
    width: 100%;
    height: 19px;
    left: 0;
    background-image: url(../../images/index/gradient-vertical.png);
    background-repeat: repeat-x;
}
b.t{
    top: -19px;
    background-position: 0 -30px;
}
b.b{
    top: 100%;
    background-position: 0 -49px;
}
b.l, b.r{
    background-image: url(../../images/index/gradient-horizontal.png);
    background-repeat: repeat-y;
    width: 19px;
    height: 100%;
    top: 0;
}
b.l{
    left: -19px;
    background-position: -30px 0;
}
b.r{
    left: 100%;
    background-position: -49px 0;
}
b.crn{
    width: 19px;
    height: 19px;
    background-image: url(../../images/index/screen-corners.png);
}
b.tl{
    top: -19px;
    left: -19px;
    background-position: 0 0;
}
b.tr{
    top: -19px;
    left: 100%;
    background-position: -19px 0;
}
b.br{
    top: 100%;
    left: 100%;
    background-position: -19px -19px;
}
b.bl{
    top: 100%;
    left: -19px;
    background-position: 0 -19px;
}
#tabs .ie_active_tab{
    position: absolute;
    top: -54px;
    width: 176px;
    height: 54px;
    background-image: url(../../images/index/tab.png);
}
#ie_tab_home{
    left: 0;
}
#ie_tab_meteo{
    left: 180px;
}
#sm_heading{
    height: 70px
    width: 750px;
    margin: 0 auto;
    color: #0f2734;
    padding: 4px 0 0 15px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9em;
}
#system_status{
    height: 50px !important;;
}
#system_status p{
    margin: 0;
}
#system_status p.error{
    color: #a42222;
    text-shadow: 0 0 3px rgba(50, 0, 0, 0.3);
}
#system_status ul{
    color: #a42222;
    text-shadow: 0 0 3px rgba(50, 0, 0, 0.3);
    list-style: square;
    margin-left: 27px;
}
#sm_heading div{
    height: 20px;
}
#observed_area{
    font-weight: bold;
}
#system_monitor_left{
    width: 210px;
    float: left;
    margin-left: 20px;
}
#sm_data{
    display: none;
}
.sm_widget_group{
    margin: 10px 0 0 0;
    /*background-color: #dce8ef;*/
    padding-bottom: 5px;
    overflow: hidden;
    width: 100%;
}
.sm_group_header{
    width: 100%;
    height: 21px;
    background-color: #8ea2ad;
    border-top: 1px solid #475b67;
    color: #0f2734;
    padding: 4px 0 0 15px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 0.9em;
}
.sm_group_name{
    width: 130px;
    /*background-color: #6f8592;*/
    
    /*background-image: url(../../images/index/sm-group-header-arrow.png);
    background-position: 129px 0;
    background-repeat: no-repeat;*/
}
.sm_widget{
    width: 100%;
    height: 30px;
    margin: 1px 0;
    float: left;
}
.sm_widget div{
    float: left;
    
}
.sm_widget .param, .sm_widget .param_small, .sm_widget .units{
    text-align: right;
    font-weight: bold;
    color:#393629;
    text-shadow:0 1px 0 rgba(255,255,255,0.5);
    font-size: 1.1em;
    height:27px;
}
.sm_widget .one_symbol{
    width: 12px;
    text-align: left;
}
.sm_widget .param, .sm_widget .param_small{
    padding-top:7px;
}
.sm_widget .param{
    width: 115px;
}
.sm_widget .param_small{
    width: 45px;
}
.sm_widget .param sup{
    line-height: 6px;
}
.sm_widget .units{
    padding-top:3px;
}
/*.sm_widget .on{
    background-image: url(../../images/index/display-transparent.png);
    background-color: #00dd4e;
    color: #c5ffc6;
}
.sm_widget .off{
    background-image: url(../../images/index/display-transparent.png);
    background-color: #ff2a00;
}*/
.sm_widget .display{
    background-repeat: no-repeat;
    height: 29px;
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding-top: 5px;
    background-image: url(/images/sprite.png);
}

.sm_widget .normal{
    background-color: #00dd4e;
    color: #c5ffc6;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
.sm_widget .warning{
    background-color: #ff2a00;
    color: #ffb69d;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}
.sm_widget .digital{
    background-color: #ffa200;
    color: #784700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}
.sm_widget .inactive{
    background-color: #aab1b5;
    color: #707476;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

.sm_widget .micro{
    /*background-image: url(../../images/index/display-transparent-micro.png);*/
    background-position: 0 0;
    width: 43px;
}
.sm_widget .small{
    /*background-image: url(../../images/index/display-transparent-small.png);*/
    background-position: -43px 0;
    
    width: 54px;
}
.sm_widget .medium{
    /*background-image: url(../../images/index/display-transparent-medium.png);*/
    background-position: -97px 0;
    
    width: 64px;
}
.sm_widget .large{
    /*background-image: url(../../images/index/display-transparent-large.png);*/
    background-position: -161px 0;
    width: 74px;
}
.sm_widget .extended{
    /*background-image: url(../../images/index/display-transparent-extended.png);*/
    background-position: -235px 0;
    width: 90px;
}

#system_monitor_right{
    width: 568px;
    float: left;
    
}
#system_monitor_right .sm_widget_group{
    margin-left: 1px;
}
#system_monitor_right .sm_group_header{
    text-align: center;
}
.sm_widget_subgroup{
    width: 270px;
    float: left;
    overflow: hidden;
}
.screens_widget{
    float: left;
    overflow: hidden;
    width: 100%;
}
.screen_wrap{
    margin: 15px auto;
    
    float: left;
    
}
.image_wrap{
    background-color: black;
}
.screen_wrap .clipper{
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    
}
.screen_wrap img{
    width: 100%;
    height: auto;
    
}
.screen_wrap .screen_border{
    /*background-image: url(../../images/index/screen-border.png);
    background-repeat: no-repeat;*/
    
    position: absolute;
    left: 19px;
    top: 19px;
}
.screen_name{
    /*position: absolute;
    width: 100%;
    left: 0;
    top: -15px;*/
    text-align: center;
    font-weight: bold;
    color:#393629;
    text-shadow:0 1px 0 rgba(255,255,255,0.5);
    font-size: 1.1em;
}
.screen_wrap:hover .screen_options{
    display: block;
}
.screen_options{
    display: none;
    position: absolute;
    right: -7px;
    top: 20px;
}
.screen_options a{
    font-size: 0.7em;
    text-decoration: none;
    display: block;
    padding: 3px 14px 3px 8px;
    background-color: #505f6a;
    color: #e7cf00;
}
.screen_options a:hover{
    background-color: #77858f;
}
/*every screen_wrap must have explicit width and height assigned for itself and for screen_border inside it:
screen_border width = screen_wrap width - 38px
same for height*/
.webcamera{
    width: 283px;
    height: 228px;
}
.webcamera .screen_border{
    width: 245px;
    height: 190px;
}
.last_image{
    width: 283px;
    height: 228px;
}
.last_image .screen_border{
    width: 245px;
    height: 190px;
}
/*meteo*/
.plot_wrap{
    width: 760px;
    height: 320px;
    background-color: #fff;
    margin: 0 auto;
    box-shadow: 0px 0px 5px #000;
    -webkit-box-shadow: 0px 0px 5px #000;
    -moz-box-shadow: 0px 0px 5px #000;
}
.plot_wrap img{
    border: none;
    max-width: 100%;
}
span#plot_status:before{
    padding-left: 5px;
    content: url(/images/box-loader.gif);
}
.frontend #body h1{
    font-weight: bold;
    color:#393629;
    text-shadow:0 1px 0 rgba(255,255,255,0.5);
    font-size: 1.1em;
    height:27px;
    margin: 5px 30px;
}

/*error and warning messages*/
p.warning{
    border-top: 1px solid #741a01;
    background-color: #e88c74;
    color: #411509;
    font-weight: bold;
    padding: 5px 30px;
}
/*login styles:*/

#loginbox{
    padding: 25px 50px;
    margin: 0 auto;
}
#loginbox h1{
    font-weight: normal;
    text-shadow:0 1px 0 rgba(255,255,255,0.5);
    color:#393629;
    font-size: 1.4em;
    text-align: center;
}
#loginbox p{
    margin: 10px auto 0;
    text-align: center;
    vertical-align: bottom;
}
#loginbox p.msg{
    
}
#loginbox p label{
    font-weight: bold;
    color:#393629;
    text-shadow:0 1px 0 rgba(255,255,255,0.5);
    font-size: 1.1em;
}
#loginbox p input{
    width: 280px;
    height: 39px;
    padding: 0 15px;
    line-height: 39px;
    /*background-image: url(../../images/login/input.png);*/
    background-image: url(/images/sprite.png);
    background-position: 0 -88px;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
    font-size: 1.2em;
    font-weight: bold;
    color: #252527;
    text-shadow:0 1px 4px rgba(0,0,0,0.7);
    outline: none;
}
#loginbox p input.submit{
    background-image: url(../../images/login/lock-icon.png);
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: 0 0;
    border: none;
    width: 113px;
    height: 37px;
    padding: 0 0 0 20px;
    color: #0f0f1e;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    text-shadow:0 1px 3px rgba(0,0,0,0.5);
}
#loginbox p input.submit:hover{
    color: #4c4c56;
}
