#main-header,
#main-nav {
    -webkit-transition: background-color .5s;
    -moz-transition: background-color .5s;
    -ms-transition: background-color .5s;
    -o-transition: background-color .5s;
    transition: background-color .5s;
}

body:not(.sticky-header) #main-header,
body:not(.sticky-header) #main-nav,
body:not(.sticky-header) #top-header {
    background-color: transparent !important;
}

#top-header {
    width: 100%;
}

body:not(.sticky-header) #main-header {
    top: 25px;
}

#main-header,
#top-header {
    position: absolute;
    z-index: 999;
}

body.sticky-header section#secondary-header {
    padding-top: 0;
}

#team-photo {
    margin: 0 auto;
    width: 100%;
    height: auto;
    z-index: 999;
}

.member-tooltip {
    z-index: 999;
    width: auto;
    padding: 5px 10px;
    opacity: 0;
    z-index: -999;
    position: absolute;
    background: #fff;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
}

.member-tooltip .name {
    font-size: 20px;
    border-bottom: 1px solid lightgray
}

.container {
    position: relative;
}

#team {
    overflow: hidden;
    height: auto;
}

.member {
    position: absolute;
    width: 0;
    left: 100%;
    transition: 1s left, 1s width;
    overflow: hidden;
}

.member .member-inside .back {
    font-size: 25px;
    display: block;
    width: 150px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(0,0,0,.05);
    border-radius: 20px;
    margin-bottom: 20px;
    cursor: pointer;
}

.member .member-inside img {
    float: left;
    width: 20%;
}

.member .member-inside .info {
    float: left;
    width: 80%;
    padding: 20px;
}

#about .small-text {
    font-style: italic;
    border: 1px solid lightgray !important;
    padding: .5rem;
    margin-bottom: 1rem;
}


@media only screen and (max-width: 767px) {

    body:not(.sticky-header) #main-nav {
        background-color: #fff !important;
    }

    body:not(.sticky-header) #main-header #main-nav .nav-link {
        color: #000;
    }

    body:not(.sticky-header) #main-header #main-nav .nav-link:hover {
        color: rgba(0, 0, 0, .5);
    }

}

@media only screen and (min-width: 767px) {

    body:not(.sticky-header) #main-header #main-nav .nav-link {
        color: #fff;
        border-bottom: none;
    }

    body:not(.sticky-header) #main-header #main-nav .nav-link:hover {
        color: rgba(255,255,255,.5);
        border-bottom: none;
    }

    body:not(.sticky-header) #main-nav .navbar-brand {
        display: none;
    }

}
