main {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    p {
        text-align: center;
        margin-top: 10px;
        margin-bottom: 120px;
        font-size: 24px;
        color: #fff;
    }
    .barcode_box {
        border: #fff solid 1px;
        width: 300px;
        height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        #camera {
            width: 100%;
            height: 300px;
            overflow: hidden;
            border-radius: 5px;
            border: solid 2px #333;
            position: relative;
            &::after {
                content: "";
                position: absolute;
                top: 35%;
                left: 16%;
                width: 200px;
                height: 80px;
                background-image: url(../img/barcode_img.png);
                background-position: center;
                background-size: cover;
            }
            video {
                width: 100%;
                height: 100%;
            }
            p {
                height: 5px;
            }
        }
    }
}

.start_btn {
    margin: 0 40px;
    height: 100px;
    border: 5px solid #000;
    border-radius: 18px;
    background-color: #e80d0f;
    display: flex;
    align-items: center;
    justify-content: center;
    .btn_inner {
        height: 75px;
        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: 48px;
                letter-spacing: 3px;
            }
        }
    }
}

.back {
    background-color: #0299d3;
    width: 185px;
    height: 75px;
    .btn_inner {
        width: 150px;
        height: 50px;
        background-color: #0299d3;
        h2 {
            a {
                margin-left: 8px;
                font-size: 36px;
            }
        }
    }
}

.load_modal {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: #2b2b2b;
    padding: 0 30px;
    h2 {
        margin-top: 220px;
        margin-bottom: 40px;
        color: #fff;
        font-size: 48px;
        text-align: center;
    }
    .load_bar {
        width: 0%;
        height: 40px;
        border-radius: 16px;
        border: solid 1px #000;
        background-color: #ffd700;
        position: relative;
        animation: barAnime 0.6s forwards;
        &::after {
            content: "";
            z-index: -1;
            position: absolute;
            top: 0;
            width: 84vw;
            height: 100%;
            border-radius: 16px;
            background-color: rgba(217, 217, 217, 0.2);
            border: #000 solid 1px;
        }
    }
}

@keyframes barAnime {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.modal {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #2b2b2b;
    display: none;
    p {
        font-size: 48px;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 10px;
    }
    .chara_card {
        width: 350px;
        height: 350px;
        margin: 5px auto 5px;
        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: 85%;
            height: 85%;
        }
    }
    .card_text {
        h2 {
            font-size: 36px;
            color: #fff;
            display: flex;
            justify-content: center;
            margin-bottom: 24px;
        }
        .card_status {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
            .status_icon {
                min-width: 100px;
                height: 75px;
                background-color: #0299d3;
                border-radius: 10px;
                display: flex;
                flex-direction: column;
                gap: 1px;
                padding: 0 12px 4px;
                position: relative;
                &::after {
                    content: "";
                    background-color: rgba(2, 153, 211, 0.5);
                    position: absolute;
                    top: 4px;
                    left: 4px;
                    padding: 0 12px 4px;
                    width: 100%;
                    height: 75px;
                    border-radius: 10px;
                    z-index: -100;
                }
                h3 {
                    font-size: 24px;
                    color: #fff;
                }
                p {
                    font-size: 24px;
                    color: #fff;
                    margin: 0;
                    text-align: end;
                }
            }
        }
    }
    .start_btn {
        margin: 0 30px;
        .btn_inner {
            h2 {
                a {
                    font-size: 32px;
                    letter-spacing: -2px;
                    align-items: center;
                    padding-bottom: 10px;
                }
                .fight {
                    font-size: 36px;
                }
            }
        }
    }
    .btns_second {
        display: flex;
        gap: 5px;
        margin: 10px 30px 0;
        .start_btn {
            width: 100%;
            height: 75px;
            margin: 0;
            .btn_inner {
                width: 88%;
                height: 55px;
                h2 {
                    a {
                        font-size: 32px;
                        padding-left: 4px;
                    }
                }
            }
        }
    }
}

.cancel {
    background-color: #0299d3;
    .btn_inner {
        background-color: #0299d3;
    }
}

.reset {
    background-color: #cf9f00;
    .btn_inner {
        background-color: #cf9f00;
    }
}

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