* { box-sizing: border-box; } body { margin: 0; } img { display: inline-block; max-width: 100%; } .wrap { margin: 0 auto; width: 1200px; height: 100vh; display: flex; justify-content: center; align-items: center; } .popup__overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center; } .popup { background-color: #fff; padding: 1rem; } #battle { user-select: none; min-width: 750px; min-height: 300px; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; background-image: url('/modules/tuxemon/mods/tuxemon/gfx/backgrounds/test/back02.png'); background-image: url('https://wiki.tuxemon.org/images/9/9f/Sea_background.png'); background-size: cover; } #battle__enemy { position: relative; cursor: pointer; flex-grow: 1; } .battle__monster { display: flex; justify-content: space-between; align-items: center; } .battle__monster-info { border: 2px solid #000; background-color: beige; flex-grow: 1; flex-basis: 50%; } .battle__monster-info-box { display: flex; flex-direction: column; padding: 0.25rem; } .battle__monster-info__gender { line-height: 1em; } .battle__monster-info-exp { display: flex; align-items: center; padding: 0.25rem; background-color: #000; color: yellow; } .exp-label { margin-right: 0.5rem; } .battle__monster-visual { flex-grow: 1; flex-basis: 50%; text-align: center; } .battle__monster-sprite { margin-bottom: 0.25rem; } .battle__monster-sprite img { transition-property: filter; } .battle__monster-sprite img.damaged { filter: brightness(2); } .battle__monster-sprite__animation { position: fixed; z-index: 10; } .battle__monster-technique { background-color: beige; border: 2px solid #000; display: inline; padding: 0.25rem; } .battle__monster--player { flex-direction: row-reverse; } .battle__monster--enemy .battle__monster-info-exp, .battle__monster--enemy .battle__monster-technique { display: none; } .exp { width: 100%; } .exp-bar-wrap { width: 100%; border: 1px solid rgba(0, 0, 0, 0.5); background-color: lightgray; } .exp-bar { background-color: blue; height: 7px; transition: background-color; width: 0%; } .hp-bar-wrap { width: 100%; border: 1px solid rgba(0, 0, 0, 0.5); } .hp-bar { background-color: green; height: 10px; transition: background-color; } .moveset__item[disabled] { color: #ebebeb; } #enemy { position: relative; user-select: none; cursor: pointer; min-width: 750px; min-height: 300px; display: flex; justify-content: center; align-items: center; border: 1px solid #000; flex-direction: column; background-image: url('/modules/tuxemon/mods/tuxemon/gfx/backgrounds/test/back02.png'); background-image: url('https://wiki.tuxemon.org/images/9/9f/Sea_background.png'); background-size: cover; } #enemy img { transition-property: filter; } #enemy img.clicked { filter: brightness(2); } .damage { position: absolute; z-index: 11; animation: float-up-and-disappear; } @keyframes float-up-and-disappear { from { opacity: 1; } to { top: 0; opacity: 0; font-size: 0; } }