.container.team {
    overflow: hidden !important;
}

.banner.team {
    overflow: hidden;
    position: relative !important;
    padding-top: 0 !important;
    margin-top: -70px !important;
}

.banner.team .contain {
    display: flex;
    transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
    overflow: visible !important;
}

.banner.team .contain img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    min-width: 100%;
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    z-index: 20;
    border: none;
    background: rgba(255, 255, 255, 0.247);
    backdrop-filter: blur(6px);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-arrow.prev {
    left: 30px;
}

.carousel-arrow.next {
    right: 30px;
}

.carousel-arrow.prev img,
.carousel-arrow.next img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    display: block;
}

.carousel-arrow:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
    align-items: center;
}

.carousel-dots .imgDot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #bdbdbd;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    border: none;
    padding: 0;
}

.carousel-dots .imgDot.active {
    background: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.banner.single .carousel-arrow,
.banner.single .carousel-dots {
    display: none;
}

@media (hover: none) {
    .carousel-arrow:hover {
        transform: translateY(-50%);
    }
}

.main.teamMain {
    padding-top: 50px;
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}

.main .member .group-head {
    text-align: center;
    color: #4d7d4a;
    width: 100%;
    margin-top: 50px;
}

.main .member .group-head:nth-child(1) {
    margin-top: 0;
}

.main .member .group-head h4 {
    font-family: "Aileron-hn";
    font-size: 46px;
    border-bottom: 5px solid #6d966b;
    font-weight: bold;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 0 #f9fadd, 2px 2px 0 #f9fadd, 3px 3px 0 #f9fadd, 4px 4px 0 #f9fadd;
    margin: 0;
}

.main .member .group-head h4::after {
    position: absolute;
    display: block;
    content: attr(data-text);
    left: -16px;
    top: -5px;
    color: #4d7d4a;
    padding: 8px;
}

.main .member .mem-area {
    margin: 40px 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 40px;
}

.main .mem-area .card {
    position: relative;
    background-color: #fffdf7;
    width: 300px;
    height: 380px;
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 6px 6px #6d966b;
    margin: 0 10px 0 20px;
    padding: 15px;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: scale(1);
    transition: all 0.5s ease;
    will-change: transform;
}

.main .mem-area .card.hasBack {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.main .mem-area .card:hover {
    transform: scale(1.04);
    box-shadow: 15px 15px #6d966b;
}

.main .mem-area .card .mid {
    width: 70%;
    aspect-ratio: 4 / 5;
    position: relative;
    margin-top: -10px;
}

.main .card .mid .photo {
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    border: 10px solid #6d966b;
    left: calc(50% - 90px);
    top: 0;
    background-color: #fffdf7;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: 1s;
    background-position: center;
    background-size: cover;
    transition: transform 1500ms ease;
}

.main .card.hasBack .mid .photo {
    transform-style: preserve-3d;
    perspective: 1200px;
}

.main .card .mid .photo .mem-mem,
.main .card .mid .photo .mem-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
    transform-origin: 50% 50%;
    z-index: 2;
}

.main .card.hasBack .mid .photo .mem-mem,
.main .card.hasBack .mid .photo .mem-back {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.main .card.hasBack .mid .photo .mem-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.main .card.hasBack:hover .mid .photo,
.main .card.hasBack:focus-within .mid .photo {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.main .card .mid .photo::before {
    width: 150px;
    height: 210px;
    display: block;
    content: "";
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    bottom: 5px;
    left: -70px;
    background-image: url("https://static.igem.wiki/teams/5564/team/teamicon.webp");
    transform: rotate(0deg) translateZ(-10px);
    z-index: -1;
}

.main .card .mid .photo::after {
    content: "";
    width: 100%;
    height: 5px;
    border-radius: 5px;
    position: absolute;
    background-color: #006c62;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.main .card .mid .photo .mem-pixel {
    width: 90px;
    height: 126px;
    display: block;
    position: absolute;
    bottom: -20px;
    left: 125px;
    z-index: 3;
}

.main .card.hasBack .mid .photo .mem-pixel {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transform: none;
    will-change: auto;
}

.main .mem-area .card .bot {
    width: 100%;
    height: 160px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
    margin-top: 10px;
}

.main .card .bot .name {
    padding-top: 5px;
    font-family: "Aileron-hn";
    font-size: 23px;
    font-weight: bold;
    color: #006c62;
}

.main .card .bot .group {
    font-size: 20px;
    font-family: "Aileron-hn";
    font-weight: 200;
    background-color: #6d966b;
    color: #fffdf7;
    padding: 3px 15px;
    border-radius: 20px;
    padding: 6px 10px;
}

@media (max-width: 600px) {
    .main .member .mem-area {
        margin: 40px 0 !important;
    }

    .main .card {
        margin: 40px auto !important;
    }
}

.main-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.main-wrapper .team-nav {
    position: fixed;
    bottom: 100px;
    left: 2vw;
    width: 200px;
    padding: 15px;
    box-sizing: border-box;
    z-index: 92;
}


.main-wrapper .main {
    padding-top: 50px;
    max-width: 1250px;
    margin: 0 auto;

}

@media (max-width: 768px) {
    .main-wrapper .team-nav {
        display: none;
    }

    .main-wrapper .main {
        margin-left: auto;
        padding-top: 30px;
    }
}

.flower {
    margin: 0 auto;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
}

.flower .spinner,
.flower .inner,
.flower .counterspin {
    height: 100%;
}

.flower .spinner {
    -webkit-animation: spin 30s infinite linear;
    animation: spin 30s infinite linear;
}

.flower .counterspin {
    -webkit-animation: counter-spin 30s infinite linear;
    animation: counter-spin 30s infinite linear;
}

.flower .cover {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%, transparent 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.flower a {
    display: block;
}

.flower .child {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: -5px;
}

.flower .child .leaf {
    height: 100%;
    border-radius: 50%;
    visibility: hidden;
    transition: transform 3.2s ease-in-out;
}

.flower .child .leaf img {
    width: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    position: absolute;
    border: none;
    font-size: 8px;
}

.flower .child:nth-child(1) {
    transform: rotate(-90deg);
}

.flower .child:nth-child(1) .leaf {
    opacity: 0.94;
    transition: transform 3.2s ease-in-out, box-shadow 0.16s ease-in-out, visibility 3.2s linear;
}


.flower .child:nth-child(2) {
    transform: rotate(-18deg);
}

.flower .child:nth-child(2) .leaf {
    opacity: 0.94;
    transition: transform 3.2s ease-in-out, box-shadow 0.16s ease-in-out, visibility 3.2s linear;
}


.flower .child:nth-child(3) {
    transform: rotate(54deg);
}

.flower .child:nth-child(3) .leaf {
    opacity: 0.94;
    transition: transform 3.2s ease-in-out, box-shadow 0.16s ease-in-out, visibility 3.2s linear;
}


.flower .child:nth-child(4) {
    transform: rotate(126deg);
}

.flower .child:nth-child(4) .leaf {
    opacity: 0.94;
    transition: transform 3.2s ease-in-out, box-shadow 0.16s ease-in-out, visibility 3.2s linear;
}

.flower .child:nth-child(5) {
    transform: rotate(198deg);
}

.flower .child:nth-child(5) .leaf {
    opacity: 0.94;
    transition: transform 3.2s ease-in-out, box-shadow 0.16s ease-in-out, visibility 3.2s linear;
}

.flower:hover {
    transform: scale(3.4);
}

.flower:hover .inner {
    transform: scale(0.294117647058824);
}

.flower:hover .leaf {
    visibility: visible;
    transform: rotate(720deg) translateX(90px) rotate(2250deg);
}

.flower .nav-icon {
    width: 100%;
    height: 100%;
    align-content: center;
    text-align: center;
    font-size: 1.6vw;
    font-weight: bold;
    color: #fff;
}

@-webkit-keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes spin {
    to {
        transform: rotate(1turn);
    }
}

@-webkit-keyframes counter-spin {
    to {
        transform: rotate(-1turn);
    }
}

@keyframes counter-spin {
    to {
        transform: rotate(-1turn);
    }
}