body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    text-align: center;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

#new-game {
    position: absolute;
    left: 0;
}

#health-bar-container {
    position: relative;
    width: 300px;
    height: 25px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #e0e0e0;
    margin: 0 auto;
}

#health-bar {
    height: 100%;
    border-radius: 5px 0 0 5px;
    transition: width 0.3s;
}

#health-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    line-height: 25px;
    color: #333;
    font-size: 14px;
}

#health {
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/*#health {
    font-size: 1.2em;
    margin-bottom: 10px;
}*/

#log-button {
    position: absolute;
    right: 0;
    white-space: nowrap;
}

#log-button:hover {
    background-color: #e0e0e0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#barehanded-button {
    background-image: url('/static/images/fist.svg');
}

#weapon-button {
    background-image: url('/static/images/weapon.png');
}

#barehanded-button, #weapon-button {
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
}


.weapon-area, .button-area {
    border: 1px solid #333;
    padding: 10px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px; /* Added spacing between sections */
}

.dungeon {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px; /* Added spacing below dungeon */
}

.dungeon-slot, .deck, .discard-pile {
    padding: 10px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #eee;
    vertical-align: middle;
    margin-top: 10px;
}

.dungeon-slot img {
    width: 60px;
    height: 60px;
    display: block;
    margin: 0 auto;
}

.background-title-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-image: url('./images/Title.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.background-title-container {
    width: 100%;
    max-width: 1080px;
    height: 80%;
    position: relative;
    overflow: hidden;
}

.body-title {
    background-color: #E3D3BC;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

button {
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

button#run-away {
    background-color: #f56b6b;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button#run-away:hover {
    background-color: #e04646;
}

.discardable-card {
    border: 2px solid #f56b6b;
    background-color: #ffe6e6;
    transition: background-color 0.3s, border 0.3s;
}

.attackable-card {
    border: 2px solid #4CAF50;
    background-color: #e6ffe6;
    transition: background-color 0.3s, border 0.3s;
}
