main{padding: 0;}
#messtree{
    display: none;   
    max-width: 300px; 
    position: absolute;
    left: 50px;    
    z-index: 199;
    background: silver;
    color: #fff;
    padding: 5px 10px;
    font-size: small;
}
#wrapper{
    display: block;
    position: relative;
}
#wrapper.zona-fixed {
    
    position: fixed;
    top: 100px;
    z-index: 309;
}

#gopoptree{
    position: absolute;
    top: 5px;
    left: 170px;
    width: 25px;
    height: 25px;
}
#gopoptree img{
    width: 25px;
    height: 25px;    
}

#content{
    margin-left: 222px;
    border: 1px solid black;            
    min-height: 400px;
    height: 100%;
    position: relative;
    left: 0;
    transition: 0.7s;    
}
#ttree{
    display: block;
    float: left;
    width: 220px;
    overflow: scroll;
    height: 440px;
    border: 1px solid blue;
    position: relative;
    left: 0;
    transition: 0.7s;
    z-index: 12;
    background-color: #fff;
}
#ttree a{
    display: block;
    width: 20px;
    height: 20px;
    float: left;
}
#ttree ul{
    list-style-type: none;
    padding: 0 0 0 15px;
}        
#ttree li{            
    white-space: nowrap;
    line-height: 20px;
    cursor: pointer;
}
#ttree li span{padding:3px 5px}
.selrzdl{
    background-color: #0099ff;
    color: yellow;
}
nav{min-height: 473px;}
nav #uz_0{padding: 0;}
.uzopen{
    background-image: url(img/uzopen.png);  
    background-repeat: no-repeat;
                
}
.uzclosed{
    background-image: url(img/uzclosed.png);  
    background-repeat: no-repeat;
}        
.closet{display:none;visibility: hidden;}
.opent{visibility: visible;}










.right-menu {
    display: none;
    position: absolute;
    z-index: 15;
    top: 100px;
    left: 100px;
    width: 220px;
    height: auto;
    padding: 3px;
    background-color: #ddd;
    font-family: verdana, arial, san-serif;
}   
.right-menu	ul {
    padding: 0px;
    margin: 0px;
}       
.right-menu	ul li {
    list-style: none;
    padding: 1px 0;
}
.right-menu ul li a {
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    border-radius: 4px;
    border: 1px dotted #ddd;
    vertical-align: middle;
    color: #000; /*#1C90F3;*/
    background-color: #f3f5f6;
    
    border-radius: 5px;  /* свойство для тех кто его поддерживает */
    -moz-border-radius: 5px;  /* для firefox */
    -webkit-border-radius: 5px;  /* для Safari и Chrome */  
    -khtml-border-radius:5px;        
}
.right-menu ul li a:hover {
    background-color: #ddd;

}

#dialogedrzdl label{
    width: 37%;
    display: inline-block;
    
}
.ui-button{padding: 5px 10px !important}
.ui-dialog .ui-dialog-titlebar-close{color: #f5f3e5 !important;}
#edirzdl{margin: 40px auto;}

textarea#edcontent, div#edcontent{
    width: 100%;
    height: 92%;
    min-height: 440px;
    padding: 5px;
}
#content .sts{
    margin: 0;
    padding: 0;
    font-weight: normal;
    height: 32px;
    line-height: 32px;
    background-color: #e0e2e4;
    border-bottom: 2px outset silver;
    position: relative;
}
#loadth{ 
    display: inline-block;
    width: 300px;
    line-height: 30px;
    transition: 0.7s;
    margin-left: 0px;
    padding: 1px 0 1px 10px;
    color: yellow;
    background-color: #0099ff;
    text-shadow: 1px 1px 1px black, 0 0 5px blue;
    text-overflow: ellipsis;
    overflow: hidden;
    height: 30px;
    white-space: nowrap;
}
#idtth{
    display: inline-block;
    width: 35px;
    font-size: small;
    line-height: 30px;
    margin-left: 5px;
    vertical-align: top;
}
#statth{
    display: inline-block;
    width: 170px;
    
    line-height: 30px;
    margin-left: 5px;
    padding: 1px 5px;
    font-style: italic;
    font-size: small;
    vertical-align: top;
}
#edruntth{
    display: inline-block;
    width: 5px;
    line-height: 30px;
    margin-left: 5px;
    padding: 1px 1px;    
    vertical-align: top;  
    color: red;  
}
#sacontthem{
    /*margin-left: 20px;    
    margin-top: 3px;*/
    vertical-align: top;
    float: right;
    margin: 3px 5px;
}
#famblkn{
    display: inline-block;
    padding: 0 12px;
    background-color: #e0e2e4;
    font-weight: bold;
}
#edcontent dl{
    border: 4px outset silver;
    margin: 5px 2px;
    padding: 5px;
    background-color: #e0e2e4;
}
#edcontent dd{
    margin: 0 7px;
}
#edcontent dt{
    margin: 10px 20px;
    text-align: right;
    font-style: italic;
    font-size: 80%;
    color: #6c6e6e;    
}
#edcontent .kwork{
    margin: 1px 3px;
    float: right;
    line-height: 2px;
    text-decoration: none;  
}


#ecit{
    width: 100%;
    height: 220px;    
}
#eavtor{
    width: 100%;
}
#eddial p{margin: 0;}

.nampage{
    font-style: italic;
    text-align: center;
    margin: 0;
    line-height: 40px;
    letter-spacing: 9px;
    background-color: #89d6f2;
    color: #ff6;
    text-shadow: 2px 2px 3px black, 0 0 2em blue;
}
h2.fnampage {
    /*text-align: center;*/
    margin: 0;
    line-height: 40px;
    background-color: #89d6f2;
}
h2.fnampage .fnam_page {
    line-height: 40px;
    font-style: italic;
    letter-spacing: 4px;
    
    color: #fff;
    text-shadow: 2px 2px 3px black, 0 0 2em blue;
    
}
h2.fnampage .ctth{margin: 0 0 0 10px; text-decoration: none; font-size: 12px; font-weight: normal;}
h2.fnampage .chth{
    /*position: relative;  left: -200px;  top: -3px;*/
    margin: 0 70px 0 10px;
}
#showtreem{
    display: none; 
    position: absolute;
    z-index: 10;
    top: 2px;
    border: 1px solid white;
    color: #fff;
    cursor: pointer;
}





@media screen and (min-width:781px) and (max-width:900px) {      
    #content .sts{
        height: 62px;
    } 
    #loadth{width: 100%; display: block;}

}
@media screen and (min-width:639px) and (max-width:780px) {
    .nampage{ letter-spacing: 4px; }  
    #content .sts{
        height: 62px;
    } 
    #loadth{width: 100%; display: block;}

}
@media screen and (min-width:480px) and (max-width:640px) {
    
    .nampage{ letter-spacing: 2px; font-size: larger;}
    #ttree{
        left: -400px;         
    }
    #content{
        left: -222px;
        width: 100%;
        
    }
    #loadth{width: 100%; display: block; padding-left: 40px;}

    #content .sts{
        height: 62px;
    } 
    #showtreem{display: inline-block;}
    h2.fnampage .fnam_page{
        display: block;
        padding-left: 10px;
        letter-spacing:3px;
    }    

    
}
@media screen and (min-width:365px) and (max-width:480px) {

    .nampage{ letter-spacing: 1px; font-size: larger; }
    #ttree{
        left: -400px;           
    }
    #content{
        left: -222px;
        width: 100%;
    }
    #loadth{width: 100%; display: block; padding-left: 40px;}

    #content .sts{
        height: 62px;
    } 
    #showtreem{display: inline-block;}
    h2.fnampage .fnam_page{
        display: block;
        padding-left: 10px;
        letter-spacing:2px;
    }
    
}
@media screen and (min-width:100px) and (max-width:365px) {
    .nampage{ letter-spacing: normal; font-size: medium;}
    #ttree{
        left: -400px;           
    }
    #content{
        left: -222px;
        width: 100%;
    }
    #loadth{width: 100%; display: block; padding-left: 40px;}

    #content .sts{
        height: 62px;
    } 
    #showtreem{display: inline-block;}
    
    #sacontthem, #statth, #idtth{
        font-size: x-small;
    }
    #statth{width: 140px;}
        h2.fnampage .fnam_page{
        display: block;
        padding-left: 10px;
        letter-spacing:1px;
    }
}