/* Logo Block */

header .block-amas-logo-block {
    margin: 0 auto 0 0;
}

.logo {
    color: white;
    font-family: 'MenuNTitleBold', sans-serif;
    font-size: 40px;
    text-align: center;
    display: block;
    width: 118px;
    height: 62px;
    background: url('/themes/custom/amas_first/img/all_png.png') 0 0 no-repeat;
    background-size: 179px auto;
}
.logo:hover {
    text-decoration: none;
    color: white;
}
.logo img{
    height: 60px;
    width: auto;
    background: white;
    padding: 5px 10px;
}
.logo.white img {
    background: transparent;
    padding: 0;
}
/* Header Links Block */

.header-links a, .header-links a:hover {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

/* Top Front Block */
.top-front-block {
    margin-top: 20px;
    margin-bottom: 50px;
}
.top-front-block h1{
    /*text-transform: uppercase;*/
    font-family: 'MenuNTitleBold', sans-serif;
    font-size: 24px;
    text-align: center;
    color: #282D66;
    padding: 30px 0 0;
    margin-bottom: 0;
}
.top-front-block p.description {
    font-family: 'MenuNTitleBold', sans-serif;
    font-size: 22px;
    text-align: center;
    color: #282D66;
    padding: 30px 0 30px;
}
.top-front-block p.description a:hover {
    text-decoration: underline;
}
.top-front-block p.description .prod-type {
    display: inline;
    white-space: nowrap;
}

.top-front-block p.description .icon {
  background-color: #282D66;
  width: 30px;
  height: 30px;
  display: inline-block;
  -webkit-mask: url("/themes/custom/amas_first/img/all_svg.svg") -50px -148px;
  mask: url("/themes/custom/amas_first/img/all_svg.svg") -50px -148px;
  -webkit-mask-size: 125px auto;
  mask-size: 125px auto;
  vertical-align: middle;
  /*border: solid 1px red;*/
}

.top-front-block p.description span.icon-product {
    -webkit-mask-position: -44px -148px;
    mask-position: -44px -148px;
    width: 31px;
}
.top-front-block p.description span.icon-business {
    -webkit-mask-position: -82px -147px;
    mask-position: -82px -147px;
}
.top-front-block p.description span.icon-service {
    -webkit-mask-position: -9px -145px;
    mask-position: -9px -145px;
}
.top-front-block p.description span.icon-software {
    -webkit-mask-position: -80px -111px;
    mask-position: -80px -111px;
}
.top-front-block p.description span.icon-technology {
    -webkit-mask-position: -50px -111px;
    mask-position: -50px -111px;
}
.top-front-block p.description span.icon-tender {
    -webkit-mask-position: -17px -111px;
    mask-position: -17px -111px;
}



.top-front-block .links{
    display: flex;
    margin: 0 auto;
    max-width: 1024px;
    justify-content: space-between;
}
.top-front-block .links a{
    display: block;
    color: white;
    background: #282D66;
    background-image: linear-gradient(-45deg,#323980,#1D2049);
    padding: 15px 10px;
    font-family: 'MenuNTitleBold', sans-serif;
    font-size: 1.25vw;
    text-align: center;
    width: 30%;
    text-transform: uppercase;
}
.top-front-block .links a:hover {
    text-decoration: none;
    background: #282D66E6;
    background-image: linear-gradient(-45deg,#6C73C6,#2E3475);
}

/*Tour block*/
.block-amas-tour-start-block {
    margin-left: 10px;
}
.block-amas-tour-start-block a#toolbar-tab-tour {
    color: rgba(255, 255, 255, 0.75);
}
.tip-module-amas.tip-add-product {
    max-width: 800px;
    width: 90%;
}

/* Product Gallery Block */
.front-product-gallery-block {
    margin: 15px 0;
}
.front-product-gallery-block.seller {
    background-color: #D9D9D9;
}
.front-product-gallery-block.product {
    background-color: white;
}
.front-product-gallery-block .block-title {
    text-align: center;
    color: black;
    font-size: 20px;
    padding: 20px 0;
    font-family: 'MenuNTitleBold', sans-serif;
    text-transform: uppercase;
}
.front-product-gallery-block .block-list {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
}
.front-product-gallery-block .left,
.front-product-gallery-block .right {
    width: 30px;
    height: 100px;
    position: relative;
    background: transparent;
    cursor: pointer;
    margin-top: 22px;
}

.front-product-gallery-block .left:after {
    position: absolute;
    left: 100%;
    top: 50%;
    margin: -50px 0 0 -25px;
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 50px 30px 50px 0;
    border-color: transparent #A6A6A6 transparent transparent;
}
.front-product-gallery-block .right:before {
    position: absolute;
    left: 100%;
    top: 50%;
    margin: -50px 0 0 -35px;
    content: ' ';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 50px 0 50px 30px;
    border-color: transparent  transparent transparent #a6a6a6;
}
.front-product-gallery-block .cont {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.front-product-gallery-block .cont a {
    display: none;
    width: 20%;
    color: #303030;
    text-align: center;
}
.front-product-gallery-block .cont a:nth-child(-n+6) {
    display: block;
}
.front-product-gallery-block .cont a img {
    width: 60%;
    display: block;
    margin: 0 auto;
}
.front-product-gallery-block.seller .cont a img {
    border-radius: 50%;
    /*border: solid 1px #aaa;*/
}
.front-product-gallery-block .cont a .title {
    display: block;
    height: 85px;
    font-size: 14px;
    padding: 10px 0 0;
}
.front-product-gallery-block .cont a:hover {
    text-decoration: none;
}

.block-amas-copyright-block .content {
    text-align: center;
    font-size: 14px;
    padding: 0 0 5px;
}

/*Tours styling*/
.joyride-content-wrapper {
    font-size: 18px;
}
.joyride-content-wrapper h2.tour-tip-label {
    margin: 10px 0;
    font-size: 1.385em;
    font-weight: bold;
}

.joyride-tip-guide {
    margin-top: 15px;
}
.joyride-tip-guide a {
    color: #fff;
}

.joyride-content-wrapper .button.button--primary {
    color: #fff;
    border-color: #1e5c90;
    background-color: #0071b8;
    background-image: -webkit-linear-gradient(top, #007bc6, #0071b8);
    background-image: linear-gradient(to bottom, #007bc6, #0071b8);
    text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
    font-weight: 700;
    -webkit-font-smoothing: antialiased;
}

.joyride-content-wrapper .button {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    padding: 4px 1.5em;
    cursor: pointer;
    -webkit-transition: all 0.1s;
    transition: all 0.1s;
    text-align: center;
    text-decoration: none;
    color: #333;
    border: 1px solid #a6a6a6;
    border-radius: 20em;
    background-color: #f2f1eb;
    background-image: -webkit-linear-gradient(top, #f6f6f3, #e7e7df);
    background-image: linear-gradient(to bottom, #f6f6f3, #e7e7df);
    text-shadow: 0 1px hsla(0, 0%, 100%, 0.6);
    font-size: 14px;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-font-smoothing: antialiased;
}

/*Flag (Favorites) link style*/
.node--type-company-profile .favorites, .path-product .favorites {
    display: inline-block;
    position: relative;
    min-width: 50px;
}
/*.base-content is important, because we have conflict with .flag class !!! */
.node--type-company-profile .base-content .flag, .path-product .base-content .flag {
  width: auto;
  background: none;
  float: none;
  margin: 0;
}

.flag.flag-favorite-company, .flag.flag-favorite-product {
    background: none;
    display: inline-block;
    width: 100%;
    height: 100%;
    float: none;
    font-size: 14px;
    margin-top: 2px;
}
.flag.flag-favorite-company .js-flag-message {
    position: absolute;
    width: 250px;
    top: 30px;
    right: -10px;
    background-color: #ffedda;
    padding: 10px;
    border-radius: 10px;
    font-size: 18px;
}
.companies-favorites-wrapper .views-element-container {
    border: solid 1px #9CA1D8;
    background: #FFFDEB;
    margin: 20px 0 30px;
    padding: 0;
}

.companies-favorites-wrapper .views-element-container .views-row:nth-child(2n+1) {
    background: #FFFD;
}
.companies-favorites-wrapper .company-profile,
.companies-favorites-wrapper .product-profile {
    color: black;
    justify-content: space-between;
    margin: 20px 0 0;
    padding: 5px;
    min-height: 60px;
}

.companies-favorites-wrapper .empty-favorite-items {
    text-align: center;
    margin: 20px 0;
}

.companies-favorites-wrapper .company-profile .images,
.companies-favorites-wrapper .product-profile .images {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0;
    padding: 0 20px 0 0;
    float: left;
}
.companies-favorites-wrapper .company-profile .images img,
.companies-favorites-wrapper .product-profile .images img {
    max-width: 50px;
    max-height: 50px;
}

.companies-favorites-wrapper .company-profile .fields,
.companies-favorites-wrapper .product-profile .fields {
}

.companies-favorites-wrapper .company-profile .fields .descriptions {
    font-size: 14px;
}

.companies-favorites-wrapper .company-profile .actions,
.companies-favorites-wrapper .product-profile .actions {
    min-width: 50px;
    position: relative;
    align-self: center;
    margin-left: 15px;
    float: right;
}

.companies-favorites-wrapper nav, .companies-favorites-wrapper nav ul {
  display: block;
  text-align: center;
}
.companies-favorites-wrapper nav li {
  display: inline;
  font-size: 14px;
}
/* End Flag (Favorites) link style*/



.admin-statistic-block form {
  display: flex;
}
.admin-statistic-block form>div {
  margin-right: 20px;
}
.admin-statistic-block form .form-submit.button {
  height: 35px;
  margin: 20px 0 0;
}

.admin-statistic-block .result div * {
  /*display: none;*/
}
.admin-statistic-block .result .head, .admin-statistic-block .result .title {
  font-weight: bold;
}
.admin-statistic-block .result span {
  border-right: solid 1px gray;
  display: inline-block;
  width: 150px;
  border-top: solid 1px gray;
  padding: 5px 10px;
  margin-left: -5px;
}
.admin-statistic-block .result .head span {
  margin-left: -6px;
}
.admin-statistic-block .result .head span:first-child,
.admin-statistic-block .result span:first-child {
  margin-left: 0;
  width: 160px;
}
.admin-statistic-block .result span:last-child {
  border-right: solid 1px gray;
}
.admin-statistic-block .result span:nth-child(4n) {
  width: 300px;
}

@media (max-width: 1279px) {
    .front-product-gallery-block .cont a:nth-child(6) {
      display: none;
    }
}

@media (max-width: 1024px) {
    .front-product-gallery-block .cont a:nth-child(5) {
      display: none;
    }
    .front-product-gallery-block .cont a .title {
        max-height: 85px;
        overflow: hidden;
    }
}

/*Small devices (landscape phones, less than 768px)*/
@media (max-width: 768px) {
    .front-product-gallery-block .cont a:nth-child(4) {
      display: none;
    }
    .block-amas-tour-start-block {
        display: none;
    }
    .front-product-gallery-block .cont a .title {
      font-size: 2.5vw;
    }

}
@media (max-width: 609px) {
    .front-product-gallery-block .cont a .title {
        font-size: 3.5vw;
    }
    .top-front-block p.description {
        font-size: 3.5vw;
        padding: 20px 0 5px;
    }
    .top-front-block p.description span.icon {
        -webkit-mask-size: 82px auto;
        mask-size: 82px auto;
        width: 20px;
        height: 20px;
        padding: 0;
    }
    .top-front-block p.description span.icon-product {
      -webkit-mask-position: -29px -96px;
      mask-position: -29px -96px;
      width: 22px;
    }
    .top-front-block p.description span.icon-business {
      -webkit-mask-position: -54px -96px;
      mask-position: -54px -96px;
    }
    .top-front-block p.description span.icon-service {
      -webkit-mask-position: -6px -94px;
      mask-position: -6px -94px;
    }
    .top-front-block p.description span.icon-software {
      -webkit-mask-position: -53px -74px;
      mask-position: -53px -74px;
    }
    .top-front-block p.description span.icon-technology {
      -webkit-mask-position: -32px -73px;
      mask-position: -32px -73px;
    }
    .top-front-block p.description span.icon-tender {
      -webkit-mask-position: -11px -75px;
      mask-position: -11px -75px;
    }
}
