@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInCenter {
    from {
       
        width: 0;
    }
    to {
        
        width: 80%;
    }
}

body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0;
    background-color: #121212;
}

.mainDiv {
    min-height: 100vh;
}

nav {
    height: 100px;
    width: 100%;
}

.roster {
    margin-top: 100px;
    text-align: center;
}

.roster h1 {
    color: #fff;
    font-size: 64px;
    animation: fadeInUp 0.5s ease-in-out forwards;
}

.line-break {
    background-color: #4f4f4f;
    height: 2px;
    width: 80%;
    margin: 0 auto;
    animation: fadeInCenter 0.5s ease-in-out forwards;
}

.rosterMembers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 80%;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 100px;
}

.containerDiv {
    width: 30%;
    margin: 10px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    animation: fadeInUp 0.5s ease-in-out forwards;
}

.imgDiv img {
    max-width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    border-top-left-radius: 5px; /* Adjust the value as needed */
    border-top-right-radius: 5px; /* Adjust the value as needed */
}


.imgBlurDiv {
    position: absolute;
    backdrop-filter: blur(2px);
    background-color: rgba(0, 0, 0, 0.4);
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.show {
    opacity: 1;
}

.infoDiv {
    position: absolute;
    bottom: -200px;
    left: 0;
    width: 100%;
    max-height: 200px; /* Set the maximum height */
    background-color: #0D0D0D;
    transition: bottom 0.3s ease;
    z-index: 3;
    overflow: hidden; /* Hide overflow content */
}

.infoDiv p {
    color: #CCCCCC;
    padding: 10px;
    margin: 0; /* Remove default margin */
}

.titleDiv {
    text-align: center;
}

.titleDiv h2 {
    color: #CCCCCC;
    margin: 10px;
    position: relative;
}

.titleDiv h2::before {
    content: '';
    position: absolute;
    width: 0px; /* Adjust the width as needed */
    height: 2px; /* Adjust the height to move the underline further down */
    bottom: -6px; /* Adjust the bottom value to control the distance from the text */
    left: 50%;
    background-color: #4f4f4f;
    transition: width 0.3s ease, left 0.3s ease; /* Animation transition */
}

.containerDiv:hover .titleDiv h2::before {
    width: 100%;
    left: 0;
}


.infoDiv p {
    color: #CCCCCC;
    padding: 10px;
}

.titleDiv {
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1100px) {
    .rosterMembers {
        width: 90%;
    }
    .containerDiv{
        width: 35%;
    }
    .roster h1{
        
        font-size: 48px;
        margin-bottom: 10px;
    }
    .containerDiv:hover .titleDiv h2::before {
        width: 0;
    }
    
}

@media (max-width: 900px) {
    .rosterMembers {
        width: 100%;
    }
    .containerDiv{
        width: 40%;
    }
    .containerDiv:hover .titleDiv h2::before {
        width: 0;
    }
    
}