/**
 * Theme Name: ALT-P theme
 * Description: Divi Child Theme
 * Theme URI: https://infodesign.by/
 * Author: Paul Dragunov
 * Author URI: http://infodesign.by/
 * Template: divi
 * Version: 1.0.0
 * @package divi
 */
@import url('../divi/style.css');

#main-header {
    z-index: 5000 !important;
}

.sponsors-style-two {
    position: relative;
    background: #f7f7f7;
    padding: 0px 0px 40px;
}

.sponsors-style-two ul li {
    list-style: none;
}

.sponsors-style-two .image-box {
    position: relative;
    display: block;
    background: #fff;
    text-align: center;
    border: 1px solid #f1f1f1;
    padding: 15px 0;
}

.sponsors-style-two .image-box img {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: 100%;
    opacity: 0.70;
    max-height: 222px;
    transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
}

.sponsors-style-two .image-box:hover img {
    opacity: 1;
}

.sponsors-style-two .owl-theme .owl-nav,
.sponsors-style-two .owl-theme .owl-dots {
    display: none;
}

.sponsors-style-two .tooltip-inner {
    background: #48c7ec;
}

.sponsors-style-two .tooltip.top .tooltip-arrow {
    border-top-color: #48c7ec;
}

.sponsors-style-two .owl-carousel .owl-stage-outer {
    padding-top: 40px;
}

.sponsors-style-two .sec-title {
    margin-bottom: 10px;
}

#belarus-map svg {
    fill: #fff;
}

#regions {
    stroke: #ddd;
    stroke-width: 2;
}

#subregions {
    stroke: #ddd;
    stroke-width: 1.2;
}

circle {
    fill: #ccc;
    stroke: none;
}

polygon:hover, circle:hover, a:visited polygon:hover, a:visited circle:hover {
    fill: #e14538;
}

a:visited polygon {
    fill: #fff;
    stroke: #ddd;
}


#top-menu li.menu-item-home {
    display: none;
}

.tooltip {
    position: absolute;
    text-align: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 5px 30px rgba(0, 0, 0, .1);
    pointer-events: none;
}

#demo {
    padding: 3em 3% 5em;
    background-color: #eee;
}

#belarus-map, #belarus-map svg {
    width: 440px;
    height: 392px;
}

.mapScale {
    transform: scale(0.8, 0.8);
}

#control-group {
}

#layers-control {
    margin-bottom: 25px;
}

#regions-switch {
    display: inline-block;
    background-color: #ddd;
    margin: 5px 0 15px;
    border-radius: 5px;
    overflow: hidden;
}

.switchButton {
    display: inline-block;
    color: #666;
    padding: 6px 15px 8px;
    cursor: pointer;
}

.switchButton.checked {
    color: #fff;
    background-color: #457b7e;
    cursor: default;
    pointer-events: none;
}

.switchButton:hover {
    background-color: #bbb;
}

#control-group h3 {
    margin-bottom: 5px;
}

#regions-list {
    width: 140px;
    float: left;
}

#subregions-list {
    margin-left: 150px;
}

.name {
    display: inline-block;
    width: 140px;
    margin: 3px 50px 5px 0;
}

.name span {
    padding: 2px 5px 3px;
}

.highlight {
    fill: #e14538;
    stroke: none;
}

.highlightText span, .name:hover span {
    background-color: #e14538;
    color: white;
}


svg {
    max-width: 100% !important;
    height: auto;
    display: block;
}

.heyo:hover {
    fill: #CC2929;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.enabled {
    /*fill: #21669E;*/
    cursor: pointer;
}

.description {
    pointer-events: none;
    position: absolute;
    font-size: 16px;
    text-align: center;
    background: white;
    padding: 10px 15px;
    z-index: 50;
    height: 35px;
    line-height: 16px;
    margin: 0 auto;
    color: #21669e;
    border-radius: 5px;
    box-shadow: 0 0 0 1px #eee;
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: none;
}

.description.active {
    display: block;
}

.description:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0;
    height: 0;
    margin-left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #eee;
}

.taxonomy-description {
    width: 100%;
    float: left;
}

#et-info {
    float: right;
}

#et-secondary-nav li ul, #top-header {
    background-color: white;
}

#top-header {
    z-index: 100;
    color: gray;
    font-size: 12px;
    line-height: 13px;
}

#top-header a {
    color: gray;
}

.nav li ul.sub-menu {
    padding: 10px 0;	
	height: auto;
    max-height: calc(100vh - 200px);
    overflow-y: scroll;
}

.nav li ul.sub-menu::-webkit-scrollbar {
  width: 0;
}

#top-menu ul.sub-menu li a {
    font-size: 14px;
    padding: 6px 20px 6px 6px;

}

#sidebar ul.sub-menu {
    padding-top: 10px;
    padding-left: 10px;
}

#sidebar ul.sub-menu li a {
    font-size: .8rem;
    line-height: 1rem;
}

h4.widgettitle {
    font-weight: bold;
    color: #c91b2b;
}

ul.menu li.current-menu-item a {
    font-weight: bold;
    color: #c91b2b;
}

article.post {
    display: block;
    float: left;
    width: 30%;
    margin-right: 3%;
    min-height: 450px;
}

article.post.category-piro {
    min-height: 550px;
}

article.post.category-news {
    min-height: 270px;
    margin-bottom: 0;
}

article.post h2.entry-title {
    font-weight: bold;
    font-size: 1rem;
    min-height: 3rem;
}

article.post.category-news h2.entry-title {
    margin-top: 1em;
}

.front-about-row {
    background-size: contain;
    background-repeat: repeat-y;
    background-image: url(/wp-content/uploads/2018/04/1line.png);
}

.et_fixed_nav #top-header {
    position: absolute !important;
}

.et-fixed-header {
    top: 0px !important;
}

.wp-paginate {
    clear: both;
}

@media only screen and (max-width: 980px) {
    .front-about-row {
        background-image: none !important;
    }

    .front-about-cell p, .front-about-cell ul, .front-about-cell h2, .front-about-cell h1 {
        color: #333 !important;
    }

    #sidebar {
        display: none !important;
    }

    article.post {
        width: 47%;
        margin-right: 3%;
    }
}

@media (max-width: 600px) {
    #belarus-map, #belarus-map svg {
        width: 440px;
        height: 392px;
    }

    .mapScale {
        transform: scale(0.8, 0.8);
    }

    article.post {
        min-height: 300px;
    }

    article.post h2.entry-title {
        font-weight: bold;
        font-size: 0.8rem;
        min-height: 2.5rem;
    }

    article.post p {
        font-size: 0.8rem;
        line-height: 1rem;
    }
}

@media (max-width: 767px) {
    #et-info-phone, #et-info-email {
        font-size: 80%;
    }

}

@media (max-width: 500px) {
    #belarus-map, #belarus-map svg {
        width: 275px;
        height: 245px;
    }

    .et_pb_container {
        height: auto !important;
    }

    .mapScale {
        transform: scale(0.5, 0.5);
    }
    .container {
        width: 95%;
        margin: 0  auto;
    }
}

.ipad-pro {
    display: none;
}
@media (min-width: 981px) and (max-width: 1278px) {
    #logo {
        max-height: 40% !important;
    }
}

/* ----------- iPad Pro ----------- */
/* Portrait and Landscape */
@media only screen
and (min-width: 1024px)
and (max-height: 1366px)
and (-webkit-min-device-pixel-ratio: 1.5) {
    /*#logo {*/
    /*    max-height: 50% !important;*/
    /*}*/
}

/* Portrait */
@media only screen
and (min-width: 1024px)
and (max-height: 1366px)
and (orientation: portrait)
and (-webkit-min-device-pixel-ratio: 1.5) {

    .logo_container a {
        position: absolute;
        max-width: 150px;
        top: 0px;
    }
    #top-header {
        display: none;
    }
    .ipad-pro {
        display: block;
    }
    .container.clearfix.et_menu_container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    .et-fixed-header .logo_container a{
        top: 0;
    }
    .et_fixed_nav #top-header, .et_non_fixed_nav.et_transparent_nav #top-header {
        top: -1px;
        right: 70px;
        left: 0;
        /*z-index: 99999999;*/
    }
    .et_header_style_left .mobile_menu_bar{
        padding-bottom: 14px;
    }
    #main-header #et-top-navigation {
        padding-left: 0px!important;
    }
    body.et_fixed_nav.et_secondary_nav_enabled #main-header, body.et_non_fixed_nav.et_transparent_nav.et_secondary_nav_enabled #main-header {
        top: 0px;
        height: auto;
    }
    body.et_fixed_nav.et_secondary_nav_enabled #main-header.et-fixed-header, body.et_non_fixed_nav.et_transparent_nav.et_secondary_nav_enabled #main-header.et-fixed-header {
        top: 0px;
        height: 60px;
    }
    #et_mobile_nav_menu {
        display: none;
        float: right;
        margin-top: -0px;
    }
    .ipad-pro a {
        color: #63291b;
    }
    .et-top-navigation{
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation {
        padding: 17px 0 0 0!important;;
    }
    .et-fixed-header #et_mobile_nav_menu {
            margin-top: 0;
        }
        /*#main-header {*/
        /*    z-index: 10 !important;*/
        /*}*/
    /*#et-info {*/
    /*    position: absolute;*/
    /*    right: 0;*/
    /*    top: 34px;*/
    /*}*/
}

/* Landscape */
@media only screen
and (min-width: 1024px)
and (max-height: 1366px)
and (orientation: landscape)
and (-webkit-min-device-pixel-ratio: 1.5) {
    /*#logo {*/
    /*    max-height: 40% !important;*/
    /*}*/


}