:root {
    --blue: #09558c;
    --red: #bc202e;
}

a,
a:hover {
	text-decoration: none;
	/*color: var(--red);*/
}

a:hover {

}

body {
    position: relative;
    min-height: 100vh;
    font-family: 'sohne', sans-serif;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    letter-spacing: 1.5px;
    background-color: #4C8574;
}

main, .main {
    flex: 1 0 auto;
    display: flex;
    flex-flow: column;
}

.boxed_width {
    max-width: 1240px;
    padding-left: 20px;
    padding-right: 20px;
    margin-right: auto;
    margin-left: auto;
}

.center_body {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

input:focus,
textarea:focus,
button:focus,
select:focus {
    outline: 0;
}


/*
Header
*/

header {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    padding: 20px;
    justify-content: flex-end;

}

.join_btn {
    color: #fff;
    background: #09403E;
    border-radius: 50px;
    padding: 5px 20px;
    cursor: pointer;
    font-weight: 400;
    transition: .3s;
}

.join_btn:hover {
    transform: scale(1.1);
}

.amb_li_btn {
    color: #09403E;
    background: transparent;
    border: 1px solid #09403E;
    border-radius: 50px;
    padding: 5px 20px;
    cursor: pointer;
    font-weight: 400;
    margin-right: 10px;
    transition: .3s;
}

.amb_li_btn:hover {
    color: #fff;
    background: #4BA791;
}

.nav_icon {
	display: none;
	right: 25px;
	top: 25px;
    height: 25px;
    z-index: 2;
}

.nav_icon a {
    display: -ms-flexbox;
    display: flex;
    width: 30px;
    position: relative;
}

.nav_icon a span {
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    user-select: none;
    height: 30px;
}

.nav_icon a span,
.nav_icon a span::before,
.nav_icon a span::after {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--red);
    transition: all .3s;
    border-radius: 3px;
}

.nav_icon a span::before,
.nav_icon a span::after {
    position: absolute;
    content: "";
}

.nav_icon a span::before {
    top: -8px;
}

.nav_icon a span::after {
    top: 8px;
}

.nav_icon.mnb_on a span {
    background-color: transparent;
}

.nav_icon.mnb_on a span::before {
    transform: translateY(8px) rotate(45deg);
}

.nav_icon.mnb_on a span::after {
    transform: translateY(-7px) rotate(-45deg);
}

/*
Homepage
*/

.leaderboard_bg {
    background-image: url(/assets/img/lb_bg.jpg);
    background-color: #4C8574;
    min-height: 100vh;
    width: 100%;
    background-position: top center;
    background-size: cover;
    padding-top: 100px;
    padding-bottom: 100px;
}

.lb_mw {
    width: 100%;
    max-width: 460px;
}

.hp_ttl {
    color: #fff;
    text-align: center;
    font-size: 24px;
    margin-bottom: 30px;
}

.lb_list_box {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lb_list_outer {
    position: relative;
    width: 100%;
}

.lb_list,
.lb_list_top {
    width: 100%;
}

.lb_list_top {
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lblt_toggle_wrap {
    border-radius: 50px;
    border: 1px solid #4BA791;
    background: #FFFFFF1A;
    padding: 5px;
}

.lblt_btn {
    padding: 5px 10px;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 12px;
}

.lblt_btn_active {
    background: #09403E;
    color: #4BA791;
    border-radius: 50px;
}

.lblt_search_wrap {
    width: 167px;
    height: 40px;
    border-radius: 50px;
    border: 1px solid #4BA791;
    background: #FFFFFF1A;
    padding: 2px;
    position: relative;
}

.lblt_search_input {
    font-size: 12px;
    background: transparent;
    border: 0;
    height: 100%;
    width: 100%;
    padding-left: 7px;
    color: #83C6B6;
}

.lblt_search_btn {
    position: absolute;
    width: 33px;
    height: 33px;
    top: 2px;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    background: #09403E;
    border: 0;

}

.lblt_search_btn span {
    font-size: 20px;
    color: #53B29C;
}

.lb_single {
    position: relative;
    display: flex;
    padding: 8px 20px;
    border: 1px solid #09403E;
    align-items: center;
    /*justify-content: space-between;*/
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(62, 103, 100, 0.5) 0%, rgba(13, 15, 18, 0) 83.65%);
    cursor: pointer;
}

.lb_single.lbs_active:after {
    content: '';
    position: absolute;
    background: #D6D6D6;
    height: 1px;
    width: 40px;
    right: -40px;
    top: 50%;
}

.lb_single_outer {
    margin-bottom: 10px;
}

.lb_single_outer:last-of-type {
    margin-bottom: 0;
}

.lbs_single_no_1 {
    border-color: #DBA550;
    background: linear-gradient(90deg, rgba(150, 143, 128, 0.45) 0%, rgba(48, 45, 41, 0) 74.04%);
}

.lbs_single_no_2 {
    border-color: #D6D6D6;
    background: linear-gradient(90deg, rgba(132, 128, 150, 0.45) 0%, rgba(42, 41, 48, 0) 86.54%);
}

.lbs_single_no_3 {
    border-color: #C58785;
    background: linear-gradient(90deg, rgba(197, 154, 133, 0.45) 0%, rgba(95, 74, 64, 0) 83.65%);
}

.lbs_single_no_1:before,
.lbs_single_no_2:before,
.lbs_single_no_3:before {
    content: '';
    position: absolute;
    left: 0;
    height: 70%;
    top: 15%;
    width: 7px;
}

.lbs_single_no_1:before {
    background-color: #DBA550;
}

.lbs_single_no_2:before {
    background-color: #D6D6D6;
}

.lbs_single_no_3:before {
    background-color: #C58785;
}


.lb_single p,
.lbs_rank_number {
    margin-bottom: 0;
    color: #CAD2D1;
}

.lbs_rank {
    width: 38px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-right: 20px;
}

.lbs_single_no_1 .lbs_rank,
.lbdt_rank_1 {
    background-image: url(/assets/img/badge_1.svg);
}

.lbs_single_no_1 .lbs_rank_number,
.lbdt_rank_1 .lbs_rank_number {
    color: #DBA550;
}

.lbs_single_no_2 .lbs_rank,
.lbdt_rank_2 {
    background-image: url(/assets/img/badge_2.svg);
}

.lbs_single_no_2 .lbs_rank_number,
.lbdt_rank_2 .lbs_rank_number {
    color: #D6D6D6;
}

.lbs_single_no_3 .lbs_rank,
.lbdt_rank_3 {
    background-image: url(/assets/img/badge_3.svg);
}

.lbs_single_no_3 .lbs_rank_number,
.lbdt_rank_3 .lbs_rank_number {
    color: #C58785;
}

.lbs_name {
    max-width: 160px;
}

.lbs_profile_img {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    overflow: hidden;
    margin-left: auto;
}

.lbs_profile_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lbs_fam_counter {
    width: 35px;
    text-align: center;
}

.lbs_fam_counter,
.lbs_fam_word {
    margin-left: 20px;
}

.lb_bottom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

.lb_page_btn {
    color: #446C6B;
    border: 1px solid #2C6E5F;
    border-radius: 50px;
    background: #FFFFFF1A;
    margin-left: 10px;
    padding: 1px 8.2px;
}

.lb_details_box {
    /*position: relative;*/
    position: absolute;
    width: 100%;
    right: -500px;
    top: 0;
    height: 100%;
    min-height: 500px;
}

.lb_details_box_inner {
    border: 1px solid #D6D6D6;
    border-radius: 17px;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
}

.lbd_top {
    display: flex;
}

.lbd_img_box {
    width: 115px;
    height: 115px;
    overflow: hidden;
    border-radius: 50%;
}

.lbd_img_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lbdt_info {
    width: calc(100% - 115px);
    padding-left: 20px;
    display: flex;
    flex-direction: column;
}

.lbdt_info_top {
    display: flex;
    align-items: flex-start;
}

.lbdtit_name {
    font-size: 30px;
    color: #CAD2D1;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 400;
}

.lbdt_rank {
    margin-right: 0;
    margin-left: auto;
}

.lbdt_info_bottom {
    margin-top: auto;
}

.lbdtib_fams,
.lbdtib_joined,
.lbd_text,
.lbd_trophies {
    margin-bottom: 0;
    color: #5CA090;
    font-weight: 400;
}

.lbdtib_fams_2 {
    font-size: 80%;
    color: #fff;
}

.lbd_text,
.lbd_trophies {
    margin-top: 30px;
}

.lbd_trophies {
    border: 1px solid #53B29C;
    background: #76D8CB33;
    padding: 15px;
    border-radius: 21px;
}


/*
JOIN PAGE
*/

.jp_logo {
    margin-bottom: 20px;
}

.lb_join_box {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.jp_ttl {
    font-weight: 600;
}

.jp_ttl:first-of-type {
    margin-bottom: 10px;
}

.join_text {
    color: #fff;
    font-weight: 400;
    text-align: left;
}

.join_form {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #09403E;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(62, 103, 100, 0.5) 0%, rgba(13, 15, 18, 0) 83.65%);
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.join_form .form-group {
    width: 100%;
}

.join_form .form-group.float_label .form-control {
    background: #FFFFFF1A;
    border: 1px solid #4BA791;
    color: #fff;
}

.join_form .form-group.float_label .form-control:focus {
    z-index: 1;
    position: relative;
    box-shadow: 0 0 0 1px #09403E;
    border-color: #09403E;
}

.join_form .form-group.float_label label {
    font-weight: 400;
    color: #fff;
}


.join_form .form-group.float_label label.float_label_active {
    color: #83C6B6;
}

.join_form .float_label_active + textarea.form-control:not(.input_nolabel) {
    padding-top: 40px;
}

.ajax_form_submit.join_btn {
    border: 0;
    font-size: 22px;
    font-family: 'sohne', sans-serif;
    margin: auto;
}

.ajax_form_response p {
    color: #83C6B6;
}

@media screen and (max-width: 1500px) {
    .lb_details_open {
        /*margin-left: 30px;*/
        max-width: 1040px;
    }
    .lb_list_outer {
        position: relative;
        display: flex;
        width: 100%;
    }
    .lb_details_box {
        position: relative;
        right: unset;
        margin-left: 20px;
        height: unset;
    }
    .lb_single.lbs_active:after {
        right: -20px;
        width: 20px;
    }
}

@media screen and (max-width: 768px) {
    .lb_details_open {
        /*margin-left: 30px;*/
        max-width: 500px;
    }
	.leaderboard_bg {
        background-image: url(/assets/img/lb_bg_mobile.jpg);
    }
    .lb_list_outer {
        flex-wrap: wrap-reverse;
    }
    .lb_details_box {
        position: relative;
        right: unset;
        margin-left: 0; 
        height: unset;
        min-height: auto;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .lb_single.lbs_active:after {
        right: unset;
        width: 1px;
        height: 10px;
        left: calc(50% - .5px);
        bottom: -10px;
        top: unset;
    }
}

@media screen and (max-width: 500px) {
    .hp_ttl {
        font-weight: 20px;
    }
    .lb_list_top.lb_mw {
        flex-direction: column;
    }
    .lblt_toggle_wrap {
        margin-right: auto;
    }
    .lblt_search_wrap {
        width: 100%;
        margin-top: 10px;
    }
	.lb_single {
        padding: 8px 10px;
        flex-wrap: wrap;
    }
    .lbs_fam_counter, .lbs_fam_word {
        margin-left: 5px;
    }
    .lbs_rank {
        margin-right: 10px;
        order: -1;
        margin-left: unset;
        /*margin-bottom: 10px;*/
    }
    .lbs_name {
        width: calc(100% - 98px);
        max-width: unset;
    }
    .lbs_profile_img {
        order: -1;
        margin-right: 10px;
        width: 40px;
        height: 40px;
    }
    .lbs_single_no_1:before, .lbs_single_no_2:before, .lbs_single_no_3:before {
        width: 4px;
    }
    .lbs_fam_counter, .lbs_fam_word {
        margin-top: 10px;
    }
    .lbd_img_box {
        width: 65px;
        height: 65px;
    }
    .lbdt_info {
        width: calc(100% - 65px);
    }
    .lbdtit_name {
        font-size: 24px;
    }
    .lb_details_box_inner {
        padding: 15px;
    }
    .lbdt_info_bottom {
        margin-top: 10px;
    }
}







