/** BACKGROUND **/
#page {
    background-color: #aaaaaa;
}

/** LAYOUT BACKGROUND **/

#header, #footer, #menu, #right, #faux_lt, #faux_rt {
    background-color: #1d5987;
}

#wrapper, #inner {
    background-color: #FFFFFF;
}

/** LAYOUT **/

body, html {
    height: 100%;
    color: #000000;
    font: 100% Arial;
}

/* IE 8 HACK */
#wrapper:after, #inner:after {
    clear: both;
    height: 1%;
}

#wrapper {
    position: relative;
    width: 1000px;
    height: auto !important;
    height: 100%;
    min-height: 100%;
    margin: 0 auto;
    border-left: 1px solid #000000;
    border-right: 1px solid #000000;
}

#header {
    position: relative;
    height: 150px;
    overflow: hidden;
}

#header, #footer {
    text-shadow: 1px 1px #333;
    z-index: 2;
    color: #dfeffc;
}

#header_logo, #header_title, #header_tools {
    position: absolute;
    padding: 5px;
    top: 0;
    height: 120px;
}

#header_logo {
    width: 190px;
}

#logo {
    position: relative;
    width: 150px;
    padding-left: 20px
}

#header_title {
    left: 220px;
    width: 550px;
    font-size: 80%;
}

#header_nazev {
    margin-top: 0px;
    margin-bottom: 20px;
}

#header_naz {
    margin-top: 5px;
    margin-bottom: 20px;
}

#header_rejstrik,#header_stav,#header_obsah {
    margin: 0px;
}

#header_tools input {
    width: 150px;
    /*height: 25px;*/
    height: 28px;
}

#header_tools {
    left: 800px;
    width: 170px;
}

#header_login {
    height: 70px;
    overflow: hidden;
    word-break: break-all;
}

#inner {
    width: 100%;
    padding-bottom: 30px;
    overflow: auto;
}



#menu {
    position: relative;
    float: left;
    min-width: 200px;
    min-height: 1px;
    
}

#menu ul {
    position: relative;
    margin: 0 auto;
    width: 200px;
    z-index: 10;
    background-color: #4297d7;
    list-style-type: none;
    border: 1px solid #4297d7;
}

#menu ul ul {
    margin-top: 15px;
    border: none;
}

#menu ul li {
    display: list-item;
    list-style-image: none;
}

#menu a {
    color: white;
    display: block;
    text-decoration: none;
    padding: 6px 10px 6px 10px;
    font-weight: bold;
    text-shadow: 1px 1px #555555;
}

#menu a:hover, #menu a.selected {
    color: #dfeffc;
    background-color: #1d5987;
    text-shadow: 1px 1px black;
}

#main {
    overflow: hidden;
    padding: 15px;
}

#right {
    float: right;
    width: 5px;
    min-width: 5px;
    min-height: 1px;
    z-index: 2;
}


#menu, #faux_lt {
    left: 0;
    width: 220px;
}

#faux_lt, #faux_rt {
    position: absolute;
    /*position: relative;*/
    bottom: 0;
    height: 100%;
    /*z-index: 0;*/
}

#faux_rt {
    right: 0;
    width: 5px;
}

#footer {
    position: relative;
    width: 1000px;
    height: 40px;
    margin: -40px auto 0;
    z-index: 2;
    font-size: 70%;
}

#footer p {
    float: right;
    padding: 10px;
}
#menu_horni  {
        display: none; 
    }


@media screen and (max-width: 800px) {
    #menu, #header, #faux_lt, #faux_rt  {
        display: none;
    }
    
    #menu_horni  {
        display: block 
    }
 
    #wrapper {
         width: auto;
    }
 
    #inner {
        background-color: #1d5987;
    }
 
    #footer {
        display: block;
        width: auto;
        font-size: 70%;
    }
 
    
    #wrapper {
        background-color: #1d5987;
    }
    /* pravidla se aplikují jen při šířce do 480 px */
}