/* 
    THIS IS SITE CSS

*/

/* 
    padding: 0px 0px 10px 0px;   
    T R B L 
*/

.versionNumber {
    font-size: 10px;
    color: lightgray;
    justify-content: right;
}

.row-spacer-name {
    margin-top: 40px;
}

.row-spacer-small {
    margin-top: 15px; 
}

.row-spacer-medium {
    margin-top: 30px;
}
.row-spacer-large {
    margin-top: 50px; 
}

/* This is to override the tag from https://www.greatrun.org/ css*/
.pagination {
    padding: 0 0 0 !important;
    margin: 0 0 !important;
}

/* Responsive content container with padding and max-width */
.content-container {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

@media (min-width: 576px) {
    .content-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .content-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .content-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .content-container {
        max-width: 1180px;
    }
}

body {
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.nav {
    background-color: #c62828;
    color: white;
}

.body-content-results {
    padding-top: 40px;
}

.leaderboard-title-main {
    margin-top: 0px !important;
}

.runner-title-main {
    margin-top: 0px !important;
    margin-bottom: 25px;
}

.search-title-main {
    margin-top: 0px !important;
}

.title-banner {
    height: 170px;
    background: linear-gradient(to bottom, #142a86, #021349);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.title-banner-runner {
    height: 600px;
    background: linear-gradient(to bottom, #142a86, #021349);
    clip-path: polygon(0 0, 100% 0, 100% 90%, 50% 100%, 0 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}


.title-text {
    font-size: 4.0rem;
    font-weight: 600;
    margin: 0;
    /*padding: 0px 0px 10px 10px;
    font-style: italic;*/
}

.ad-box {
    background-color: #33343a;
    border-radius: 12px;
    padding: 1rem;
    color: white;
}

.ad-box-red {
    background-color: #D50032;
    border-radius: 12px;
    padding: 1rem;
    color: white;
}

/*
    .card-custom {
        background-color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        border-radius: 8px;
    }
*/
.card-custom {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gr-result-oblique {
    font-style: italic;
}

/*@media (max-width: 767px) {*/ /* Adjust the breakpoint as needed */
    /*.gr-results-leaderboard-box,
    .gr-results-leaderboard-box .detail-box,
    .gr-results-leaderboard-box .table-responsive {
        overflow: visible !important;
    }

        .gr-results-leaderboard-box table {
            display: table !important;
        }
}*/


.footer {
    background-color: #0d1f6b;
    color: white;
}


/* From GreatRunResults.css */

.gr-results-leaderboard-box {
    padding: 15px;
    font-size: 16px;
}

.gr-results-leaderboard-box {
    max-width: 1250px;
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #000;
}

.gr-results-head {
    /*background: #142a95;*/
    color: #000
}

.gr-result-title {
    color: #000;
}

.gr-result-racenumber-surname {
    color: white !important;
    background: #002f6c;
}

.gr-result-text {
    color: #000
}

.gr-result-centre {
    justify-content: center;
    align-items: center;
    margin: auto;
}

.gr-results-box {
    margin: auto;
    width: 98%;
    /*border: 1px solid red;*/
    padding: 10px;
}

/*select#SearchRace {
    background: #d50032;
    width: 280px;
}*/

.button-box-container {
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background: #d71920;
    border: none;
    color: white;
}

    .btn-primary:hover {
        background: #b3151a;
    }

.btn-reset, btn-advreset {
    background: white;
    color: #d71920;
    border: 1px solid #d71920;
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 2em;
    text-align: center;
    min-height: 40px;
    text-transform: uppercase;
    font-size: 1.1rem;
    line-height: 1rem;
    padding: 0 1.5em;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-family-3);
}

    .btn-reset:hover, btn-advreset:hover {
        background: #f8d7da;
    }

.btnResult {
    width: 180px;
    padding: 5px 15px;
    border-radius: 20px;
}

.btnResult-search {
    width: 180px;
    padding: 5px 15px;
    border-radius: 20px;
}

@media (min-width: 393px) {
    
    .title-banner-runner {
        height: 450px;
    }
}

/* Landscape phones (min-width: 600px) */
/* ----------------------------------- */
@media (min-width: 600px) {
    /*.container {
        padding: 1.5rem;
    }*/

    .gr-results-box {
        margin: auto;
        width: 100%;
        /*border: 1px solid red;*/
        padding: 5px;
    }

    /*select#SearchRace {
        width: 470px;
    }*/

    .btnResult {
        width: 180px;
        padding: 5px 15px;
        border-radius: 20px;
    }

    .btnResult-search {
        width: 180px;
        padding: 5px 15px;
        border-radius: 20px;
    }

    .title-banner-runner {
        height: 400px;
    }
}

/* Tablets (min-width: 768px) */
/* -------------------------- */

@media (min-width: 768px) {
    /*
    .header, .main, .footer {
        text-align: left;
    }*/

    .title-banner-runner {
        height: 400px;
    }
}

/* Desktop (min-width: 1024px) */
/* --------------------------- */
@media (min-width: 992px) {
    /*
    .layout {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .main {
        flex: 3;
    }

    .sidebar {
        flex: 1;
    }*/

    .button-box-container {
        display: flex;
        justify-content: space-between;
    }

    .btn-primary {
        background: #d71920;
        border: none;
        color: white;
    }

        .btn-primary:hover {
            background: #b3151a;
        }

    .btn-reset, btn-advreset {
        background: white;
        color: #d71920;
        border: 1px solid #d71920;
        position: relative;
        display: inline-grid;
        place-items: center;
        border-radius: 2em;
        text-align: center;
        min-height: 40px;
        text-transform: uppercase;
        font-size: 1.1rem;
        line-height: 1rem;
        padding: 0 1.5em;
        font-weight: 700;
        text-decoration: none;
        font-family: var(--font-family-3);
    }

        .btn-reset:hover, btn-advreset:hover {
            background: #f8d7da;
        }

    .btnResult {
        width: 240px;
        padding: 5px 15px;
        border-radius: 20px;
    }

    .btnResult-search {
        width: 240px;
        padding: 5px 15px;
        border-radius: 20px;
    }

    .title-banner-runner {
        height: 450px;
    }
}


.select2-container .select2-choice .select2-arrow {
    right: 0;
    left: auto;
}

.select2-container .select2-choice > .select2-chosen {
    margin-right: 14px;
    margin-left: 0;
}



input #Search\.SearchTerms\.RaceNumberSurname {
    width: 60% !important;
}

span.select2.select2-container.select2-container--bootstrap-5 {
    width: 555px !important;
}

label.input-label {
    width: 55% !important;
}

span.select-label {
    width: 55% !important;
}

.select-label {
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    /*background: #d71920;
    padding: 10px;
    display: inline-block;*/
    text-align: left;
    flex-grow: 1;
}

.select-box-container {
    background: #d71920;
    padding: 10px 15px 10px 15px;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    max-width: 100%;
    margin: auto;
}

.select-box {
    width: auto;
    background: transparent;
    border: 1px solid white;
    color: white;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

.input-box-container {
    background: #002f6c;
    padding: 10px;
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    max-width: 100%;
    margin-top: 15px;
}

.input-label {
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    /*padding: 10px;
    display: inline-block;*/
    text-align: left;
    flex-grow: 1;
}

.input-box {
    width: auto;
    background: transparent;
    border: 1px solid white;
    color: white !important;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
}

/* Leaderboard */

.whitebox-title {
    padding: 0px 0px 5px 5px;
}

/* From GreatRunResults.css */


/* Responsive text sizes */
@media (max-width: 768px) {
    /*.title-text {
        font-size: 1.4rem;
    }*/

    .card-custom {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    /*.title-text {
        font-size: 1.2rem;
    }*/

    .nav,
    .footer {
        font-size: 0.9rem;
    }
}


/* FIND YOUR RESULTS */

.search-fields {
    max-width: 850px;
    margin: 0 auto;
}

.search-block {
    padding: 1rem;
    border-radius: 12px;
}

.red-block {
    background-color: #d61f26;
}

.blue-block {
    background-color: #002a70;
}

.search-label {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    margin-bottom: 0;
    width: 400px;
}

.search-input-red {
    border-radius: 30px;
    border: 1px solid white;
    font-style: italic;
    font-weight: 600;
    color: white;
    background-color: transparent;
    width: 100%;
}

.search-input-blue {
    border-radius: 30px;
    border: 1px solid white;
    font-style: italic;
    font-weight: 600;
    color: white;
    background-color: transparent;
    width: 100%;
}

.search-input-red {
    background-color: #d61f26;
}

.search-input-blue {
    background-color: #002a70;
}

    .search-input-red::placeholder,
    .search-input-blue::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

@media (max-width: 576px) {
    .search-label {
        font-size: 1.1rem;
        text-align: left;
        width: auto;
    }

    .search-input-red,
    .search-input-blue {
        font-size: 0.9rem;
    }
}

/* Table Results */
/*
    Position	(Overall)	1
    Position	(Gender)	2
    Position	(Category)	3
    Name					4
    Club					5
    Race		No.			6
    Category				7
    Event					8
    Finish					9

*/

/* Initially hide columns that are not always needed */
    .tableSearchResults .desktop-only-large, /* For widths > 995px */
    .tableSearchResults .desktop-only-medium { /* For widths between 769px and 995px */
        display: table-cell;
    }


.tableSearchResults tr:hover td {
    background-color: #c6cbf1;
    cursor: pointer;
}

#tableLeaderboardMen tr:hover td {
    background-color: #c6cbf1;
    cursor: pointer;
}

#tableLeaderboardWomen tr:hover td {
    background-color: #c6cbf1;
    cursor: pointer;
}

/* Styles for smaller mobile screens (up to 768px) */
@media (max-width: 768px) {
    .tableSearchResults .mobile-always {
        display: table-cell;
    }
    /* Hide columns for small mobile screens */
    .tableSearchResults th:nth-child(1), /* Overall Position */
    .tableSearchResults th:nth-child(2), /* Gender Position */
    .tableSearchResults th:nth-child(3), /* Category Position (in the first header row) */
    /* name */
    .tableSearchResults th:nth-child(5), /* Club */
    /* Race no */
    .tableSearchResults th:nth-child(7), /* Category */
    .tableSearchResults th:nth-child(8), /* Event */
    .tableSearchResults td:nth-child(1), /* Overall Position */
    .tableSearchResults td:nth-child(2), /* Gender Position */
    .tableSearchResults td:nth-child(3), /* Category Position */
    /* name */
    .tableSearchResults td:nth-child(5), /* Club */
    /* Race no */
    .tableSearchResults td:nth-child(7), /* Category */
    .tableSearchResults td:nth-child(8) {
        display: none;
    }
    
    /* Event */
    /* .tableSearchResults td:nth-child(9) */       /* Finish */
    /* .tableSearchResults th:nth-child(9) */       /* Finish */

    /* Ensure columns intended for larger screens are hidden */
    .tableSearchResults .desktop-only-large,
    .tableSearchResults .desktop-only-medium {
        display: none;
    }
  }

  /* Styles for medium-sized screens (between 769px and 995px) */
  @media (min-width: 769px) and (max-width: 995px) {
    .tableSearchResults .mobile-always {
        display: table-cell;
    }
    /* Hide the *other* columns you need to hide in this range */
    .tableSearchResults th:nth-child( /* Add the nth-child index of the columns to hide */ ),
    .tableSearchResults td:nth-child( /* Add the nth-child index of the columns to hide */ ) {
        display: none;
    }

    .tableSearchResults .desktop-only-medium {
        display: table-cell;
    }

    /* Ensure columns intended for larger screens are also hidden here */
    .tableSearchResults .desktop-only-large {
        display: none;
    }
    /* You might choose to show some previously hidden columns in this range if needed */
    /* For example:
    th:nth-child(6),
    td:nth-child(6) {
      display: table-cell;
    }
    */
  }

  /* Styles for larger desktop screens (996px and wider) - all columns should fit */
  @media (min-width: 996px) {
    /* You might want to explicitly show all columns here if you initially hid some with classes */
    .desktop-only-large,
    .desktop-only-medium {
      display: table-cell;
    }
    /* Ensure all basic table cell display is set */
    .tableSearchResults th, .tableSearchResults td {
        display: table-cell;
    }
  }

/* Runner Table Results */

/* Remove padding from the card-custom container */
.card-custom {
    padding-left: 0;
    padding-right: 0;
}

/* Ensure the left and right columns are side by side on larger screens */
.runner-left-column,
.runner-right-column {
    padding-left: 10px; /* Reduced padding to make columns nearly full width */
    padding-right: 10px; /* Reduced padding to make columns nearly full width */
}

/* On small screens (mobile devices), stack the columns vertically */
@media (max-width: 767px) {
    .runner-left-column,
    .runner-right-column {
        width: 100%;
        display: block;
        box-sizing: border-box;
        padding-left: 15px; /* Adjust padding for mobile */
        padding-right: 15px; /* Adjust padding for mobile */
    }

    .row > #order-sm-Participant {
        order: 1; /* Table Participant */
    }

    .row > #order-sm-Ranking {
        order: 2; /* Table Ranking */
    }

    .row > .table.order-sm-Finish {
        order: 3; /* Table Finish */
    }

    .row > #order-sm-Splits {
        order: 4; /* Table Splits */
    }

    .row > #order-sm-Photos {
        order: 5; /* Table Photos */
    }

    .row > #order-sm-Fundraising {
        order: 6; /* Table Fundraising */
    }

    .row > #order-sm-iTab {
        order: 7; /* Table ITab */
    }
           
}

.row {
    display: flex;
    flex-wrap: wrap; /* Important for wrapping on smaller screens */
}


/* On medium screens and larger, each column takes up 50% of the width */
@media (min-width: 768px) {
    .runner-left-column,
    .runner-right-column {
        width: 50%;
        display: inline-block;
    }
        
}

/* Default order on medium and larger screens (no change) */
#order-sm-Participant {
    order: 0;
}

#order-sm-Ranking {
    order: 1;
}

#order-sm-Photos {
    order: 2;
}

#order-sm-Fundraising {
    order: 3;
}



#order-sm-Finish {
    order: 4;
}

#order-sm-Splits {
    order: 5;
}

#order-sm-iTab {
    order: 6;
}



.row > #order-sm-Participant {
    order: 1;
}
/* Table Participant */
.row > #order-sm-Finish {
    order: 2;
}
/* Table Finish */
.row > #order-sm-Ranking {
    order: 3;
}
/* Table Ranking */
.row > #order-sm-Splits {
    order: 4;
}
/* Table Splits */
.row > #order-sm-Photos {
    order: 5;
}
/* Table Photos */
.row > #order-sm-iTab {
    order: 6;
}
/* Table ITab */
.row > #order-sm-Fundraising {
    order: 7;
}
/* Table Fundraising */


.top-spacing-area-runner {
    padding-top: 6px;
}

.top-spacing-area {
    padding-top: 24px; 
}

.top-spacing-area-leaderboard {
    padding-top: 14px;
}

.sub-nav-bottom-line {
    border-bottom: 2px solid #142a86;
    background-color: #F2F2F2;
}

.sub-nav {
    display: flex;
    background-color: #F2F2F2;
    font-family: var(--font-family-1);
}

    .sub-nav a {
        color: Black;
        text-decoration: none;
        padding: 0.5rem 1.0rem;
        display: inline-block;
    }

        .sub-nav a:hover {
            background-color: #142a86;
            color: white;
        }

        .sub-nav a.active {
            background-color: #142a86;
            color: white;
        }


#menHeading, #womenHeading {
    display: none;
}


.adbox-leaderboard-ri .mobile-only {
    display: none; /* Hide mobile image by default */
}

/* Media query for screens smaller than a certain width (e.g., 768px for typical mobile) */
@media (max-width: 768px) {
    .adbox-leaderboard-ri .desktop-only {
        display: none; /* Hide desktop image on mobile */
    }

    .adbox-leaderboard-ri .mobile-only {
        display: block; /* Show mobile image on mobile */
    }
}



@media (max-width: 768px) {
    .gr-result-oblique {
        font-size: 1.8rem;
    }

    .gr-result-raceDescription {
        font-size: 1.6rem;
    }

}

.card-newsletter {
    max-width: 1000px;
}

.card-body-newsletter {

}

