.container-admin{
    height: 90vh;
    overflow: auto;
}

@media only screen and (max-width: 600px) {
    .container-admin{
        height: 70vh;
        overflow: auto;
    }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) {
  /* CSS rules for iPads in both orientations */
  #all_players_display * {
    font-size: 2rem;
  }
}


.main-player-card{
  background-image: linear-gradient(to right top, #ffffff, #fcf9fd, #fcf1f8, #feeaef, #ffe3e3);
    border: 1px dashed lightgray; 
    border-top: 5px solid darkred; 
    margin-top: 5px;
}
.card-active{
    background-image: linear-gradient(to right top, #ffffff, #fcf9fd, #fcf1f8, #c1cec2, #4bb38b);
    border: 1px dashed lightgray; 
    border-top: 5px solid darkred; 
    margin-top: 5px;
}

.match-player-card{
    border: 1px dashed lightgray; 
    border-top: 3px solid darkred; 
    margin-top: 5px;
}

.main-player-card-dark{
  background: #ffffff;
  border: 1px dashed lightgray; 
  border-top: 5px solid darkred; 
  margin-top: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}

.player-img-ranking {
        width: 90%;
        height: 25vw;
        text-align: center;
        /* Ensures the image fits within its container */
        /*height: 50%; 
        /* Adds rounded corners for a softer look */
        border-radius: 5px; 
        /* Adds a shadow for depth */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
        /* Centers the image if inside a flex or grid container */
        margin: auto; 
    
}






.match-card {
    background-color: rgb(223, 250, 250);
    font: 0.5em sans-serif;
}

body{
    /*background-color: rgb(245, 245, 232);*/
    background-color: rgb(255, 255, 255);
}



/* Parent container to use flexbox */
#player-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Spacing between cards */
}

#selected-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Spacing between cards */
}

.selected-player-card {
    flex: 0 1 20%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    /*padding: 8px;*/
    transition: 0.3s;
    height: auto; /* Fixed height for consistency */
    font-size: 0.45rem;
    /*position: relative;*/
    cursor: pointer;
    min-width: 0; 
    
}

/* Player card styling with equal width */
.player-card {
    flex: 0 1 23%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    /*padding: 8px;*/
    transition: 0.3s;
    height: 120px; /* Fixed height for consistency */
    font-size: 0.85rem;
    position: relative;
    cursor: pointer;
    min-width: 0; 
    
}

/* Disabled card styling */
.player-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}

/* Selected team styles */
.player-card.selected-team1 {
    border-color: #28a745;
    background-color: #e6f9e6;
}

.player-card.selected-team2 {
    border-color: #ffc107;
    background-color: #fff3cd;
}

/* Highlight on hover */
.player-card:hover:not(.disabled) {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Team label position */
.team-label {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
}

.registered {
    background-color: rgba(202, 255, 153, 0.7);
}
.not-registered {
    background-color: rgba(255, 255, 255, 0.7);
}








#match-table {
    font-size: 12px;
}

.font12{
    font-size: 12px;
}


#tournaments-table .active{
    color: #28a745;
}

.row-match{
    width:100%;
    /*padding: 5px;*/
}


.player-img-match {
        width: 90%;
        height: 20vw;
        /* Ensures the image fits within its container */
        /*height: 50%; 
        /* Adds rounded corners for a softer look */
        border-radius: 5px; 
        /* Adds a shadow for depth */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
        /* Centers the image if inside a flex or grid container */
        margin: auto; 
    
}

.team-card{
    width: 40%;
    padding: 0;
    margin: 2px;
}

.image-container-player {
    padding: 0;
    margin: 0;
    width: 45vw;
    text-align: center
}


.image-container-match {
    padding: 0;
    margin: 0;
    width: 100%;

    /*position: relative; /* Allows label to be positioned relative to the container */
    /*display: inline-block; /* Ensures the container fits the content */
    text-align: center
}

.image-container-match a{
    font-size: 12px;
}



.image-label {
    /*position: absolute; /* Positions the label inside the container */
    bottom: -0.5px; /* Distance from the bottom of the container */
    left: -0.5px; /* Distance from the left of the container */
    /*background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    color: #000000; /* White text for contrast */
    padding: 1px 1px; /* Adds padding around the text */
    /*border-radius: 2px; /* Rounded corners for the label */
    /*font-size: 12player-imgpx; /* Adjust font size */
    /*font-weight: bold; /* Make the text bold */
    overflow: none;
}

.image-label a{
    color: #000000; /* White text for contrast */
}
.image-label a:visited {
    color: #000000; /* White text for contrast */
}

.result-won::after{
    content: "WON"; /* Watermark text */
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(255, 215, 0, 0.9); /* Transparent gold */
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    rotate: -30deg;

    background-color: rgba(193, 219, 45, 0.2); /* Light gold background */
    border: 2px solid gold; /* Gold border for emphasis */

    animation: watermarkFloat 2s ease-in-out infinite;
    
}

.result-won {
    position: relative;
    /*background-color: rgba(255, 0, 0, 0.2); /* Light gold background */
    /*border: 2px solid gold; /* Gold border for emphasis */
    border-radius: 10px; /* Rounded corners */
}

@keyframes watermarkFloat {
    0% {
        transform: translate(-50%, -50%) rotate(-0deg) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translate(-50%, -52%) rotate(-0deg) scale(1.15);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(-0deg) scale(1);
        opacity: 0.9;
    }
}


.result-withdrawn::after{
    content: "DRAWN";
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3em;
    color: rgba(0, 247, 255, 0.8);
    font-weight: bold;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    rotate: -10deg;

    background-color: rgba(45, 155, 219, 0.2);
}


.result-withdrawn {
    position: relative;
    /*background-color: rgba(0, 247, 255, 0.2); /* Light gold background */
    /*border: 2px solid rgb(0, 183, 255); /* Gold border for emphasis */
    /*border-radius: 10px; /* Rounded corners */
}

tr{
    padding: 10px;
}


/* ---------- Site navbar ----------
 *
 * Club red, kept as the brand colour. The bar is fixed-top and 60px tall and
 * pages reserve exactly that with their own --nav-clearance, so nothing here
 * may change its height — padding on .site-nav is the thing to leave alone.
 */
.site-nav {
    background-color: #ea2222;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .18), 0 2px 10px rgba(0, 0, 0, .16);
}

.logo {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #ea2222;
    background-color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    letter-spacing: 0.01em;
}

.logo::first-letter{
    font-size: 20px;
}

/* Links: white by default, and the current page reads as current — the active
 * class used to be hardcoded onto แมชท์ on every page, so it meant nothing. */
.site-nav .nav-link {
    color: rgba(255, 255, 255, .82);
    font-weight: 600;
    border-radius: 7px;
    padding: 6px 11px;
    transition: color .15s ease, background-color .15s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
    color: #fff;
    background-color: rgba(0, 0, 0, .14);
}

.site-nav .nav-link.active {
    color: #fff;
    background-color: rgba(0, 0, 0, .2);
}

/* The payment trigger is a <button> so it is reachable by keyboard as one;
 * strip the chrome a button brings so it still sits with the links. */
.site-nav__button {
    background: none;
    border: 0;
    font: inherit;
    line-height: inherit;
}

.site-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, .45);
    padding: 4px 8px;
}

.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .3); }

/* Search: a plain white field reads as a hole punched in the red bar, so tint
 * it instead and let it come forward only on focus. */
.site-nav__search .form-control {
    min-width: 190px;
    background-color: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.site-nav__search .form-control::placeholder { color: rgba(255, 255, 255, .7); }

.site-nav__search .form-control:focus {
    background-color: #fff;
    color: #1d2939;
    border-color: #fff;
    box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .28);
}

.site-nav__search .btn-dark {
    border-color: rgba(0, 0, 0, .2);
    background-color: rgba(0, 0, 0, .28);
}

.site-nav__search .btn-dark:hover { background-color: rgba(0, 0, 0, .42); }

/* Collapsed on a phone the menu becomes a stacked panel, so give the items
 * room and stop the search field stretching edge to edge. */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        background-color: #d41d1d;
        border-radius: 10px;
        margin-top: 8px;
        padding: 8px 10px 12px;
    }

    .site-nav__search { margin-top: 4px; }
    .site-nav__search .form-control { min-width: 0; }
    .site-nav__button { text-align: left; width: 100%; }
}


.image-container-all-ranking{
    width: 25vw;
}


.image-container-ranking {
    
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative; /* Allows label to be positioned relative to the container */
    display: inline-block; /* Ensures the container fits the content */
}

.player-img-main {
    width:100%;
    /* Ensures the image fits within its container */
    height: auto; 
    /* Adds rounded corners for a softer look */
    border-radius: 10px; 
    /* Adds a shadow for depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    /* Centers the image if inside a flex or grid container */
    margin: auto; 

}

.img-search {
    width:100%;
    /* Ensures the image fits within its container */
    height: auto; 
    /* Adds rounded corners for a softer look */
    border-radius: 10px; 
    /* Adds a shadow for depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    /* Centers the image if inside a flex or grid container */
    margin: auto; 

}


.alias{
    color: rgb(122, 2, 2);
}

.ranking-level{
    color: rgb(20, 5, 156);
    font-style: italic;
    font-size: 12px;
}

.ranking-rlv{
    color: rgb(122, 2, 2);
    font-style: italic;
    font-size: 14px;
}


.ranking-player-link{
    font-size: 16px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.hidden{
    display: none;
}


#mvp-box{
    width: 100%;
    height: 82%;
    border: none;
    /*border-radius: 9px;*/
    /*border-top-left-radius: 9px;*/
    /*border-top-right-radius: 9px;*/
    padding: 0px 0px 0px 0px;
    /*border: 1px dashed #ddd;*/
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    background-color: linen;
}

#top-spender-box{
    width: 100%;
    height: 82%;
    border: none;
    /*border-radius: 9px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;*/
    padding: 0px 0px 0px 0px;
    /*border: 1px dashed #ddd;*/
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    background-color: linen;
    /*margin-left: 10px;*/
}

.mvp-container{
    width: 58px;
    display:inline-block;
    text-align: center;
    height: 75px;
    /*background-color:rgb(247, 239, 230);*/
    border-radius: 20px;
    border: none;
    font-size: 10px;
    
}

.mvp-container img{
    width: 50px;
    height: 50px;
}

.special-players{
    font-weight: 800;
    color: rgb(0, 0, 0);
}

.special-players::first-letter{
    font-size: 30px;
    color: rgb(0, 0, 0);
}

.heading-special-players{
    background-color: rgba(255, 0, 0, 0.);
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
}

#head-1 {
    position: relative;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#head-1::before{
    content: '';
    width: 100%;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../../../images/bg-main.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5; /* adjust transparency here */
    z-index: -1;
    /*width: 100%; /* or any fixed width like 500px */
}




