@import url("css-1.css");
@import url("css-2.css");

header {
    /*    img: 1920x1106 px*/
    background: url("bgr-min.jpg") center top no-repeat;
    background-size: contain;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    margin-left: -1px;
}

@media (min-width: 1920px) {
    header {
        width: 1920px;
        height: 1106px;
	margin: 0 auto;
    }



}

.page header {
	background: none;
	background-color: #266870;
	position: static;
	z-index: 999;
	width: auto;
	height: auto;

}

.page .village__bg-holder {
	display: none;
}


.village__bg-holder {
    vertical-align: top;
    width: 100%;
    opacity: 0;
}

.houseFest {
    background: url("") center center no-repeat;
}

.houseAmrita {
    background: url("") center center no-repeat;
}

.houseRadio {
    background: url("") center center no-repeat;
}

.houseShop {
    background: url("") center center no-repeat;
}

.houseHstone {
    background: url("") center center no-repeat;
}

.houseSmith {
    background: url("") center center no-repeat;
}

.houseSweets {
    background: url("") center center no-repeat;
}

.houseEdu {
    background: url("") center center no-repeat;
}

.houseDana {
    background: url("") center center no-repeat;
}

.houseTorsunov {
    background: url("") center center no-repeat;
}

.houseText {
    margin-bottom: 30px;
}

.houseButton {
    display: block;
    width: 75%;
    margin: 0 auto;
    font-size: 18px;
    font-family: 'PT Serif', serif;
    font-weight: 400;
    background-color: #21c8ca;
    padding: 10px 12px;
    transition: 0.5s;
}

.houseButton span {
    position: relative;
    transition: 0.5s;
}

.houseButton span:after {
    content: '\27F6';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -50px;
    transition: 0.5s;
}

.houseButton:hover span {
    padding-right: 40px;
}

.houseButton:hover span:after {
    opacity: 1;
    right: 0;
}

.houseFest,
.houseAmrita,
.houseRadio,
.houseShop,
.houseHstone,
.houseSmith,
.houseSweets,
.houseEdu,
.houseDana,
.houseTorsunov {
    position: absolute;
    background-size: contain;
    opacity: 0;
    transition: 0.3s;
    outline: none;
}

.houseFest:hover,
.houseAmrita:hover,
.houseRadio:hover,
.houseShop:hover,
.houseHstone:hover,
.houseSmith:hover,
.houseSweets:hover,
.houseEdu:hover,
.houseDana:hover,
.houseTorsunov:hover,
.houses__show {
    opacity: 1;
    transition: 0.3s;
}

.house-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:space-between;
}
.button-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content:space-around;
    margin-bottom:-30px;
}
.houseButton--flex {
    width: 250px;
}
.houseButton--sm {
    display: none;
}


/*
/////////////// Popover styles /////////////////
/////
*/

.webui-popover-breathe {
    padding: 20px;
}

.webui-popover-title, .col-flex__title  {
    border-bottom: none;
    font-family: 'PT Serif', serif;
    font-size: 36px;
    line-height: 1.0em;
    font-weight: 400;
    background-color: inherit;
}

.col-flex {
    margin: 10px;
    flex: 1;
}
.col-flex:first-child {
    padding-right: 40px;
}

.col-flex__title {
    margin-bottom: 20px;
}


.webui-popover-content {
    font-family: 'Open Sans';
    font-size: 14px;
    line-height: 1.5em;
    overflow: hidden !important;
}

.webui-popover.in {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
}


/*
/////////////// Popover styles /////////////////
/////
*/


/* MAIN MENU */

nav {
    position: absolute;
    top: 0;
    width: 100%;
}
.page nav {
	background-color:#266870;
	height: 50px;
}

.logo {
    position: absolute;
    background: url("") 50% 50% no-repeat;
    background-size: contain;
    color: #222222;
    height: 155px;
    width: 100%;
    right: 0;
    left: 0;
    margin: 0 auto;
    top: 47px;
    z-index: 1;
	cursor: pointer;
}

.menu {
    background: #21c8ca;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    max-width: 900px;
    height: 50px;
	z-index: 999;
}

.menu .top-menu {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    list-style-type: none;
    padding: 0px 25px;
    margin: 0 auto;
    /*    min-height: 50px;*/
    /*    max-height: 50px;*/
}

.menu a {
    color: #fff;
    font-family: 'FrankRegular';
    font-size: 17px;
    text-transform: uppercase;
    /*	padding: 15px 10px;*/
    padding: 13px 5px 13px 5px;
    display: block;
}

.menu .active a,
.menu a:hover {
    background: #ff4e00;
    text-decoration: none;
    color: #fff;
}

.menu li {
    position: relative;
}

.menu:after {
    content: '';
    background: #266870;
    width: 20px;
    height: 50px;
    display: block;
    position: absolute;
    right: -10px;
    top: 0;
    -webkit-transform: skew(-20deg);
    -moz-transform: skew(-20deg);
    -o-transform: skew(-20deg);
}

.menu:before {
    content: '';
    background: #266870;
    width: 20px;
    height: 50px;
    display: block;
    position: absolute;
    left: -10px;
    top: 0;
    -webkit-transform: skew(20deg);
    -moz-transform: skew(20deg);
    -o-transform: skew(20deg);
}

.menu li.submenuItem:hover .dropdown-menu {
    display: flex;
}

.menu li .dropdown-menu {
    display: none;
    flex-flow: column wrap;
    padding: 10px;
    width: 175px;
}

.menu li .dropdown-menu li a {
    padding: 3px 0;
}

.dropdown-menu {
    margin: -1px;
}

.dropdown-menu>li>a:hover,
.dropdown-menu>li>a:focus {
    color: #ff4e00;
    background: none;
}

@media (max-width: 810px) {
    .menu:after,
    .menu:before {
        display: none;
    }
    .menu .top-menu {
        padding: 0px 10px;
    }
    .menu a {
        padding: 15px 6px;
        font-size: 15px;
    }
    .menu li.submenuItem:hover .dropdown-menu {
        display: flex;
    }
}

@media (max-width: 720px) {
    
    .logo, .proe  {
        display: none;
    }
    .menu:after,
    .menu:before {
        display: none;
    }
    .menu {
        height: 50px;
        padding-bottom: 20px;
        overflow: hidden;
    }
    .menu .top-menu {
        height: 70px;
        flex-wrap: nowrap;
        overflow-x: scroll;
        white-space: nowrap;
        padding: 0px 10px;
    }
    .menu a {
        padding: 16px 6px;
        font-size: 15px;
    }
    .menu li.submenuItem:hover .dropdown-menu {
        display: none;
    }
    /*
    /////////////// Popover styles /////////////////
///// */
    .webui-popover-breathe {
        padding: 6px;
    }
    .webui-popover-title, .col-flex__title {
        border-bottom: none;
        font-family: 'PT Serif', serif;
        font-size: 20px;
        line-height: 1.0em;
        font-weight: 400;
        background-color: inherit;
    }
    .webui-popover-content {
        font-family: 'Open Sans';
        font-size: 12px;
        line-height: 1.5em;
    }
    .webui-popover.in {
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25);
    }
    .webui-popover {
        width: 266px !important;
    }
    .houseText {
        margin-bottom: 10px;
    }
    .houseButton {
        width: 75%;
        margin: 0 auto;
        font-size: 13px;
        font-family: 'PT Serif', serif;
        font-weight: 400;
        background-color: #21c8ca;
        padding: 10px 12px;
        transition: 0.5s;
    }
    .houseButton span {
        position: relative;
        transition: 0.5s;
    }
    .houseButton span:after {
        content: '\27F6';
        position: absolute;
        opacity: 0;
        top: 0;
        right: -50px;
        transition: 0.5s;
    }
    .houseButton:hover span {
        padding-right: 40px;
    }
    .houseButton:hover span:after {
        opacity: 1;
        right: 0;
    }
    .house-flex {
        display: block;
    }
    .button-flex {
        display: none;
    }
    .houseButton--sm {
        display: block;
        width: 85%;
        margin-top: 10px;
    }
    .col-flex:first-child {
        padding-right: 0px;
    }

    /*
    /////////////// Popover styles /////////////////
///// */
}


/* MAIN MENU */

.proe {
    position: absolute;
    background: url("") 50% 100% no-repeat;
    background-size: contain;
    height: 68px;
    width: 100%;
    margin: 0 auto;
    bottom: 4px;
}

.logo:hover {
    transition: 0.3s;
    transform: scale(1.05);
}

