#contentContainer {
    display:flex;
    width:96%;
    gap:10px;
    margin-top:25px;
}

#PlayerAndStatsContainer {
    display: flex;
    width: 100%;
    justify-content: space-evenly;
}

/* ItemFilters */

#ItemFilters {
    display: flex;
    gap: 10px;
    overflow: auto;
    width: 100%;
}

/* Scoreboard */

.scoreboardItem {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background:#333333;
    gap:10px;
    padding:10px;
    height: 50px;
    cursor: pointer;
}

.scoreboardItem h3{
    width:25px;
    height:25px;
    min-width:25px;
    min-height:25px;
    padding:10px;
    background-color:white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color:black;
}

.scoreboardItem .Username{
    font-weight: bold;
    color:white;
}


/* Player 3d Canvas */


#mainPlayerWindows {
    background: #333333;
    touch-action: none;
    border-radius: 20px;
    border: 2px solid #b8deff;
    position: relative;
    z-index: -1;
    width: 100%;
    height:100%;
    display: flex;
}

#mainPlayerWindows canvas {
    border-radius: 20px;
    width:100%!important;
    height:100%!important;
}

/* Player Stats */

#PlayerStatsContainer {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
    margin-bottom: 10px;
}

#PlayerStats {
    width:100%;
    background: azure;
}

.statsItemContainer {
    background: #333333;
    color: #f3f3f3;
    border: 1px solid #333333;
    padding: 1px;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    justify-content: space-between;
    align-items: center;
}

.statsItem {
    white-space: nowrap;
}

.statsItemValue {
    background: #515151;
    padding: 5px;
    font-weight: 700;
    border-radius: 10px;
}

.statsItemImg {
    width:30px;
    height:30px;
    aspect-ratio: 1;
}

@media (max-width:1200px) {
    #PlayerStatsContainer {
        overflow-y: unset;
        overflow-x: unset;
        max-height: unset;
    }
}

/* Player Inventory */ 

.playerInventoryItem {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: url('https://www.clashonlive.com/assets/img/web/IMGBackInventory.png');
    padding: 10px;
    border: 2px solid gray;
    border-radius: 10px;
}

.playersInventoryItems {
    display:flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    height: 110px;
    justify-content: center;
    cursor:pointer;
}

.playersInventoryItems img {
    width:80px;
    height:80px;
    min-width:80px;
    min-height:80px;
    border-radius: 10px;
}

.itemName {
    font-weight: 700;
    color: #dfdfdf;
    margin:0;
    padding:2px;
    white-space: nowrap;
}

.itemAmount {
    color: #333333;
    position: absolute;
    background: white;
    border-radius: 50%;
    padding: 2px;
    aspect-ratio: 1 / 1;
    display: flex;
    min-height: 15px;
    align-items: center;
    justify-content: center;
    font-weight: Bold;
}

.imgItemContainer {
    background: radial-gradient(#695952, #1a1a16);
    padding: 5px;
    border: 4px solid #524436;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    filter: drop-shadow(2px 2px 2px #00000050);
    height: fit-content;
}

/* tooltip */

#tooltip {
    display: none;
    position: fixed;
    max-width:280px;
    background-color: white;
    color: black;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 999;
    user-select: none;
    touch-action: none;
    pointer-events: none;
    font-weight:bold;
}

/* PlayerOrnement */

#displayPlayerOrnement {
    display:none;
    position: absolute;
    max-width: 450px;
    width: 100%;
    min-width: 250px;
    z-index: 0;
}

/* displayPlayerName */

.displayPlayerName {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    text-align: center;
    margin-bottom: 5px;
    display: flex;
    z-index: 1;
    flex-direction: column;
    align-items: center;
}

/* playerClassementTop (TOP10) */

#playerClassementTop {
    filter: drop-shadow(0px 0px 5px #ffee00);
    color: #ffffff;
    background: #000000;
    font-size: 14px;
    position: absolute;
    margin-top: -60px;
    border-radius: 13px;
    padding: 3px 8px 3px 8px;
    width: fit-content;
    border: 1px solid #ffe000;
}

/* Select 2 css */

.select2-img-option {
    width:35px;
    height:35px;
    min-height:35px;
    min-width:35px;
  }
  
  .select2-span-image {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  #mainScoreboard {
    max-height:700px;
    overflow: auto;
  }
  

/* MEDIA CSS 1200px */

@media (max-width: 1200px) {
    #mainScoreboard {
        display:flex;
        max-width: 100vw;
        overflow: auto;
    }

    #contentContainer {
        flex-direction: column;
        width:100%;
    }

    .playersInventory {
        width:100%;
        justify-content: center;
    }

    #playerContainer {
        flex-direction: column;
    }

    #tooltip {
        padding: 2px 5px;
    }

    #PlayerAndStatsContainer {
        padding-top: 25px;
    }
}


/* MEDIA CSS 1000px */

@media (max-width: 1000px) {
    #PlayerAndStatsContainer {
        flex-direction: column;
    }
}

/* MEDIA CSS 600px */

@media (max-width: 600px) {

    #mainPlayerWindows canvas {
        /*height: 90vw !important;*/
        aspect-ratio: 1 / 1;
    }

    #loader3DContainer {
        width: 90vw;
        max-height: 500px;
        height: auto;
    }
}