.megamenu-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    transition: z-index 0s 2s;
}

.megamenu-container .col-xs-12.col-md-2 {
    display: none;
}

.megamenu-container.open {
    z-index: 99999;
    transition: z-index 0s;
}

.megamenu-container .menu-options {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    justify-content: center;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    transition: all 1s 0.75s ease;
    font-family: "Oswald";
}

.megamenu-container.open .menu-options {
    width: 100%;
    transition: all 0.5s ease;
}

.megamenu-container li,
.megamenu-container.open li {
    min-width: 20rem;
    color: #12A6C2;
    text-transform: uppercase;
    text-decoration: none;
}

.megamenu-container .primary {
    margin-top: 4rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(10, 157, 188, 0.5);
}

.megamenu-container .primary li {
    font-size: 1.125rem;
    font-weight: 400;
    padding: 0.5rem 1.25rem;
    transition-delay: 0;
    transition-duration: 0.5s;
    -webkit-transition: font-size 0.3s;
    -moz-transition: font-size 0.3s;
    transition: font-size 0.3s;
    height: 2.5rem;
}

.megamenu-container .secondary {
    padding-bottom: 4rem;
}

.megamenu-container .secondary li {
    font-size: 1rem;
    font-weight: 300;
    padding: 0.5rem 1rem;
    height: 2.25rem;
}

.megamenu-container [data-option] {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.megamenu-container.open [data-option] {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.megamenu-container.open [data-option][data-option="1"] {
    transition: all 0.5s 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="2"] {
    transition: all 0.5s 0.40s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="3"] {
    transition: all 0.5s 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="4"] {
    transition: all 0.5s 0.50s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="5"] {
    transition: all 0.5s 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="6"] {
    transition: all 0.5s 0.60s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="7"] {
    transition: all 0.5s 0.65s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="8"] {
    transition: all 0.5s 0.70s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="9"] {
    transition: all 0.5s 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="10"] {
    transition: all 0.5s 0.80s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container.open [data-option][data-option="11"] {
    transition: all 0.5s 0.85s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.megamenu-container [data-option][data-reverse-option="1"] {
    transition: all 0.5s 0.55s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="2"] {
    transition: all 0.5s 0.50s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="3"] {
    transition: all 0.5s 0.45s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="4"] {
    transition: all 0.5s 0.40s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="5"] {
    transition: all 0.5s 0.35s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="6"] {
    transition: all 0.5s 0.30s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="7"] {
    transition: all 0.5s 0.25s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="8"] {
    transition: all 0.5s 0.20s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="9"] {
    transition: all 0.5s 0.15s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="10"] {
    transition: all 0.5s 0.10s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

.megamenu-container [data-option][data-reverse-option="11"] {
    transition: all 0.5s 0.10s cubic-bezier(0.895, 0.03, 0.685, 0.22);
}

/* Add spacer between secondary menu categories */
.megamenu-container .secondary [data-option="5"] {
    margin-bottom: 0;
}

.megamenu-container.open .primary [data-option][data-reverse-option] span,
.megamenu-container.open .secondary [data-option][data-reverse-option] span {
    transition: all 0.25s !important;
}

.megamenu-container.open .primary li span:hover {
    color: #ff7400;
    padding-left: 0.25rem;
}

.megamenu-container.open .secondary li span:hover {
    color: #ff7400;
    padding-left: 0.25rem;
}

/* Menu Trigger and Animation */
.megamenu-trigger {
    position: relative;
    height: 3rem;
    width: 3rem;
    text-align: center;
}

.megamenu-trigger__icon {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    width: 1rem;
    height: 0.125rem;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    background-color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 1);
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    transition: background-color 0.3s;
}

.megamenu-trigger__icon::before,
.megamenu-trigger__icon:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 1);
    background-color: rgba(255, 255, 255, 1);
    right: 0;
    -webkit-transition: -webkit-transform .3s, top .3s, background-color 0s;
    -moz-transition: -moz-transform .3s, top .3s, background-color 0s;
    transition: transform .3s, top .3s, background-color 0s;
}

.megamenu-trigger__icon::before {
    top: -0.25rem;
}

.megamenu-trigger__icon::after {
    top: 0.25rem;
}

.megamenu-trigger__icon.is-clicked {
    background-color: rgba(0, 0, 0, 0);
}

.megamenu-trigger__icon.is-clicked::before,
.megamenu-trigger__icon.is-clicked::after {
    background-color: rgba(255, 255, 255, 1);
}

.megamenu-trigger__icon.is-clicked::before {
    top: 0;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -ms-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.megamenu-trigger__icon.is-clicked::after {
    top: 0;
    -webkit-transform: rotate(225deg);
    -moz-transform: rotate(225deg);
    -ms-transform: rotate(225deg);
    -o-transform: rotate(225deg);
    transform: rotate(225deg);
}

.megamenu-container .secondary {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(10, 157, 188, 0.5);
}

.nav-icons {
    position: relative;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(0, 0, 0, 0.95);
    text-align: center;
    display: none;
}

.nav-icons svg {
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;
    margin: 0 2rem;
}

/* iPhone6. Above 23rem (368px) */
@media only screen and (min-width: 23rem) {
    .megamenu-trigger__icon {
        width: 1.5rem;
        height: 0.125rem;
    }

    .megamenu-trigger__icon::before {
        top: -0.35rem;
    }

    .megamenu-trigger__icon::after {
        top: 0.35rem;
    }

    .megamenu-container .primary {
        margin-top: 4rem;
    }

    .megamenu-container .primary li {
        font-size: 1.25rem;
        height: 2.5rem;
    }

    .megamenu-container .secondary li {
        font-size: 1rem;
        height: 2.25rem;
    }
}

/* iPhone6+. Above 28rem (414px) */
@media only screen and (min-width: 25.875rem) {}

/* Extra Small. Above 32rem (512px) */
@media only screen and (min-width : 32rem) {}

/* Medium. Above 48rem (768px) */
@media only screen and (min-width: 48rem) {
    .megamenu-trigger__icon {
        width: 2rem;
        height: 0.125rem;
    }

    .megamenu-trigger__icon::before {
        top: -0.5rem;
    }

    .megamenu-trigger__icon::after {
        top: 0.5rem;
    }

    .megamenu-container .primary {
        border: 0;
        margin-top: 4rem;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .megamenu-container .secondary {
        padding-bottom: 1rem;
    }

    .megamenu-container .primary li {
        font-size: 2.25rem;
        height: 4rem;
        padding: 0.5rem 5.75rem;
    }

    .megamenu-container .secondary li {
        font-size: 1.5rem;
        padding: 0.5rem 5.75rem;
        height: 3rem;
    }

    .megamenu-container .secondary {
        border-bottom: 0 solid rgba(10, 157, 188, 0.5);
    }

    .nav-icons svg {
        height: 2rem;
        width: 2rem;
    }
}

/* Large. Above 64rem (1024px) */
@media only screen and (min-width: 64rem) {
    .megamenu-container .col-xs-12.col-md-2 {
        display: block;
    }

    .megamenu-trigger {
        width: 5rem;
    }

    .megamenu-trigger__icon {
        width: 2rem;
        height: 0.125rem;
    }

    .megamenu-trigger__icon::before {
        top: -0.5rem;
    }

    .megamenu-trigger__icon::after {
        top: 0.5rem;
    }

    /* Add spacer between secondary menu categories */
    .megamenu-container .secondary [data-option="4"] {
        margin-bottom: 4rem;
    }

    .megamenu-container .primary {
        margin-top: 0;
    }

    .megamenu-container .primary li {
        padding: 0.5rem 0.75rem;
        height: 4.5rem;
    }

    .megamenu-container .secondary {
        margin-bottom: 0;
    }

    .megamenu-container .secondary li {
        font-size: 1.25rem;
        padding: 0.5rem 0;
        height: 2.5rem;
    }

    .nav-icons {
        position: absolute;
        right: 0;
        width: 18rem;
        align-self: center;
        justify-content: flex-end;
        z-index: 999999999;
        padding: 7rem;
        background-color: transparent;
    }

    .nav-icons svg {
        display: block;
        height: 1.5rem;
        width: 1.5rem;
        margin: 1.5rem 1.125rem;
    }

    .nav-icons svg.icon-3d-buildings {
        width: 2.5rem;
        height: 2.5rem;
        margin: 1.5rem 0.25rem;
    }
}

/* Extra large. Above 80rem (1280px) */
@media only screen and (min-width: 80rem) {
    .nav-icons svg.icon-3d-buildings {
        width: 3rem;
        height: 3rem;
    }
}

/* iPad Pro Landscape */
@media only screen and (min-device-width: 1366px) and (max-device-height: 1024px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: landscape) {}

/* iPad Pro Portrait */
@media only screen and (min-device-width: 1024px) and (max-device-height: 1366px) and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) {}
