/*   
    Theme Name: Avacha
    Author: Artur Albertovich Kniss
    Author URI: http://вэбикс.рф/
    Description: Данная тема создана как библиотека для последующей комфортной разработки шаблонов страниц, с целью оптимизации работы WordPress под нужды каждого сайта.
    - В версии 1.2.2 v. был подключен кит с иконками от fontawesome.com
    Version: 1.2.4 v.
    Tags: Разработка сайтов - Камчатка - вэбикс.рф
*/

:root {
    --main-color: #000000;
    --main-color-light: #000000;
    --links-color: #0d47a1;
    --light-gray: #e5e5e5;
}


/* Выключаем стандартные стили */

* {
    margin: 0;
    padding: 0;
}

a {
    color: var(--links-color);
    text-decoration: none;
}

/* Стандартная анимация */

* {
    transition: background-color 0.4s ease, color 0.4s ease;
}

* {
    transition: all ease 0.5s;
}


/* Константные стили */

.flex {
	display: flex;
}

.menu ul {
    list-style: none;
}

.menu ul li {
    display: inline-block;
}

.menu .sub-menu {
    display: none;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

footer a:hover {
    text-decoration: underline;
}

button.mfp-close {
    cursor: pointer !important;
}

img.mfp-img {
    cursor: auto;
}

.mfp-container.mfp-image-holder.mfp-s-ready {
    cursor: auto;
}


/* Стили выводимого текста из редактора WP*/

content p {
    margin-bottom: 10px;
    line-height: 22px;
}

content h3 {
    margin-bottom: 10px;
}

content ul, content ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

content a:hover {
    text-decoration: underline;
}

content tr {
    border-bottom: 1px solid var(--light-gray);
}

content td {
    padding: 5px 10px;
}


content thead {
    background-color: var(--main-color-light);
}

content img.aligncenter {
    margin: 0 auto;
    display: block;
}

content hr {
    margin-bottom: 20px;
    margin-top: 20px;
    border-color: #00000012;
    border-top: 0px;
}

content blockquote {
    border-left: 10px solid #59a4af63;
    margin-left: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 15px 0px 5px 20px;
}

content ul li, content ol li {
    margin-bottom: 4px;
}

content td a {
    background-image: none !important;
    padding-left: 0px !important;
}


/* Адаптив 1200px */

.adaptiveWidth {
    margin: 0 auto;
    width: 1200px;
}

/* Адаптив 1024px */

.centered { /* Центрирование любого элемента по центру экрана */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ICON's for link on documents */

a[href$='.pdf'] {
    background-image: url(images/pdf.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 22px;
}

a[href$='.xls'], a[href$='.xlsx'] {
    background-image: url(images/xls.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 22px;
}

a[href$='.doc'], a[href$='.docx'], a[href$='.rtf'] {
    background-image: url(images/doc.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 22px;
}

a[href$='.ppt'], a[href$='.pptx'] {
    background-image: url(images/ppt.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 22px;
}

a[href$='.zip'], a[href$='.rar'] {
    background-image: url(images/zip.png);
    background-size: contain;
    background-repeat: no-repeat;
    padding-left: 22px;
}

/* ---------------------------- */


