* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(to bottom,
        rgb(0, 174, 255) 0%,
        rgb(0, 0, 0) 75%,
        rgb(174, 255, 0) 100%
    ) fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

button {
    border-top: 1px solid rgb(0, 174, 255);
    border-left: 1px solid rgb(0, 174, 255);
    border-bottom: 1px solid rgb(174, 255, 0);
    border-right: 1px solid rgb(174, 255, 0);
    border-radius: 5px;
    background: radial-gradient(at top left,
        rgb(154, 0, 255) 0%,
        rgb(4, 0, 9) 50%,
        rgb(0, 0, 0) 75%,
        rgb(255, 242, 39) 100%
    );
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    margin: 5px;
    padding-right: 5px;
    padding-left: 5px;
    cursor: pointer;
}

input {
    border-top: 1px solid rgb(0, 174, 255);
    border-left: 1px solid rgb(0, 174, 255);
    border-bottom: 1px solid rgb(174, 255, 0);
    border-right: 1px solid rgb(174, 255, 0);
    border-radius: 5px;
    height: 30px;
    margin: 5px auto;
}

select {
    border: 2px solid rgb(196, 148, 253);
    border-radius: 5px;
    height: 30px;
    margin: 5px auto;
}

details {
    margin: 5px;
}

summary {
    border-top: 1px solid rgb(0, 174, 255);
    border-left: 1px solid rgb(0, 174, 255);
    border-bottom: 1px solid rgb(174, 255, 0);
    border-right: 1px solid rgb(174, 255, 0);
    border-radius: 5px 5px 0 0;
    background: radial-gradient(at top left,
        rgb(154, 0, 255) 0%,
        rgb(4, 0, 9) 50%,
        rgb(0, 0, 0) 75%,
        rgb(255, 242, 39) 100%
    );
    color: rgba(255, 255, 255, 1);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    cursor: pointer;
}

@media only screen and (max-width: 320px) {
    body {
        width: 320px;
    }
}

.main {
    flex: 1;
}

.general_content {
    border-radius: 5px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    text-decoration: none;
    margin: 5px;
    padding: 5px;
}

.general_content h2 {
    font-size: 24px;
    text-indent: 10px;
    font-weight: bold;
    padding: 5px;
}

.general_content p {
    text-indent: 10px;
    padding: 5px;
    hyphens: auto;
}

.general_content a {
    color: rgba(0, 255, 0, 1);
    text-decoration: none;
}

.article {
    background: rgba(0, 0, 0, 0.3);
    /*border: 1px solid rgba(148, 148, 253, 1);*/
    border-radius: 5px;
    hyphens: auto;
}

.content_text {
    text-indent: 10px;
}

/* controls */

.control {
    border: 2px solid rgba(253, 48, 48, 1);
    border-radius: 5px;
}

.button {
    background: radial-gradient(at top left,
        rgba(255, 255, 255, 1) 0%,
        rgba(253, 148, 148, 1) 50%,
        rgba(253, 48, 48, 1) 75%,
        rgba(253, 148, 148, 1) 100%);
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    font-weight: bold;
    padding-right: 5px;
    padding-left: 5px;
    cursor: pointer;
    margin: 5px;
}

.input {
    height: 30px;
    margin: 5px auto;
}


/* flex */

.flex_block {
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 601px) {
    .flex_block {
        flex-wrap: wrap;
    }
}

.flex_widecolumn {
    width: 600px;
}

.flex_column {
    width: 300px;
}

@media only screen and (min-width: 961px) {
    .flex_widecolumn {
        width: 600px;
    }
    .flex_column {
        width: 300px;
    }
}

/* form */

.form {
    border: 1px solid rgba(148, 148, 253, 1);
    border-radius: 5px;
    padding: 5px;
    margin: 5px;
    width: 300px;
}

.form input {
    display: block;
    width: 280px;
    height: 30px;
    padding-left: 10px;
    margin: 5px auto;
    transition: width 1.3s;
}

.form button {
    width: 280px;
    height: 30px;
}

.form select {
    display: block;
    width: 280px;
    height: 30px;
    padding-left: 10px;
    margin: 5px auto;
    transition: width 1.3s;
}

.form textarea {
    display: block;
    width: 280px;
    height: 200px;
    padding-left: 10px;
    margin: 5px auto;
    resize: vertical;
}

/* list vertical */

.list_vertical {
    list-style: none;
    padding: 5px;
    margin: 5px auto;
}

/* list vertical item */

.list_vertical_item img {
    display: block;
    width: 100px;
    margin: 5px auto;
}

.list_vertical_item h3 {
    font-size: 18px;
    font-weight: bold;
    padding-right: 5px;
    padding-left: 5px;
    margin: 5px;
}

.list_vertical_item a {
    text-decoration: none;
}

.list_vertical_item a:hover, .list_vertical_item a:focus {
    text-shadow: 5px 5px 5px rgba(148, 148, 253, 1);
}

.list_vertical_item article {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    margin: 5px;
}

.list_vertical_item article:hover {
    box-shadow: 0px 0px 5px rgba(148, 148, 253, 1);
}

/* list horizontal */

.list_horizontal {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 5px;
    margin: 5px auto;
}

/* list horizontal item */

.list_horizontal_item {
    max-width: 350px;
}

.list_horizontal_item img {
    display: block;
    width: 100px;
    margin: 5px auto;
}

.list_horizontal_item h3 {
    font-size: 18px;
    font-weight: bold;
    padding-right: 5px;
    padding-left: 5px;
    margin: 5px;
}

.list_horizontal_item a {
    text-decoration: none;
}

.list_horizontal_item a:hover, .products a:focus {
    text-shadow: 5px 5px 5px rgba(148, 148, 253, 1);
}

.list_horizontal_item article {
    display: flex;
    flex-wrap: nowrap;
    padding: 5px;
    margin: 5px;
}

.list_horizontal_item article:hover {
    box-shadow: 0px 0px 5px rgba(148, 148, 253, 1);
}

/* Классы блога */

.list_blog {
    list-style: none;
    padding: 0px;
    margin: 0px auto;
    max-width: 1000px;
}

.list_blog > li {
    margin-bottom: 5px;
}

.post_caption {
    border-bottom: 1px solid rgba(174, 255, 0, 1);
    padding: 5px;
}

.turning_pages ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.turning_pages li {
    display: block;
    margin: 2px;
    padding-right: 5px;
    padding-left: 5px;
}

/* Классы витрины */

.info_box {
    flex-grow: 1;
    padding: 5px;
}

.number {
    width: 50px;
    margin: 0;
    transition: width 1.3s;
    text-align: center;
}

.remove {
    float: right;
}

.removed {
    text-decoration: line-through;
}

.centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.category_list {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    margin: 5px;
}

.category_list_widescreen {
    color: rgba(102, 102, 102, 1);
    font-size: 14px;
    font-weight: bold;
    line-height: 24px;
    margin-bottom: 0;
    margin-top: 0;
    text-decoration: none;
}

.category_list_widescreen ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.category_list_widescreen li {
    display: block;
    margin: 2px;
    padding-right: 5px;
    padding-left: 5px;
}

.category_list_narrowscreen ul {
    list-style: none;
    margin: 0 20px;
    padding: 0;
}

.category_list_narrowscreen {
    text-align: center;
}

.category_list_narrowscreen button {
    width: 90%;
}

.product_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 5px;
    margin: 5px;
}

.product_item {
    width: 300px;
}

.product_item img {
    display: block;
    width: 200px;
    margin: 5px auto;
}

.product_item h3 {
    color: rgba(0, 174, 255, 1);
    color: rgba(255, 255, 255, 1);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-indent: 10px;
    padding-right: 5px;
    padding-left: 5px;
    margin: 5px;
}

.product_item a {
    text-decoration: none;
}

.product_item a:hover, .product_item a:focus {
    text-shadow: 5px 5px 5px rgba(148, 148, 253, 1);
}

.product_item article {
    padding: 5px;
    margin: 5px;
}

.product_item article:hover {
    box-shadow: 0px 0px 5px rgba(148, 148, 253, 1);
}

.product_item p {
    margin: 5px;
    font-weight: bold;
    text-align: center;
}

@media only screen and (max-width: 760px) {
    .category_list_widescreen {
        display: none;
    }
}
@media only screen and (min-width: 761px) {
    .category_list_narrowscreen {
        display: none;
    }
}

/* Стили галереи */

.gallery_conteiner {
    border-radius: 5px;
    display: flex;
    width: 60%;
    margin: 5px 1px 5px 1px;
    padding: 5px;
}

.gallary_slider {
    width: 20%;
    padding-right: 5px;
}

.gallery_item_img {
    border-radius: 5px;
    width: 100%;
}

.gallary_active_wrapper {
    width: 80%;
}

.gallary_active_img {
    border-radius: 5px;
    width: 100%;
}

.description_content {
    flex: 1 0 0%;
    margin: 5px 1px 5px 1px;
}

@media only screen and (max-width: 480px) {
    .gallery_conteiner {
        width: auto;
    }
}
@media only screen and (min-width: 481px) and (max-width: 760px) {
    .gallery_conteiner {
        width: 60%;
    }
}
@media only screen and (min-width: 761px) and (max-width: 960px) {
    .gallery_conteiner {
        width: 60%;
    }
}
@media only screen and (min-width: 961px) and (max-width: 1200px) {
    .gallery_conteiner {
        width: 50%;
    }
}
@media only screen and (min-width: 1201px) {
    .gallery_conteiner {
        width: 40%;
    }
}

/* Стили хлебных крошек */

.bread_crumbs ul {
    display: flex;
    flex-wrap: wrap;;
    list-style: none;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
}

.bread_crumbs li {
    display: block;
    margin: 2px;
    padding-right: 5px;
    padding-left: 5px;
}

/* Стили комментариев */

.comments_area {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    margin: 5px;
}

.comments_list {
    margin: 5px;
    padding: 5px;
}

.comment_box {
    margin: 5px;
    padding: 5px;
}

.comment_item_date {
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    text-indent: 10px;
    font-weight: bold;
    padding: 10px;
}

.comment_item_username {
    color: rgba(255, 255, 255, 1);
    font-size: 24px;
    text-indent: 10px;
    font-weight: bold;
    padding: 10px;
}

.comment_item_content {
    color: rgba(255, 255, 255, 1);
    text-indent: 10px;
    padding: 10px;
}

.add_comment_form {
    display: none;
    position: fixed;
    bottom: 40px;
    width: 100%;
}

.add_comment_form p {
    text-indent: 10px;
    padding: 5px;
}

.add_comment_form span {
    color: rgba(255, 255, 255, 1);
}

.add_comment_form textarea {
    display: block;
    width: 90%;
    height: 100px;
    margin-left: auto;
    margin-right: auto;
}

.add_comment_form .cancel {
    position: absolute;
    top: 10px;
    right: 10px;
}

.add_comment_form .add_comment {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Стили формы входа и регистрации */
.gate_form {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.5s;
}
