.table-hgt {
    background-color: #fff;
}

.ranking-table {
    position: relative;
    top: -47px;
    width: 100%;
    margin: 0 auto;
}

.rank-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: flex-end;
}

.rank-select-year label,
.rank-select-city label {
    color: #ffffff;
    text-align: left;
    margin: 0% !important;
    line-height: 140%;
    padding: 13px 0;
    text-transform: capitalize;
    font-size: 16px;
    border-radius: 5px;
}

.rank-select-year,
.rank-select-city {
    display: inline-flex !important;
    flex-direction: column;
}

.rank-select-year select,
.rank-select-city select {
    flex: 1;
    /* Makes both selects equal in width */
    padding: 8px;
    border-radius: 5px;
    padding: 0px 10px;
    width: 200px;
}


/* General Styling */
.rank-flex {
    display: grid
;
    grid-template-columns: 0.6fr 0.6fr 4fr;
    background-color: #fff;
    /* border-radius: 6px; */
    grid-template-areas: "medal img name";
    padding: 0 !important;
}

.rank-flex-medal {
    width: 40px;
    align-self: self-start;
    justify-self: center;
    grid-area: medal;
}

.rank-flex-image {
    border-radius: 50%;
    width: 55px;
    height: 55px;
    grid-area: img;
    margin: 14px 0;
}

.rank-flex-content-p {
    grid-area: name;
    border: none !important;
    text-align: left !important;
    margin: 18px 0;
}

.rank-flex-content-p a {
    text-decoration: none;
    color: #000;
}

.ranking-row {
    display: grid
;
    grid-template-columns: 0.5fr 2fr 0.4fr 1fr 0.4fr;
}

.ranking-row div {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    text-transform: capitalize;
}

.ranking-row.header div {
    background-color: #717171;
    color: white;
}

.ranking-row.header div:first-child {
    border-top-left-radius: 10px;
}

.ranking-row.header div:last-child {
    border-top-right-radius: 10px;
}

.ranking-row button {
    padding: 0px 4px;
    color: #fff;
    cursor: pointer;
    width: 140px;
    border: none;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 16px;
}

.ranking-row .booked-btn {
    background-color: #b3b3b3;
}

.ranking-row .book-btn {
    background-color: #89c63d;
}

.set-n {
    display: none;
}

.ranking-row div:nth-child(1) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ranking-row div:nth-child(4) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ranking-row div:nth-child(8) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.extra-brd {
    border: none!important;
}

.fa-smile {
    color: #89c63d;
}

.fa-frown {
    color: #ff0000;
}

.win {
    color: #89c63d;
}

.loss {
    color: #ff0000;
}

@media (max-width: 1200px) {}

@media (max-width: 1000px) {

    .rank-flex-content-p {
        margin: 0px 0;
    }


    .rank-flex {
        display: grid;
        grid-template-columns: 0.1fr 1fr;
        background-color: #fff;
        padding: 0 10px !important;
        grid-template-areas:
            "item1 item2"
            "item3 item3";
        justify-items: start;
    }

    .rank-flex-medal {
        grid-area: item1;
    }

    .rank-flex-image {
        grid-area: item2;
    }

    .rank-flex-content-p {
        grid-area: item3;
    }

    .ranking-table {
        width: 95%;
        margin: 0 auto;
    }



    #rankingList {
        padding: 35px 15px;
        background-color: #fff;
        border-radius: 10px;
        box-shadow: 0px 3px 18px 0 #00000073;
    }

    .ranking-row div:nth-child(1) {
        display: none;
        grid-area: item1;
    }

    .ranking-row div:nth-child(2) {
        grid-area: item2;
    }

    .ranking-row div:nth-child(3) {
        grid-area: item3;

    }

    .ranking-row div:nth-child(4) {
        grid-area: item4;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ranking-row div:nth-child(5) {
        grid-area: item5;
    }

    .ranking-row div:nth-child(6) {
        grid-area: item6;
    }

    .ranking-row div:nth-child(7) {
        grid-area: item7;
    }

    .ranking-row div:nth-child(8) {
        grid-area: item8;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .set-n {
        display: block;
    }

    .header {
        display: none;
    }



    .ranking-row {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        grid-template-areas:
            "item2 item2 item2 item2 item2 item2 item2"
            "item3 item3 item3 item5 item5 item7 item7"
            "item4 item4 item4 item6 item6 item8 item8"
    }

    .ranking-row:not(:last-child) {
        margin-bottom: 20px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    .rank-filter form {
        /* Stack the dropdowns vertically on smaller screens */
        margin-bottom: 40px;
    }

    .rank-filter form {
        width: 412px;
        margin: 0 auto;
        float: none;
    }

    .header {
        display: none;
    }

    .ranking-row .header {
        display: grid;
    }

    .ranking-row button {
        margin: 0 auto;
    }

    .ranking-row button {
        margin: 0 auto;
    }
    .rank-flex {
        grid-template-columns: 0.4fr 1fr;
    }
}

@media (max-width: 600px) {

   
    .ranking-row div {
        font-size: 15px;
    }
    .rank-flex-image {
        margin: 12px 0 0px;
    }
    /* .rank-flex {
        grid-template-columns: 0.4fr 1fr 1fr;
        grid-template-areas:
        "item1 item2"
        "item3 item3";
    } */
    .ranking-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "item2 item2 "
            "item3 item4"
            "item5 item6"
            "item7 item8";
    }
}

@media (max-width: 412px) {
    .rank-filter form {
        width: 212px;

    }

    .rank-select-year,
    .rank-select-city {
        padding-bottom: 50px;
        width: 48%;
    }

    .rank-select-year select,
    .rank-select-city select {
        width: 100%;
    }
}