main {
    transition: margin-top 1s ease-in-out;
    padding: 20px 10%;
    position: relative;
    z-index: 20;
    background-color: transparent;
}

#team {
    margin: 0px auto;
}

#team > h1 {
    font-size: 2.5em;
    margin-top: 0px;
    margin-bottom: 0px;
}

.team-members {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

.team-members > details {
    overflow-wrap: break-word;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 11px 0px rgb(255, 0, 0);
    transition: all 0.2s ease-in-out, background-color 0.2s ease-in-out, min-height 0.1s ease-in-out;
}

@media (max-width: 600px) {
    .team-members > details {
        width: 100%;
    }
}

@media (min-width: 600px) {
    .team-members > details {
        width: 30%;
    }
}

@media (min-width: 900px) {
    .team-members > details {
        width: 20%;
    }
}

.team-members > details:hover {
    transform: translateY(-5px);
    background-color: #222020;
    box-shadow: 0 0 10px rgb(255, 255, 255, 0.5);
}

.team-members > details > summary {
    cursor: pointer;
    list-style: none;
}
.team-members > details > summary::marker, /* Latest Chrome, Edge, Firefox */ 
.team-members > details > summary::-webkit-details-marker /* Safari */ {
  display: none;
}

.team-members > details > article > *:last-child {
    margin-bottom: 0px;
}

.team-members > details > article {
    max-height: 0px;
    overflow: hidden;
    animation-iteration-count: 1;
    transition: max-height 1s ease-in-out;
}

.team-members > details:not([open]) > article {
    transition: none;
    max-height: 0px;
}

.team-member-name {
    overflow: hidden;
    text-align: center;
    margin-bottom: 0px;
}

.team-member-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.role {
    margin-top: 0px;
    text-align: center;
}

.socials {
    margin-top: 10px;
    /* text-align: center; */
    word-spacing: 15px;
    line-height: 30px;
    /* display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; */
}

.team-member-img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border: 5px solid rgb(124, 14, 14);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
}