*,
*:after,
*::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.container {
    padding: 80px;
}

#main-menu-title {
    position: fixed;
    right: 70px;
    bottom: 14px;
}

.bt-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-width: 0px;
    border-style: solid;
    border-color: var(--main-color);
    background-color: rgba(0,0,0,0);
    -webkit-backface-visibility: hidden;
    -webkit-transition: border-width 0.3s, background-color 0.3s, height 0s 0.3s;
    transition: border-width 0.3s, background-color 0.3s, height 0s 0.3s;
}

.bt-menu-open {
    z-index: 100;
}

    .bt-menu.bt-menu-open {
        height: 100%;
        border-width: 0px 0px 90px 0;
        background-color: rgba(0,0,0,0.5);
        -webkit-transition: border-width 0.3s, background-color 0.3s;
        transition: border-width 0.3s, background-color 0.3s;
    }

.bt-overlay {
    position: absolute;
    width: 100%;
}

.bt-menu-open .bt-overlay {
    height: 100%;
}

.bt-menu-trigger {
    position: fixed;
    right: 20px;
    bottom: 10px;
    z-index: 100;
    display: block;
    width: 35px;
    height: 50px;
    cursor: pointer;
    transition: bottom 0.3s;
}

    .bt-menu-trigger span {
        position: absolute;
        top: 50%;
        left: 0;
        display: block;
        width: 100%;
        height: 4px;
        background-color: var(--alt-secondary-color);
        font-size: 0px;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-transition: background-color 0.3s;
        transition: background-color 0.3s;
    }

.bt-menu-open .bt-menu-trigger {
    bottom: 20px;
    transition: bottom 0.3s;
}

.bt-menu-open .bt-menu-trigger span {
    background-color: transparent;
}

.bt-menu-trigger span:before,
.bt-menu-trigger span:after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--alt-secondary-color);
    content: '';
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}

.bt-menu-trigger span:before {
    -webkit-transform: translateY(-250%);
    transform: translateY(-250%);
}

.bt-menu-trigger span:after {
    -webkit-transform: translateY(250%);
    transform: translateY(250%);
}

.bt-menu-open .bt-menu-trigger span:before {
    -webkit-transform: translateY(0) rotate(45deg);
    transform: translateY(0) rotate(45deg);
}

.bt-menu-open .bt-menu-trigger span:after {
    -webkit-transform: translateY(0) rotate(-45deg);
    transform: translateY(0) rotate(-45deg);
}

.bt-menu ul {
    position: fixed;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .bt-menu ul:first-of-type {
        right: 0;
        bottom: 75px;
    }

    .bt-menu ul:nth-of-type(2) {
        right: 75px;
        bottom: 0px;
        max-height: 90px;
        display: flex;
    }

    .bt-menu ul:first-of-type li,
    .bt-menu ul li a {
        display: block;
    }

    .bt-menu ul:nth-of-type(2) li {
        display: inline-block;
        font-size: 0px;
        height: 90px;
        vertical-align: middle !important;
    }

    .bt-menu ul li {
        visibility: hidden;
        /*width: 90px;*/
        height: 85px;
        line-height: 90px;
        opacity: 0;
        -webkit-transition: -webkit-transform 0.3s, opacity 0.2s, visibility 0s 0.3s;
        transition: transform 0.3s, opacity 0.2s, visibility 0s 0.3s;
    }

    .bt-menu li a img {
        width: 70%;
        /*max-height: 48px;*/
        height: 48px;
    }

    /* First menu */
    .bt-menu ul:first-of-type li:first-child {
        -webkit-transform: translate3d(0,500%,0);
        transform: translate3d(0,500%,0);
    }

    .bt-menu ul:first-of-type li:nth-child(2) {
        -webkit-transform: translate3d(0,400%,0);
        transform: translate3d(0,400%,0);
    }

    .bt-menu ul:first-of-type li:nth-child(3) {
        -webkit-transform: translate3d(0,300%,0);
        transform: translate3d(0,300%,0);
    }

    .bt-menu ul:first-of-type li:nth-child(4) {
        -webkit-transform: translate3d(0,200%,0);
        transform: translate3d(0,200%,0);
    }

    .bt-menu ul:first-of-type li:nth-child(5) {
        -webkit-transform: translate3d(0,100%,0);
        transform: translate3d(0,100%,0);
    }

    /* Second menu */
    .bt-menu ul:nth-of-type(2) li:first-child {
        -webkit-transform: translate3d(300%,0,0);
        transform: translate3d(300%,0,0);
    }

    .bt-menu ul:nth-of-type(2) li:nth-child(2) {
        -webkit-transform: translate3d(200%,0,0);
        transform: translate3d(200%,0,0);
    }

    .bt-menu ul:nth-of-type(2) li:nth-child(3) {
        -webkit-transform: translate3d(100%,0,0);
        transform: translate3d(100%,0,0);
    }

.bt-menu.bt-menu-open ul:first-of-type li,
.bt-menu.bt-menu-open ul:nth-of-type(2) li {
    visibility: visible;
    opacity: 1;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.3s 0.1s;
    transition: transform 0.3s, opacity 0.3s;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

.bt-menu ul li a {
    display: block;
    outline: none;
    color: transparent;
    text-align: center;
    text-decoration: none;
    font-size: 0px;
}

    .bt-menu ul li a:before {
        color: #fff;
        font-size: 48px;
        opacity: 0.5;
        -webkit-transition: opacity 0.2s;
        transition: opacity 0.2s;
    }

    .bt-menu ul li a:hover:before,
    .bt-menu ul li a:focus:before {
        opacity: 1;
    }

@media screen and (max-height: 31.125em) {
    .bt-menu ul li a:before {
        font-size: 32px;
    }

    .bt-menu ul:first-of-type li {
        height: 60px;
        line-height: 60px;
    }

    .bt-menu ul:nth-of-type(2) li {
        width: 60px;
    }
}
