* {
    box-sizing:border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(180deg, #64BEFF -50%, #6e96ff 69.71%, #2a65ff 150%);
    font-family: 'Source Sans Pro', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-container {
    position: relative;
    width: 240px;
    height: 208px;
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/map.png?token=GHSAT0AAAAAAB4TE57EDWWRL3XDSSRGCR6EY7HUUFQ) no-repeat no-repeat;
    transform: scale(3);
    image-rendering: pixelated;
}

.player-info {
    position: absolute;
    top: 0;
    left:0;
    padding: 1em;
    display: flex;
    gap: 0.5em;
    align-items: flex-end
}

label {
    display: block;
    font-weight: bold;
}

input[type="text"],
button {
    font-family: inherit;
    font-weight: bold;
    font-size: 18px;
    height: 44px;
    border-radius: 4px;
    outline: 0;
}

input[type="text"] {
    outline: 0;
    padding-left: 0.5em;
    border: 3px solid #222034;
    width: 150px;
    text-transform: uppercase;
}
input[type="text"]:focus {
    border-color: #f000ff;
}

button {
    padding-left: 0.5em;
    padding-right: 0.5em;
    background: #59ff5a;
    border: 0;
    border-bottom: 2px solid #1e830b;
    cursor: pointer;
}
button:active {
    position: relative;
    top: 1px;
}

/* Characters */
.grid-cell {
    position: absolute;
    width: 16px;
    height: 16px;
}
.Character {
    transition: transform 0.4s;
}
.Character.you {
    z-index: 1;
}
.Character.you .Character_you-arrow {
    display: block;
}
.Character_you-arrow {
    display: none;
    position: absolute;
    top:-18px;
    left: 5px;
    width: 7px;
    height: 5px;
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/arrow.png?token=GHSAT0AAAAAAB4TE57FC3KH67O2MSAUTXQKY7HUUZA) no-repeat no-repeat;
}
.Character_sprite {
    overflow: hidden;
    top: -3px;
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/characters.png?token=GHSAT0AAAAAAB4TE57E2OALJESWWO7PPFY6Y7HUVMA);
}
.Character[data-direction="right"] .Character_sprite {
    background-position-x: 16px;
}
.Character[data-color="red"] .Character_sprite {
    background-position-y: -16px;
}
.Character[data-color="orange"] .Character_sprite {
    background-position-y: -32px;
}
.Character[data-color="yellow"] .Character_sprite {
    background-position-y: -48px;
}
.Character[data-color="green"] .Character_sprite {
    background-position-y: -64px;
}
.Character[data-color="purple"] .Character_sprite {
    background-position-y: -80px;
}
.Character_shadow {
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/shadow.png?token=GHSAT0AAAAAAB4TE57FIRSBZZWQNJ5ATUIWY7HUWNA) no-repeat no-repeat;
}

.Character_name-container {
    position: absolute;
    top: -12px;
    left: -5px;
    font-size: 5px;
    padding: 1px 2px 1px;
    border-radius: 3px;
    background: #333;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
}
.Character_coins {
    margin-left: 1px;
    color: gold;
}

/* Coins */
.Coin_sprite {
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/coin.png?token=GHSAT0AAAAAAB4TE57E3V46MH5GHUOJJCTAY7HUWEA) no-repeat no-repeat;
    animation: coinFloat 0.8s linear infinite alternate-reverse;
}
@keyframes coinFloat {
    from { transform: translateY(0) }
    to { transform: translateY(5px) }
}
.Coin_shadow {
    background: url(https://raw.githubusercontent.com/kangapi/Mutliplayer-Game/main/images/coin-shadow.png?token=GHSAT0AAAAAAB4TE57FN3FFJBB5N2UGBDZIY7HUVXA) no-repeat no-repeat;
}
