.combat-view .button {
    font-size: 24px;
}

.combat-view .boss-display {
    position: absolute;
    top: 30px;
    left: 35vw;
    font-size: 24px;
    z-index: 10;
    display: none; /* Hidden by default, remember to set flex */
    flex-direction: column;
}

.combat-view .combat-log {
    position: absolute;
    top: 30px;
    left: 35px;
    font-size: 16px;
    z-index: 10;
    flex-direction: column;
    background-color: rgba(0,0,0,0.8);
    height: 200px;
    width: 400px;
    overflow-y: auto;
}

.combat-view .boss-name {
    background-color: black;
    padding: 5px 10px;
    transform: rotate(-10deg);
    display: inline-block;
}

.combat-view .boss-display .stat-down {
    display: inline-block;
    margin-left: 10px;
    transform: rotate(-15deg);
    white-space: nowrap;
}

.combat-view .boss-display .status-effects {
    display: inline-block;
    margin-left: 10px;
    transform: rotate(-15deg);
    font-size: 12px;
    white-space: nowrap;
}

.combat-view .dialogue {
    visibility: hidden;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.combat-view .dialogue-bubble {
    background-color: rgba(0,0,0,0.8);
    padding: 10px 20px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 18px;
}

.combat-view .dialogue-bubble::after {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-right-color: black;
}

.combat-view .character-portrait {
    width: 100px;
    height: 100px;
    background-color: rgba(0,0,0,0.8);
    border-radius: 50%;
}
.combat-view .character-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.combat-view .action-effect {
    visibility: hidden;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 150px;
    color: white;
    text-align: center;
    z-index: 5;
}

.combat-view .action-effect .wings {
    position: absolute;
    top: 0;
    left: -100px;
    width: 200px;
    height: 100px;
    background-color: pink;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    transform: rotate(45deg);
}

.combat-view .action-effect .star {
    position: absolute;
    top: -20px;
    right: -50px;
    font-size: 100px;
    color: yellow;
}

.combat-view .command-menu {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 180px;
    z-index: 5;
    list-style: none;
    padding: 0;
}
.combat-view .button {
    font-size: 24px;
}

.combat-view .central-placeholder {
    position: absolute;
    bottom: 0;
    left: 5%;
    max-width: 50vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}
.combat-view .central-placeholder img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: bottom;
}

.combat-view .party-status {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-around;
    width: 80%;
    z-index: 10;
}

.combat-view .enemy-frontrow, .combat-view .enemy-backrow {
    position: absolute;
    height: 60vh;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    width: 50%;
}

.combat-view .enemy-backrow {
    bottom: 45%;
    right: 0;
    z-index: 1;
}

.combat-view .enemy-frontrow {
    bottom: 15%;
    right: 5%;
    z-index: 2;
}

.combat-view .enemy-member {
    text-align: center;
    margin: 0 20px;
}
.combat-view .enemy-member img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    object-position: bottom;
}

.combat-view .enemy-member .enemy-name {
    background-color: transparent;
    padding: 5px 10px;
    transform: translateY(45px) rotate(-10deg);
    display: inline-block;
    font-size: 24px;
}

.combat-view .enemy-member .stat-down {
    display: inline-block;
    margin-left: 10px;
    transform: translateY(100px) rotate(-15deg);
    font-size: 12px;
    white-space: nowrap;
}

.combat-view .enemy-member .status-effects {
    display: inline-block;
    margin-left: 10px;
    transform: translateY(100px) rotate(-15deg);
    font-size: 12px;
    white-space: nowrap;
}
.combat-view .enemy-member .status-effects img {
    width: 24px;
    height: 24px;
    margin: 0 2px;
}
.combat-view .enemy-member .attack-effect {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
}

.combat-view .party-member {
    text-align: center;
    margin: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.combat-view .member-name {
    background-color: transparent;
    padding: 5px 10px;
    display: inline-block;
    font-size: 20px;
    position: absolute;
    top: 140px;
}
.combat-view .party-member .status-effects {
    display: inline-block;
    transform: translateY(100px);
    font-size: 12px;
    white-space: nowrap;
}
.combat-view .party-member .status-effects img {
    width: 24px;
    height: 24px;
    margin: 0 2px;
}
.combat-view .party-member .attack-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
}

.combat-view .member-portrait {
    width: 180px;
    height: 180px;
}
.combat-view .member-portrait img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.combat-view .hp-bar, .combat-view .sp-bar {
    width: 180px;
    height: 10px;
    background-color: black;
    margin-top: 5px;
    position: relative;
}

.combat-view .hp-fill {
    height: 100%;
    background-color: lime;
}

.combat-view .sp-fill {
    height: 100%;
    background-color: cyan;
}
.combat-view .hp-label, .combat-view .sp-label {
    position: absolute;
    top: -2px;
    left: 5px;
    font-size: 12px;
    color: white;
}

.combat-view .hp-text, .combat-view .sp-text {
    position: absolute;
    top: -2px;
    right: 5px;
    font-size: 12px;
    color: white;
}

.combat-view .bottom-controls {
    visibility: hidden;
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.combat-view .control-button {
    padding: 1px 1px;
    margin-right: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    user-select: none;
}

.combat-view .target-highlight-enemy {
  filter: drop-shadow(0 0 16px rgba(255,0,0,0.7));
  transition: filter 0.2s;
}
.combat-view .target-highlight-ally {
  filter: drop-shadow(0 0 16px rgba(0,255,0,0.7));
  transition: filter 0.2s;
}
.combat-view .target-highlight-hover {
  filter: drop-shadow(0 0 24px rgba(255,255,255,0.9));
  transition: filter 0.2s;
}