.cd-section {
    padding: 2em;
    text-align: center;
    position: absolute;
    top: 140%;
    width: 100%;
}

.cd-bouncy-nav-trigger {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 10px #171718;
}

.cd-bouncy-nav-modal {
    position: fixed;
    z-index: 10001;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 35, 37, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0.6s, visibility 0s 0.9s;
}

.cd-bouncy-nav-modal.fade-in {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.1s 0s, visibility 0s 0s;
}

.cd-bouncy-nav-modal .cd-close {
    display: block;
    position: fixed;
    top: 20px;
    right: 5%;
    width: 44px;
    height: 44px;
    /* image replacement */
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    background: url("../img/cd-icon-close.svg") no-repeat center center;
    transform: scale(0) translateZ(0);
    transition: transform 0.3s 0s, visibility 0s 0.3s;
}

.cd-bouncy-nav-modal.fade-in .cd-close {
    transform: scale(1);
    transition: transform 0.3s 0s, visibility 0.3s 0s;
}

@media only screen and (min-width: 1170px) {
    .cd-bouncy-nav-modal .cd-close {
        top: 60px;
    }
}

.cd-bouncy-nav {
    position: absolute;
    left: 50%;
    top: 50vh;
    transform: translateX(-50%) translateY(-50%);
    width: 90%;
    max-width: 300px;
    list-style: none;
}

.cd-bouncy-nav li {
    width: 50%;
    float: right;
    transform: translateY(100vh);
    text-align: center;
}

.is-visible .cd-bouncy-nav li {
    /* used to assign a tranlsateY value when the animation is over */
    transform: translateY(0);
}

.fade-in .cd-bouncy-nav li {
    animation: cd-move-in 0.4s;
}

.fade-out .cd-bouncy-nav li {
    animation: cd-move-out 0.4s;
}

.fade-in .cd-bouncy-nav li, .fade-out .cd-bouncy-nav li {
    animation-fill-mode: forwards;
}

.fade-in .cd-bouncy-nav li:nth-of-type(2), .fade-out .cd-bouncy-nav li:nth-of-type(2) {
    animation-delay: 0.1s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(3), .fade-out .cd-bouncy-nav li:nth-of-type(3) {
    animation-delay: 0.15s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(4), .fade-out .cd-bouncy-nav li:nth-of-type(4) {
    animation-delay: 0.25s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(5), .fade-out .cd-bouncy-nav li:nth-of-type(5) {
    animation-delay: 0.3s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(6), .fade-out .cd-bouncy-nav li:nth-of-type(6) {
    animation-delay: 0.4s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(7), .fade-out .cd-bouncy-nav li:nth-of-type(7) {
    animation-delay: 0.45s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(8), .fade-out .cd-bouncy-nav li:nth-of-type(8) {
    animation-delay: 0.5s;
}

.fade-in .cd-bouncy-nav li:nth-of-type(9), .fade-out .cd-bouncy-nav li:nth-of-type(9) {
    animation-delay: 0.55s;
}

.cd-bouncy-nav a {
    display: inline-block;
    min-width: 80px;
    position: relative;
    padding: 90px 0px 30px 0px;
    color: #ffffff;
    height: 170px;
}

.cd-bouncy-nav a::before {
    /* icons */
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background-color: #d8a143;
    background-image: url("../img/tdbr-icons.png");
    background-repeat: no-repeat;
    background-position: 0 0;
}

.cd-bouncy-nav a:hover::before {
    background-color: #DC965A;
}

.cd-bouncy-nav li:nth-of-type(2) a::before {
    background-position: -80px 0;
}

.cd-bouncy-nav li:nth-of-type(3) a::before {
    background-position: -160px 0;
}

.cd-bouncy-nav li:nth-of-type(4) a::before {
    background-position: -240px 0;
}

.cd-bouncy-nav li:nth-of-type(5) a::before {
    background-position: -320px 0;
}

.cd-bouncy-nav li:nth-of-type(6) a::before {
    background-position: -400px 0;
}

.cd-bouncy-nav li:nth-of-type(7) a::before {
    background-position: -480px 0;
}


.cd-bouncy-nav li:nth-of-type(8) a::before {
    background-position: -560px 0;
}

.cd-bouncy-nav li:nth-of-type(9) a::before {
    background-position: -640px 0;
}

@media only screen and (min-width: 768px) {
    .cd-bouncy-nav {
        max-width: 450px;
    }

    .cd-bouncy-nav li {
        width: 33.33%;
    }

    .fade-in .cd-bouncy-nav li:nth-of-type(1), .fade-out .cd-bouncy-nav li:nth-of-type(1) {
        animation-delay: 0.1s;
    }

    .fade-in .cd-bouncy-nav li:nth-of-type(2), .fade-out .cd-bouncy-nav li:nth-of-type(2) {
        animation-delay: 0s;
    }

    .fade-in .cd-bouncy-nav li:nth-of-type(4), .fade-out .cd-bouncy-nav li:nth-of-type(4) {
        animation-delay: 0.3s;
    }

    .fade-in .cd-bouncy-nav li:nth-of-type(5), .fade-out .cd-bouncy-nav li:nth-of-type(5) {
        animation-delay: 0.25s;
    }

}

@keyframes cd-move-in {
    0% {
        transform: translateY(100vh);
    }
    65% {
        transform: translateY(-1.5vh);
    }
    100% {
        transform: translateY(0vh);
    }
}

@keyframes cd-move-out {
    0% {
        transform: translateY(0vh);
    }
    100% {
        transform: translateY(-100vh);
    }
}
