* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("./images/background.png");
    background-repeat: repeat;
    color: #dddddd;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: 1.5px;
    font-size: 14px;
}

.container {
    width: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #121212;
}

#gameScreen {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.canvasContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #121212;
}

#gameControls,
.charsInfo {
    flex: 0 0 50%;

}


#gameControls {
    padding: 20px;
    border-right: 2px solid #222222;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media only screen and (min-width : 1224px) {
    /* Styles */
    .content {
        width: 70%;
        max-width: 980px;
        justify-items: center;
    }
}

#gameControls button {
    box-shadow: none;
    border: 2px solid #444444;
    color: #ffffff;
    padding: 10px 20px;
    background-color: #111111;
    cursor: pointer;
    font-family: monospace;
    height: 40px;
    max-width: 200px;

}

#gameControls button:hover {
    border: 2px solid #bababa;
}

#playerInfo,
#enemyInfo {
    padding: 5%;
}

#playerInfo {
    background-color: #111130;
}

#enemyInfo {
    background-color: #301111;
}

canvas {
    border: 1px solid #222222;
    background-color: black;
}

h3 {
    font-size: 16px;
}

h1 {
    font-size: 20px;
}

h3.charName {
    margin-bottom: 8px;
}

button.nextSceneBtn {
    box-shadow: none;
    border: 2px solid #448866;
    color: #880000;
    font-weight: bold;
    padding: 10px 35px;
    background-color: #44aa44;
    cursor: pointer;
    font-family: monospace;
    margin: 20px;
    margin-bottom: 0;
    font-size: 18px;
    letter-spacing: 0.7px;

}

.hpStat,
.mpStat {
    position: relative;
    width: 100%;
    height: 24px;
    border: 2px solid #111;
    overflow: hidden;
}


.hpFill,
.mpFill {
    height: 100%;
    width: 100%;
    transition: width 0.2s ease-out;
}

.hpText,
.mpText {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    color: #dddddd;
    font-family: monospace;
    font-size: 14px;
    pointer-events: none;
}

.hpFill {
    background: linear-gradient(to right, #ff0044, #aa0066);
}

.hpStat {
    background-color: #300;
    margin-bottom: 5px;
}

.mpStat {
    background-color: #181425;
}

.mpFill {
    background: linear-gradient(to right, #3a4466, #124e89);
}

.hp,
.mp {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hpLabel,
.mpLabel {
    margin-right: 8px;
    font-weight: bold;
    color: #aaaaaa;
}

#inventoryContainer {
    padding: 10px;
    border: 2px solid #444444;
    background-color: #1a1a1a;
}
.itemList{
    display: flex;
    flex-direction: row;
}
#inventoryContainer h3 {
    margin-bottom: 10px;
}
#inventoryContainer .item{
    margin: 5px;
    padding: 10px;
    border: 2px solid #333333;
    cursor: pointer;
    display: flex;
    gap: 5px;
    background-color: #111111;
    color: white;
    align-items: center;
}
#inventoryContainer .item img{
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.coinsDisplay{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.inventoryHeader{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-direction: row;
}