:root {
    --icon-size: 25px;
    --icon-size-medium: 2rem;

    --icon-font-size: 15px;
    --transition-speed: 0.3s;
    --scale-hover: 1.1;

    --facebook-color: #1877F2;
    --facebook-hover: #125abe;

    --twitter-color: black;
    --twitter-hover: #555;

    --pinterest-color: #e70820;

    --mail-color: #D44638;
    --mail-hover: #a83227;

    --primary-color: #011c88;

    --bib-width: 180px;
}

.text-primary {
    color: var(--primary-color) !important;
}

.icon-medium-size {
    font-size: var(--icon-size-medium) !important;
}

.card .card-body{
    padding: 1rem !important;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size);
    height: var(--icon-size);
    font-size: var(--icon-font-size);
    border-radius: 50%;
    text-decoration: none;
    background-color: var(--pinterest-color);
    transition: background var(--transition-speed), transform 0.2s;
    color: white;
}
.social-icon:hover {
    color: white;
    transform: scale(var(--scale-hover));
}

.facebook-icon {
    background-color: var(--facebook-color);
}
.facebook-icon:hover {
    background-color: var(--facebook-hover);
    transform: scale(var(--scale-hover));
    color: white;
}

.twitter-icon {
    background-color: var(--twitter-color);
}
.twitter-icon:hover {
    background-color: var(--twitter-hover);
    transform: scale(var(--scale-hover));
    color: white;
}

.mail-icon {
    background-color: var(--mail-color);
}
.mail-icon:hover {
    background-color: var(--mail-hover);
    transform: scale(var(--scale-hover));
    color: white;
}

.dossard-detail-athlete {
    font-size: 2rem;
    font-weight: 700;
    border-bottom: 25px solid var(--bib-color, var(--primary-color));
    border-top: 25px solid var(--bib-color, var(--primary-color));
    color: var(--bib-color, var(--primary-color));
}

.custom-bib-detail-athlete {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
    font-size: 1px;
}

.custom-bib-detail-athlete img {
    max-width: 100%;
    max-height: 100%;
}


#bib-number, #bib-name, #bib-number-without-name {
    position: absolute;
    transform: translate(-50%, -50%);
    color: black;
}

#bib-number, #bib-number-without-name {
    font-weight: bold;
    font-size: calc(var(--bib-width) * 0.25);
}

#bib-name {
    font-weight: bold;
    width: max-content;
    font-size: calc(var(--bib-width) * 0.10);
}

.copyright {
    font-size: 0.7rem !important;
    color: #cbccce !important;
}

.copyright a {
    color: #cbccce !important;
}

@media (min-width: 1400px) {
    .default-bib-name {
        font-size: 1.5rem;
    }

    .default-bib-number {
        margin-bottom: -20px;
        margin-top: -15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 1400px) {
    .card-bottom {
        margin: -8px -4px -12px -4px;
    }

    .card-top {
        margin: -8px -4px -12px -4px;
    }

    .default-bib-name {
        font-size: 1.5rem;
    }

    .default-bib-number {
        margin-bottom: -20px;
        margin-top: -15px;
        font-size: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .utility-links {
        padding-left: 2.3rem !important;
    }
}

.timeline-content {
    max-width: 100% !important;
}


@media (max-width: 992px) {
    .timeline-content > h3 {
        font-size: 26px;
    }

    .card-bottom-sm {
        margin: -8px -4px -12px -4px !important;
    }
}


@media (max-width: 768px) {
    .timeline-content {
        position: relative;
        margin-bottom: 10px;
    }

    .timeline-content > h3 {
        position: absolute;
        top: -18px;
        background: white;
        width: auto;
        font-size: 22px;
    }

    .timeline-content > div > h4 {
        font-size: 17px;
    }

    .timeline-content > div:last-child, .timeline-content > div:nth-last-child(2) {
        background-color: var(--background-color);
    }

    .timeline-content > div:nth-child(2) {
        border-radius: 10px 0px 0px 0px;
        border-left: solid 2px #dee2e6;
        border-top: solid 2px #dee2e6;
    }

    .timeline-content > div:nth-child(3) {
        border-right: solid 2px #dee2e6;
        border-top: solid 2px #dee2e6;
        border-top-right-radius: 10px;
    }

    .timeline-content > div:last-child {
        border-right: solid 2px #dee2e6;
        border-bottom: solid 2px #dee2e6;
        border-bottom-right-radius: 10px;
    }

    .timeline-content > div:last-child {
        border-right: solid 2px #dee2e6;
        border-bottom: solid 2px #dee2e6;
        border-bottom-right-radius: 10px;
    }

    .timeline-content > div:nth-last-child(2) {
        border-radius: 0px 0px 0px 10px;
        border-left: solid 2px #dee2e6;
        border-bottom: solid 2px #dee2e6;
        border-bottom-left-radius: 10px;
    }

    .timeline-step {
        top: -22px;
    }

    .bib-wrapper {
        width: 80%;
    }

    .default-bib-wrapper {
        width: 80%;
        max-height: 300px;
        aspect-ratio: 1/0.8;
    }

    .dossard-detail-athlete {
        font-size: 4rem;
        position: relative;
        height: 100%;
        border-bottom: unset;
        border-top: unset;
    }

    .bib-wrapper > div:first-child, .default-bib-wrapper > div:first-child {
        height: 100%;
    }

    div.justify-content-center:first-child {
        height: 100%;
    }

    .dossard-detail-athlete::before,
    .dossard-detail-athlete::after {
        content: "";
        position: absolute;
        left: 0;
        width: 100%;
        height: 25%; /* 33% of the parent height */
        background: var(--primary-color); /* Simulate border */
    }

    .dossard-detail-athlete::before {
        top: 0; /* Acts as "border-top" */
    }

    .dossard-detail-athlete::after {
        bottom: 0; /* Acts as "border-bottom" */
    }

    .default-bib-name {
        font-size: 2rem;
    }

    .default-bib-number {
        margin-bottom: -20px;
        font-size: 3.5rem;
    }
}

@media (max-width: 432px) {
    .dossard-detail-athlete {
        font-size: 2.5rem;
    }

    .default-bib-name {
        font-size: 1.5rem;
    }

    .default-bib-number {
        margin-bottom: -20px;
        font-size: 2.8rem;
    }

    .text-primary {
        font-size: 18px;
    }
}

.text-muted {
    font-size: 10px;
}


.loading {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
}

.page-item .page-link, .page-item span {
    color: #000 !important;
    padding: 0 !important;
    margin: 0 3px !important;
    border-radius: 10% !important;
    width: 30px !important;
    height: 30px !important;
}

.page-link.active, .active > .page-link {
    background-color: var(--background-color) !important;
    border-color: #333 !important;
}

.pagination-top, #pagination-bottom{
    justify-content: right;
}

@media (max-width: 768px) {
    .pagination-top, #pagination-bottom {
        justify-content: center !important;
    }

    .container:has(> #resultsTable) {
        padding: 0px;
    }
}

.form-select{
    padding-right: 40px !important;
    font-size: 14px !important;
    background-color: inherit !important;
}

.form-label{
    position: relative !important;
    top: 12px !important;
    font-style: italic !important;
}

#searchInput{
    background-color: inherit !important;
}

#searchInput::placeholder{
    background-color: var(--background-color) !important;
}

.Sexe_H, .Sexe_M{
    color: var(--male-color) !important;
}

.Sexe_F{
    color:var(--female-color) !important;
}

.btn-detail-athlete{
    font-size: 20px;
}

.result-page-thumbnail {
    max-width: 400px;
}

#thumbnail-img {
    width: auto;
    height: auto;
    max-width: 100%;
}

#mobile-event-title {
    font-size: 1.5rem;
}

#mobile-event-date {
    font-size: 1.25rem;
}

td:has(> .place-value) {
    text-align: center;
}

.place-value {
    font-size: 1.4rem;
    font-weight: bold;
}

th[id="place"] {
    text-align: center;
}