body {
    font-size: 16px;
    font-family: sans-serif;
    padding: 0;
    margin: 0;
}

a {
    color: #2d6987;
}

.container {
    box-sizing: border-box;
    margin: 0 auto;
    width: 1170px;
}

.header-outer {
    background: #7f4f8e;
}

.header {
    display: flex;
    align-items: center;
    min-height: 60px;
}

.logo {
    text-decoration: none !important;
}

.logo span:first-child {
    color: #ffa500;
    font-weight: bold;
    font-size: 20px;
}

.logo span:last-child {
    color: #fff;
    font-size: 20px;
    text-transform: uppercase;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 50px;
    display: flex;
}

.menu a {
    color: #fff;
    text-decoration: none;
}

.menu li:not(:last-child) {
    padding-right: 15px;
}

.menu a:hover {
    text-decoration: underline;
}

.search {
    display: flex;
    align-items: stretch;
    position: relative;
    margin-left: auto;
    flex: 0 0 300px;
}

.search input {
    flex: 1;
    outline: none;
    box-shadow: none;
    border: none;
    border-radius: 3px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 45px 0 15px;
}

.search button {
    position: absolute;
    background: #5d2a6d;
    width: 32px;
    height: 32px;
    top: 0;
    right: 0;
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border-radius: 0 3px 3px 0;
}

.search svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.main {
    display: flex;
    padding-top: 20px;
}

.sidebar {
    flex: 0 0 240px;
}

.content {
    flex: 1;
    overflow: hidden;
}

.question-subheader {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}

.question-text {
    padding-bottom: 20px;
}

.question-source {
    padding-bottom: 20px;
}

.footer-outer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    margin-top: auto;
}

.footer-outer a {
    color: #fff;
}

.main-outer {
    padding-bottom: 20px;
}

.answers {
    margin-top: 20px;
    border-top: 2px solid #ccc;
}

.answers-item {
    padding-bottom: 20px;
    border-bottom: 2px solid #ccc;
}

.answer-link {
    display: table;
    margin-left: auto;
}

.answer-content {
    padding-top: 20px;
}

.after:not(:empty) {
    padding: 20px 0;
}

.before:not(:empty) {
    padding-bottom: 20px;
}

pre {
    box-sizing: border-box;
    width: 100%;
    margin: 10px 0 0 0;
    overflow: auto;
    overflow-y: hidden;
    font-size: 12px;
    line-height: 20px;
    background: #efefef;
    border: 1px solid #777;
    /*background: url(lines.png) repeat 0 0;*/
    padding: 10px;
    color: #333;
}

pre code {
    padding: 10px;
    color: #333;
}

.content img {
    max-width: 100%;
    margin: 20px 0;
}

blockquote {
    background: none repeat scroll 0 0 #eeeeee;
    border-left: 5px solid #b4b4b4;
    border-right: 5px solid #b4b4b4;
    color: #333333;
    font-style: italic;
    padding: 10px 20px;
    text-align: left;
    max-width: 100%;
    box-shadow: 0 0 5px #c0c0c0;
    margin: 10px 0 0 0;
}

.questions-all__item {
    display: block;
    overflow: hidden;
    margin: 4em auto 0;
    padding: 1em;
    margin-top: 20px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.14);
}

.questions-all__item-title * {
    font-size: 1.4rem;
    font-weight: 500;
    margin-top: 5px;
    margin-bottom: 0;
    text-decoration: none;
}

.questions-all__item-content {
    margin-top: 5px;
}

.questions-all__item-tags a {
    text-decoration: none;
    color: #fff;
    background-color: #2d6987;
    text-align: center;
    letter-spacing: .5px;
    border: none;
    border-radius: 2px;
    display: inline-block;
    height: 36px;
    line-height: 36px;
    padding: 0 16px;
    text-transform: uppercase;
    margin-top: 5px;
}

@media (max-width: 1169px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
    }
    .header {
        flex-wrap: wrap;
        padding: 20px 0;
    }
    .logo {
        flex: 0 0 100%;
    }
    .menu {
        margin-left: 0;
        flex: 0 0 100%;
        margin-top: 10px;
    }
    .search {
        flex: 0 0 100%;
        margin-top: 17px;
    }
    .sidebar {
        display: none;
    }
}

@media (min-width: 1170px) {
    .content {
        box-sizing: border-box;
        padding-left: 20px;
    }
}

.pagination {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.pagination .active a {
    color: #9c2e2e;
    font-weight: bold;
}

.sidebar {
    position: relative;
}

.sidebar-ad {
    position: sticky;
    top: 20px;
}