p {
    font-family: 'Shippori Mincho';
    color: #394038;
}

.row {
    margin-right: 0;
}

.header {
    width: 80%;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.header .name p,
#electricity {
    font-family: 'Grandstander';
    font-style: normal;
    font-size: 50px;
    text-align: justify;
    color: #394038;
    /* margin-left: 100px; */
}

#electricity {
    margin-top: auto !important;
    margin-bottom: auto !important;
    font-size: 30px;
    margin-left: 35%;
}

.header .personal-photo img {
    width: 100px;
    height: auto;
    margin-right: 110px;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F8F2EC;

}

body::-webkit-scrollbar {
    display: none;
}

.container {
    width: 90%;
    margin: 0px auto;
    padding: 0;
}

.mid {
    margin: 20px;
    justify-content: center;
}

.aquarium {
    position: relative;
    width: 85%;
    text-align: center;
    overflow: hidden;
    margin: 0px auto;
}

.aquarium img {
    width: 100%;
    height: 100%;
    height: auto;
}

.Layer2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    z-index: 1;
}

.Layer2 img {
    width: 5%;
    height: auto;
}

#badge1 {
    position: absolute;
    /* top: 20%;
    left: 20%; */
    top: calc(var(--random-top));
    left: calc(var(--random-left));
}

@keyframes fadeInAndMoveDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

/* .show {
    animation: fadeInAndMoveDown 1s ease forwards;
} */

.mid img {
    width: 150px;
    height: auto;
}

/* 
.badge-bg {
    position: absolute;
    top: 0;
    left: 0;
} 
.badge-icon {
    position: absolute;
    top: 0;
    left: 15px;
    width: 80%;
}*/
.badgeClassBTN {
    width: 35%;
    margin-bottom: 90px;
    margin-right: 20px;
}

.badge-title {
    font-size: 16px;
    padding-top: 10px;
    color: #313131;
}

.badge-info {
    font-size: 14px;
    color: #888888;
    line-height: 1.5;
}

.image-container {
    position: relative;
    overflow: hidden;
}

.image-container:hover .addBtn {
    display: block;
}



.badge-list {
    display: flex;
    justify-content: flex-end;
    width: 30%;
    padding-right: 100px;
}

.badge-list img {
    width: 150px;
    height: auto;
}

.addBtn {
    position: absolute;
    top: 0;
    left: 15%;
    width: 25%;
    display: none;
    transition: all 0.3s ease;
}

#ache-cancel:hover {
    background-image: url(../../images/AI_Cam/closeHover.svg);
}

#ache-collect {
    background-image: url(../../images/AI_Cam/collect.svg);
    background-size: contain;
    background-repeat: no-repeat;
    border: none;
    background-color: transparent;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
}

#ache-collect:hover {
    background-image: url(../../images/AI_Cam/collectHover.svg);
}

#rankModelDialog {
    max-width: 80%!important;
    height: 30vh!important;
}

@media(min-width: 768px) {
    .h-sm-100 {
        height: 100%!important;
    }

    .w-sm-75 {
        width: 75%!important;
    }
    
    .w-sm-100 {
        width: 100%!important;
    }
}

.fs-1_15rem {
    font-size: 1.15rem!important;
}

/* Mobile */
@media (max-width: 768px) {
    #leaderboardTitle {
        font-size: 2rem!important;
    }

    .m-hide {
        display: none!important;
    }

    .rankRow {
        background-image: url(../../images/badge/rank/rankBGMobile.svg)!important;
        background-size: contain!important;
        background-repeat: no-repeat!important;
        background-position: center;
        /* height: 14%!important; */
    }

    .top3Row {
        top: 40%!important;
        left: 50%!important;
        transform: translateX(-42%)!important;
    }

    #title-txt {
        /* margin-left: 0px !important; */
        font-size: 40px !important;
    }

    #title {
        font-size: 40px !important;
    }

    .aquarium img {
        content: url('../../images/badge/Aquarium/AquariumRWD.svg');
        float: left;
    }

    .header {
        margin-top: 10px;
        position: relative;
        text-align: left;
        width: 90%;
        /* Optional: Center content text */
    }

    .header .name {
        text-align: left;
    }

    #mem_ele {
        width: 27% !important;
        margin-right: 25%;
        margin-top: auto !important;
        margin-bottom: 5.5% !important;
    }

    #electricity {
        margin-left: 25% !important;
        font-size: 16px !important;
    }

    .header .personal-photo {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .header .personal-photo img {
        width: 70px;
        height: auto;
        margin-right: 0;
    }

    .mid {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .mid::-webkit-scrollbar {
        display: none;
        /* 隐藏滚动条 */
    }

    .mid img {
        width: 30%;
    }

    .badgeClassBTN {
        width: 50%;
        margin-bottom: 0;
        margin-right: 50%;
    }

    .row>* {
        padding-right: 0;
    }

    .badge {
        /* display: flex; */
        flex-wrap: wrap;
    }

    .badge .row {
        /* flex-direction: column; */
    }

    .badge .col-4 {
        width: 100%;
        text-align: center;
    }

    .badge .row>div {
        /* width: 100%; */
        margin-bottom: 20px;
    }

    .chartPR {
        background-image: url(../../images/badge/WeekRecord/chartBGMobile.png)!important;
    }

    #rankCon {
        background-image: url("../../images/badge/rank/rankModalBgMb.png")!important;
        padding: 0% 12%!important;
    }
    
    #rankModelDialog {
        max-width: 100%!important;
        height: 30vh!important;
    }

    #headerH {
        height: 7%!important;
    }

    #rankList {
        height: 55%!important;
    }

    #top3Bg1 {
        content: url('../../images/badge/rank/1-m.svg');
    }

    #top3Bg2 {
        content: url('../../images/badge/rank/2-m.svg');
    }

    #top3Bg3 {
        content: url('../../images/badge/rank/3-m.svg');
    }

    .rank-m-fs {
        font-size: 1rem!important;
    }

    #top1-name, #top2-name, #top3-name {
        text-align: center!important;
    }
}

@media screen and (orientation: portrait) {
    /* #nav {
        height: 7%;
    }

    #upload {
        background-image: url(../images/AI_Cam/upload_pro.svg);
        width: 100% !important;
        height: 100% !important;
        background-position: center;
    }

    #submit {
        background-image: url(../images/AI_Cam/send-mobile.svg);
        width: 100% !important;
        height: 100% !important;
        background-position: center;
    }

    .inputBg {
        background-image: url(../images/AI_Cam/descTxtParent.svg);
    }

    #descTxt {
        font-size: 40px !important;
    }*/

    .modal-dialog {
        max-width: 100% !important;
    }

    #achieCongrate {
        font-size: 45px !important;
        top: 20% !important;
        font-family: sans-serif !important;
    }

    #achieBG {
        width: 1000% !important;
    }

    #ache-cancel {
        width: 40% !important;
    }

    #buttonContainer {
        top: 55% !important;
        height: 10% !important;
    }

    #ache-collect {
        width: 40% !important;
    }

    #achieText {
        top: 30% !important;
        width: 100%;
    }

    #achieImg {
        /* top: 41% !important; */
        width: 40% !important;
    }

    #achieTextContent {
        font-size: 25px !important;
    }

    #loginModalContent {
        background-image: url(../../images/badge/loginModal/login-mobile.svg) !important;
    }

    #loginModalContent>div>img {
        display: none;
    }
}

.firebaseui-container {}

#loginModalContent {
    background-color: transparent;
    background-image: url(../../images/badge/loginModal/bg.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 95%;
}

.firebaseui-idp-google .firebaseui-idp-text {
    color: #ffffff;
}



footer {
    /* background-color: #f8f9fa; */
    padding: 30px 0;
    text-align: center;
}