.wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.conteiner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

/* header */
.header {
    width: 100%;
    height: 60px;
    background: #333 repeating-linear-gradient(90deg,
            rgba(30, 15, 140, 0.36), rgba(37, 124, 201, 0.37) 5px,
            rgba(10, 26, 89, 0.38) 5px, rgba(123, 159, 225, 0.37) 10px);
    box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset, rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset, rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

/* footer */
.footer {
    width: 100%;
    background: #333 repeating-linear-gradient(90deg,
            rgba(30, 15, 140, 0.36), rgba(37, 124, 201, 0.37) 5px,
            rgba(10, 26, 89, 0.38) 5px, rgba(123, 159, 225, 0.37) 10px);
}

/* page */
.main {
    flex: 1 1 auto;
}

/* Каталог */
.category_conteiner {
    width: 100%;
    margin: 5px auto;
    padding: 3px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.category_content {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}

.category_text,
.category_icon,
.category_main {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-style: italic;
    color: blue;
    cursor: pointer;
}

.category_catalog {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: blue;
    border: 1px solid blue;
    padding: 5px 20px;
    box-shadow: 5px 5px 10px #606060;
    cursor: pointer;
}

/* Модальное окно Каталог */
.modal_catalog {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(79, 104, 137, 0.7);
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.8s ease 0s;
    z-index: 100;
}

.modal_catalog_open {
    opacity: 1;
    visibility: visible;
}

.modal_catalog_conteiner {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_catalog_content {
    width: 500px;
    background-color: #eee;
    box-shadow: 5px 5px 10px #606060;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.8s ease 0s;
    opacity: 0;
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
}

.modal_catalog_open .modal_catalog_content {
    transform: perspective(600px) translate(0px, 0%) rotateX(0deg);
    opacity: 1;
}

.modal_catalog_tabl {
    position: relative;
    padding: 5px;
    font-weight: normal;
    color: #120e85;
}

.modal_catalog_title {
    font-family: 'Pattaya', sans-serif;
    font-size: 25px;
    text-align: center;
}

.modal_catalog_close {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 23px;
    cursor: pointer;
}

.modal_catalog_inside {
    padding: 10px;
    border: none;
    text-align: center;
}

.modal_head {
    max-height: 500px;
    overflow: hidden;
    overflow-y: auto;
    padding: 20px 5px;
    box-shadow: 5px 5px 10px #606060;
    background-color: #eee;
}

.catalog_item {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.catalog_num {
    width: 150px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Verdana, sans-serif;
    font-size: 15px;
    color: brown;
    margin: 5px 0px;
    box-shadow: 5px 5px 10px #606060;
    cursor: pointer;
}

.catalog_num:hover {
    background: radial-gradient(at 10% 10%, #4183a6, #0a354c);
}

.catalog_list {
    font-size: 15px;
    font-style: italic;
    font-weight: bold;
    text-align: justify;
    padding: 10px 20px;
    color: brown;
    cursor: pointer;
}

.catalog_list:hover {
    background: radial-gradient(at 10% 10%, #4183a6, #0a354c);
}

/* Окно статьи */
.articles_conteiner {
    width: 95%;
    margin: 10px auto;
    padding: 10px;
    background-color: #eee;
    box-shadow: 5px 5px 10px #606060;
}

.articles_conteiner h1 {
    font-family: 'Pattaya', sans-serif;
    font-size: 24px;
    color: #000;
    text-align: center;
    margin: 20px 10px;
}

.articles_content {
    width: 95%;
    margin: 10px auto;
    padding: 20px;
    background-color: #eee;
    box-shadow: 5px 5px 10px #606060;
}

.articles_text h2 {
    font-family: Verdana, sans-serif;
    font-size: 20px;
    padding: 10px 10px 10px 30px;
}

.articles_text h3 {
    font-family: Verdana, sans-serif;
    font-size: 18px;
    padding: 10px 10px 10px 30px;
}

.articles_text h4 {
    font-family: Verdana, sans-serif;
    font-size: 16px;
    padding: 10px 10px 10px 30px;
}

.articles_text p {
    font-size: 15px;
    text-indent: 30px;
    line-height: 25px;
    text-align: justify;
    padding-left: 10px;
    padding-right: 10px;
    color: #000;
}

.articles_text b {
    font-style: italic;
    color: #120e85;
}

.articles_text code {
    width: 90%;
    display: block;
    background-color: #ccc;
    border-left: 3px solid red;
    margin: 10px auto;
    padding: 10px 30px;
    line-height: 30px;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    font-style: italic;
    color: rgb(13, 13, 159);
}

.articles_text p code {
    font-size: 16px;
    font-weight: bold;
    color: #120e85;
}

.articles_text li {
    font-size: 15px;
    line-height: 25px;
    list-style-type: disc;
    margin-left: 30px;
}

.articles_text li code {
    font-size: 16px;
    font-weight: bold;
    color: #120e85;
}

/* Итоги статьи */
.results_conteiner {
    font-family: Verdana, sans-serif;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #ccc;
    padding: 5px;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 30px;
}

.author {
    font-size: 15px;
    font-style: italic;
    color: blue;
    padding-left: 40px;
}

.results_content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.hand_up {
    width: 25px;
    padding-bottom: 5px;
    cursor: pointer;
}

.count_viewed,
.count_down,
.count_up {
    font-size: 12px;
    font-style: italic;
    color: #120e85;
}

.hand_down {
    width: 25px;
    padding-top: 5px;
    cursor: pointer;
}

.viewed {
    width: 30px;
}

/* Адаптация */
@media(max-width:1200px) {
    .conteiner {
        max-width: 970px;
    }
}

@media(max-width:992px) {
    .conteiner {
        max-width: 750px;
    }
}

@media(max-width:767px) {
    .conteiner {
        max-width: none;
    }
}

@media(max-width:550px) {
    /*до 340px*/

    .category_conteiner {
        padding: 3px 10px;
        gap: 5px;
    }

    .category_content {
        gap: 5px;
    }

    .category_text,
    .category_icon,
    .category_main {
        font-size: 12px;
    }

    .category_catalog {
        font-size: 12px;
        padding: 5px 10px;
    }

    .articles_conteiner h1 {
        font-size: 20px;
    }

    .articles_text h2 {
        font-size: 18px;
    }

    .articles_text h3 {
        font-size: 17px;
    }

    .articles_text p {
        font-size: 14px;
    }

    .articles_text .code {
        padding: 10px;
    }

    .articles_text p code {
        font-size: 14px;
    }

    .articles_text li {
        font-size: 14px;
    }

    .articles_text li code {
        font-size: 14px;
    }

    .results_conteiner {
        gap: 10px;
        justify-content: center;
    }

    .author {
        font-size: 13px;
        padding-left: 5px;
    }

    .results_content {
        gap: 5px;
    }

    .modal_catalog_content {
        width: 300px;
    }

    .modal_catalog_title {
        font-size: 20px;
    }
}