.table-striped {
        /* Set minimum width to 400 pixels */
        min-width: 1000px;
        /* Optionally, you can also specify other styles like border-collapse, padding, etc. */
        border-collapse: collapse; /* Optional: Ensure table borders collapse properly */
    }
.table td {
    padding: .15rem;
    padding-left: .5rem;
}
body {
    line-height: 1.65;
}
.middle {
    background-color: #00ffe229;
}
.top {
    background-color: #ffff006e;
}
.icon {
    display: inline-block;
    max-width: 100%; /* You can use different numbers for max-width and max-height! */
    max-height: 26px;
    width: auto;
    height: auto;
    margin: 0px 0px 3px 3px;
}
.player-data-icon {
    display: inline-block;
    max-width: 100%; /* You can use different numbers for max-width and max-height! */
    height: 42px;
    width: auto;
    margin: 0px 0px 3px 5px;
}
.link-like:hover {
  cursor: pointer;
}

.matches-container {
    display: flex; /* Use Flexbox to make the container flexible */
    flex-wrap: wrap; /* Allow matches to wrap to the next line if necessary */
    justify-content: flex-start; /* Align matches to the start of the container */
}
.match {
    padding: 0.3rem 0;
    background: var(--block-bg);
    color: white;
    margin-bottom: 1rem;
    width: fit-content;
    border-radius: 8px;
    margin-left: 1rem;
    position: relative;
    --block-bg: rgba(18, 18, 18, 0.85);
    --score-vert-padding: 0.1rem;
    --color1: #ff5454;
    font-family: 'DM Mono', monospace;
    line-height: 1;
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
}

.player-row:first-child .player {
    flex-direction: column-reverse;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 13rem;
    overflow: hidden;
    padding: 0 0.5rem;
}

.player h3 a {
    display: flex; /* Ensure the link takes up the full height of the h3 element */
    align-items: center; /* Center the content vertically */
    color: white;
}

.player h3 a:hover {
    color: red; /* Change the color on hover for better visibility */
}

.player .flag {
    height: 1.2rem;
    width: 1.6rem;
    margin-right: 7px;
    border-radius: 2px;
}

.player h3 {
    margin: 0.1rem 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.player__info {
    font-size: 0.7rem;
    text-align: center;
    color: #aaa;
}

.bestOf {
    text-transform: uppercase;
    position: absolute;
    left: 13em;
    top: 10px;
    margin-top: -0.5rem;
    font-size: 0.7rem;
    color: #aaa;
}

.score {
    font-size: 1.2rem;
    margin: 0rem 0;
    padding: 0rem 0rem;
    width: 2rem;
    text-align: center;
    font-weight: 100;
    transition: all 0.2s ease-out;
}

.score--matches {
    padding-left: 0;
    font-weight: bold;
    color: #bdff1f;
    position: relative;
}

.match:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: radial-gradient(ellipse at center, #8ef4ff, rgba(14, 14, 14, 0) 70%);
    opacity: 0.1;
}

/* White bar behind matches */
.player:before {
    content: '';
    height: 100%;
    width: 2rem;
    background: rgba(255, 255, 255, 0.03);
    position: absolute;
    left: 13rem;
    top: 0;
}

.score.running {
    border-right: none;
    color: var(--color1);
    font-weight: bold;
}

.score.ended.win {
    font-weight: bold;
}

.score.winner {
    color: #ff9595;
    font-weight: bold;
}

.match.match--ended .score.win {
    color: var(--color1);
}

.player-row:first-child {
    border-bottom: 2px solid rgba(0, 0, 0, 0.3);
}

.player-row:first-child .score {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: var(--score-vert-padding);
}

.player-row:last-child .score {
    border-top: none;
    border-bottom: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding-top: var(--score-vert-padding);
}

.match-id {
    text-transform: uppercase;
    position: absolute;
    left: 12em;
    margin-top: -0.5rem;
    font-size: 0.7rem;
}

#image-container {
  background-color: #f0f0f0; /* Choose your desired background color */
  display: inline-block; /* Ensures the container only takes up as much space as needed by the image */

}
#image-container img {
  display: block; /* Ensures the image fills the entire container */
  width: 100%; /* Makes the image responsive */
}


.fitting-image {
  width: 280px;
  height: 280px;
  object-fit: none;
  border: 3px solid #bbb;
  flex: 0 0 auto;
}

#player-info {
    display: flex; /* Use flexbox to arrange items */
    align-items: center; /* Center items vertically */
}

#player-picture-container {
    flex: 0 0 auto; /* Don't grow or shrink, maintain initial size */
    margin-right: 20px; /* Add spacing between picture and data */
}

#player-stats {
    flex: 1; /* Allow player data to grow and fill remaining space */
}

.details-flag {
    display: inline-block;
    max-width: 100%; /* You can use different numbers for max-width and max-height! */
    max-height: 24px;
    width: auto;
    height: auto;
    margin: 0px 0px 2px 2px;
    }

.list-group-item {
    padding: 0px 10px; /* Adjust padding as needed */
    margin-bottom: 0; /* Remove bottom margin to reduce spacing between li elements */
}
.expand {
    margin: 0px;
    padding: 0px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-overlay img {
    margin-bottom: 20px;
    width: 190px;
    height: 190px;
    object-fit: contain;
}
