:root{
    --main-color: rgba(99,102,241);
    --text-color: #20252c;
}
body{
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;
}
.header_slim{
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 25px;
}
.header_main{
    height: 100px;
    color: var(--main-color);
    text-align: center;
    font-size: 48px;
    font-weight: 900;
}
.header_main a.logo{
    text-decoration: none;
    color: inherit;
}
.line{
    background-color: var(--main-color);
    width: 100%;
    height: 1px;
    transform: rotate(-1deg);  
}
.content{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 50px;
    margin-bottom: 50px;
    min-height: calc(100vh - 302px);
}
.blog{
    width: 620px;
    padding-top: 15px;
}
.blog__item{ 
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}
.blog__item__description a{
    text-decoration: none;
    color: var(--main-color);
}
.blog__item__description{
    
}
.blog__item__description__h2,
.blog__item__description__h3{
    margin: 0 0 0 0;
    line-height: 1.75rem;
}
.blog__item__description__h2{
    font-size: 20px;
    color: var(--main-color);
}
.blog-post__title>h1{
    font-size: 28px;
    color: var(--main-color);
}
.blog__item__description__h3{
    font-size: 16px;
    color:  var(--text-color);
    font-weight: 300;
}
.blog-post__title>span,
.blog__item__date a,
.blog__item__date{
    text-decoration: none;
    color:  var(--text-color);
    opacity: 0.7;
    font-size: 14px;
}
.blog-post__title>h1{
    margin: 0 0 10px 0;
    font-weight: 700;
}
.blog-post__title>p{
    color: var(--main-color);
    font-weight: 300;
    margin: 0 0 7px 0;
}
.blog-post__title>span{
    margin: 0 0 5px 0;
    color: var(--text-color);
    font-size: 13px;
    opacity: 0.5;
}
.blog-post{
    width: 710px;
    color: var(--text-color);
}
.blog-post a{
    color: var(--main-color);
}
.blog-post__title{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}
.blog-post code{
    background: #282b2e;
    border-radius: 4px;
    padding: 1px 4px;
    position: relative;
    top: -1px;
}
.blog-post pre{
    background: #282b2e;
    padding: 0 0 1px 15px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.images_box{
    display: flex;
    flex-wrap: wrap;
}
.images_box__item{
    display: block;
    width: calc(50% - 10px);
    max-height: 200px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 4px;
    border: 1px solid var(--main-color);
    margin: 5px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 500ms;
}
.images_box__item:hover{
    opacity: 1;
}
.images_box__item img{
    width: 100%;
    height: auto;
}
.blog-post blockquote{
    margin: 0;
    padding: 14px 0 15px 15px;
    background: rgba(99, 102, 241, .25);
    border-left: 7px solid var(--main-color);
}
.blog-post blockquote p{
    margin: 0;
}
.blog-post ul{
    padding-inline-start: 20px;
    line-height: 25px;
    font-size: 15px;
}
.link,
.github-link{
    display: inline-block;
    width: 150px;
    text-align: center;
    background: var(--main-color);
    border-radius: 10px;
    text-decoration: none;
    color: #fff !important;
    font-size: 14px;
    margin-bottom: 8px;
    margin-right: 8px;
    padding: 2px 10px;
    opacity: 0.7;
    transition: all 300ms;
}
.link{
    width: auto;
    padding: 2px 15px;
}
.link:hover,
.github-link:hover{
    opacity: 1;
}
.contacts_item {
    margin-bottom: 10px;
    color: var(--text-color);
}
.contacts_item a {
    color: var(--main-color);
}
.contacts_item a:hover{
    
}
.footer{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}
.footer span{
    color: var(--main-color);
}
.footer a{
    color: var(--main-color);
}
.error-box {
    display: flex;
}
.error-box p {
    color: var(--main-color);
    font-weight: 600;
    font-size: 20px;
    margin: 0;
}
.error-box span {
    display: block;
    width: 9px;
    height: 2px;
    background: var(--main-color);
    position: relative;
    top: 20px;
    left: 3px;
    animation: error 800ms infinite ease-in-out;
}
@keyframes error{
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
}
@media (max-width: 768px){
    .content{
        box-sizing: border-box;
        padding-top: 40px;
        margin-bottom: 40px;
        padding-left: 25px;
        padding-right: 25px;
    }
    .blog__item{
        flex-wrap: wrap;
        margin-bottom: 25px;
    }
    blog__item__date,
    .blog__item__description{
        width: 100%;
    }
    .blog__item__description__h2{
        font-size: 17px;
    }
    .blog__item__description__h3{
        font-size: 15px;
    }
    .blog,
    .blog-post{
        width: 100%;
    }
    .blog-post pre{
        overflow: auto;
    }
    .header_slim{
        height: 15px;
    }
    .header_main{
        height: 60px;
        font-size: 36px;
    }
    .blog-post__title>h1{
        font-size: 22px;
    }
    .blog-post__title>p{
        font-size: 14px;
    }
    .blog-post__title{
        margin-bottom: 30px;
    }
    .images_box__item{
        max-height: 180px;
    }
}
@media (max-width: 460px){
    .images_box__item{
        max-height: 115px;
    }
}