* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

img {
    user-drag: none;
    -webkit-user-drag: none;
}

#chatWindow {
    display: none;
}

html, body {
    margin: 0;
    height: 100%;
    background-color: #473622;
    color: white;
}

#gameWindow {
    display:none;
    height: 100vh;
}

#diplomacyDiv, #teamDiv {
    flex: 1;
}

#canvasDiv {
    width: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none
}

#centralUI {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.corner {
    position: absolute;
}

#bottomLeftCorner {
    bottom: 0;
}

#goldDiv {
    position: absolute;
    display: flex;
    gap: 5px;
    font-size: 3.5vh;
    bottom:7vh;
    justify-content: center;
}

#goldIcon img {
    width:3vh;
    height:3vh;
}

#weaponRepresentation {
    position: absolute;
    bottom : 13vh;
    border: 2px solid grey;
    border-radius: 0.5vh;
}

#itemsDiv {
    position: absolute;
    bottom: 1vh;
    display: flex;
    flex-direction: row;
    gap: 1vh;
}

.item {
    width:5vh;
    height:5vh;
    border: 1px solid white;
}

.itemNum {
    position: relative;
    bottom:3.4vh;
    right:0.1vh;
    font-size: 3vh;
    font-weight: bold;
    color: white;
    text-align: right;
}

.item img {
    margin-top:5%;
    margin-left:5%;
    width:90%;
    height:90%;
}

#topLeftCorner {
    top:1vh;
}

#aliveDiv {
    display: none;
}

#healthDiv, #manaDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#foodDiv {
    display: flex;
    flex-direction: column;
    align-items: start;
    margin-top: 4vh;
}

#foodBottomDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#maxHealthDiv, #maxManaDiv, #maxFoodDiv {
    background-color: #000000;
    height: 1vh;
    border:0.5vh solid black;
    border-radius: 1vh;
    margin-bottom: 0.5vh;
}

#maxHealthDiv, #maxManaDiv {
    width:9vw;
}

#maxFoodDiv {
    width:7vw;
}

#currentHealthDiv, #currentManaDiv, #currentFoodDiv{
    width:60%;
    height: 1vh;
    border-radius: 0.5vh;
}

#currentHealthDiv {
    background-color: #00c339;
}

#currentManaDiv {
    background-color: #02dffd;
}

#currentFoodDiv {
  background-color: #fd8f00;
}

#healthValue, #manaValue, #foodValue  {
    margin-top: -0.5vh;
    font-size: 2.5vh;
    font-weight: bold;
}

#healthValue, #manaValue {
     margin-left:0.5vw;
}

#healthIcon, #manaIcon, #foodIcon {
    width: 2.5vh;
    height: 2.5vh;
    margin-right: 0.25vw;
    margin-top: -0.5vh;
}

#healthIcon img, #manaIcon img, #foodIcon img {
    width: 100%;
    height: 100%;
}

#skullDiv {
    width:10vh;
    height: 10vh;
}

#skullDiv img {
    width: 100%;
    height: 100%;
}

#topRightCorner {
    top:3vh;
    right:1vw;
    width:10vh;
    height:10vh;
}

.effect {
    opacity: 0.15;
}

.activeEffect {
    opacity: 1;
}

.enemyEffect {
    opacity: 1;
    border : 0.75vh solid red;
    border-radius: 10vh;
}

.allyEffect {
    opacity: 1;
    border : 0.75vh solid #0000ff;
    border-radius: 10vh;
}

.effect img {
    width: 100%;
    height: 100%;
    display: block;
}

#respawnDiv {
    position : fixed;
    left:43vw;
    width:14vw;
    height:9vh;
    bottom: 2vh;
    display:flex;
    flex-direction: column;
    background-color: rgba(255,255,255,0.8);
    border-radius: 1vh;
}

#respawnTopDiv {
    height: 3vh;
    color:black;
    text-align: center;
    font-weight: bold;
    font-size:2.5vh;
}

#respawnBottomDiv {
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index:1000;
}

#respawnBtn {
    margin-top:0.5vh;
    background-color: #01ae01;
    border-radius: 0.5vh;
    width:6vw;
    height:5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vh;
    font-weight: bold;
    cursor: pointer;
}

#respawnBtn:hover {
    width: 6.5vw;
    height: 5.5vh;
    margin-top:0.25vh;
    font-size: 3.3vh;
}

.spawn_arrow {
    margin: 0.5vh;
    width: 5vh;
    height: 5vh;
    border-radius: 0.5vh;
    cursor: pointer;
}

.spawn_arrow img {
    width: 100%;
    height: 100%;
}

#left_spawn_arrow {
    transform: scaleX(-1);
}

.spawn_arrow:hover {
    width: 5.5vh;
    height: 5.5vh;
    margin-top:0.25vh;
    background-color: lightgrey;
 }

#deathInformationDiv {
    display:none;
    color: #9c0115;
    position: fixed;
    left:35vw;
    top:30vh;
    font-weight: bold;
    font-size: 7vh;
    text-align: center;
    text-shadow:
            -1px -1px 0 white,
            1px -1px 0 white,
            -1px 1px 0 white,
            1px 1px 0 white;
}

#respawnTimeDiv {
    font-size: 5.5vh;
}

.teamsInfoDiv {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width:12vw;
    margin-left: 1vw;
    margin-top:2vh;
}

.menuTeamsInfoDiv {
    display: flex;
    flex-direction: row;
    gap: 1vw;
    width:24vw;
    margin : 0 auto;
    margin-top:2vh;
}


.menuTeamInfoDiv {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left : 2vw;
    border-right : 2vw;
    background-color: #8f8f8f;
    border-radius: 2vh;
    padding: 1vh;
    color : black;
    font-size: 3vh;
    font-weight: bold;
    width:12vw;
    cursor: pointer;
}

.playDiv {
    margin-left:39.5vw;
    margin-top:2vh;
}

#usernameInput {
    font-weight: bold;
    font-size: 2vh;
    border-radius: 1vh;
    height: 4vh;
    width: 16vw;
    text-align: center;
}

#usernameInput::placeholder {
    font-style: italic;
}

#playButton {
    background-color: green;
    color: white;
    font-weight: bold;
    font-size: 2vh;
    border-radius: 1vh;
    border:1vh solid green;
    cursor: pointer;
}

#playButton:hover {
    background-color: darkgreen;
    border:1vh solid darkgreen;
}

.teamInfoDiv {
    display: flex;
    align-items: center;
    gap: 10px;
    border-left : 2vw;
    border-right : 2vw;
    background-color: #8f8f8f;
    border-radius: 2vh;
    padding: 1vh;
    color : black;
    font-size: 3vh;
    font-weight: bold;
}

.teamLogoDiv {
    width: 7vh;
    height: 7vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teamLogoDiv > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.teamDetailsDiv {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.teamDetailsDiv > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.teamInfoIconDiv img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.teamNameDiv {
    display: none;
}

.selectedTeamDiv {
    background-color: #cfcfcf;
    border : 4px solid black;
}

.permanentUI {
    position: fixed;
    z-index: 9999;
}

.permanentUITopRight {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
}

.permanentUIBtn  {
    cursor: pointer;
    width:5vh;
    height:5vh;
    margin-left: 0.5vw;
}

.permanentUIBtn img{
    width:100%;
    height:100%;
}

#exitGameBtn {
    display: none;
}

#confirmLeavingGameDiv{
    display: none;
    position: fixed;
    top:40vh;
    left:40vw;
    flex-direction: column;
    width:25vw;
    height:15vh;
    color:red;
    background-color: #473622;
    border-radius: 2vh;
    cursor: pointer;
}

#confirmLeavingGameDiv > div:first-child{
    margin: 1vh;
    font-size: 5vh;
    font-weight: bold;
    text-align: center;
}

.leaveGameChoices {
    display: flex;
    flex-direction: row;
    margin: 2vh;
    gap:5vh;
}

#confirmLeaveGameBtn {
    background-color: red;
    border: 1px solid red;
    color: black;
}

#cancelLeaveGameBtn {
    background-color: #01ae01;
    border: 1px solid #01ae01;
    color: black;
}

#confirmLeaveGameBtn, #cancelLeaveGameBtn {
    border-radius: 0.5vh;
    width: 10vw;
    height:4vh;
    text-align: center;
    font-size: 4vh;
    font-weight: bold;
}

#confirmLeaveGameBtn:hover, #cancelLeaveGameBtn:hover{
    width: 11vw;
    height:4.5vh;
}

#FPSValue {
    background-color: #01ae01;
    margin-right:2vh;
    font-size: 3vh;
    border-radius: 0.5vh;
    border : 0.5vh solid #01ae01;
    display: none;
}

.tutorial {
    margin-top: 15vh;
    margin-left: 30vw;
    margin-right: 30vw;
}

.tutorialTextDiv {
    text-align: center;
    font-weight: bold;
    font-size: 5vh;
}

.discordDiv {
    position: fixed;
    right: 2vh;
    bottom: 5vh;
    width:8vh;
    height:8vh;
    cursor: pointer;
}

.discordDiv img {
    width:100%;
    height:100%;
}

#versionInfoDiv {
    position: fixed;
    left:1vw;
    bottom: 1vh;
}

#interactDiv {
    position: fixed;
    left:1vw;
    bottom: 1vh;
    width:calc(48vw - 50vh);
    height:45vh;
}

.interactDescriptionDiv {
    font-size: 3vh;
    font-weight: bold;
    margin:1vh;
    text-align: center;
}

#interactDiv > div {
    width:100%;
    height:100%;
    display: none;
    border: 1px solid #afafaf;
    border-radius: 1vh;
    box-sizing: border-box;
    padding: 2vh;
}

#signInteractDiv {
    font-size: 2.5vh;
}

#marketItemsDiv {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5vh 0.5vw;
    width: 100%;
    height: auto;
}

.marketItemTransaction {
    margin:0;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    border:2px solid white;
    border-radius: 0.5vh;
    width:10vh;
    height:4vh;
    cursor: pointer;
}

.marketItemDescription {
    background-color: #a3a3a3;
    width: 4vh;
    height: 4vh;
}

.marketItemDescription img {
    display: block;
    position: relative;
    width:80%;
    height:80%;
    top:10%;
    left:10%;
}

.marketItemPrice {
    padding-top: 0.5vh;
    padding-left: 0.5vh;
    width:6vh;
    font-size: 2.5vh;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    background-color: #00c339;
    color:black;
    text-align: center;
}

.marketItemPrice img{
    position: relative;
    width: 2vh;
    height: 2vh;
    top:0.2vh;
}

#keybindsContainer {
    display: none;
    position: fixed;
    top:15vh;
    right:2vw;
    width: 15vw;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 2vh auto;
    background: #222;
    color: white;
    padding: 2vh;
    border-radius: 1vh;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    font-family: sans-serif;
}

#keybindsContainer h2 {
    text-align: center;
    margin-bottom: 2vh;
}

.keybind {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #555;
    padding: 1vh 0;
}

.keybind .action-description {
    flex: 1;
}

.action-description .key {
    flex: 0 0 8vh;
    text-align: center;
    background: #333;
    border-radius: 0.5vh;
    padding: 0.5vh 1vh;
}

.action-key {
    background: #00c339;
    color: black;
    border: none;
    border-radius: 0.5vh;
    padding: 0.5vh 1vh;
    cursor: pointer;
    transition: background 0.2s;
}

.action-key:hover {
    background: #00e54f;
}

.keybindCategorie {
    text-align: center;
    font-size: 2vh;
    font-weight: bold;
    margin-top: 3vh;
}

#minimapDiv {
    position: fixed;
    right:1vw;
    bottom: 2vh;
    width:calc(48vw - 50vh);
    height: auto;
    border:2px solid white;
    border-radius: 0.5vh;
    overflow: hidden;
}

#minimapDiv > img {
    display: block;
    width:100%;
    height:100%;
 }

#playerPointer {
    position: absolute;
    top:50%;
    left:50%;
    width:1.5vh;
    height:1.5vh;
    transform: translate(-50%, -50%);
    z-index: 10;
}

#playerPointer > img {
    width: 100%;
    height: 100%;
    display: block;
}

#minimapSymbols {
    width:100%;
    height: 100%;
    overflow: hidden;
}

.mapSymbol {
    position: absolute;
    width:1.5vh;
    height:1.5vh;
    transform: translate(-50%, -50%);
}

.mapSymbol > img {
    width: 100%;
    height: 100%;
    display: block;
}

.mapSymbolAlly > img {
    filter: hue-rotate(240deg)
}
