:root {
    --menu: #242424;
    --navHover: #e3e3e3;
    --butts: #5696bb;
    --buttsColor: #fff;
}
@font-face {
	font-family: 'DSEraser';
	src: local('DSEraser'),
	     url('../font/logo.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
@font-face {
	font-family: 'Lat Light';
	src: local('Lat Light'),
	     url('../font/nav.woff') format('woff');
	font-weight: normal;
	font-style: normal;
}
/*###################################################################*/
*,
*:before,
*:after {
    margin: 0;
    box-sizing: border-box;
}
body,
html {
    height: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: Georgia,Cambria,"Times New Roman",Times,serif;
    line-height: 1.5;
    font-size: 16px;
    letter-spacing: .01rem;
    font-weight: 400;
    overflow: auto;
    color: #333;
}
a {
    text-decoration: none;
}
h1 {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 26px;
     font-family: Fira Sans,sans-serif;
}
h2 {
    font-size: 1.5em;
    font-weight: 500;
     font-family: Fira Sans,sans-serif;
}
.grid {
   display: grid;
}

/*###################################################################*/
/* Header */
.wrapper {
    height: 100vh;
    grid-template-rows: auto 1fr auto;
}
header {
    height: 130px;
    padding: 10px;
    background: var(--menu);
}
.menu {
    position: absolute;
    max-width: 1200px;
    height: 130px;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 0 10px;
    grid-template-areas:
      'menu__logo menu__search menu__social menu__login'
      'menu__nav menu__nav menu__nav menu__nav';
    grid-template-columns: 0.6fr 0.7fr 0.4fr 0.2fr;
    grid-template-rows: 80px 40px;
    grid-gap: 0.1rem;
    align-items: center;
    background: var(--menu);
    z-index: 10;
    transition: all 0.25s ease-in-out;
}
.menu__burger {
    grid-area: menu__burger;
    display: none;
}
.menu__logo {
    grid-area: menu__logo;
    font-size: 3rem;
}
.menu__search {
    grid-area: menu__search;
    width: 100%;
}
.menu__social {
    grid-area: menu__social;
    justify-self: end;
    padding: 8px;
}
.menu__login {
    grid-area: menu__login;
    justify-self: end;
    padding: 8px;
    white-space: nowrap;
    background: var(--butts);
}
.menu__nav {
    grid-area: menu__nav;
}
/* header in details*/
.menu__logo a {
    color: #fff;
    font-family: 'DSEraser';
}
.menu__logo a:hover {
    color: #999;
}
.menu__search_btn {
    margin-top: 5px;
    cursor: pointer;
    border: 0;
    background: transparent;
    outline:none;
    color: #fff;
}
.menu__search_btn i {
    font-size: 16px;
}
.menu__search form {
     display: flex;
}
.menu__search_block {
    width: 100%;
    position: relative;
}
.menu__search_input {
    width: 100%;
    height: 30px;
    font-size: 16px;
    background-color: var(--menu);
    border: 0;
    border-bottom: 1px solid #666;
    color: #fff;
}
.menu__search_input::placeholder {
  color: #999;
  font-size: 16px;
}
.menu__search_posts {
    position: absolute;
    width: 100%;
    background: #f5f2f2;
}
.menu__social_ico {
    list-style-type: none;
}
.menu__social_ico li {
    display: inline-block;
    margin-right: 10px;
}
.menu__social_ico a {
    display: inline-block;
    width: 28px;
    height: 28px;
    padding: 5px;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    opacity: .8;
    transition: opacity .3s,transform .3s;
}
.menu__social_ico i {
    font-size: 18px;
    vertical-align: baseline;
    text-align: center;
}
.menu__social_ico .telegram {
    background: #7ac9ed;
}
.menu__social_ico .github {
    background: #91c661;
}
.menu__social_ico .twitter {
    background: #40aeef;
}
.menu__social_ico .fa-github {
    background: #91c661;
}
.menu__social_ico a:active,
.menu__social_ico a:focus,
.menu__social_ico a:hover {
    opacity:1;
    transform:scale(1.2)
}
.menu__login_color {
    padding: 5px 5px;
    color: var(--buttsColor);
    text-decoration: none;
    align-self: center;
    white-space: nowrap;
    font-family: "Noto Sans", sans-serif;
}
/* menu-nav */
.menu__nav {
    max-width: 1024px;
    margin: auto;
}
.menu__nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}
.menu__navul li {
    margin: 0 10px;
}
.menu__nav ul li a {
    display: block;
    padding: 10px;
    transition: .2s linear;
    font-size: 20px;
    font-family: 'Lat Light';
    letter-spacing: 1px;
    color: #fff;
    text-align: center;
    z-index: 100;
}
.menu__nav ul li a:hover {
    color: #999;
}
.menu__active {
    color: #999 !important;
}
.overlay {
    display: none;
}

/* content */
/*###################################################################*/
.content-box {
    max-width: 1200px;
    height: 100%;
    padding: 0 15px;
    grid-template-areas: "content nav";
    grid-template-columns: 3fr 1.2fr;
    grid-template-rows: auto;
    grid-row-gap: 0px;
    grid-column-gap: 0px;
    margin: 15px auto;
}
.contents {
    grid-area: content;
    width: 100%;
    overflow: hidden !important;
}
.sidebar {
    grid-area: nav;
}
.post-single {
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
}
.post-single a {
    color: #333;
}
.fa-angle-right {
    margin: 0 5px;
}
.post-meta {
    margin: 10px 0 10px;
    padding: 0 0 5px;
    font-size: 12px;
    color: #888;
    border-bottom: 1px solid #e3e3e3;
}
.post-meta a {
    color: #888;
}
.post-meta-pad {
    margin: 0 5px;
}
.post-text {
    font: 15px/1.5 Noto Sans, sans-serif;
    font-size: 16px;
    color: #444;
}
.post-text p {
    margin-top: 20px;
}
.post-text h2 + p {
    margin-top: 5px;
}
.post-text pre + p {
    margin-top: 10px;
}
.post-text > p > code {
    padding: 0px 5px;
    border: 1px solid #eaeaea;
    background-color: #f8f8f8;
    border-radius: 3px;
}
.post-text h1, h2, h3, pre {
    margin-top: 20px;
}
.post-text pre {
    margin-top: 10px;
}
.post-text img {
    width: 100%;
}
.post-text pre code {
    max-height: 400px;
    width: 100%;
    overflow: auto;
 }
.post-text pre code::-webkit-scrollbar {
    display: none;
}

/* posts */
.post-item {
    padding: 0 0 25px;
    border-bottom: 1px solid #e3e3e3;
}
.post-item-title a {
    color: #444;
}
.post-item-meta {
    margin: 5px 0;
    font-size: 12px;
    color: #888;
}
.post-item-meta a {
    color: #888;
}
.post-item-box {
    display: grid;
    grid-template-columns: 300px 1fr;
    line-height: 22px;
    font-family: 'Open Sans';
    font: 15px/1.5 Noto Sans, sans-serif;
    font-size: 16px;
    color: #444;
    grid-gap: 10px;
}
.box-img
    margin: 5px 10px 10px 0;
    justify-self: center;
}
.box-img img {
    width: 100%;
}
.box-img_size {
    width: 300px;
}
.box-text {
     min-height: 200px;
}
.box-text p {
    float: left;
    margin-bottom: 5px;
}
.box-text > p > code {
    padding: 0px 5px;
    border: 1px solid #eaeaea;
    background-color: #f8f8f8;
    border-radius: 3px;
}
.post-item-box img:hover {
    transform: rotate(-0deg) scale(1.01);
}
.post-item-go {
    margin-top: 10px;
    display: inline-block;
    text-align: center;
    padding: 4px;
    border-radius: 2px;
    background: var(--butts);
}
.post-item-go:hover {
    background: var(--butts);
}
.post-item-go a {
    color: var(--buttsColor);
}
.pagination {
    padding: 5px 15px;
}

/* comments */
.post-comment {
    margin-top: 30px;
}
.post-comment h2 {
    padding: 0 0 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e3e3e3;
}
.comment {
    margin-bottom: 20px;
}
.comment-box {
    grid-template-columns: 0.1fr 2fr;
    grid-column-gap: 5px;
}
.comment-level {
    margin-left: 10%;
}
.comment-img img {
    width: 60px;
    height: 60px;
}
.comment-item {
    height: 100%;
    border-radius: 8px;
    background: #f9f9f9;
}
.comment-meta {
    padding: 0 10px 5px;
    font-size: 12px;
    color: #888;
}
.comment-text-replay {
    margin: 0 10px 6px;
    border-left: 2px solid #3fe075;
    font-size: 14px;
}
.text-replay-user {
    color: #3fe075;
}
.comment-text {
    padding: 0 10px;
}
.comment-answer {
    max-width: 5em;
    margin-left: auto;
    margin-right: 0.1em;
    padding: 2px 2px;
    background: #6D788D;
    text-align: center;
    font-size: 14px;
}
.comment-answer a {
    color: #fff;
    cursor: pointer;
}
.commentForms {
    margin-top: 25px;
    transition: 3s;
}
#commentName {
    font-size: 20px;
    color: #555;
    margin: 0 0 10px;
}
#cancel-comment-reply {
    float: right;
    padding: 5px;
    color: #555;
    background: #f9f9f9;
    cursor: pointer;
}
.commentForms p {
    margin: 0 0 10px 0;
}
.comment-form-input {
    width: 250px;
    height: 30px;
    border-radius: 2px;
}
.comment-form-text {
    width: 100%;
    height: 250px;
    resize: vertical;
    border-radius: 2px;
}

/* pagination */
/*###################################################################*/
.current-links {
    display: none;
}
.load-posts {
    width: 120px;
    margin: 10px auto;
    padding: 10px;
    background: var(--butts);
    text-align: center;
    cursor: pointer;
    color: var(--buttsColor);
}

/* sidebar */
/*###################################################################*/
.sidebar {
    width: auto;
    margin: 0 auto;
    padding: 0 0 0 20px;
}
.widget-popular {
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 18px;
    background: #f9f9f9;
}
.widget-popular ul {
    padding: 10px 0;
    text-align: left;
    list-style: none;
}
.widget-popular ul li {
    padding: 5px 0 10px 0;
    border-bottom: 1px solid #e3e3e3;
}
.widget-popular a {
    font-size: 16px;
    color: #444;
}
.widget-meta-item {
    padding: 0 1px;
    font-size: 10px;
    color: #666;
    font-family: 'Open Sans';
}
.widget-similar {
    margin: auto;
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    background: #f9f9f9;
}
.widget-similar p {
    margin: 10px 0 10px 0;
}
.widget-block {
    display: flex;
    flex-wrap: wrap;
}
.widget-similar a {
    padding: 5px 12px;
    margin: 0 0px 10px 10px;
    background: var(--butts);
    color: var(--buttsColor);
    font-size: 16px;
}


/* footer */
/*###################################################################*/
footer {
    margin-top: 20px;
    background: var(--menu);
    color: #fff;
}
.footer-box {
    max-width: 1200px;
    margin: auto;
    padding: 5px;
    font-size: 12px;
}


/*###################################################################*/
@media screen and (max-width: 950px) {
    .menu {
        grid-template-columns: 0.6fr 0.7fr 0.5fr 0.1fr;
    }
}

@media screen and (max-width: 860px) {
    .menu {
        grid-template-columns: 0.6fr 0.7fr 0.5fr 0.1fr;
    }
    .menu__logo {
        font-size: 2.6rem;
    }
    .menu__social {
        padding: 0px;
        margin-right: 6px;
    }
    .menu__social_ico li {
        margin-right: 4px;
    }
}
@media all and (max-width: 760px) {
    /* Header */
    header {
        height: 50px;
    }
    .menu {
        height: 50px;
        grid-template-areas: 'menu__burger menu__logo menu__login';
        grid-template-columns: 0.5fr 1fr 0.5fr;
        grid-template-rows: 50px;
        background: var(--menu);
    }
    .menu__burger {
        grid-area: menu__burger;
        display: block;
        justify-self: start;
    }
    .menu__logo {
        font-size: 1.5rem;
        justify-self: center;
    }
    .menu__search {
        justify-self: start;
        display: none;
        padding: 20px 0;
    }
    .menu__social {
        justify-self: center;
        display: none;
        padding: 0;
    }
    .menu__login {
        justify-self: end;
        padding: 0;
        background: none;
        font-size: 1.8rem;
        color: #fff;
    }
    .menu__login_auth {
        display: none;
    }
    .menu__nav {
        justify-self: start;
        align-self: baseline;
        width: 100%;
        margin: 0;
        display: none;
    }
    /* Header in details*/
    .menu__burger_ico {
        width: 30px;
        height: 24px;
        border-top: 11px solid transparent;
        border-bottom: 11px solid transparent;
        background: #fff;
        background-clip: content-box;
        cursor: pointer;
        box-sizing: border-box;
        transform: rotate(0deg);
        transition: all 0.25s ease-in-out;
    }
    .menu__burger_ico:before, .menu__burger_ico:after {
        height: 2px;
        width: 100%;
        position: absolute;
        background: #fff;
        content: "";
        will-change: rotate;
        transform: rotate(0deg);
        transition: all 0.5s ease;
    }
    .menu__burger_ico:before {
        top: -10px;
    }
    .menu__burger_ico:after {
        bottom: -10px;
    }
    .menu__burger_ico.active {
        background: transparent;
        background-clip: content-box;
    }
    .menu__burger_ico.active:before {
        width: 100%;
        top: 0;
        background: #fff;
        transform: rotate(135deg);
    }
    .menu__burger_ico.active:after {
        width: 100%;
        bottom: 0;
        background: #fff;
        transform: rotate(-135deg);
    }
    .open {
        height: 110% !important;
        grid-template-areas:
          'menu__burger menu__logo menu__login'
          'menu__social menu__social menu__social'
          'menu__search menu__search menu__search'
          'menu__nav menu__nav menu__nav';
        grid-template-rows: 50px 50px 50px 1fr;
        grid-gap: 0.4rem;
        padding: 0 10px;
        opacity: .98;
        overflow: auto;
    }
    .menu__item_active {
        display: block;
    }
    .locked {
        overflow: hidden;
    }
    .menu__social_ico {
        padding: 20px 0 0 0;
    }
    .menu__search_btn {
        display: none;
    }
    .menu__search_input {
        height: 40px;

        border: none;
        border-radius: 5px;
        background: #e3e3e3;
        font-size: 22px;
        color: #666;
    }
    .menu__nav ul {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    .menu__nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    }
    .menu__nav ul li a {
        padding: 10px 0;
        margin: 5px 0;
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-size: 22px;
        transition: .2s;
        text-align: left;
    }
    .menu__nav ul li a:hover, .menu__nav ul li a:active, .menu__nav ul li a:focus {
        padding-left: 5px;
        color: #999;
        transform: translateX(-2px);
    }
    .content-box {
        grid-template-areas:
            "content"
            "nav";
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .sidebar {
        padding: 0;
    }
}
@media all and (max-width: 600px) {
    .menu__logo {
        font-size: 1.4rem;
    }
    .post-item-box {
        grid-template-columns: 1fr;
    }
    .box-img {
        justify-self: stretch;
        margin: 0;
    }
    .box-img img {
        width: 100%;
    }
}
