* {
    padding: 0;
    margin: 0;
}
@media (min-width:320px) and (max-width: 749px){
    body{                                               /*контейнер*/
        height: 100%;
        display: grid;
        grid-template-columns: 20% auto;
        grid-template-rows: 150px auto;
        grid-template-areas: 
            "nav header"
            "main main"
        ;
    }
    #pageHeader{                                    /*хедер*/
        grid-area: header;
        padding: 8px;
        border-bottom: 5px solid rgb(173, 173, 173);
        align-self: center;
    }
    #menuBar{
        grid-area: nav;
        padding: 8px;
        border-bottom: 5px solid rgb(173, 173, 173);
        border-right: 5px solid rgb(173, 173, 173);
        background-color: #ceba85;
    }
    #pageMenu{                                      /*менюшка*/
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 150px;
        left: 0;
        background-color: inherit;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 0px;
    }
    #main{                                          /*главная область*/
        grid-area: main;
        padding: 5px;
    }
    .h3_style{                                               /*заголовок*/   
        font-family: 'Viaoda Libre', cursive;
        font-size: 45px;
        line-height: 1.0;
        margin-bottom: 2%;
        color: #c5bba6;
        text-align: center;
    }
    .p_style{                                               /*описание*/
        font-family: 'Roboto', sans-serif;
        font-size: 20px;
        margin-top: 2%;
        color: #beb59f;
        padding-left: 2%;
    }
    .button_style{                                          /*кнопка*/
        border: 2px solid #7e6d36;
        margin-right: 30%;
        margin-left: 30%;
        margin-top: 3%;
        text-align: center;
    }
    .source{                                                /*ссылка кнопки*/
        font-family: 'Roboto', sans-serif;
        font-size: 30px;
        color: #beb59f;
        text-decoration: none;
    }
    .front{                                              /*фотка*/
        padding-left: 30%;
        padding-right: 30%;
        height: 40%;
        width: 40%;
    }
    .attention{
        font-family: 'Viaoda Libre', cursive;
        font-size: 30px;
        margin-top: 2%;
        color: #beb59f;
    }
    #okno {
        width: 300px;
        height: 250px;
        line-height: 1.5;
        text-align: center;
        padding: 10px;
        border: 3px solid #000000;
        border-radius: 10px;
        color: #d8d8d8;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 28px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        background: rgb(17, 17, 17);
    }
    #okno > a[href="#main_anchor"]{
        position: absolute;
        right: 3%;
        top: 1%;
        font-size: 35px;
        text-decoration: none;
        color: inherit;
    }
    #okno > img{
        height: 150px;
        width: 150px;
        margin-top: 20px;
        float: left; 
    }
    #okno > div{
        display: flex;
        flex-direction: column;
    }
}

@media (min-width:750px) and (max-width: 1023px){
    body{                                               /*контейнер*/
        height: 100%;
        display: grid;
        grid-template-columns: 10% auto;
        grid-template-rows: 150px auto;
        grid-template-areas: 
            "nav header"
            "main main"
        ;
    }
    #pageHeader{                                    /*хедер*/
        grid-area: header;
        padding: 8px;
        border-bottom: 5px solid rgb(173, 173, 173);
        align-self: center;
    }
    #menuBar{
        grid-area: nav;
        padding: 8px;
        border-bottom: 5px solid rgb(173, 173, 173);
        border-right: 5px solid rgb(173, 173, 173) ;
        background-color: #ceba85;
    }
    #pageMenu{                                      /*менюшка*/
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 1;
        top: 150px;
        left: 0;
        background-color: inherit;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 0px;
    }
    #main{                                          /*главная область*/
        grid-area: main;
        padding: 5px;
    }
    .h3_style{                                               /*заголовок*/   
        font-family: 'Viaoda Libre', cursive;
        font-size: 55px;
        line-height: 1.0;
        margin-bottom: 2%;
        color: #c5bba6;
        text-align: center;
    }
    .p_style{                                               /*описание*/
        font-family: 'Roboto', sans-serif;
        font-size: 25px;
        margin-top: 2%;
        color: #beb59f;
        padding-left: 2%;
    }
    .button_style{                                          /*кнопка*/
        border: 2px solid #7e6d36;
        margin-right: 35%;
        margin-left: 35%;
        margin-top: 3%;
        text-align: center;
    }
    .source{                                                /*ссылка кнопки*/
        font-family: 'Roboto', sans-serif;
        font-size: 45px;
        color: #beb59f;
        text-decoration: none;
    }
    .front{                                              /*фотка*/
        float: left;
        height: 30%;
        width: 30%;
        margin-right: 2%;
        margin-left: 2%;
    }
    .attention{
        font-family: 'Viaoda Libre', cursive;
        font-size: 35px;
        margin-top: 2%;
        color: #beb59f;
    }
    #okno {
        width: 500px;
        height: 250px;
        line-height: 1.5;
        text-align: center;
        padding: 15px;
        border: 3px solid #000000;
        border-radius: 10px;
        color: #d8d8d8;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 35px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        background: rgb(17, 17, 17);
    }
    #okno > a[href="#main_anchor"]{
        position: absolute;
        right: 3%;
        top: 1%;
        font-size: 45px;
        text-decoration: none;
        color: inherit;
    }
    #okno > img{
        height:207px; 
        width:195px;
        float: left; 
        padding-left: 25px;
    }
    #okno > div{
        margin-left: 200px; 
        margin-top: 50px;
    }
}

@media (min-width: 1024px) and (max-width: 2560px){
    body{                                               /*контейнер*/
        height: 100%;
        display: grid;
        grid-template-columns: 6% auto;
        grid-template-rows: 150px auto;
        grid-template-areas: 
            "header header"
            "nav main"
        ;
    }
    #menuBar{
        visibility: hidden;
    }
    #pageHeader{                                    /*хедер*/
        grid-area: header;
        padding: 10px;
        border-bottom: 5px solid rgb(173, 173, 173);
    }
    #pageMenu{                                      /*менюшка*/
        grid-area: nav;
        padding: 10px;
        border-right: 5px solid rgb(173, 173, 173);
        display: flex;
        flex-direction: column;
    }
    #main{                                          /*главная область*/
        grid-area: main;
    }
    .h3_style{                                               /*заголовок*/   
        font-family: 'Viaoda Libre', cursive;
        font-size: 75px; 
        line-height: 1.0;
        margin-bottom: 2%;
        color: #c5bba6;
        text-align: center;
    }
    .p_style{                                               /*описание*/
        font-family: 'Roboto', sans-serif;
        font-size: 30px;
        margin-top: 2%;
        color: #beb59f;
        padding-left: 2%;
    }
    .button_style{                                          /*кнопка*/
        border: 2px solid #7e6d36;
        margin-right: 35%;
        margin-left: 35%;
        margin-top: 3%;
        text-align: center;
    }
    .source{                                                /*ссылка кнопки*/
        font-family: 'Roboto', sans-serif;
        font-size: 45px;
        color: #beb59f;
        text-decoration: none;
    }
    .front{                                              /*фотка*/
        float: left;
        margin-right: 2%;
        margin-left: 2%;
    }
    .attention{
        font-family: 'Viaoda Libre', cursive;
        font-size: 40px;
        margin-top: 2%;
        color: #beb59f;
    }
    #okno {
        width: 500px;
        height: 250px;
        line-height: 1.5;
        text-align: center;
        padding: 15px;
        border: 3px solid #000000;
        border-radius: 10px;
        color: #d8d8d8;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 35px;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        background: rgb(17, 17, 17);
    }
    #okno > a[href="#main_anchor"]{
        position: absolute;
        right: 3%;
        top: 1%;
        font-size: 45px;
        text-decoration: none;
        color: inherit;
    }
    #okno > img{
        height:207px; 
        width:195px;
        float: left; 
        padding-left: 25px;
    }
    #okno > div{
        margin-left: 200px; 
        margin-top: 50px;
    }
}

.block_style{                                       /*сам блок*/
    padding-top: 3%;
    padding-bottom: 10%;
}
.background{
    background-color: #0e0e0e;
}
#attention_advent, #attention_diab, #attention_system, #attention_minister, #attention_lanya,
#attention_wolf, #attention_erha_1, #attention_erha_2, #sorry
{
    background: rgba(48, 48, 48, 0.5);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
#attention_advent:target, #attention_diab:target, #attention_system:target, #attention_minister:target,
#attention_lanya:target, #attention_erha_1:target, #attention_wolf:target, #attention_erha_2:target, #sorry:target
{display: block;}
.close {
    display: inline-block;
    border: 1px solid #000000;
    color: #141414;
    padding: 0 12px;    
    margin: 10px;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 40px;
    text-decoration: none;
    background: #ececec;
    cursor:pointer;
}