*{
    margin: 0;
    padding: 0;
    font-family: "Electrolize", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body{
    background-color: rgba(225,170,0,0.4);
    overflow: hidden;
}

#BoxStyle > div, #BoxStyle > ul{
    position: absolute;
    transform: translate(-50%,-50%);
    border: lightgreen 20px ridge;
    background-color: #bd7400;
}

#BoxStyle > div:not(.CoinBox){
    z-index: 500;
}

.CoinBox{
    z-index: 1000;
    width: 200px;
    height: 200px;
}

#baText{
    color: white;
    text-align: center;
    position : relative;
    z-index: 1500;
    top: 150px;
    left: 50%;
    width: 100%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    
    
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    
    font-family: "DynaPuff";
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

/* Style de la barre de défilement */
::-webkit-scrollbar {
    width: 20px; 
    background-color: transparent;
}

/* Style de la poignée de la barre de défilement */
::-webkit-scrollbar-thumb {
    border-radius: 5px; /* Bordure arrondie pour la poignée */
    background-color: #bd7400;
    border: lightgreen 5px solid;
}

/* Style de la piste de la barre de défilement */
::-webkit-scrollbar-track {
    background-color: transparent; /* Couleur de la piste */
}

.Village{
    width: 80%;
    height: 60%;
    position: absolute;
    transform: translate(-50%,-50%);
    left: 50%;
    top: 50%;
}

td{
    width: 33.3%;
}

.Village img{
    height: 200px;
    position: relative;
    left: 50%;
    top: 10%;
    transform: translate(-50%,0);
}

#imgMenu{
    width: 50%;
    height: 50%;
    top:50%;
    left: 50%;
    position: relative;
}

#imgTuile{
    left: 25px;
    top: 55%;
    position: relative;
    height : 40%;
    border: 2px solid ridge;
    
}

#money{
    position : relative;
    top: 50%;
    left: 60px;
    text-decoration:  none;
    color: white;
    font-size: 50px;
}

#d592305430{
    background-color: rgba(0,0,0,0.75);
    width:  100%;
    height: 100%;
    z-index: 1000000;
    top: 0;
    left: 0;
    position: absolute;
}

#d05326565{
    width: 200px;
    height: 200px;
    position: relative;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    filter: grayscale(1);
}

.button{
    height: 35px;
    font-size: 25px;
    background-color: lightgrey;
    color: black;
    position: relative;
    padding: 5px;
    text-align: center;
    text-decoration: none;
    display: block;
    font-weight: bold;
    border: black 2px ridge;
    margin-top: 20px;
}
.button:hover{
    background-color: green;
    color: white;
    border: white 2px ridge;
}


#boxDialog{
    width: 80%;
    max-height: 80%;
    overflow-y: scroll;
    height: auto;
    top: 50%;
    left: 50%;
    position: absolute;
    background-color: #bd7400;
    border: gold 20px ridge;
    z-index: 1000001;
    transform:  translate(-50%,-50%);
}

.Title_boxDialog{
    width: 75%;
    height: 35px;
    top: 17.5px;
    left: 50%;
    border: gold 10px ridge;
    transform:  translate(-50%,-50%);
    text-align: center;
    font-size: 25px;
    padding: 5px;
    color: white;
    background-color: #bd7400;
    position: relative;
}

.Content_boxDialog{
    top: 15px;
    color: white;
    background-color: transparent;
    width: 95%;
    position: relative;
    left: 0;
    padding: 2.5%;
    text-align: justify;
    font-size: 25px;
}

#Inventory{
    top: 100%;
    left: 50%;
    width: 60%;
    height: 130px;
    z-index: 1002;
    transform: translate(-50%,-100%);
    border: lightgreen 20px ridge;
    border-bottom: none;
    background-color: #bd7400;
    position: absolute;
    overflow-y: hidden;
    overflow-x: scroll;
}

#Inventory > ul{
    height: 100%;
    width: 720px;
    position: relative;
    list-style-type: none;
}

#Inventory li{
    display: inline-block;
    list-style-type: none;
    border: none;
    width: 90px;
}

.Trade{
    display: block;
    width: 100%;
    border-collapse:  collapse;
    border: none;
    height:auto;
    border: 2px solid transparent;
    margin-top: 10px;
}

.Trade:hover{
    border: 2px solid gold;
    background-color: green;
}

.Trade tr{
    width: 100%;
}

.Trade td{
    width: 33.33%;
}


.ItemBox{
    background-color: rgba(0,0,0,0.5);
    height: 80px;
    width: 80px;
    border: 1px gold ridge;
    position: relative;
    display: block;
    margin: 5px;
}

.ItemBox > img{
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    position: relative;
}

.ItemBox > p{
    height: 20px;
    width: 50px;
    top: 0px;
    left: 80px;
    position:  relative;
    background-color: rgba(0,0,0,0.85);
    color: white;
    font-size: 20px;
    padding: 1px;
    text-align: center;
    transform: translate(-100%,-100%);
    border-radius: 10px;
    border: 1px solid white;
}
