body {
    display: flex;
    margin: 0;
    height: 100vh;
    background-color: black;
    color: white;
    align-items: space-between;
    flex-direction: column;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.screen {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: black;
    flex-direction: column;

}

.fighter-row {
    display: flex;
    justify-content: space-around;
    height: 75%;
    width: 100%;
}

.own,
.opp {
    display: flex;
    flex-direction: column;
    width: 320px;
    position: relative;
}

.own-fighter-img,
.opp-fighter-img {
    height: 320px;
    position: relative;
    top: 50px;
}

.own-fighter-img {
    transform: rotateY(180deg);
}

.hp-bar {
    width: 100%;
    background-color: #222;
    /* statt transparent */
    border: 5px solid grey;
    top: 20px;
    position: relative;
}

.hp {
    display: flex;
    position: relative;
    height: 30px;
}

.name,
.opp-name {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    position: relative;
    top: 20px;
    font-size: 50px;

}

.name {
    -webkit-text-stroke: 1px green;
}

.opp-name {
    display: flex;
    -webkit-text-stroke: 1px red;
    justify-content: flex-end;
}

.move-bubble {
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-text-stroke: black 0.5px;
    width: max-content;
    padding: 8px;
    height: 40px;
    color: white;
    font-size: 30px;
    font-weight: 700;
    border-radius: 80px;
    border: white solid 3px;
    animation: float-up-move 1s ease-out forwards;
}

.button-wrapper {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 20px;
}

.button-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 230px;

}

.skill-button span {
    position: relative;
    z-index: 2;
    text-align: center;
    pointer-events: none;
    color: white !important;
}

.skill-wrapper {
    position: relative;
}



.cooldown-ring {
    position: absolute;
    inset: 0;
    top: -2px;
    border-radius: 50%;
    pointer-events: none;
    transform: scale(1.05);
    z-index: 1;

}

.cooldown-transition {
    transition: background 1.5s linear;
}

.skill-button {
    position: relative;
    top: 1px !important;
    left: 1px;
    width: 100px;
    height: 100px;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 2;
    /* über dem Ring */
}


.ability.blocked {
    opacity: 1;
    pointer-events: none;
    filter: grayscale(75%) !important;
    transition: 0.2s;
}

.skill-button.blocked span {
    color: black !important;
}

.skill-button span {
    position: relative;
    z-index: 3;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0);
    }
}

.skill-button.shake {
    animation: shake 0.3s ease;
}

.stats-table {
    display: flex;
    justify-content: center;
    bottom: 20px;
    position: relative;
    z-index: 100;
}

.table {
    display: flex;
    background-color: rgba(0, 0, 255, 0.4);
    padding: 8px 0 8px 0;
    border-radius: 16px;
    border: solid 2px white;
    flex-direction: column;
    color: white;
    position: relative;
    z-index: 3;
    gap: 4px;
    width: 150px;

}

.table span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 10px;
}

.table img {
    width: 20px;
    height: 20px !important;
    top: 0;
}



@keyframes float-up-move {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0.5;
        transform: translateY(-40px);
    }
}

@keyframes float-up {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px);
    }
}

.damage-popup {
    color: red;
}

.healing-popup {
    color: greenyellow;
}

.popup {
    position: fixed;
    transform: translateX(-50%);
    font-size: 60px;
    font-weight: bold;
    animation: float-up 1s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

.buff-popup {
    position: fixed;
    transform: translateX(-50%);
    pointer-events: none;
    animation: rise 1.0s ease-out forwards;
}

.debuff-popup {
    position: fixed;
    transform: translateX(-50%);
    pointer-events: none;
    animation: descend 1.0s ease-in backwards;
}

@keyframes rise {
    from {
        transform: translate(-50%) translateY(40px);
        opacity: 0;
    }

    to {
        transform: translate(-50%) translateY(-40px);
        opacity: 1;
    }
}

@keyframes descend {
    from {
        transform: translate(-50%) translateY(-40px);
        opacity: 1;

    }

    to {
        transform: translate(-50%) translateY(40px);
        opacity: 0;
    }
}

.status-wrapper {
    display: flex;
    position: absolute;
    top: 160px;
    transform: translateX(-50%);
    height: 320px;
    z-index: 50;
}

.status-icon {
    position: absolute;
    width: 320px;
    height: 320px;
}

.move-icon {
    transform: scale(0.85);
}

.tooltip-wrapper {
    height: 150px;
}

#ability-tooltip {
    justify-content: center;
    position: fixed;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;

    border-radius: 8px;
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 9999;
    max-width: 240px;
    line-height: 1.4;
}

section {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    height: 60%;
}

.move-selection-button-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.move-selection-button-wrapper button {
    width: 175px;
    cursor: pointer;
    height: 50px;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 16px;
    background-color: black;
    color: white;
    font-weight: 1000;
}

#confirmMoves {
    transition: 1.5s;
    color: greenyellow;
    border: 2px solid greenyellow;
}

#confirmMoves:hover {
    transition: 0.3s;
    background-color: rgba(0, 255, 0, 0.1);
}

#confirmMoves:disabled {
    transition: 0.3s;
    color: grey;
    border: 2px solid white;
}

.character-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
}

.character-card {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* <- Nur Bild wird abgeschnitten */
    position: relative;
}

.character-card:hover {
    /* height: 350px; */
    border-color: limegreen;
}

.character-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.character-card:hover .character-img {
    transform: scale(1.3) translateX(-20px);
}

.character-info {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    color: black;
    font-size: 12px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.character-card:hover .character-info {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fighter-name {
    position: absolute;
    display: flex;
    justify-content: flex-end;
    color: white;
    -webkit-text-stroke: 0.9px black;
    font-size: 35px;
    font-weight: 700;
    top: 5px;
    left: 5px;
    z-index: 2;
}

.d-none {
    display: none !important;
}

.artefact-choices {
    position: absolute;
    top: 100%;
    background: transparent;
    border: 2px solid #000;
    padding: 10px;
    border-radius: 8px;
    z-index: 10;
}

.artefact-choices button {
    padding: 5px 10px;
    cursor: pointer;
}

.character-grid.single-view {
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
}

.character-card.centered {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease;
}

.character-card.faded {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.artefact-choices {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.artefact-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.artefact-btn:hover {
    transform: scale(1.05);
}

.artefact-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.icon-artefact,
.icon-in-info {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
}

.title-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-name-wrapper {
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
}

.fighter-in-move-choice {
    height: 320px;
    width: 320px;
}

.move-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.move-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.attack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    padding: 1rem;
}

.attack-card {
    color: white;
    display: flex;
    justify-content: center;
    border-radius: 100px;
    width: 90px;
    height: 90px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
}

.attack-card:hover {
    transform: scale(1.03);
    cursor: pointer;
}

.attack-card.ultimate {
    border-color: gold;
    background: #222;
}

.attack-card h3 {
    margin-top: 0;
    color: gold;
}

.attack-card p {
    margin: 0.3em 0;
}

.attack-card.selected {
    box-shadow: 0 0 10px 8px white;
    background: white;
}

.attack-card.shake {
    animation: shake 0.35s linear;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}

.back-to-menu-btn {
    position: absolute;
    top: 55%;
    cursor: pointer;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border: 3px solid white;
    border-radius: 10px;
    z-index: 999;
}

.back-to-menu-btn:hover {
    transition: 0.3s;
    background: rgba(0, 255, 0, 0.2);

}

.back-to-menu-btn:not(:hover) {
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.8);

}