﻿
html, body {
    font-family: Inter, Helvetica, sans-serif !important;
}

.font-poppins {
    font-family: "Poppins", sans-serif !important;
    font-style: normal;
}


/*.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: "Poppins", sans-serif !important;
    font-style: normal;
}*/

.table-xs > :not(caption) > * > * {
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    padding-top: 0.1rem;
    padding-bottom: 0.5rem;
}


.list-social-icon {

    width: 100px;
}

.list-social-icon {
    max-width: 2.5rem;
    height: auto;
    border: 1px solid grey;
}

.custom-icon {
    width:20px;
    height:20px;
}

.country-icon-old {
    width: 100px;
    max-width: 2.3rem;
    height: auto;
    border: 1px solid grey;
}

.country-icon {
    border-radius: 50rem;
    width: 2rem;
    height: 2rem;
    object-fit: cover;
}


.navbar-dark .navbar-brand {
    filter: unset !important;
}

.nav-item {
    color: #ffffff !important;
}

.tdCompetitionResults {
    width: 10px !important;
    /*max-width: 20px;*/
}

#map {
    height: 400px;
    /* The height is 400 pixels */
    width: 100%;
    /* The width is the width of the web page */
}
.shadow {
    box-shadow: 0 0.5rem 1.5rem rgb(00 00 00 / 35%) !important;
}



.txt-pipa {
    color: #009CDE !important;
}

.txt-pipa:hover {
    color: #009CDE !important;
}

.border-pipa {
    border-color: #009CDE !important;
}





.landing-title-shadow {
    text-shadow: 2px 2px 5px #421320;
}



.text-primary-dark {
    color: #421320 !important;
}

.bg-primary-dark {
    background-color: #421320 !important;
}

.badge-primary-dark {
    color: #fff;
    background-color: #421320 !important;
}



.badge-primary {
    color: #fff;
    background-color: #EF426F;
}


.navbar-dark {
    background-color: #421320 !important;
}



.card-title-custom {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 75%);
    font-size: 2rem;
    padding: 0.75rem 3rem !important;
    background-color: white;
    border-radius: inherit;
    text-transform: uppercase;
    border: 3px solid white;
    border-color: inherit;
}


.finished-race-card {
    position: relative;
    min-height: 100px;
}

.finished-race-card-badge-container {
    display: flex;
    flex-flow: row nowrap;
    position: absolute;
    width: fit-content;
    left: 1.25rem;
    top: -1.5rem;
    border-radius: .4rem;
}

.finished-race-card-badge-left {
    position: relative;
    border-radius: 0.75rem 0 0 0.75rem;
    box-sizing: border-box;
    padding-right: 1.5rem;
    clip-path: polygon(0 0,100% 0,calc(100% - 25px) 100%,0 100%);
    background-position: center;
    background-size: cover;
    width: 60px;
}

.finished-race-card-badge-middle {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    padding-block: 0.25rem;
    padding-inline: calc(1.5rem + 10px);
    margin-left: -20px;
    clip-path: polygon(25px 0,100% 0,calc(100% - 25px) 100%,0 100%);
    color: #fff;
    order: 3;
    z-index: 1;
}

.finished-race-card-badge-right {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    border-radius: 0 0.75rem 0.75rem 0;
    padding-block: 0.25rem;
    padding-inline: calc(1.5rem + 10px) 1rem;
    margin-left: -20px;
    clip-path: polygon(25px 0,100% 0,100% 100%,0 100%);
    color: #fff;
    order: 3;
    z-index: 1;
    background-color: darkgreen;
}

.finished-race-image {
    position: absolute;
    height: 100%;
    float: right;
    clip-path: polygon(15% 0,100% 0,100% 100%,0 100%);
    background-position: center;
    background-size: cover;
    inset: 0 0 0 auto;
    width: min(250px, 30%);
}

.finished-race-content {
    display: flex;
    flex-wrap: wrap; 
    width: calc(100% - min(250px, 30%));
}

.finished-race-content-date {
    font-weight: bold;
}


.btn-pipa {
    color: #fff;
    background-color: #009cde;
    border-color: #009cde;
}

.btn-pipa:hover {
    color: #fff;
    background-color: #007bb3;
    border-color: #007bb3;
}
.btn-primary-dark {
    background-color: #421320;
    color: white;
}

.btn-primary-dark:hover {
    background-color: #280b13;
    color: white;
}

.btn-pipa:focus, .btn-pipa:active {
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 222, 0.5);
}


@media (max-width: 576px) {
    .w-sm-100 {
        width: 100% !important;
    }
}


.hover-primary:hover {
    color: var(--bs-primary) !important;
}





.secondary {
    color: #fafafa !important;
}

.bg-secondary {
    background-color: #fafafa !important;
}

.ml-form-embedWrapper .embedForm {
    background-color: #fafafa !important;
}




.live-badge {
    position: relative;
    display: inline-block;
    background-color: red;
    color: white;
    padding: 0.25em 0.5em;
    padding-right: 2em;
    width: auto;
    border-radius: 5000px;
}

.live-badge::after {
    content: '';
    position: absolute;
    inset: 50% 0.4em auto auto;
    transform: translateY(-50%);
    background-color: white;
    border-radius: inherit;
    width: 1em;
    height: 1em;
    animation: 1s blikn infinite ease-in-out;
}

@keyframes blikn {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}




.legend-square {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    border: 1px black solid;
    border-radius: 0.2em;
    vertical-align: middle;
}



.bg-success-table {
    background-color: #caece2 !important;
}
.bg-warning-table {
    background-color: #fef4d9 !important;
}
.bg-danger-table {
    background-color: #f6cbd1 !important;
}
.bg-info-table {
    background-color: #dad5fb !important;
}

tr.selected-position td {
    border-top: 1px solid var(--bs-primary) !important;
    border-bottom: 1px solid var(--bs-primary) !important;
    border-left: none !important;
    border-right: none !important;
}

tr.selected-position td:first-child {
    border-left: 1px solid var(--bs-primary) !important;
}

tr.selected-position td:last-child {
    border-right: 1px solid var(--bs-primary) !important;
}


@media (max-width: 768px) {
    tr.selected-position td {
        border-left: 1px solid var(--bs-primary) !important;
        border-right: 1px solid var(--bs-primary) !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    tr.selected-position td:first-child {
        border-top: 1px solid var(--bs-primary) !important;
    }

    tr.selected-position td:last-child {
        border-bottom: 1px solid var(--bs-primary) !important;
    }
}