/**
 * Fonts
 */
 @font-face { 
    font-family: 'HelveticaNeueCyr'; 
    src: url('../fonts/HelveticaNeueCyr-Medium.eot'),                             /* IE9 Compat Modes */ 
         url('../fonts/HelveticaNeueCyr-Medium.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/HelveticaNeueCyr-Medium.woff') format('woff'),                    /* Новые браузеры и IE9+ */ 
         url('../fonts/HelveticaNeueCyr-Medium.ttf')  format('truetype');             /* Старые Safari, Android, iOS */
    font-weight: normal; 
    font-style: normal; 
}

/**
 * For questions
 */
.questions {
    margin: 30px 0px;
}

.description {
    margin-top: 20px;
}

#content .container p a {
    color: #f6a80f;
}


/**
 * Thumbnail
 */
.thumbnail {
    border-radius: 0px;
}


/**
 * Panel
 */
.panel-default>.panel-heading {
    border-radius: 0px;
}


/**
 * Navigation
 */
.navbar-top {
    background: rgba(0,0,0,0.8);
    min-height: 74px;
    border-radius: 0px;
}

a.navbar-brand.page-scroll {
    margin: 10px 0px;
}

.navbar-nav {
    margin: 12px 0px;
}

.navbar-nav li a {
    font-size: 20px;
    
}

/**
 * List
 */
.list-group .list-group-item:focus,
.list-group .list-group-item:active,
.list-group .list-group-item:hover,
.list-group .list-group-item {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
}

.list-group-item:last-child,
.list-group-item:first-child {
    border-radius: 0px;
    border-radius: 0px;
}

.list-group .list-group-item .list-group-item-heading {
    color: #fff;
}


/**
 * Panels
 */
.panel-body .thumbnail {
    border: solid 1px #7e7f79 !important;
    padding: 0px;
}

.panel.panel-default .panel-heading {
    border-bottom: solid 3px #af461d;
    color: #fff;
    background-color: rgba(0,0,0,.7);
}

.panel.panel-default .panel-body {
    background-color: rgba(0,0,0,.5);
}


/**
 * Block style
 */
.blocks .row {
    padding: 0px 20px;
}

.blocks .thumbnail {
    margin: 8px auto 40px auto;
    max-width: 304px;
}


/**
 * Categories
 */
.thumbnail {
    overflow: hidden;
    box-shadow: 0px 0px 5px 0px #fff inset, 0px 0px 5px 0px rgba(0,0,0,.5);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
 }

.thumbnail:hover {
    box-shadow: 0px 0px 5px 0px #fff inset, 0px 0px 5px 0px rgba(0,0,0,.5),inset 0 0 100px 100px rgba(255,255,255,.15);
}

 .thumbnail .caption {
    padding: 19px 9px 9px 9px;
}

.thumbnail .category-img a,
.thumbnail .category-header a {
    color: #fff !important;
    text-decoration: none !important;
}
.thumbnail .category-header {
    text-transform: uppercase;
    min-height: 42px;
    text-align: center;
}

.thumbnail .category-header h3 {
    margin: 0px;
    font-size: 20px;
    padding-top: 15px;
}

.category-img {
    height: 100px;
    padding-top: 1px;
}

.category-img img {
    height: 100px !important;
    margin: 10px calc(100% - 100px * 2);
}
.light {
    overflow: hidden;
}
.light:after {
    content: '';
    margin: 0px 50%;
    font-size: 0px;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}


/**
 * Guides
 */
.guides .guide-list .thumbnail  {
    width: 100%;
}

.guides .guide-list .thumbnail .category-img {
    display: table-cell;
    vertical-align: middle;
}

.center {
    display: table;
    width: 100%;
    height: 40px;
}

.v-align {
    padding: 10px;
    display: table-cell;
    text-align: center;
    vertical-align: middle;
}

.box {
    display: inline-block;
    vertical-align: top;
}


/**
 * Questions
 */
.question-categories {
    margin-top: 11px;
}

.question-categories li {
    float: left;
    width: 50%;
    margin: 10px 0px;
    list-style-type: none;
}

.question-categories li:before {
    content: '';
    height: 7px;
    width: 7px;
    background-color: #fff;
    position: absolute;
    border-radius: 50%;
    margin-top: 10px;
}

.question-categories li h3 {
    margin: 0px 0px 0px 30px;
}

.questions {
    margin-top: 11px;
}

.questions li {
    text-align: left;
    width: 100%;
    margin: 10px 0px;
    list-style-type: none;
}

.questions li:before {
    content: '';
    height: 7px;
    width: 7px;
    background-color: #fff;
    position: absolute;
    border-radius: 50%;
    margin-top: 10px;
}

.questions li h3 {
    margin: 0px 0px 0px 30px;
}

.questions .answer {
    word-wrap: break-word;
    background-color: rgba(255,255,255,.2) !important;
}


/**
 * Breadcrumbs
 */
.breadcrumb {
    background-color: rgba(0,0,0,0);
    margin: 43px 0px 20px 0px;
    padding: 0px 0px 25px 0px !important;
    height: 20px;
}


 /**
 * Custom
 */
.text-background-field {
    margin: 40px 0px;
}

.category-page .guide-list .thumbnail {
    min-height: 140px;
    height: 140px;
}

.category-page .category-header {
    height: 100%;
}

footer {
    height: 100px;
    padding: 40px 0px;
}

h6 {
    font-style: italic;
}

h5,
h4 {
    font-size: 18px;
}

table {
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
    border: none;
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
}

table td, table th {
    text-align: center;
    padding: 8px;
    border: 1px solid #4d4d4d !important;
}

table td {
    font-size: 12px;
}


/**
 * Page
 */
.page table,
.page p {
    color: #ccc;
}

.page {
    background-color: rgba(0,0,0,.15);
    color: #fff;
    font-family: 'HelveticaNeueCyr';
    font-size: 18px;
}

.page #content a:hover {
    color: #fff;
}

.page .title {
    margin: 8px 0px 20px 0px;
}

.page ol,
.page ul {
    padding-left: 20px;
}

.page blockquote ol,
.page blockquote ul {
    padding-left: 12px;
}

.page ul li p {
    color: #ccc;
    margin-bottom: 5px;
}

.page ul li p:first-child {
    margin-bottom: 0px;
}

.page ul li p:last-child {
    margin-bottom: 10px;
}

.page blockquote {
    padding: 0px 20px;
}

.page #content a:hover,
.page #content a {
    text-decoration: underline;
}


/**
 * Media queries
 */
@media (min-width: 768px) {
    .navbar-nav li:not(:first-child) {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav li:not(:last-child) {
        border-right: 1px solid rgb(28, 18, 13);
    }
}

@media (max-width: 768px) {
    .question-categories li {
        width: 100%;
    }

    .questions {
        padding: 0px;
    }


    table {
        display: block;
        width: 100%;
    }

    table thead, table tbody, table thead th {
        display: block;
    }

    table thead th:last-child{
        border-bottom: none;
    }

    table thead {
        float: left;
    }

    table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }

    table td, table th {
        padding: 20px .625em .625em .625em;
        height: 60px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        width: 120px;
        font-size: 13px;
        text-overflow: ellipsis;
    }

    table thead th {
        text-align: left;
    }

    table tbody tr {
        display: table-cell;
    }

    table tbody td {
        display: block;
        text-align: center;
    }
}
    
@media (min-width: 390px) {
    .guides .guide-list {
        padding: 20px 80px;
    }
}

/**
 * Custom for markdown
 */
img[src*="position:center"] {
    display:block;
    margin: 0 auto;
}

img[src*="position:right"] {
    display:block;
    margin: 0 auto;
    margin-right: 0px;
}

img[src*="width:90"] {
    width: 90%;
}

img[src*="width:80"] {
    width: 80%;
}

img[src*="width:70"] {
    width: 70%;
}

img[src*="width:60"] {
    width: 60%;
}

img[src*="width:50"] {
    width: 50%;
}

img[src*="width:40"] {
    width: 40%;
}

img[src*="width:30"] {
    width: 30%;
}

img[src*="width:20"] {
    width: 20%;
}

img[src*="width:10"] {
    width: 10%;
}

img[src*="width:100"] {
    width: 100%;
}