/* Prestige Card Layout */

:root {
    --card-background-color: #222222;
    --card-body-background-color: #373737;
    --card-border-color: #323232;
    --card-divider-color: #2c2c2c;
    --card-link-color: #08a2c8;
    --card-previous-waypoint-color: #198754;
    --card-current-waypoint-color: #0dcaf0;
    --card-item-active: #20c997;
    --card-item-active-border: #198754;
    --card-item-inactive: #495057;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Card Styles */
.prestige__prestige-card {
    background-color: var(--card-background-color);
    border: solid 2px var(--card-border-color);
    border-radius: 15px;
    width: 100%;
    margin-bottom: 10px;
}

.prestige__prestige-card,
.prestige__prestige-card p {
    font-family: 'Roboto Condensed', sans-serif;
}

.prestige__prestige-card a {
    transition: color 0.3s;
}

.prestige__prestige-card > :first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.prestige__prestige-card > :last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.prestige__prestige-card-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.prestige__card-header {
    background-color: var(--card-background-color);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 15px;
    border-bottom: 2px solid var(--card-divider-color);
}

.prestige__card-header h3 {
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
}

.prestige__card-header a {
    width: fit-content;
    height: fit-content;
}

.prestige__card-header a h3 {
    color: var(--card-link-color);
}

.prestige__card-header a:hover h3 {
    color: #0aceff;
    text-decoration: underline;
}

.prestige__card-body {
    background-color: var(--card-body-background-color);
    width: 100%;
    height: fit-content;
    font-size: 80%;
}

.prestige__card-body-title {
    background-color: var(--card-background-color);
    padding: 15px;
    width: 100%;
    height: fit-content;
    font-size: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    border-bottom: 2px solid var(--card-divider-color);
}

.prestige__card-body-title h3 {
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
    font-size: 2rem;
}

.prestige__card-body-description {
    background-color: var(--card-background-color);
    padding: 20px;
    width: 100%;
    height: fit-content;
    border-bottom: 2px solid var(--card-divider-color);
}

.prestige__card-body-description p {
    color: white;
    margin-bottom: 0;
}

.prestige__card-body-description p:not(:last-child) {
    margin-bottom: 15px;
}

.prestige__card-body-description a {
    color: #198754;
}

.prestige__card-body-description a:hover {
    color: #28ffbf;
}

/* Prestige Waypoint Styles */
.prestige__card-body-waypoints {
    background-color: var(--card-background-color);
    padding: 15px;
    width: 100%;
    height: fit-content;
    position: relative;
    overflow-x: hidden;
}

.prestige__card-body-waypoints .prestige__waypoints-header {
    color: white;
    display: flex;
    justify-content: center;
}

.prestige__card-body-waypoints .prestige__waypoints {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.prestige__card-body-waypoints .prestige__waypoints::-webkit-scrollbar {
    display: none; 
  }

.prestige__waypoints .prestige-waypoint-info {
    min-height: 60px;
}

.prestige__waypoints .prestige-waypoint-details {
    color: white;
    margin-top: 5px;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 18px;
    font-size: 18px;
}

.prestige-waypoint-details div.fb-0 {
    flex-basis: 0;
}

.prestige__waypoints .prestige-waypoint-details i {
    color: #888;
}

.prestige__waypoints .prestige-waypoint-info .col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.prestige__waypoints .prestige__waypoint,
.prestige__waypoints .prestige__current-waypoint {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
    flex: 0 0 auto;
}

.prestige__waypoints .prestige__waypoint {
    width: 25%;
    max-width: 25%;
}

.prestige__waypoints .prestige__current-waypoint {
    width: 50%;
    max-width: 50%;
}

.prestige__waypoints .prestige__waypoint p,
.prestige__waypoints .prestige__current-waypoint p {
    color: white;
    text-align: center;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 18px;
    font-size: 18px;
}

.prestige__waypoints .prestige__waypoint p:last-child,
.prestige__waypoints .prestige__current-waypoint p:last-child {
    margin-top: 5px;
}

.prestige__waypoints .prestige__current-waypoint p.current-waypoint-reward {
    color: var(--card-current-waypoint-color);
    font-size: 36px;
    line-height: 36px;
}

/* Waypoint Navigation Styles */
.prestige__waypoint-navigation {
    position: absolute;
    top: 30%;
    width: auto;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 8px 14px;
    cursor: pointer;
}

.prestige__waypoint-navigation.prev {
    left: 20px;
}

.prestige__waypoint-navigation.next {
    right: 20px;
}

/* Waypoint Progress Bar Styles */
.prestige__waypoints .progress {
    height: 1rem;
    font-size: 0.75rem;
    background-color: white;
    color: white;
    border-radius: 0.375rem;
    margin-top: 15px;
}

.prestige__waypoints .progress-bar {
    border-radius: 0;
    overflow: hidden;
}

.prestige__waypoints .prestige__previous-waypoint .progress-bar {
    background-color: var(--card-previous-waypoint-color);
}

.prestige__waypoints .prestige__current-waypoint .progress-bar {
    background-color: var(--card-current-waypoint-color);
}

/* Prestige Reward Styles */
.prestige__body-rewards {
    background-color: var(--card-background-color);
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    height: fit-content;
}
.prestige__body-rewards .prestige__reward-row {
    color: white;
    padding: 15px;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--card-border-color);
    border-radius: 0;
}

.prestige__body-rewards .prestige__reward-row.active {
    border-top: 2px solid var(--card-item-active-border);
    border-bottom-color: var(--card-item-active-border);
    background-color: var(--card-body-background-color);
}

.prestige__reward-row .prestige__reward-year {
    display: flex;
    justify-content: center;
    align-items: start;
    flex-direction: column;
}

.prestige__reward-row .prestige__reward-year p {
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
    line-height: 18px;
}

.prestige__reward-row .prestige__reward-year p.active {
    color: var(--card-item-active);
    font-weight: bolder;
}

.prestige__reward-row .prestige__reward-year i {
    color: rgb(130,130,130);
    font-size: 1.1rem;
}

.prestige__reward-row .prestige__reward-year button.milestone-details {
    background-color: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    transition: all 0.3s;
}

.prestige__reward-row .prestige__reward-year button.milestone-details.selected {
    border-color: var(--card-item-active-border);
}

.prestige__reward-row .prestige__reward-year button.milestone-details.selected p,
.prestige__reward-row .prestige__reward-year button.milestone-details.selected i {
    color: var(--card-item-active);
}

.prestige__reward-row .prestige__reward-year button.milestone-details p,
.prestige__reward-row .prestige__reward-year button.milestone-details i {
    color: white;
    transition: all 0.3s;
}

.prestige__reward-row .prestige__reward-year button.milestone-details:hover {
    border-color: var(--card-item-inactive);
}

.prestige__reward-row .prestige__reward-year button.milestone-details:hover p,
.prestige__reward-row .prestige__reward-year button.milestone-details:hover i {
    color: rgb(255, 255, 255, 0.75);
}

.prestige__reward-row .prestige__reward-items {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.prestige__reward-row .prestige__reward-items .prestige-reward {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

.prestige__reward-row .prestige__reward-items .prestige-reward .prestige-fragments {
    position: absolute;
    font-size: 2rem !important;
    -webkit-text-stroke: 2px #222;
    font-weight: bold;
    top: 35%;
}

.prestige__reward-row .prestige__reward-items .prestige-reward-push {
    background: url("../img/push-arrow.svg") center / contain no-repeat;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    width: 80px;
    height: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.prestige__reward-row .prestige__reward-items .prestige-reward-push p {
    margin: 0px;
    text-align: center;
    font-size: 14px;
    line-height: 14px;
}

.prestige__reward-row .prestige__reward-items p {
    color: white;
    font-size: 0.9em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.prestige__reward-row .prestige__reward-items img {
    max-width: 80px;
    height: auto;
}

.prestige__reward-row .prestige__claim-reward {
    display: flex;
    justify-content: end;
    align-items: center;
    align-content: center;
}

.prestige__reward-row .prestige__claim-reward button,
button.btn-prestige {
    background-color: transparent;
    color: rgb(130,130,130);
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0.5rem 90px;
    border-radius: 10px;
    border: 2px solid var(--card-item-inactive);
    cursor: default;
}

.prestige__reward-row .prestige__claim-reward button.active,
button.btn-prestige.active {
    border: 2px solid var(--card-item-active);
    color: white;
    padding: 0.5rem 0.75rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.prestige__reward-row .prestige__claim-reward button.active:hover,
button.btn-prestige.active:hover {
    border-color: #28ffbf;
}

.prestige__reward-row .prestige__claim-reward button.active:hover span.fas,
button.btn-prestige.active:hover span.fas {
    color: #28ffbf;
}

.prestige__reward-row .prestige__claim-reward button.active span.fas,
button.btn-prestige.active span.fas {
    color: var(--card-item-active);
    margin-right: 10px;
}

.prestige__reward-row .prestige__claim-reward button.active span.fas {
    margin-left: 100px;
}

.prestige__reward-row .prestige__claim-reward button.expired,
button.btn-prestige.expired {
    border: 2px solid var(--card-item-inactive);
    color: rgb(130, 130, 130);
    padding: 0.5rem 0.75rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prestige__reward-row .prestige__claim-reward button.expired span.fas,
button.btn-prestige.expired span.fas {
    color: var(--card-item-inactive);
    margin-right: 10px;
}

.prestige__reward-row .prestige__claim-reward button.expired span.fas {
    margin-left: 100px;
}

.prestige__body-rewards-description {
    background-color: var(--card-background-color);
    padding: 20px;
    width: 100%;
    height: fit-content;
}

.prestige__body-rewards-description p {
    color: white;
    margin-bottom: 0;
}

.prestige__body-rewards .prestige__waypoint-row {
    border-bottom: 2px solid var(--card-border-color);
    border-radius: 0;
}

/* Prestige Card Footer Styles */
.prestige__card-footer {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 15px;
    margin: 0;
    border-top: 1px solid var(--card-divider-color);
}

.prestige__card-footer p {
    color: gray;
    font-size: 0.8rem;
    margin: 0;
}

.prestige__card-footer {
    background-color: var(--card-background-color);
    padding: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.prestige__card-footer-terms a {
    text-transform: uppercase;
    color: var(--card-link-color);
}

.prestige__card-footer-terms a:hover {
    color: #0aceff !important;
}

/* Form Styles */
label {
    color: #999;
}

.form-control,
.form-control:focus {
    color: #999;
}

@media (min-width: 992px) {
    .prestige__card-header h3 {
        font-size: 1.3em;
    }

    .prestige__card-body {
        font-size: var(--bs-body-font-size);
    }
}

/* Tablet View Modifiers */
@media(max-width:991px) {
    .waypoint-extra-info-padding {
        display:none;
    }
}

@media(max-width:900px) {
    .prestige__reward-row {
        flex-direction: column;
    }

    .prestige__reward-row .prestige__reward-year,
    .prestige__reward-row .prestige__claim-reward {
        align-items: center;
        justify-content: center;
    }

    .prestige__reward-row .prestige__reward-year {
        margin-bottom: 10px;
    }

    .prestige__reward-row .prestige__claim-reward {
        margin-top: 10px;
    }

    .waypoint-extra-info {
        display: none;
    }

    .waypoint-date {
        text-align: center;
        flex-grow: 1;
    }

    .prestige__waypoints .prestige-waypoint-details {
        font-size: 14px;
    }
}

/* Signed Out & Not Registered Screen Styles */
.prestige__prestige-card.not-registered {
    color: white;
    font-size: 100%;
}

.prestige__prestige-card.not-registered a {
    font-size: 30px;
    border: 2px solid #198754;
    border-radius: 10px;
    padding: 10px 15px;
    margin: 40px 0;
    transition: all 0.3s;
}

.prestige__prestige-card.not-registered a:hover {
    border-color: #28ffbf;
}

.prestige__prestige-card.not-registered p {
    color: white;
    font-size: 18px;
}

/* Mobile View Modifiers */
@media(max-width:567px) {
    .prestige__prestige-card p {
        font-size: 0.8rem;
    }

    .prestige__card-header h3 {
        font-size: 1rem;
    }

    .prestige__waypoints .prestige__previous-waypoint:empty {
        width: auto;
        max-width: 100%;    
        min-width: 0px;
    }

    .prestige__waypoints .prestige__previous-waypoint,
    .prestige__waypoints .prestige__next-waypoint {
        width: auto;
        max-width: 100%;    
    }

    .prestige__waypoints .prestige__waypoint {
        width: 50%;
        max-width: 50%;  
        min-width: 200px;  
    }

    .prestige__waypoints .prestige__current-waypoint {
        width: 75%;
        max-width: 75%;    
    }

    .prestige__reward-row {
        flex-direction: column;
    }

    .prestige__reward-row .prestige__reward-items img {
        max-width: 50px;
    }

    .prestige__reward-row .prestige__reward-items .prestige-reward-push {
        width: 60px;
    }

    .prestige__reward-row .prestige__reward-items .prestige-reward-push p {
        font-size: 0.7rem;
    }

    .prestige__reward-row .prestige__reward-year,
    .prestige__reward-row .prestige__claim-reward {
        align-items: center;
        justify-content: center;
    }

    .prestige__reward-row .prestige__reward-year {
        margin-bottom: 10px;
    }

    .prestige__reward-row .prestige__claim-reward {
        margin-top: 10px;
    }
}