/*
    Theme name: Villem Reiman
    Theme URI: http://www.kaidof.net/
    Author: Kaido Ferents
    Author URI: http://www.kaidof.net
    Version: 1.0.0
*/

html, body {
    margin: 0;
    padding: 0;

    background-color: #F5F5F5;

    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 300;
    color: #222;
    /*overflow: hidden;*/
}

body {
    border: 5px solid #fff;
    margin: 10px;
    width: 1200px;
    margin: 10px auto;
    box-shadow: 0 0 3px rgba(0,0,0,0.5);
}


a {
    transition: color 0.2s ease-in-out;
    -moz-transition: color 0.2s ease-in-out;
    -webkit-transition: color 0.2s ease-in-out;
    -o-transition: color 0.2s ease-in-out;

    transition: background 0.2s ease-in-out;
    -moz-transition: background 0.2s ease-in-out;
    -webkit-transition: background 0.2s ease-in-out;
    -o-transition: background 0.2s ease-in-out;
}



a:hover {
    color: #444;
}
a, a:hover {
    text-decoration: none;
}

#page {
    background-color: #fff;
}

header {
    background-color: #f1f1f1;
}

header > a {
    margin: 0;
    line-height: 100px;
    font-size: 32px;
    color: #616e74;
}

header > a:hover {
    color: #41494d;
}


header .logo {
    background: url("Villem_Reiman_small.jpg") center -20px;
    width: 120px;
    height: 100px;
    float: left;
    margin-right: 10px;
}

nav {
    background-color: #3960b6;
    height: 40px;
    /*box-shadow: 2px 2px 0 #b5b5b5;*/
    font-size: 15px;
    font-family: sans-serif;
    line-height: 40px;
}

nav a {
    color: #eee;
    padding: 0 15px;
    text-decoration: none;
    line-height: 40px;
    font-size: 15px;
    display: block;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

nav ul, nav li {
    padding: 0;
    list-style: none;
    display: inline;
}

nav .current-menu-item > a,
nav .current_page_item > a {
    color: #fff;
    text-decoration: underline;
    background-color: #3755a9;
}
nav .current-menu-parent > a,
nav .current_page_parent > a{
    background-color: #3755a9;
    color: #fff;
}

nav a:hover {
    background-color: #4586e8;
    color: #fff;
}

nav ul ul a {
    /*width: auto;*/
    /*width: 200px;*/
    line-height: 40px;
    padding: 0 15px;
    display: block;
    margin: 0;
}

nav ul > ll.menu-item-has-children > a:after {
    /*font-family: 'FontAwesome';*/
    /*content: '\f085';*/
    content: '▼';
    font-size: 10px;
    position: relative;
    /*margin-right: 5px;*/
    /*font-size: 110%;*/
}

nav ul li {
    position: relative;
    float: left;

    /*background-color: #d97426;*/
}

nav ul ul li {
    width: 100%;
}

nav ul ul {
    position: absolute;
    left: -9999px;
    opacity: 0;
    text-align: left;
    /*box-shadow: 2px 2px 2px rgba(0,0,0,0.5);*/
    background-color: #3960b6;

    /*width: auto;*/
    margin: auto;
    white-space: nowrap;

    -webkit-transition: opacity 0.2s ease-in-out;
    -moz-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;

}

nav ul li:hover > ul {
    left: 0px;
    top: 100%;
    /*position: absolute;*/
    opacity: 1;
}

#show-nav {
    display: none;
    background-color: #7097a7;
    line-height: 40px;
    font-size: 18px;
    font-family: sans-serif;
    padding: 0 15px;
}

/*
@media only screen and (min-width: 480px) and (max-width: 767px) {
    nav {
        display: none;
    }

    #show-nav {
        display: block;
    }

}
*/

#page {
    overflow: hidden;
    padding: 10px;
}

.entry-header {
    /*clear: both;*/
    color: #777d89;
}

footer .foot {
    padding: 2px 5px;
    text-align: left;
    background-color: #eee;
    color: #a4a4a4;
    line-height: 24px;
}

footer ul {
    padding: 0;
    list-style: none;
    display: inline;
}

footer ul li {
    line-height: 20px;
}

.aligncenter	{ display: block; margin: 0 auto; }
.alignright	{ float: right; margin: 0 0 1em 1em; }
.alignleft	{ float: left; margin: 0 1em 1em 0; }
.floatleft	{ float: left; }
.floatright	{ float: right; }
img.aligncenter, img.alignright,
img.alignleft	{ border: 3px solid #EEE; }

.wp-caption { 
border: 1px solid #DDD;
text-align: justify;
background: #F3F3F3; 
padding-top: 4px; 
/*margin: 10px */
}
.wp-caption img {
	margin-left:5px;
	padding: 0;
	border: 0 none;
}

.wp-caption .wp-caption-text {
	margin:10px;
}