/*
Base font size:
16px = 1.0417vw@1920+25%
16px = 3.8835vw@412
*/

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 7.67vw;
    padding-left: calc(14vw + 2.25rem);
    padding-right: 4vw;
    padding-top: 2vw;
    padding-bottom: 2vw;
    position: relative;
    z-index: 2;
}

.main-site .header {
    padding-left: 7vw;
}

.header-logo-link svg {
    width: 14vw;
    height: auto;
}

.header-nav-menu {
    margin-left: 6.7vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.header-nav-item {
    font-weight: 400;
    font-size: 0.9114875vw/* 0.875rem */;
    transition: 0.8s;
    margin: 0 2.0834vw/* 2rem */;
}

.main-site .header-nav-item {
    font-size: 1rem;
}

.main-site .header-nav-item-modal {
    font-size: 1.56255vw/* 1.5rem */;
}

.header-nav-item:hover {
    text-decoration: underline;
    transition: 0.8s;
}

#modal-menu-laptop {
    line-height: normal;
    font-size: 1.0417vw/* 1rem */;
    font-weight: 300;
}

#modal-menu-laptop p {
    line-height: normal;
}

#modal-menu-laptop a {
    font-weight: 300;
}

#modal-menu-laptop .modal-menu-content {
    height: 100%;
}

#modal-menu-laptop .modal-menu-container {
    z-index: 9998;
    top: 0;
    width: 73vw;
    height: 100%;
    right: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-registration-block-wrapper {
    width: 50%;
    min-width: 350px;
    height: 100vh;
    background-color: rgba(62, 70, 76, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 3vw;
    position: relative;
}

.main-site .modal-registration-block-wrapper {
    /* glass style */
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(1.6em);
    -webkit-backdrop-filter: blur(1.6em);
}

.modal-registration-block-title-wrapper {
    text-align: center;
}

.modal-registration-block-title {
    font-size: 2.0834vw; /* 2rem */
    font-style: normal;
    font-weight: 300;
}

.modal-registration-block-logo-wrapper {
    margin: 3vw 0;
}

.modal-registration-block-logo-wrapper svg {
    width: 8vw;
    height: auto;
}

.modal-registration-block-form-wrapepr {
    width: 70%;
    margin: 0 auto;
}

.modal-registration-block-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.modal-registration-block-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 1vw 0 1vw 0.7vw;
    border: 0.1vw solid #FFF;
    font-size: 1.0417vw; /* 1rem */
    font-weight: 400;
    color: #FFF;
    height: 2.70842vw; /* 2.6rem */
}

.modal-registration-block-input::placeholder {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0417vw; /* 1rem */
    font-weight: 400;
    color: #FFF;
}

.modal-registration-block-btn {
    margin-top: 1.56255vw/* 1.5rem */;
    padding: 0.8vw 0;
    background: #0F96B4;
    border: none;
    outline: none;
    color: #F2F2F2;
    font-weight: 300;
    font-size: 1.0417vw; /* 1rem */
    cursor: pointer;
    transition: 0.4s;
    height: 2.70842vw/*2.6rem*/;
}

.modal-registration-block-btn.button--sign-in-google {
    margin-top: 0.781275vw/*0.75rem*/;
    position: relative;
    background-color: #F2F2F2;
    color: #333333;
}
.modal-registration-block-btn.button--sign-in-google .icon {
    position: absolute;
    top: 0;
    left: 5%;
    height: 100%;
    display: flex;
    align-items: center;
}

.modal-registration-block-subtitle {
    display: block;
    font-size: 1.0417vw; /* 1rem */
    font-weight: 400;
    margin-top: 1.5vw;
}

.modal-menu-wrapper {
    width: 50%;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    justify-content: flex-start;
    position: relative;
    padding-top: 5vw;
    padding-bottom: 1vw;
    align-items: center;
    background-color: #f4f4f5;
}

.modal-menu-wrapper,
.modal-menu-wrapper a {
    color: #ABABAB;
}

.modal-menu-close-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    position: absolute;
    right: 2vw;
    top: 1vw;
}
.modal-menu-close-wrapper.--mobile {
    display: none;
}
.modal-menu-close-wrapper svg {
    width: 2vw;
    height: auto;
    vertical-align: middle;
}
.header-nav-menu-modal {
    flex-direction: column;
    width: 100%;
    margin-left: 0;
}

.header-nav-item-modal {
    font-size: 1.56255vw/* 1.5rem */;
    font-style: normal;
    font-weight: 300;
    line-height: 1.56255vw/* 1.5rem */;
    text-align: center;
    text-transform: uppercase;
    color: #ABABAB;
    margin-bottom: 1.5vw;
}

.header-nav-menu-modal .header-nav-item-modal:nth-last-child(1) {
    margin-bottom: 0;
}

.modal-more {
    font-size: 3vw;
    line-height: 3vw;
    color: #ABABAB;
    margin-top: 1.5vw;
    margin-bottom: 1.5vw;
}

.menu-separator {
    width: 80%;
    height: 1px;

    margin: 1vw 0;
}

.menu-separator-with-border {
    background-color: rgba(0, 0, 0, 0.2);
}

.footer-nav-item-link {
    font-size: 1.0417vw/* 1rem */;
    font-weight: 400;
}

.footer-nav-item-link:hover {
    text-decoration: underline;
}

.menu-footer-section {
    padding-top: 1vw;
    margin-top: 1vw;
    width: 80%;
    text-align: center;
}
.menu-footer-section-with-border {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    padding-top: 2vw;
    margin-top: 3vw;
}

.modal-footer-nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
}

.modal-footer-nav-menu .footer-nav-item-link {
    margin-bottom: 0.5vw;
    color: #ABABAB;
}
.modal-footer-sn-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.modal-footer-sn-link {
    width: 3vw;
    height: 3vw;
    background: #A1A1A1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 100vw;
}

.modal-footer-sn-link svg path {
    fill: #F2F2F2;
}

.modal-footer-sn-wrapper .modal-footer-sn-link:nth-child(3) svg path {
    fill: transparent;
    stroke: #F2F2F2;
}

.modal-menu-close-wrapper svg path {
    stroke: #A1A1A1;
}

.modal-menu-close-wrapper:hover svg path {
    stroke: #525252;
}

.header-nav-item-modal:hover {
    text-decoration: none;
    color: #525252;
}

.modal-footer-nav-menu .footer-nav-item-link:hover {
    text-decoration: none;
    color: #525252;
}

.modal-footer-sn-link:hover {
    background: #525252;
}
.modal-menu-laptop {
    visibility: hidden; /* changed by javascript in modal.js */
    position: fixed;
    height: 100%;
    top: 0;
    right: 105%;
    z-index: 99998;

    /* menu animation */
    transition: right 0.75s ease-in-out;
}

.modal-menu-laptop.as-hidden-on-load {
    display: block;
}
.modal-active {
    right: 0;
    pointer-events: all;
}
.modal-registration-holder {
    display: none;
    text-align: center;
    width: 100%;
    position: relative;
    /* overflow: visible !important; */
}
.form--sign-in .label--error, .user-reset-password .label--error {
    color: #F88;
    font-size: 14px;
    margin-top: -20px;
    margin-bottom: 10px;
}

.user-reset-password .label--info {
    line-height: 1.4em;
}

/* user info */
.user-info {
    width: 300px;
    text-align: center;
    font-size: 14px;
}

.user-info a {
    color: #fff !important;
    text-decoration: none;
}
.user-info .logo {
    display: block;
    width: 141px;
    height: 123px;
    margin: 0 auto 20px;
    padding-top: 8px;
}
.user-info .logo img {
    width: 100%;
}
.user-info .user, .user-info .plan-block {
    font-size: 16px;
}

.user-info .plan-block {
    margin: 15px 0 12px;
}

.status {
    display: inline-block;
    border-radius: 50%;
    width: 13px;
    height: 13px;
}

.status[data-color=red] {
    background-color: #FF5C46;
}
.status[data-color=yellow] {
    background-color: #FDC725;
}
.status[data-color=green] {
    background-color: #27A75B;
}
.status[data-color=blue] {
    background-color: #218caf;
}

.user-info .button {
    display: block;
    height: 36px;
    line-height: 34px;
    margin: 16px 0;
    width: 100%;
    background: transparent;
    border: 1px solid #bbbbbb;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}

.user-info .button-blue {
    color: #ffffff;
    background: #218caf;
    border-color: #218caf;
}
.modal-registration-holder, .user-reset-password {
    width: 300px;
    text-align: center;
    box-sizing: border-box;
    min-width: 230px;
}

.modal-registration-holder, .user-reset-password {
    width: 300px;
    text-align: center;
    box-sizing: border-box;
    min-width: 230px;
}

.login-page {
    color: #fff;
    font-weight: 300;
}

.login-page .logo {
    width: 141px;
    margin: 8px auto 20px;
}

.login-page .mdl-button {
    font-weight: 400;
}

.login-page .mdl-card__supporting-text {
    width: 100%;
    font-size: 14px;
}

.form--sign-in .remember label {
    font-size: 14px;
}

.login-page .mdl-textfield__input {
    font-size: 14px;
}
.login-page .mdl-textfield.is-disabled.is-disabled .mdl-textfield__label, .login-page .mdl-textfield__label, .login-page fieldset[disabled] .mdl-textfield .mdl-textfield__label {
    font-size: 14px;
}
.login-page .mdl-card__supporting-text {
    padding: 0 8px;
}
.login-page .soc-icon img {
    vertical-align: middle;
}

/* Language selector */
.header-language-selector {
    margin-left: auto; /* to align to the right of the flex container */
}

.floating-menu-container {
    position: fixed;
    height: 7.67vw; /* same as .header */
    top: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    padding-right: 1vw;
}
.md-header__button.button--menu {
    transform: rotate(0deg);
    transition: transform 0.8s;
}
.md-header__button.button--menu.as-active {
    transform: rotate(90deg);
}
.floating-menu-container .button--menu svg {
    transition: fill 0.8s;
    transition-delay: 0.1s;
}
.floating-menu-container .button--menu.as-active svg {
    fill: #a1a1a1;
    transition-delay: 0.6s;
}

/* Menu and header in our android apps webview */
.ace-android-internal .floating-menu-container {
    display: none;
}

.contacts-company-name,
.contacts-address,
.contacts-email {
    margin-bottom: 0.5vw;
}

.menu-multi-cols {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.menu-multi-cols .mdl-menu__item {
    min-width: 6.5rem;
}

.menu-col {
}

@media only screen and (max-width: 320px) {
    .modal-registration-holder, .user-reset-password {
        width: 100%;
        padding: 0 10px;
    }
}

/* low heights in landscape mode */
@media only screen and (min-aspect-ratio: 1/1) and (max-height: 310px) {
    .login-page .top-title {
        display: none;
    }

    .modal-registration-block-wrapper {
        justify-content: start;
    }
}

@media only screen and (min-aspect-ratio: 1/1) and (max-height: 470px) {
    .login-page .logo {
        display: none;
    }
}

/* Mobile */
@media only screen and (max-width: 428px) {
    .menu-multi-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu-multi-cols .mdl-menu__item {
        min-width: 7.5rem;
    }

    .header {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        height: 15.3vw;
        padding: 2vw;
        padding-right: 10vw;
        align-items: center;
    }

    .main-site .header {
        padding-left: 2vw;
    }

    .ace-android-internal .header {
        padding-right: 4vw;
    }

    .header-logo-link.--mobile {
        display: flex;
        align-items: center;
        margin-left: -2.5rem;
    }

    .header-logo-link svg {
        width: 47vw;
    }

    .header-nav-menu {
        display: none;
    }

    .modal {
        position: fixed;
        top: 0;
        /* right: 0; */
        z-index: 9999;
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .modal-menu-container {
        display: flex;
        flex-direction: row;
    }

    .modal-menu-content {
        margin-left: auto;
        height: 100%;
        width: 100%;
        background: #1E1D31;
    }

    .modal .header-nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding: 7vw 4vw 0 4vw;
        align-items: center;
    }

    .header-nav-item {
        font-size: 6vw;
        margin: 0 7.767vw/* 2rem */;
        margin-bottom: 5vw;
    }

    .header-nav-item-modal, .main-site .header-nav-item-modal {
        font-size: 5.82525vw/* 1.5rem */;
        line-height: 5.82525vw/* 1.5rem */;
    }

    .modal-menu-close-wrapper {
        top: 3.8835vw; /* 1rem */
        right: 3.8835vw; /* 1rem */

        /* for testing */
        display: none;
    }

    .modal-menu-close-wrapper svg {
        width: 7.767vw/* 2rem */;
        height: auto;
    }

    .modal-menu-close-btn {
        width: 11vw;
        height: auto;
    }

    #modal-menu-laptop {
        font-size: 3.8835vw/* 1rem */;
    }

    #modal-menu-laptop .modal-menu-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .modal-menu-laptop {
        transition: right 0.5s ease-in-out;
    }

    .modal-registration-block-wrapper {
        width: 100%;
        font-size: 4vw;
        /* 6rem */
        /* height: 23.301vw */;
        height: 15.35vw;
        padding: 5.82525vw/* 1.5rem */;
        min-width: auto;
        background-color: #2a4961; /* Same as top bar on docs site */
        transition: height 0.5s;
    }

    .modal-registration-block-wrapper.--signed-in {
        padding: 0;
        height: 30.7vw;
    }

    .modal-registration-block-title {
        font-size: 5.82525vw/* 1.5rem */;
    }

    .modal-registration-block-subtitle {
        font-size: 3.49515vw/* 0.9rem */;
        font-weight: 300;
    }

    .modal-registration-block-logo-wrapper svg {
        width: 14.563125vw/* 3.75rem */;
    }

    .modal-registration-block-input {
        padding: 0.6510625vw/* 0.625rem */ 0.52085vw/* 0.5rem */;
        font-size: 0.9114875vw/* 0.875rem */;
        height: 2.50008vw/* 2.4rem */;
    }

    .modal-registration-block-input::placeholder {
        font-size: 0.9114875vw/* 0.875rem */;
    }

    .modal-registration-block-btn {
        padding: 0.52085vw/* 0.5rem */ 0;
        font-size: 0.781275vw/* 0.75rem */;
        margin-top: 1.0417vw; /* 1rem */
        height: 2.50008vw/* 2.4rem */;
    }

    .modal-registration-block-btn.button--sign-in-google {
        margin-top: 0.52085vw/* 0.5rem */;
    }

    .modal-menu-wrapper {
        width: 100%;
        height: 100%;
        padding-top: 0;
        padding-bottom: 7vw;
        overflow-y: auto;
    }

    .modal-more {
        font-size: 12vw;
        margin-top: 6vw;
        margin-bottom: 6vw;
    }

    .menu-footer-section {
        padding-top: 4vw;
        margin-top: 4vw;
    }
    .menu-footer-section-with-border {
        padding-top: 8vw;
        margin-top: 12vw;
    }

    .menu-separator {
        margin: 3vw 0;
    }

    .footer-nav-item-link {
        font-size: 3vw;
    }

    .modal-footer-nav-menu .footer-nav-item-link {
        font-size: 4vw;
        margin-bottom: 2vw;
    }

    .modal-footer-sn-link {
        width: 12vw;
        height: 12vw;
    }

    .modal-footer-sn-link svg {
        width: 7vw;
        height: auto;
    }

    .contacts-company-name,
    .contacts-address,
    .contacts-email {
        margin-bottom: 2vw;
    }

    .mobile-signed-in-container,
    .mobile-signed-in-container a,
    .mobile-signed-out-container,
    .mobile-signed-out-container a,
    .mobile-signed-in-container .mdl-button,
    .mobile-signed-in-container .mdl-button {
        font-size: 4vw;
        font-weight: 300;
        line-height: normal;
        color: #fff;
    }

    /* overwrite font size from md_home.css */
    .page-home .mobile-signed-in-container .plan-block {
        font-size: 4vw;
    }

    .mobile-signed-in-container .mdl-button {
        padding: 0 4vw;
        text-align: right;
    }

    .mobile-signed-in-container {
        width: 100%;
        background-color: #f5f5f5;
    }

    .mobile-signed-in-container .plan-block {
        padding-right: 3.8835vw; /* 1rem */
        display: flex;
        align-items: center;
    }

    .mobile-signed-in-container .status {
        margin: 0 1vw;
    }

    .mobile-signed-in-container .mdl-ripple {
        background-color: #fff;
    }

    .mobile-signed-in-container .as-row {
        /* 3rem */
        /* height: 11.6505vw; */
        height: 15.35vw;
        padding-left: 3.8835vw; /* 1rem */
        padding-right: 10vw;
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        background-color: rgba(42, 73, 97, 0.85);
    }

    .mobile-signed-in-container .as-row.as-top-row {
        /* border-bottom: 1px solid rgba(255,255,255,.12); */
        background-color: rgba(42, 73, 97, 1); /* #2a4961 */
    }

    .mobile-signed-in-container a.button--title,
    .mobile-signed-in-container a.button--upgrade {
        display: inline-block;
        position: relative;
        line-height: 11.6505vw/* 3rem */;
    }
    .mobile-signed-in-container a.button--title {
        padding-right: 3.8835vw/* 1rem */;
    }
    .mobile-signed-in-container a.button--upgrade {
        padding-left: 3.8835vw/* 1rem */;
    }

    .floating-menu-container {
        height: 15.3vw; /* same as .header */
        padding-right: 1vw;
    }
    .floating-menu-container .button--menu svg {
        fill: #fff;
        transition: none;
    }
    .floating-menu-container .button--menu.as-active svg {
        fill: #fff;
        transition: none;
    }
    /* language selector */
    .header-language-selector .md-header__option .md-select .md-select__inner {
        left: auto;
        right: -100%;
    }
    .header-language-selector .md-header__option .md-select .md-select__inner {
        left: auto;
        right: -100%;
    }
    .header-language-selector .md-select__inner:after {
        left: 80%;
    }
    .modal-menu-close-wrapper.--mobile {
        display: flex;
    }
}

@media only screen and (max-width: 360px) and (max-height: 650px) {
    .menu-multi-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}