.site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.site-learn_history {
    display: flex;
    /* [CL] was min-height: 97.8vh — a fixed-percentage approximation that doesn't actually
       account for the margin-top below, so on most screen heights the wrapper (and the footer
       pushed by .site-content's flex: 1) fell short of the viewport bottom, leaving a gap.
       calc() ties the height precisely to that margin regardless of viewport size. */
    min-height: calc(100vh - 20px);
    flex-direction: column;
    margin-top: 20px;
}

.site-content {
    flex: 1;
}

/* [CL] #chat-container (rendered by syngli_header.php for privilege > 1 users) sits in normal
   flow as a sibling right after the page's main wrapper — but syngli_chat.css (which sets
   position: fixed, taking it out of flow) is never actually loaded anywhere, so it falls back
   to default <ul> margin/padding and consumes real vertical space even with no chat content,
   pushing the visible bottom of the page past the footer (e.g. on the stats/courses pages).
   :empty keeps this collapsed only while there's no chat content, in case the chat feature's
   own styling is wired up properly later. */
#chat-container:empty {
    margin: 0;
    padding: 0;
}

.container-fluid {
    margin: 0;
    padding: 0;
}

.navbar {
    z-index: 3;
}

.navbar-brand {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    border: solid 1px transparent;
}

.navbar-brand > img {
    height: 38px;
}

.navbar-brand:focus {
    outline: none;
    border: solid 1px #1C96CA;
}

.navbar-default {
    color: #fff;
    font-size: 18px;
}

#navbar-brand_dolphin {
    padding-right: 3px;
    padding-top: 2px;
    margin-top: 0px;
    float: left;
    height: 44px;
}

@media (max-width: 480px), (max-height: 480px) {
    .navbar-brand {
        padding-top: 10px;
        padding-left: 1vw;
        padding-right: 0;
    }

    .navbar-brand > img {
        height: 30px;
    }

    #navbar-brand_dolphin {
        padding-top: 0px;
        margin-top: -3px;
        height: 40px;
    }
}

.navbar-nav {
    margin: 0 !important;
}

/* header tabs color */
.navbar-default .navbar-nav > li > a {
    color: rgba(10, 12, 28, 0.63);
    border: solid 1px transparent;
}

@media screen and (max-height: 800px) and (max-width: 425px) {
    .navbar-default .navbar-nav > li > a {
        font-size: max(7px, 2.7vw);
    }

    .sg-dropdown-menu {
        font-size: max(7px, 2.7vw);
    }
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a:hover,
/*.navbar-default .navbar-nav > .active > a:focus {*/
/*    outline: none;*/
/*    border: solid 1.5px #1C96CA;*/
/*}*/

/* current header tab color */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #1C96CA;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    font-family: 'source_sans_probold';
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    outline: none;
    border: solid 1px #1C96CA;
    font-weight: bold;
}

@media (max-width: 768px) {
    .navbar-default .navbar-nav > li.beta_user,
    .navbar-default .navbar-nav > li.signin,
    .navbar-default .navbar-nav > li.signup {
        margin-right: inherit;
    }
}

.navbar-default .navbar-nav > li.beta_user > a,
.navbar-default .navbar-nav > li.signin > a,
.navbar-default .navbar-nav > li.signup > a {
    /*font-weight: bold;*/
    color: black;
    -webkit-font-smoothing: antialiased;
}

.navbar-default .navbar-nav > li.beta_user > a:hover,
.navbar-default .navbar-nav > li.signin > a:hover,
.navbar-default .navbar-nav > li.signup > a:hover {
    color: #27AAE1
}

/* Dropdown menu items */

.dropdown-menu {
    font-size: 16px;
    overflow-y: scroll;
    overflow-x: hidden;
    position: absolute;
    max-height: 200px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background-color: white;
    color: red;
}

/* Dropdown menu items */
.dropdown-menu > li > a {
    background-color: white;
    color: rgba(10, 12, 28, 0.63);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    color: red;
    background-color: white;
}

.caret {
    margin-left: 7px;
    border-top: 6px solid;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;

}

#menunav_open_collapsed {
    display: none;
}

#menunav_open_collapsed > li {
    max-width: 100%;
}

#menunav_open_expanded,
#socialnav_buttons {
    display: block;
}

@media (max-width: 1184px) {
    #menunav_open_collapsed {
        display: inline-flex;
        float: right !important;
        margin: auto;
    }

    #menunav_open_expanded,
    #socialnav_buttons {
        display: none;
    }

    .navbar {
        /*overflow-x:hidden;*/
    }
}

@media (max-width: 768px) {
    .nav > li:active {
        background-color: #aaa;
    }

    .nav > li:active > ul > li:active {
        background-color: #fff;
    }
}

.navbar a {
    text-decoration: none;
}

.navbar a:hover {
    text-decoration: none;
}


@media (max-width: 1300px) {
    .navbar-nav > li > a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/*@media (max-width: 1500px) {*/
/*    #navbar_container {*/
/*        margin-left: 2%;*/
/*        width: 98%;*/
/*    }*/
/*}*/

@media (max-width: 480px) {
    #navbar_container {
        margin-left: 1%;
        width: 99%;
    }

    .navbar-toggle {
        margin-right: 0px;
    }
}

.navbar-toggle .caret {
    margin-right: 2px;
}

#topbar {
    max-height: 500px;
    z-index: 5;
}

.currency_display_container {
    height: 100%;
    padding-top: 13px;
    font-size: 18px;
    cursor: default;
}

.currency_display {
    height: 100%;
    width: 50px;
    padding-left: 10px;
    padding-right: 10px;
    color: black;
}

.currency_display img {
    height: 25px;
}

.all-caps {
    text-transform: uppercase;
}


#help_content {
    min-height: calc(100vh - 182px);
}

#password_reset_content {
    min-height: calc(100vh - 239px);
}

#password_reset_email_page_content {
    min-height: calc(100vh - 239px);
}

#password_result_email_result_page_content {
    min-height: calc(100vh - 227px);
}

.navbar-header {
    float: left !important;
    margin-left: 90px;
    position: relative;
}


.navbar-nav > li {
    float: left !important;
}

.navbar-right {
    float: right !important;
}

#nav-bar-wrapper{
    margin-right: 84px;
}

@media only screen and (max-width: 880px) {
    #nav-bar-wrapper {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 885px) {
    .navbar-header {
        margin-left: 10px;
    }

    #nav-bar-wrapper {
        margin-right: 10px;
    }
}

@media (max-width: 640px) {
    .navbar-header {
        margin-left: 0;
    }

    #nav-bar-wrapper {
        margin-left: 25px;
        margin-right: 0;
        justify-content: left;
    }
}

@media (max-width: 600px) {
    #nav-bar-wrapper {
        margin-left: 20px;
    }

    .home_link {
        display: none !important;
    }
}

@media (max-width: 540px) {
    #nav-bar-wrapper {
        margin-left: 0;
    }
}

#profile_image_a {
    padding-top: 5px;
    padding-bottom: 5px;
}

@media (max-width: 1000px) {
    #syngli_logo {
        display: none;
    }
}

.inkles {
    line-height: 20px;
    padding: 16px 15px 10px 10px !important;
}

.inkle_reward {
    color: #A88C66;
}

.header_inkle {
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 7px;
}

@media only screen and (max-width: 768px) {
    .header_inkle {
        display: none;
    }

    .inkles {
        padding: 11px 15px 10px 10px;
    }
}

.inkles_label {
    color: rgba(10, 12, 28, 0.63);
    border: solid 1px transparent;
}

.inkles:hover {
    color: #1C96CA;
    cursor: pointer;
}

.sg-dropdown-list {
    display: none;
    position: absolute;
    min-width: 150px;
    background: white;
    border: 1px solid whitesmoke;
    padding-top: 10px;
    padding-bottom: 10px;
}

.sg-dropdown-menu {
    padding-left: 18px;
    margin-bottom: 10px;
    cursor: pointer;
}

.sg-dropdown > a {
    padding: 15px 15px 10px 10px !important;
}

@media (max-width: 640px) {
    .sg-dropdown > a {
        padding: 15px 15px 0 0 !important;
    }
}

.sg-dropdown-item {
    color: rgba(10, 12, 28, 0.63);
    font-size: 0.9em;
}

.sg-dropdown-item:hover, .user_name:hover {
    color: #1C96CA;
    text-decoration: none;
}

.sg-dropdown-selected {
    color: #1C96CA;
    font-family: 'source_sans_probold', serif;
}

#account-dropdown-list {
    padding-top: 10px;
    padding-bottom: 10px;
    width: 200px;
    left: -105px;
}

.user_name {
    color: rgba(10, 12, 28, 0.63);
    font-size: 0.8em;
    text-transform: none;
}

.current_user, .current_page {
    color: #1C96CA;
    font-family: 'source_sans_probold', serif;
}

.sg-dropdown-header.active, .sg-dropdown-item.active {
    color: #1C96CA !important;
    font-family: 'source_sans_probold', serif;
}

.nav_profile_image {
    border-radius: 50%;
}

#thumbnail_search_input {
    width: 99%;
    margin: 2px;
}

@media only screen and (max-width: 785px) {
    #equivMoney {
        display: none;
    }
}

@media (max-height: 835px) {
    .signin-form {
        height: 550px;
        overflow: initial !important;
    }
}

@media (max-height: 835px) {
    .signup-form {
        height: 550px;
        overflow: initial !important;
    }
}