/* Mentor Cards */
.card {
    border: 1px solid #012169;
    border-radius: 8px;
    padding: 1em;
    padding-top: 0.5em;
    margin: 1em;
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
    background-color: #c4c5d8;
    width: 16%;
    min-width: 16em;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.card-image-container {
    border: 5px solid black;
    width: 90%;
    overflow: hidden;
    padding-top: 75%;
    position: relative; 
    border-radius: 20px;
    margin-bottom: 1em;

}

.card-sport, .card-grade, .card-funfact{
    font-size: 1.125em;
    color: #333333;
    margin: 0.5em;
}

.card-funfact {
    font-size: 1em;
    font-style: italic;
    color: #333333;
    margin: 0.5em;
    max-height: 6em; /* Set a fixed height */
    overflow-y: auto; /* Enable vertical scrolling when content exceeds height */
    overflow-x: hidden; /* Hide horizontal scrollbar */
    border: 1px solid #c4c5d8;
    padding: 0.5em;
    border-radius: 4px;
    background-color: #c4c5d8;

}

.card.hidden {
    display: none;
}

/* Individual sections for sports */
.sport-section {
    display: flex;
    flex-flow: row wrap;
}

.sport-header {
    width: 100%;
    margin-bottom: -0.25em;
    margin-top: 1em;
}

.sport-section.hidden {
    display: none;
}

/* External HTML Styling */
.mentor-container {
    display: flex;
    flex-direction: column;
    padding-left: 2em;

}

.page-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.page-title {
    margin-left: 1em;
    flex-grow: 1;
}

.Filters {
    text-align: right;
    margin-bottom: 1em;
    height: fit-content;
}

#filter-toggle {
    padding: 0.5em 1em;
    background-color: #797A9E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125em;
    transition: transform 0.3s ease-in-out;
    height: fit-content;
    margin-right: 1em;
}

#filter-toggle:hover {
    transform: scale(1.05);
}

#filter-options {
    display: flex;
    gap: 1em;
    justify-content: flex-end;
    margin-right: 1em;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

#filter-options.show {
    max-height: 200px;
    opacity: 1;
}

.filter-options select {
    padding: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 1em;
}

.filter-options button {
    padding: 0.5em 1em;
    border: 1px solid #ed1414;
    background-color: #ed1414;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    height: 3em;
}

.filter-options button:hover {
    background-color: #c00;
}

.hidden {
    display: none;
}


.alert {
    padding: 1em;
    margin: 0.5em;
    font-size: 1.2em;
}

.hidden {
    display: none;
}


@media (max-width: 700px) {

    .page-title {
        width: 100%;
    }

    #filter-toggle {
        margin-left: 1.67em;
    }

    #filter-options {
        justify-content: flex-start;
        margin-top: 1em;
        margin-left: 1.67em;
        flex-wrap: wrap;
    }

    .sport-section {
        justify-content: center;
    }
}


.link {
    padding: 0.5em;
    background-color: #797A9E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125em;
    transition: transform 0.3s ease-in-out;
    height: fit-content;
    margin-right: 1em;
}

.two-link {
    width: 7%;
    justify-content: center;
    align-items: center;
}