/*========== Small Tablet devices and up ==========*/
@media (min-width: 480px) {
}

/*========== Large Tablet devices and up ==========*/
@media (min-width: 768px) {
}

/*========== Small Laptop devices and up ==========*/
@media (min-width: 992px) {
    /* Global */
    .main-navigation {
        display: inline-block;
        position: relative;
        vertical-align: top;
        width: auto;
    }
    .main-navigation a {
        -webkit-transition: opacity 0.35s ease, color 0.35s ease;
        -moz-transition: opacity 0.65s ease, color 0.35s ease;
        -o-transition: opacity 0.65s ease, color 0.35s ease;
        transition: opacity 0.65s ease, color 0.35s ease;
    }
    .main-navigation a:hover {
        color: #fff;
    }
    .main-navigation li.has-child > a {
        padding-right: 0;
        max-width: 100%;
    }

    /* Top level */
    .main-navigation .level-1 + .level-1 {
        margin-left: -6px;
    } /* Removes space between li's */
    .main-navigation .level-1:first-child > a {
        padding-left: 0;
    }
    .main-navigation .level-1:first-child > .sublevel-wrapper {
        left: -15px;
    } /* Aligns the drop down items with the parent */

    /* Sub navigation */
    .main-navigation .sublevel-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        display: block;
        width: 100%;
        width: 275px;
        z-index: -1;
        height: 0;
        visibility: hidden;
        overflow: hidden;
    } /* Hides the sublevel when non active */
    .main-navigation .sublevel {
        background: #333333;
        -webkit-transform: translate(0, -100%);
        -moz-transform: translate(0, -100%);
        -ms-transform: translate(0, -100%);
        -o-transform: translate(0, -100%);
        transform: translate(0, -100%);
        -webkit-transition: all 0.35s ease;
        -moz-transition: all 0.65s ease;
        -o-transition: all 0.65s ease;
        transition: all 0.65s ease;
    }
    .main-navigation .sublevel li {
        display: block;
        width: 100%;
        text-align: left;
        z-index: 2;
        background: transparent;
    }

    /* 2nd level and descending levels */
    .main-navigation .level-2 a:first-child {
        padding: 12px 15px;
        line-height: 1.35;
        text-transform: none;
    }
    .main-navigation .level-2.has-child a:first-child {
        padding-right: 0;
    }
    .main-navigation .level-2 .transition-trigger:after {
        background-image: url("/assets/svg/arrow-right-white.svg");
    }
    .main-navigation .level-2 .sublevel-wrapper {
        left: 100%;
        top: 0;
    }
    .main-navigation .level-2 .sublevel {
        background: #fff;
        -webkit-transform: translate(-100%, 0);
        -moz-transform: translate(-100%, 0);
        -ms-transform: translate(-100%, 0);
        -o-transform: translate(-100%, 0);
        transform: translate(-100%, 0);
    }

    /* 3rd level and decending */
    .main-navigation .level-3 a:hover {
        color: #333333;
    }
    .main-navigation .level-3 .sublevel {
        background-color: #656565;
    }

    /* 4th level */
    .main-navigation .level-4 a:hover {
        color: #fff;
    }

    /* Active state */
    .main-navigation .active > a:hover {
        color: #ff9e18;
    }
    .main-navigation .active > .sublevel-wrapper {
        visibility: visible;
    }
    .main-navigation .active > .sublevel-wrapper.overflow-inactive {
        overflow: visible;
    }
    .main-navigation .active > .sublevel-wrapper > .sublevel {
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }
    .main-navigation .active.level-2 .transition-trigger:after {
        background-image: url("/assets/svg/arrow-right.svg");
    }

    /* Current */
    .main-navigation .current-ancestor > a,
    .main-navigation .current-ancestor > a:focus,
    .main-navigation .current-ancestor > a:active,
    .main-navigation .current-ancestor > a:hover {
        color: #ff9e18;
    }
    .main-navigation .current-ancestor > .transition-trigger:after {
        background-image: url("/assets/svg/arrow-right.svg");
    }
    .main-navigation .level-1.current-ancestor > .transition-trigger:after {
        background-image: url("/assets/svg/arrow-down.svg");
    }
}

/*========== Desktop devices and up ==========*/
@media (min-width: 1200px) {
    /* Sub navigation */
    .main-navigation .sublevel-wrapper {
        width: 300px;
    }
}
