* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Trebuchet MS';
/*    'Helvetica';*/
    color: #f1f0f7;
/*    word-break: break-word;*/
}
body{
    background: #1f1740;
}
#wrapper{
    max-width: 1200px;
    margin: 0 auto 0 auto;
    display: flex;
    flex-direction: column; 
}
@media (max-width:1200px){
    #wrapper{
        max-width: 970px;
    }
}
@media (max-width:970px){
    #wrapper{
        max-width: 767px;
    }
}
.cookies_wrap{
    background-color: rgba(107, 50, 168, 0.6);
    backdrop-filter: blur(4px);
    position: sticky;
    margin-top: 7px;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
}
.cookies{
    max-width: 1200px;
    margin: 0 auto;
}
#header{
/*    min-height: 50px;*/
    background-color: #3c2f70;
    margin-bottom: 7px;
    position: sticky;
    z-index: 10;
    left: 0;
    right: 0;
    top: 0;
    box-shadow: 0 5px 15px #150945;
/*    width: 100%;*/
/*    display: flex;*/
/*    flex-direction: column;*/
}  
#header_menu{
    max-width: 1200px;
    margin: 0 auto;
}
.nav{
    min-height: 50px;
/*    justify-content: cen;*/
/*    align-content: center;*/
    display: flex;
/*    float: left;*/
    flex-grow: 1;
    align-items:center;
    list-style: none;
}
.nav a{
    text-decoration: none;
    margin: 10px;
}
.nav li:last-child{
    margin-left: auto;
}
.nav_2{
        display: none;
}

#content{
    min-height: 1000px;
    display: flex;
    flex-direction: row;
    background: #281c59;
}

@media (max-width:1200px){
    #header_menu{
        max-width: 970px;
    }
    .cookies{
        max-width: 970px;
    }
    .nav_1{
        display: flex;
    }
    .nav_2{
        display: none;
    }
}
@media (max-width:970px){
    #header_menu{
        max-width: 767px;
    }
    .cookies{
        max-width: 767px;
    }
}
@media (max-width:767px){
    #content{
        flex-direction: column;
    }
    .nav{
        display: grid;
        text-align: center;
/*        grid-template-columns: 50%;*/
    }
    .nav li:last-child{
        margin-left: 0;
    }
    .nav_1{
        display: none;
    }
    .nav_2{
        display: flex;
        list-style: none;
    }
    .menu_det{
        margin: 10px;
    }
    .menu_det[open] summary{
        margin-bottom: 5px;
    }
}

#filter_block{
    background-color: #332861;
    border-right: 1px solid #332d4a;
/*    flex: 0 0 200px;*/
/*    flex-basis: 300px;*/
    overflow: hidden;
/*max-width:200px;*/
/*    flex-grow: 1;*/
/*flex-shrink: 1*/

}
/*@media (max-width:767px){
    #filter_block{
        max-width:100%;
    }
}*/
#filter_options{
    box-sizing: border-box;
    padding: 15px 7px;
    display: flex;
    flex-direction: column;
}
/*@media (max-width:767px){
    #filter_options{
        flex-direction: row;
    }
}*/
.filter_option{
    padding-bottom: 5px;
    margin-bottom: 10px;
    border-bottom: 1px solid #5d4e96;
}
@media (max-width:767px){
    .filter_option{
        border-bottom: none;
    }
}
.filter_option h4{
    margin-bottom: 5px;
}
.item_types{
    list-style: none;
}
.item_types li{
    margin-bottom: 5px;
}
.item_types a{
    text-decoration: none;
}
.item_types a:hover{
    color: #b6a9eb;
}
.selected_type{
    color: #b6a9eb;
}
#main_block{
    min-height: 200px;
    flex-basis: 85%;

/*    flex: 1 0 auto;*/
}
#items{
    padding: 15px 7px;
}
.item_list{
    display: grid;
/*    grid-template-rows: 100px 100px;*/
    grid-template-columns: repeat(5, 1fr);
/*    grid-gap: 1%;*/
/*    display: flex;*/
/*    flex-direction: row;*/
/*    flex-wrap: wrap;*/
/*    justify-content: space-between;*/
    gap: 5px;
/*    border: 3px solid blue;*/
}
@media (max-width:1200px){
    .item_list{
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width:970px){
    .item_list{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width:767px){
    .item_list{
        grid-template-columns: repeat(2, 1fr);
    }
    /*#items{
        max-width: 500px;
    }*/

}
#items .item_list a{
/*    list-style: none;*/
    text-decoration: none;
}
/*#items ul a{*/
/*    text-decoration: none;*/
/*}*/
.item{
/*    background: #3b2e70;*/
/*    border: 1px solid white;*/
/*    width: 19.5%;*/
    height: 150px;
/*    padding-left: 10px;*/
    overflow: hidden;
    position: relative;
/*    max-width: 200px;*/
}
/*@media (max-width:1200px){
    .item{
        width: 24.5%;
    }
}
@media (max-width:970px){
    .item{
        width: 32.5%;
    }
}
@media (max-width:767px){
    .item{
        width: 49.5%;
    }
}*/
.item:hover {
    background: #5b4b99;
}

#item_info{
    padding: 15px 7px;
}
#tags_ul{
    list-style: none;
}
#tag_li{
    display: inline;
    border: 1px, solid, #b8fffa56;
}
#tag_li:not(:first-child){
    margin-left: 5px;
}

#footer{
    min-height: 50px;
    background-color: #181136;
}
.info_img{
    width: 300px;
    height: 300px;
}
.mini_img{
/*    position: absolute;*/
    width: 150px;
    height: 150px;
/*    z-index: 0;*/
/*    position: relative;*/
/*    height: 100%;*/
}
.item_front{
    position: absolute;
    z-index: 1;
    text-shadow: 0px 0px 7px black;
}
.item_background{
    position: absolute;
    z-index: 0;
/*    padding: 0 auto;*/
/*    align-items: center;*/
/*    margin: 0 auto 0 auto;*/
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}
.ref_a{
    text-decoration: none;
}
.ref_a:hover{
    color: #b6a9eb;
}
.pagination{
    height: 40px;
    background-color: #281c59;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*.pagination ul{
    list-style: none;
}*/
.pagination a{
    text-decoration: none;
}
.page_num{
    background-color: #534296;
    display: inline;
    padding: 0 5px;
    margin: 0 4px;
    border: 1px solid white;
    border-radius: 6px;
    box-shadow: 2px 2px 5px black;
}
.selected_page_num{
    background-color: #684dd1;
    border: 1px solid #8e84b8;
    box-shadow: 2px 2px 5px #6d58bf;
}
.logout_button{
    background: none;
    border: none;
    font-size: 16px;   
}