/* Core page elements */
body {
    background: #333 url(page-bg.png);
}
header {
    min-height: 102px;
}
#page {
    padding: 15px 0 40px 0;
    background: #fff;
}
footer {
    padding: 16px;
    text-align: center;
    color: #eee;
}
footer a {
    color: #90C3B1;
}

/* Main navbar */
.navbar-inverse {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}
@media (min-width: 768px) {
    .navbar-header {
        float: none;
        text-align: center;
    }
}
.navbar .container .navbar-brand {
    float: none;
    height: 102px;
    margin: 0;
}
.navbar-brand > img {
    display: block;
    height: 72px;
    width: 72px;
    padding: 12px;
    margin-left: auto;
    margin-right: auto;
}
.navbar-inverse .navbar-toggle {
    border-color: #666;
    margin-top: 40px;
}


/* Headings */
h1 small, .h1 small,
    h2 small, .h2 small,
    h3 small, .h3 small,
    h1 .small, .h1 .small,
    h2 .small, .h2 .small,
    h3 .small, .h3 .small {
        margin-left: 0.5em;
}

/* Anchors */
a:hover {
    background-color: #333;
}
a.internal {
    border-bottom: 1px dashed #5a9681;
}
a.wikipedia:after {
    content: "w";
    vertical-align: super;
    padding-left: 2px;
    font-family: serif;
    font-size: 65%;
}

/* List group */
.list-group-item td:first-child {
    padding-right: 12px;
}

/* Breadcrumbs */
.breadcrumb {
    margin-top: -15px;
    border-radius: 0;
}

/* Submenu */
.page-submenu {
    display: inline-block;
}

/* Sidebar */
.sidebar {
    font-size: 14px;
    background-color: #f8f8f8;
    margin-top: -20px;
    padding-top: 20px;
    padding-bottom: 10px;
}
.sidebar h4 {
    margin-top: 20px;
    margin-bottom: 2px;
}
.sidebar h4:first-child {
    margin-top: 0px;
}
.sidebar .title {
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar ul {
    padding-left: 20px;
}

/* Bootstrap tweaks */
.jumbotron {
    text-align: center;
    background-color: transparent;
}
.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}
.thumbnail {
    text-align: center;
}
.thumbnail .image {
    text-align: center;
    overflow: hidden;
}

/* Software */
.screenshots .thumbnail .image {
    height: 250px;
}
.screenshots .thumbnail .image img {
    max-height: 100%;
}
.awards .thumbnail .image {
    height: 130px;
    vertical-align: middle;
}
.awards .thumbnail .image img {
    max-height: 100%;
}

/* Blog */
table.blog-archive tr th {
    font-size: 32px;
    margin: 24px 0 12px 5px;
    padding: 10px 0;
}
table.blog-archive tr td {
    padding: 5px 10px;
}
h1.draft {
    background: url(/images/draft-bg.png);
    border: none;
}
h1.draft:before {
    content: "DRAFT";
    padding: 6px 10px;
    color: #d900ff;
    opacity: 0.5;
    float: right;
}
.blog_post_wrapper {
    position: relative;
}
.blog_post_wrapper a.click-catcher {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: none;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 90%, rgba(255,255,255,1) 100%);
}
.blog_post_wrapper a.click-catcher:hover {
    background: #aaa;
    opacity: .2;
}
.blog_post {
    clear: both;
    font-size: 16px;
}
@media (max-width: 991px) {
    .post_body {
        padding-bottom: 24px;
        border-bottom: 2px dotted gray;
        margin: 0 15px;
    }
    .blog_post .sidebar h4 {
        margin-top: 20px;
    }
}
div.blog_post .post_footer {
    margin: 24px -2px 120px -2px;
    padding: 24px 10px;
    line-height: 1.6;
    font-size: 85%;
    border-top: 2px dotted gray;
    border-bottom: 2px dotted gray;
    color: #888;
    text-align: center;
}
div.blog_post_list div.blog_post {
    padding: .5em .5em 3em .5em;
    margin-bottom: 1em;
    max-height: 500px;
    overflow: hidden;
}
div.blog_post_list div.blog_post img.post_pic {
    margin: auto;
}
.post_none:before, .post_en:before, .post_ru:before, .post_nl:before {
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: inline-block;
    text-align: center;
    padding: 2px;
    margin: 0;
}
.post_none:before {
    content: "\a0";
}
.post_en:before {
    background-color: #c06666;
    content: "En";
}
.post_ru:before {
    background-color: #6666c0;
    content: "Ru";
}
.post_nl:before {
    background-color: #66c066;
    content: "Nl";
}
hr.cut {
    border-top: 2px dashed #d900ff;
}

/* Social*/
.social {
    vertical-align: middle;
    text-align: center;
}

/* Tags */
.tags {
    text-align: center;
}
.tags a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0;
    text-align: center;
    vertical-align: middle;
    border-radius: 8px;
}
.tag_size_1, .tag_size_2, .tag_size_3, .tag_size_4, .tag_size_5, .tag_size_6, .tag_size_7 {
    line-height: 1.5em;
    white-space: nowrap;
}
.tag_size_1 {
    font-size: 80%;
    opacity: .8;
}
.tag_size_2 {
    font-size: 100%;
    opacity: .9;
}
.tag_size_3 {
    font-size: 115%;
}
.tag_size_4 {
    font-size: 130%;
}
.tag_size_5 {
    font-size: 150%;
    font-weight: bold;
}
.tag_size_6 {
    font-size: 180%;
    font-weight: bold;
}
.tag_size_7 {
    font-size: 220%;
    font-weight: bold;
}
.tag-en, .tag-ru {
    margin: 0 2px;
}
.tag-selector {
    max-height: 167px;
    overflow-y: auto;
}

/* Downloads */
.download {
    padding: 0.7em;
    margin: 10px 0;
    border-bottom: 1px solid #ccc;
}
.download .glyphicon {
    font-size: 200%;
    padding-top: 10px;
}
.download .btn {
    min-width: 80%;
    white-space: normal;
}
.download .info {
    color: #a6a6a6;
}
.featured {
    padding: 1.5em;
    margin: 20px 0;
    background: #F5F5F5;
    border-top-left-radius: 18px;
    border-bottom: none;
}
.featured .glyphicon {
    font-size: 300%;
}
.featured .btn {
    width: 100%;
}

/* Tables */
.table-nonfluid {
    width: auto !important;
}
td.number {
    text-align: right;
    white-space: nowrap;
}
td.date, td.time, td.link, td.boolean {
    text-align: center;
    white-space: nowrap;
}
.table > thead > tr > th {
    background-color: #DDEEE8;
}
tr.grayed {
    color: #bbb;
}

/* Lyrics */
.lyrics {
}
.lyrics-popup {
    padding: 5px 20px 10px 20px;
}
.lyrics .details {
    font-size: 93%;
    color: #555;
}
.lyrics-text p {
    margin: 0;
    padding: 0;
}
.lyrics-text p.indent {
    padding-left: 20px;
}
.lyrics-text p.chord {
    color: #660093;
    font-weight: bold;
    white-space: pre;
    display: none;
}
.lyrics-chords p {
    font-family: monospace;
}
.lyrics-chords p.chord {
    display: block;
}

/* Audio */
a > .playbtn:before {
    content: "\e072";
}
a.active > .playbtn:before {
    content: "\e073";
}
a.paused > .playbtn:before {
    content: "\e029";
}

/* Video */
.video-events .thumbnail .image {
    height: 213px;
}
.video-events .thumbnail .image img {
    height: 100%;
}
.video-events .thumbnail h4, .video-events .thumbnail p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.video-thumbnail {
    display: block;
    position: relative;
}
.video-thumbnail:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: url(/images/icons48/video-play.png) center center no-repeat no-repeat;
}
.video-thumbnail:hover:before {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Misc */
blockquote {
    background-color: #f7f7f7;
    font-size: 15.5px;
}
.flang {
    font-style: italic;
    color: #4e0070;
}
.media-container {
    padding: 0.2em 0 2em 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.media-container img {
    max-height: 800px;
}
.media-container .caption {
    font-size: 91%;
    color: #555;
    text-align: center;
}
a.img {
    background: none;
}
img.article-opener {
    float: left;
    border-radius: 6px;
    margin: 0.5em 2em 1em 0;
    max-width: 250px;
    height: auto;
}
.single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.not-set {
    color: #c55;
    font-style: italic;
}
dd {
    margin-left: 40px;
}

/* Admin */
label.linked:before {
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    font-size: 80%;
    content: "\e144";
    color: #209c70;
    margin-left: -20px;
    padding-right: 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}
