/* ====================== 最外层全队小组 =====================*/
.team-container {
    /* background-color: #2d3548; */
    color: #fff;
    /* border: 1px solid red; */
    display: flex;
    /* width: 80%; */

    /* min-height: 1100px; */
    justify-content: center;
    align-items: center;
    margin: auto;
    gap: 20px;
}

.team-container .team-card-bg {
    width: 300px;
    height: 500px;
    border-radius: 15px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.team-container .content {
    position: absolute;
    left: 0;
    padding: 25px;
}

.team-container .team-card-categories {
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.team-container .team-card-heading {
    font-size: 1.8rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

.team-container .team-card {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.team-container .team-card:hover {
    transform: scale(1.1);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.team-container:hover .team-card:not(:hover) .team-card-bg {
    filter: brightness(0.5) blur(1.8px);
}

.my-col {
    flex: 0 0 auto;
    width: 33.3333333333%;
}

@media (max-width: 991px) {
    .my-col {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .my-col {
        width: 50%;
    }

    .team-card-bg {
        height: 270px !important;
    }
}

/* END */

/*======================= 各小组内部 ==================*/

/* 关闭按钮 */
.close-group {
    width: 100px;
    height: 100px;
    color: #FFF;
    font-size: 50px;
    border: 2px solid rgb(182, 170, 170);
    border-radius: 15px;
    text-align: center;
    line-height: 100px;
    transition: all 0.3s ease-in-out;
}

.close-group:hover {
    scale: 1.5;
    cursor: pointer;
}


/* 灰色背景蒙版 */
.gray-mask {
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 980;
    display: none;
}


.group-container {
    width: 100%;
    height: 100vh;
    margin-top: 60px;
    /* background: #f2e9ff; */
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* 添加过渡效果 */
    position: fixed;
    top: 50%;
    /* 将顶部定位在浏览器垂直中心 */
    left: 50%;
    /* 将左侧定位在浏览器水平中心 */
    transform: translate(-50%, -50%);
    /* 使用负的50%的偏移来确保居中 */
    z-index: 990;
}

.visible-element {
    opacity: 1;

    display: flex;
    /* 将 display 设置为 flex */
}


.gallery {
    /* height: 100vh; */
    height: 85%;
    overflow: scroll;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 从这里开始每个人单独放封面卡通图片 */
/* leaders */
#leaders .img-box {
    width: 220px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/18.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 999;
}

#leaders .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/1.png');
    background-size: cover;
    background-position: center;
}

/* wiki */
#wiki .img-box {
    width: 220px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/9.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 1;
}

#wiki .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/22.png');
    background-size: cover;
    background-position: center;
}
#wiki .img-box:nth-child(3) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/8.png');
    background-size: cover;
    background-position: center;
}
#wiki .img-box:nth-child(4) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/16.png');
    background-size: cover;
    background-position: center;
}
#wiki .img-box:nth-child(5) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/19.png');
    background-size: cover;
    background-position: center;
}


/* human-p */
#human-p .img-box {
    width: 220px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/17.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 999;
}

#human-p .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/2.png');
    background-size: cover;
    background-position: center;
}
#human-p .img-box:nth-child(3) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/11.png');
    background-size: cover;
    background-position: center;
}
#human-p .img-box:nth-child(4) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/14.png');
    background-size: cover;
    background-position: center;
}
#human-p .img-box:nth-child(5) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/21.png');
    background-size: cover;
    background-position: center;
}
#human-p .img-box:nth-child(6) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/3.png');
    background-size: cover;
    background-position: center;
}


/* lab */
#lab .img-box {
    width: 220px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/10.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 1;
}

#lab .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/6.png');
    background-size: cover;
    background-position: center;
}
#lab .img-box:nth-child(3) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/7.png');
    background-size: cover;
    background-position: center;
}
#lab .img-box:nth-child(4) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/20.png');
    background-size: cover;
    background-position: center;
}
#lab .img-box:nth-child(5) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/13.png');
    background-size: cover;
    background-position: center;
}

/* advisors */
#advisors .img-box {
    width: 220px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/5.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 1;
}

#advisors .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/12.png');
    background-size: cover;
    background-position: center;
}
#advisors .img-box:nth-child(3) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/4.png');
    background-size: cover;
    background-position: center;
}
#advisors .img-box:nth-child(4) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/members/15.png');
    background-size: cover;
    background-position: center;
}

/* teachers */
#teachers .img-box {
    width: 215px;
    height: 600px;
    margin: 10px;
    border-radius: 80px;
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/weishuangshuang.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
    z-index: 1;
}

#teachers .img-box:nth-child(2) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/wanyi.png');
    background-size: cover;
    background-position: center;
}

#teachers .img-box:nth-child(3) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/zhengyusheng.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(4) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/zhangyingxia.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(5) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/wanxinyi.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(6) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/lijiacheng.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(7) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/chenyinhua.png');
    background-size: cover;
    background-position: center;
}

#teachers .img-box:nth-child(8) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/lijuanjuan.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(9) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/lihanzeng.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(10) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/yuxiaohui.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(11) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/yanping.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(12) {
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/fuyue.png');
    background-size: cover;
    background-position: center;
}
#teachers .img-box:nth-child(13) {
    
    background: url('https://static.igem.wiki/teams/4797/wiki/team/teachers/cover/zhangzilong.png');
    background-size: cover;
    background-position: center;
}


/* END 每个人单独放封面卡通图片 */


.img-box h3 {
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 50px;
    opacity: 0;
    font-size: 20px;
    text-shadow: 2px 2px 2px rgb(99, 69, 31);
    transition: bottom 0.5s, opacity 0.5s;
}


.img-box:hover {
    width: 400px !important;
    /* cursor: pointer; */
}

.img-box:hover h3 {
    opacity: 1;
    bottom: 25px;
}

/* human-p优化 */
@media (max-width: 833px) {
    .img-box {
        width: 33.3%;
    }
}


/* ==================== 单人名片 ===================*/

.overlay {
    background: rgba(0, 0, 0, 0.7);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    transition: 0.5s ease-in;
    transition-delay: 0.5s;
    z-index: 1;
}

.profile-card {
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 5em rgba(0, 0, 0, 0.2);
    border-radius: 80px;
    padding: 2em;
    position: relative;
    padding-top: 16em;
    overflow: hidden;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    position: absolute;
    top: 1em;
    left: 1em;
    z-index: 2;
}

.profile-card img {
    width: 17em;
    border-radius: 50%;
    position: absolute;
    top: -3em;
    right: -4em;
    z-index: 0;
    transition: 0.5s ease-in-out;
}

.profile-card h1 {
    margin-bottom: 0.8em;
}

.profile-card p {
    margin: 0.2em 0;
    color: #b8b8b8;

}

.profile-card .social {
    margin-top: 3em;
    list-style: none;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 1em;
}

.profile-card .social a {
    font-size: 1.2em;
    color: #000;
}

.more {
    padding: 0 1.5em 0 1.5em;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 0;
    z-index: 1;
    color: #fff;
    transition: 0.5s ease-in;
    transition-delay: 0.5s;
}

.more h2 {
    margin: 1em 0;
}

.more p {
    margin: 1.5em 0;
    color: #d6d6d6;
    line-height: 25px;
}

.more ul {
    padding: 0.5em 2em;
}

.more li {
    margin: 0.5em 0;
    font-size: 1.2em;
}

/*Custom scrollbar*/
/*width*/
.profile-card::-webkit-scrollbar {
    width: 8px;
}

/*track*/
.profile-card::-webkit-scrollbar-track {
    background: #1e1e1e;
}

/*handle*/
.profile-card::-webkit-scrollbar-thumb {
    background: #ffffff;
}

/*handle on hover */
.profile-card::-webkit-scrollbar-thumb:hover {
    background: #bcbcbc;
}


/*dynamic classes for javascript*/
.profile-card .img-expand {
    width: 32em;
    border-radius: 0;
}

.menu-btn-opened {
    color: #fff;
    background: #000;
    padding: 0.5em;
}

.overlay-opened {
    height: 100%;
}

.more-opened {
    padding: 4em 1.5em 1.5em 1.5em;
    height: 100%;
    overflow: scroll;
}


.profile-hidden {
    display: none;
}