.navbar-expand-lg .navbar-collapse{
    flex-direction: row-reverse;
}

body{
    background: url("../images/fon.jpeg")no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.bg-light{
    background: transparent!important;
}

.header{
    width: 100%;
    height: 125px;
    background: url("../images/header2.jpg");
    background-position: center top;
    background-size: cover;
    text-align: center;
    font-weight: normal;
    padding-top: 30px;
    padding-left: 80px;
    font-size: 1.5vmax;


}

.navbar-expand-lg .navbar-nav .nav-link{
    font-size: 1.2em;
}

blockquote{
    font-style: italic;
    position: relative;
    padding-bottom: 30px;
    padding-top: 10px;
}
blockquote span{
    position: absolute;
    right: 0;
    bottom: 0px;
}

blockquote img:first-child{
    position: absolute;
    top: -5px;
    left: 0;
}
blockquote img:nth-child(2){
    position: absolute;
    right: -20px;
    bottom: -20px;

}

.stalin img{
    float: left;
    margin-right: 20px;
}

.items{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
    padding-left: 16px;

}

.items div{
    width:200px;
    height: 300px;
    background-size: contain;
    margin-top: 25px;
    margin-right: 16px;
    position: relative;
    cursor: pointer;

}

.items div span{
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 110%;
    height: 300px;
    background: #fff;
    z-index: 99999;
    padding: 20px;
    overflow-y: auto;
    word-wrap: break-word;
    font-size: 0.8em;

}

.items div:hover span{
display: block;

}

.empty{
    height: 25px;
}

.navbar-brand{
    font-weight: bold;
    border-bottom: 1px solid #000;
    font-size: 1.4em;
}

.navbar-light .navbar-nav .active>.nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show>.nav-link{
    border-bottom: 1px solid #000;
}

.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover{
    border-bottom: 1px solid #ccc;
}

.navbar-expand-lg .navbar-nav .nav-link{
    padding-right: 0;
    padding-left: 0;
    margin-right: .5rem;
    margin-left: .5rem;

}

footer{
    display: block;
    height: 100px;
    background: url("../images/footer.jpg");
    background-position: center;
}

footer .col-md-4{
    padding-top: 25px;

}


footer .agent img{
    display: inline-block;
    margin-left: 15px;
    float: left;
    margin-top: 5px;
}
footer .agent span{
    display: inline-block;
    padding-top: 18px;
    padding-left: 10px;
}

footer .mail img{
    display: inline-block;
    margin-left: 10px;
    float: left;
}
footer .mail span{
    display: inline-block;
    padding-top: 15px;
    padding-left: 10px;
    text-transform: uppercase;
}

footer .fb img{
    display: inline-block;
    margin-right: 10px;
    float: right;
}

p{
    word-wrap: break-word;
}




@media screen and (max-width: 960px){
    footer .fb img {
        float: left;
        margin-right: 0;
        margin-left: 10px;
        position: relative;
    }

    footer .fb:after{
        content: "Наша страница в FaceBook";
        position: absolute;
        left: 95px;
        top:40px;
        font-weight: bold;
    }

    .mybooks img{
        margin-bottom: 25px;
    }

    .items{justify-content: start; padding-left: 20px;}
    .items div{
       width: 160px;
        height:230px;
        margin-right: 20px;
        background-size: contain!important;

    }

    .header{
        background-position: -420px top;
        background-size: 300%;
        padding-left: 0;
        padding-top: 30px;
        font-size: 3.0vmax;
    }

    blockquote img:nth-child(2){
        right: 0;
    }



}

@media screen and (max-width: 375px){

    footer{
        background: none;
        border-top:1px solid rgba(0,0,0,.1);
    }
.items{padding-left: 15px;}
.items div{
    width: 150px;
    height:210px;
    margin-right: 15px;


}



    .stalin img{
        display: block;
        float: none;
    }

    .header {
        background-position: -375px top;
    }

}

@media screen and (max-width: 360px){
    .items{padding-left: 15px;}
    .items div{
        width: 140px;
        height:200px;
        margin-right: 15px;


    }
}

@media screen and (max-width: 320px){
    .items{padding-left: 10px;}
    .items div{
        width: 130px;
        height:190px;
        margin-right: 10px;


    }
    .navbar-brand{
        font-size: 1.1em;
    }
}