.battle_view {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    margin: 40px 20px 0;
    .battle_status {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        h1 {
            font-size: 24px;
            color: #fff;
            margin-bottom: 20px;
        }
        img {
            width: 150px;
            height: 150px;
            margin-bottom: 15px;
        }
        #firstImg {
            animation: firstAnime 2s infinite linear;
        }
        #secondImg {
            animation: firstAnime 1.8s 0.2s infinite linear;
        }
        .card_status {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 20px;
            .status_icon {
                min-width: 50px;
                width: 100%;
                height: 35px;
                background-color: #0299d3;
                border-radius: 10px;
                display: flex;
                justify-content: space-between;
                gap: 1px;
                padding: 0 12px 4px;
                position: relative;
                h3 {
                    font-size: 20px;
                    color: #fff;
                }
                p {
                    font-size: 24px;
                    color: #fff;
                    margin: 0;
                    text-align: end;
                }
            }
        }
        .hp_box {
            display: flex;
            flex-direction: column;
            width: 100%;
            gap: 4px;
            .hp_text {
                display: flex;
                justify-content: space-between;
                align-items: center;
                h3,
                p {
                    color: #fff;
                    font-size: 16px;
                }
            }
            .hp_bar {
                width: 100%;
                transition: 0.4s;
                height: 15px;
                background-color: #05d250;
                border-radius: 8px;
                position: relative;
                &::before {
                    content: "";
                    position: absolute;
                    top: 0;
                    width: 159px;
                    height: 100%;
                    background-color: #d7d7d7;
                    border-radius: 8px;
                    z-index: -10000;
                }
            }
        }
    }
}

.battle_wrap {
    margin: 40px 30px 40px;
    h2 {
        color: #fff;
    }
    .battle_logs {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 16px;
        padding: 24px 16px;
        border-radius: 16px;
        background-color: #000;
        height: 240px;
        overflow-y: scroll;
        .battle_log {
            height: 40px;
            min-height: 40px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            border-radius: 8px;
            p {
                padding-left: 16px;
                padding-bottom: 4px;
                color: #fff;
            }
        }
        .first {
            background-color: rgba(255, 0, 4, 0.5);
            border: solid 1px #ff0004;
        }
        .second {
            background-color: rgba(2, 153, 211, 0.5);
            border: solid 1px #0299d3;
        }
    }
}

@keyframes firstAnime {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-15px);
    }
    30% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    85% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.finish {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    padding-bottom: 100px;
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: finish 0.6s forwards;
    }
}

@keyframes finish {
    0% {
        transform: scale(0%);
    }
    100% {
        transform: scale(100%);
    }
}

.modal {
    position: fixed;
    top: 0;
    z-index: 100000;
    width: 100vw;
    height: 100vh;
    background-color: #2b2b2b;
    display: none;
    h1 {
        color: #fff;
        margin: 80px 0 32px;
        text-align: center;
    }
    .chara_card {
        width: 350px;
        height: 350px;
        margin: 5px auto 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -100000;
            background-image: url(../img/kirakira_effect.png);
            background-size: cover;
            background-position: center;
            animation: rotateEffect 3.5s infinite linear;
        }
        img {
            object-fit: cover;
            width: 90%;
            height: 90%;
        }
    }
    .btns {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .start_btn {
        margin: 0 40px;
        height: 75px;
        border: 5px solid #000;
        border-radius: 18px;
        background-color: #e80d0f;
        display: flex;
        align-items: center;
        justify-content: center;
        .btn_inner {
            height: 50px;
            width: 93%;
            margin-right: 10px;
            margin-bottom: 4px;
            background-color: #e80d0f;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            border-top: 4px solid #fff;
            border-left: 4px solid #fff;
            border-radius: 12px 2px 2px 2px;
            h2 {
                width: 100%;
                height: 100%;
                a {
                    width: 100%;
                    height: 100%;
                    color: #fff;
                    text-decoration: none;
                    display: flex;
                    justify-content: center;
                    align-items: flex-start;
                    font-size: 36px;
                    letter-spacing: 3px;
                }
            }
        }
    }
    .reset {
        background-color: #cf9f00;
        .btn_inner {
            background-color: #cf9f00;
        }
    }
    .end {
        background-color: #0299d3;
        .btn_inner {
            background-color: #0299d3;
        }
    }
}

@keyframes rotateEffect {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
