﻿/* Basic elements */
body {
    font-family: Montserrat, Arial, Helvetica, sans-serif !important;
}

/* Colors */
:root {
    /* Animal tier colors */
    --zero-tier-color: rgb(76, 77, 77);
    --zero-tier-light: rgba(76, 77, 77, .2);
    --amber-tier-color: rgb(255, 130, 0);
    --amber-tier-light: rgba(255, 130, 0, .2);
    --topaz-tier-color: rgb(0, 114, 206);
    --topaz-tier-light: rgba(0, 114, 206, .2);
    --ruby-tier-color: rgb(252, 50, 135);
    --ruby-tier-light: rgba(252, 50, 135, .2);
    --sapphire-tier-color: rgb(0, 32, 91);
    --sapphire-tier-light: rgba(0, 32, 91, .2);
    --emerald-tier-color: rgb(108, 194, 74);
    --emerald-tier-light: rgba(108, 194, 74, .2);
}

/* My Account Page */

/* DO NOT INCLUDE TEMP BG IN FINAL PRODUCT */
.temp-bg {
    padding: 5% 2%;
    background-color: #ff0000;
}

.main-container-jb {
    background-color: #ffffff;
    padding: 2%;
}

.my-account-title {
    font-weight: 700;
    font-size: 34px;
    line-height: 42px;
    color: #00acec;
}

.jb-green-btn-top {
    background-color: #006643;
    padding: 10px;
    font-weight: 600;
    font-size: 17px;
    color: #ffffff;
}

.jb-btn-container {
    padding: 5px;
}

.d-flex-top-jb {
    display: flex !important;
    justify-content: flex-end;
    align-content: center;
    height: 100%;
}

.my-account-blue-banner-title {
    background-color: #00ACEC;
    padding: 5px;
    font-weight: 600;
    font-size: 28px;
    line-height: 34px;
    color: #ffffff;
}

.jb-padding-0 {
    padding: 0px;
}

.modal-header-jb {
    border: 0 !important;
    color: #006643 !important;
}

.modal-header-button-jb {
    border: 0 !important;
    color: #006643 !important;
    text-decoration: none;
}

/* arch tier box */

.arch-tier-box {
    text-align: center;
    padding: 5% 2%;
}

.arch-tier-box-header-text {
    font-weight: 700;
    font-size: 24px;
}

.arch-tier-box-subheader-text {
    font-weight: 500;
    font-size: 22px;
    line-height: 27px;
}

/* Performance Tier Gauge */
@keyframes gauge-progress {
    0% {
        --percentage: 0;
    }

    100% {
        --percentage: var(--value);
    }
}

@property --percentage {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.performance-gauge {
    --percentage: var(--value);
    --primary: #808080;
    --secondary: #fff;
    --size: 100%;
    width: var(--size);
    aspect-ratio: 2 / 1;
    border-radius: 50% / 100% 100% 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: auto !important;
}

.tier-summary .performance-gauge {
    --size: 50%;
}

.performance-gauge-animate {
    animation: gauge-progress 2s 0.5s forwards;
}

.performance-gauge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0.75turn at 50% 100%, var(--primary) calc(var(--percentage) * 1% / 2), var(--secondary) calc(var(--percentage) * 1% / 2 + 0.1%));
    mask: radial-gradient(at 50% 100%, white 65%, transparent 65.5%);
    mask-mode: alpha;
    -webkit-mask: radial-gradient(at 50% 100%, #0000 65%, #000 65.5%);
    -webkit-mask-mode: alpha;
}

.performance-gauge-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
}

.performance-gauge.performance-gauge-1 {
    --primary: var(--amber-tier-color);
    --secondary: #fff;
}

.performance-gauge.performance-gauge-2 {
    --primary: var(--topaz-tier-color);
    --secondary: #fff;
}

.performance-gauge.performance-gauge-3 {
    --primary: var(--ruby-tier-color);
    --secondary: #fff;
}

.performance-gauge.performance-gauge-4 {
    --primary: var(--sapphire-tier-color);
    --secondary: #fff;
}

.performance-gauge.performance-gauge-5 {
    --primary: var(--emerald-tier-color);
    --secondary: #fff;
}
/* END Performance Tier Gauge */

/* arrow box */
.arrow-box-left {
    position: absolute;
    z-index: 0;
    top: 0%;
    right: 50%;
    width: 50%;
    height: 100%;
    padding: 2%;
}

.arrow-box-right {
    position: absolute;
    z-index: 0;
    top: 0%;
    left: 50%;
    width: 50%;
    height: 100%;
    text-align: right;
    padding: 2%;
}

.arrow-box-full-height {
    min-height: 300px;
}

.arrow-to-go-current-triangle {
    content: "";
    position: absolute;
    top: 0%;
    left: 50%;
    bottom: 0%;
    padding-right: 15%;
    z-index: 1;
    clip-path: polygon(0% 0%, 15% 50%, 0 100%);
}

.arrow-box-approved-apps-text {
    font-weight: 500;
    line-height: 12px;
    font-size: 10px;
    text-align: left;
}

.arrow-box-approved-apps-number {
    font-weight: 700;
    line-height: 29px;
    font-size: 24px;
    text-align: right;
    padding-right: 5%;
}

.arrow-box {
    position: relative;
    min-height: 40px;
    color: #ffffff;
}

.arrow-box-vector-img {
    height: 100%;
}

/* trophy box */
.trophy-box {
    background-color: #e8e8e8;
}

.trophy-box-header {
    text-align: center;
    font-weight: 700;
    font-size: 36px;
    line-height: 44px;
    color: #006643;
    padding: 5%;
}

.trophy-box-trophy-vector {
    height: 100%;
}

.trophy-box-entry {
    border-top: 1px solid #9A9A9A;
    padding: 2%;
}

.trophy-box-app-count {
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #4c4d4d;
}

.trophy-box-reward-amount {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #006643;
}

.trophy-box-achieved-date {
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #e29047;
}

.trophy-box-checkmark-bubble {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: auto;
    max-width: 35px;
}

.trophy-box-col {
}
/* Main Comp Container */
.jb-total-earnings-container {
    padding: 0 0 0 15px !important;
}

.jb-total-earnings-box {
    background-color: #006643;
    padding: 3%;
    position: relative;
}

.jb-total-comp-amount {
    text-align: center;
    font-weight: 700;
    font-size: 60px;
    line-height: 72px;
    color: #ffffff;
}

.jb-total-earnings-subheader {
    text-align: center;
    font-weight: 400;
    font-size: 24px;
    line-height: 30px;
    color: #ffffff;
}

.jb-total-earnings-flipper {
    position: absolute;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #ffffff;
    bottom: 5%;
    left: 5%;
}

.jb-app-count-box {
    background-color: #4c4d4d;
    color: #ffffff;
    height: 100%;
}

.jb-app-count-number {
    font-weight: 700;
    font-size: 42px;
    line-height: 51px;
    text-align: center;
}

.jb-app-count-subtext {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
}

.jb-app-box-padding {
    padding: 0px 0px 0px 1px !important;
}

.jb-app-count-subbox {
    background-color: #E8E8E8;
    bottom: 0px;
    width: 100%;
}

.jb-app-count-subbox-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #4c4d4d;
}

.jb-app-count-subbox-text-number {
    font-weight: 700;
    color: #006643;
    text-align: right;
    padding-right: 5px !important;
}

.jb-app-box-height-equalizer {
    flex: 1;
}

.jb-app-box-row-equalizer {
    display: flex;
    height: 100%;
}

.jb-comp-status-table {
    height: 100%;
}

.jb-app-box-interior {
    padding: 5%;
    justify-content: center;
    vertical-align: middle;
    height: 100%;
}

/* MTD Comp Table */
.jb-mtd-comp-table {
    width: 100%;
}

.jb-mtd-comp-green-table-data {
    background-color: #006643;
    font-weight: 500;
    font-size: 22px;
    line-height: 18px;
    padding: 1%;
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

.jb-mtd-comp-gray-table-data {
    background-color: #E8E8E8;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
    font-weight: 400;
    font-size: 22px;
    line-height: 18px;
    padding: 1%;
}

    .jb-mtd-comp-gray-table-data .jb-mtd-comp-gray-table-data-dollar-amount {
        padding-left: 5%;
        padding-right: 5%;
    }

/* YTD table */
.jb-ytd-comp-table {
    width: 100%;
}

.jb-ytd-comp-table-header {
    background-color: #006643;
    color: #ffffff;
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    line-height: 23px;
    padding: 1%;
    width: 20%;
    vertical-align: middle;
    align-content: center;
}

.jb-ytd-comp-table-row {
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    padding: 1%;
    border-bottom: 2px solid #E8E8E8;
}

.jb-ytd-comp-table-row-label {
    text-align: left;
    color: rgb(0, 102, 67);
}

.jb-ytd-comp-table-padding {
    padding: 3% 0px;
}

.jb-ytd-table-label-cell {
    padding: 1%;
    width: 20%;
}

.jb-ytd-table-label-cell-green {
    color: rgb(0, 102, 67);
}

.jb-ytd-table-label-cell-total {
    font-weight: 700;
}

.jb-ytd-table-label-cell-base-comp {
    background-color: rgba(232, 232, 232, .8);
    padding: 2% 3%;
    text-align: left;
    font-weight: 500;
    color: #4C4D4D;
}

.jb-ytd-comp-table-row-base-comp {
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 18px;
    border-bottom: 2px solid #E8E8E8;
}

.jb-ytd-table-cell-base-comp {
    text-align: center;
    width: 100%;
    padding: 8% 10% 8% 0%;
}

.jb-ytd-table-label-cell-base-comp-tier {
    padding: 2% 5%;
    text-align: left;
    font-weight: 500;
    color: #4C4D4D;
}

/* Dropdown Arrow */
.dropdown-content {
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease;
}

.jb-ytd-table-dropdown-arrow {
    border: 0px;
    background-color: rgba(255,255,255,0);
}

.jb-ytd-table-dropdown-arrow-shape {
    background-color: rgb(0, 102, 67);
    clip-path: polygon(0% 0%, 50% 50%, 0 100%);
    width: 10px;
    height: 10px;
}

.dropdown-arrow-rotate {
    transition: transform 0.5s ease;
    transform: rotate(-90deg);
}



.jb-ytd-table-carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    align-items: flex-start;
}

.jb-ytd-table-carousel-content {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.jb-ytd-table-carousel-item {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.jb-ytd-table-controls {
    display: flex;
    border: 0;
    background: rgba(255,255,255,0);
    align-items: center;
    padding: 2%;
}

.jb-ytd-table-button {
    border: 0;
    background: rgba(255,255,255,0);
}

.jb-ytd-table-button-triangle {
    background-color: rgb(255,255,255,1);
    clip-path: polygon(0% 0%, 50% 50%, 0 100%);
    padding: 5%;
    max-width: 10px !important;
    max-height: 20px !important;
}


#prevBtn:disabled {
    background-color: rgb(255,255,255,.4);
    cursor: default;
}

#nextBtn:disabled {
    background-color: rgb(255,255,255,.4);
    cursor: default;
}

#prevBtn {
    transform: rotate(180deg);
}


#jb-ytd-table-year-indicator {
    padding: 0 10%;
    width: 90px;
    text-align: center;
    color: rgb(255,255,255);
    font-size: 18px;
    font-weight: 700;
    line-height: 21.78px;
    text-align: center;
}

/* TIERS */
/* zero */
.jb-tier-0 {
    background-color: var(--zero-tier-color);
}

.jb-tier-0-light {
    background-color: var(--zero-tier-light);
}

.jb-tier-0-light-img-bg {
    background-color: var(--zero-tier-light);
}

.jb-tier-0-text {
    color: var(--zero-tier-color);
}

/* amber */
.jb-tier-1 {
    background-color: var(--amber-tier-color);
}

.jb-tier-1-light {
    background-color: var(--amber-tier-light);
}

.jb-tier-1-light-img-bg {
    background-color: var(--amber-tier-light);
    background-image: url('../images/tiers/tree-frog.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
}

.jb-tier-1-text {
    color: var(--amber-tier-color);
}

/* topaz */
.jb-tier-2 {
    background-color: var(--topaz-tier-color);
}

.jb-tier-2-light {
    background-color: var(--topaz-tier-light);
}

.jb-tier-2-light-img-bg {
    background-color: var(--topaz-tier-light);
    background-image: url('../images/tiers/rabbit.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
}

.jb-tier-2-text {
    color: var(--topaz-tier-color);
}

/* ruby */
.jb-tier-3 {
    background-color: var(--ruby-tier-color);
}

.jb-tier-3-light {
    background-color: var(--ruby-tier-light);
}

.jb-tier-3-light-img-bg {
    background-color: var(--ruby-tier-light);
    background-image: url('../images/tiers/fox.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
}

.jb-tier-3-text {
    color: var(--ruby-tier-color);
}

/* sapphire */
.jb-tier-4 {
    background-color: var(--sapphire-tier-color);
}

.jb-tier-4-light {
    background-color: var(--sapphire-tier-light);
}

.jb-tier-4-light-img-bg {
    background-color: var(--sapphire-tier-light);
    background-image: url('../images/tiers/eagle.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
}

.jb-tier-4-text {
    color: var(--sapphire-tier-color);
}

/* emerald */
.jb-tier-5 {
    background-color: var(--emerald-tier-color);
}

.jb-tier-5-light {
    background-color: var(--emerald-tier-light);
}

.jb-tier-5-light-img-bg {
    background-color: var(--emerald-tier-light);
    background-image: url('../images/tiers/polar-bear.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
}

.jb-tier-5-text {
    color: var(--emerald-tier-color);
}

.jb-tierlist-modal-img {
    width: 100%;
}

/* bootstrap overrides */
.modal-dialog {
    width: 100% !important;
    padding: 0 10%;
    max-width: 1250px
}

.padding-remover {
    padding: 0px !important;
}

.border-remover {
    border: 0 !important;
}

.margin-remover {
    margin: 0px !important;
}

.jb-row-equalizer {
    display: flex;
    flex-wrap: wrap;
}

.jb-col-equalizer {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Performance Tier Gauge */
@keyframes gauge-linear-progress {
    0% {
        --percentage: 0;
    }

    100% {
        --percentage: var(--value);
    }
}

@property --percentage {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.performance-gauge-linear {
    --percentage: var(--value);
    --primary: var(--primary);
    --secondary: #fff;
    --size: 100%;
    width: var(--size);
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: auto !important;
    overflow: visible;
}


.performance-gauge-linear-animate {
    animation: gauge-progress 2s 0.5s forwards;
}

.performance-gauge-linear::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient( to right, var(--primary) calc(var(--percentage) * 1%), var(--secondary) calc(var(--percentage) * 1%) );
}

.performance-gauge-linear-active::after {
    content: "";
    position: absolute;
    top: 5px;
    left: calc(var(--percentage) * 1%);
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ffffff;
    box-sizing: border-box;
}


.performance-gauge-linear-top-content {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    padding-bottom: 5px;
    height: 50%;
}

    .performance-gauge-linear-top-content object {
        height: 30px;
    }

.performance-gauge-linear-content {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
}

    .performance-gauge-linear-content strong {
        font-size: 16px;
        font-weight: 600;
        line-height: 25px;
        text-align: left;
    }

.performance-gauge-linear.performance-gauge-1 {
    --primary: var(--amber-tier-color);
    --secondary: #E8E8E8;
}

.performance-gauge-linear.performance-gauge-2 {
    --primary: var(--topaz-tier-color);
    --secondary: #E8E8E8;
}

.performance-gauge-linear.performance-gauge-3 {
    --primary: var(--ruby-tier-color);
    --secondary: #E8E8E8;
}

.performance-gauge-linear.performance-gauge-4 {
    --primary: var(--sapphire-tier-color);
    --secondary: #E8E8E8;
}

.performance-gauge-linear.performance-gauge-5 {
    --primary: var(--emerald-tier-color);
    --secondary: #E8E8E8;
}

.performance-tier-home-box {
    border: 2px solid #E8E8E8;
    border-top: 0px;
    padding: 3%;
    display: flex;
}

.performance-tier-ind-box {
    width: 20%;
    padding: 1px;
    margin: 0;
}

/* Homepage stuff */
.perf-tier-home-ytd-apps {
    font-size: 60px;
    font-weight: 700;
    line-height: 72.6px;
    text-align: center;
    color: #ffffff;
}

.perf-tier-home-ytd-text {
    font-size: 18px;
    font-weight: 500;
    line-height: 21.78px;
    text-align: center;
    color: #ffffff;
}

.perf-tier-home-current-tier-img {
    margin: auto;
    text-align: center;
    justify-self: center;
}

    .perf-tier-home-current-tier-img object {
        width: 46px;
    }

.perf-tier-home-current-tier-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 19.36px;
    text-align: center;
    color: #4C4D4D;
}

.perf-tier-triangle-box {
    padding: 0px;
    margin: 0px;
    display: block;
    height: 100%;
}

.perf-tier-triangle-box-top {
    font-size: 20px;
    font-weight: 500;
    line-height: 24.2px;
    text-align: center;
    color: #ffffff;
    padding: 3%;
    height: 50%;
    align-content: center;
}

.perf-tier-triangle-box-triangle {
    content: "";
    position: absolute;
    top: 0%;
    left: 0%;
    bottom: 0%;
    z-index: 1;
    clip-path: polygon(0% -5%, 0% 0%, 50% 25%, 100% 0%, 100% -5%);
    width: 100%;
}

.perf-tier-triangle-box-bottom {
    position: relative;
    font-size: 24px;
    font-weight: 700;
    line-height: 29.04px;
    text-align: center;
    color: #ffffff;
    padding: 3%;
    padding-top: 4%;
    height: 50%;
    align-content: center;
}

.perf-tier-current-tier-box {
        padding: 4%;
        height: 100%;
        align-content: center;
    }

.perf-tier-home-approved-apps-box {
    padding: 4%;
    height: 100%;
    align-content: center;
}

.perf-tier-home-achievement-box {
    background-color: #E8E8E8;
    height: 50%;
}

.perf-tier-home-achievement-col {
    display: block;
    height: 100%;
}

.perf-tier-home-achievement-box.top-left {
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid #ffffff;
}

.perf-tier-home-achievement-box.bottom-left {
    border-right: 1px solid #ffffff;
}

.perf-tier-home-achievement-box.top-right {
    border-bottom: 1px solid #ffffff;
}

.perf-tier-home-achievement-headline-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 19.36px;
    text-align: left;
    color: rgb(0, 102, 67);
}

.perf-tier-home-achievement-subtext {
    font-size: 14px;
    font-weight: 500;
    line-height: 16.94px;
    text-align: left;
    color: rgb(76, 77, 77);
}

.home-trophy-box-checkmark-bubble {
    max-width: 30px;
}

.jb-earnings-box {
    background-color: #00205b;
    padding: 30px;
    color: #ffffff;
    text-align: center;
}

.jb-earnings-box-left {
    border-right: 1px solid #fff;
    padding: 30px;
}

.jb-earnings-box-right {
    border-left: 1px solid #fff;
    padding: 30px;
}

.jb-earnings-box-top-num {
    font-size: 60px;
    font-weight: 700;
}

.jb-earnings-box-bottom-text {
    font-size: 26px;
    color: #ff8200;
}

@media (max-width: 1032px) {
    .jb-col-equalizer {
        flex: 0 0 auto;
    }
    .jb-earnings-box-left {
        border-bottom: 1px solid #fff;
        border-right: 0;
        padding: 30px;
    }

    .jb-earnings-box-right {
        border-top: 1px solid #fff;
        border-left: 0;
        padding: 30px;
    }
}