.member-card {
    cursor: pointer;
    padding: 10px;
    background: #6583c4;
    margin-bottom: 5px;
    transition: background-color 0.3s;
}

.member-card:hover {
    background-color: #295fd4;
}

.role-title {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

#member-details {
    background-color: rgba(255, 255, 255, 0);
    position: absolute;
    float: left;
    width: auto;
    max-width: 900px;
    height: auto;
    max-height: 400px;
}

.member-details-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.member-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.member-details {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.member-details.show {
    max-height: 400px;
    opacity: 1;
}


@media screen and (min-width: 1025px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 120%;
    }

    .member-card:hover {
        background-color: rgb(41, 95, 212);
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: max-content;
    }

    #member-details {
        position: relative;
        float: left;
        width: 300%;
        height: fit-content;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 100%;
        height: fit-content;
        margin-right: 50px;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: fit-content;
        height: fit-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        font-size: 15px;
    }

    .member-details.show {
        height: fit-content;
        width: fit-content;
        opacity: 1;
    }
}

@media screen and (max-width: 1024px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 220%;
    }

    .member-card:hover {
        background-color: #295fd4;
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: max-content;
    }

    #member-details {
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        float: left;
        width: 300%;
        height: fit-content;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 700px;
        height: fit-content;
        margin-right: 50px;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: fit-content;
        height: fit-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        font-size: 15px;
    }

    .member-details.show {
        height: fit-content;
        width: fit-content;
        opacity: 1;
    }
}

@media screen and (max-width: 768px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 300%;
    }

    .member-card:hover {
        background-color: #295fd4;
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: max-content;
    }

    #member-details {
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        float: left;
        width: 700px;
        height: 600px;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 700px;
        height: fit-content;
        margin-right: 50px;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: fit-content;
        height: fit-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        font-size: 15px;
    }

    .member-details.show {
        height: fit-content;
        max-height: 1000px;
        width: fit-content;
        max-width: 700px;
        opacity: 1;
    }
}

@media screen and (max-width: 425px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 300%;
    }

    .member-card:hover {
        background-color: #295fd4;
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: max-content;
    }

    #member-details {
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        float: left;
        width: 700px;
        height: 600px;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 390px;
        height: fit-content;
        margin-right: 50px;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: max-content;
        height: max-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        margin-right: 50px;
        font-size: 15px;

    }

    .member-details.show {
        height: max-content;
        max-height: 2000px;
        width: max-content;
        max-width: 390px;
        opacity: 1;
    }
}

@media screen and (max-width: 375px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 300%;
    }

    .member-card:hover {
        background-color: #295fd4;
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: max-content;
    }

    #member-details {
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        float: left;
        width: 340px;
        height: 600px;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 340px;
        height: fit-content;
        margin-right: 50px;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        margin-right: 20px;
        width: auto;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: max-content;
        height: max-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        margin-right: 50px;
        font-size: 15px;

    }

    .member-details.show {
        height: max-content;
        max-height: 2000px;
        width: max-content;
        max-width: 340px;
        opacity: 1;
    }
}

@media screen and (max-width: 320px) {

    .member-card {
        cursor: pointer;
        padding: 10px;
        background: #6583c4;
        margin-bottom: 5px;
        transition: background-color 0.3s;
        height: auto;
        width: 300%;
    }

    .member-card:hover {
        background-color: #295fd4;
    }

    .role-title {
        font-size: 20px;
        font-weight: bold;
        margin-top: 20px;
        margin-bottom: 10px;
        color: #ffffff;
        width: fit-content;
    }

    #member-details {
        background-color: rgba(255, 255, 255, 0);
        position: relative;
        float: left;
        width: 280px;
        height: 600px;
    }

    .member-details-container {
        display: flex;
        align-items: center;
        margin-top: 10px;
        width: 280px;
        height: fit-content;
    }

    .member-name {
        font-size: auto;
        font-weight: bold;
        width: fit-content;
        height: auto;
    }

    .member-details {
        overflow: hidden;
        width: fit-content;
        height: fit-content;
        transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
        opacity: 0;
        font-size: 15px;
    }

    .member-details.show {
        height: fit-content;
        max-height: 2000px;
        width: fit-content;
        max-width: 280px;
        opacity: 1;
    }
}