.student_card p {
    align-self: center;
    width: 100%;
    max-height: 75px;
    overflow: hidden;
    text-align: start;
    text-align: center;
}

.student_cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-top: 40px;
    gap: 25px;
}

.student_card {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-overflow: ellipsis;
    hyphens: auto;
}

.student_card img {
    height: 150px;
    width: 150px;
    border-radius: 50%;
    box-shadow: inset;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    align-self: center;
    cursor: pointer;
    z-index: 100;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    align-self: center;
}

.student_card img:hover {
    transform: scale(1.2) translateY(-15px);
}



#dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

#dialog {
    position:fixed;
    width: 600px;
    height: 300px;
    border: none;
    border-radius: 20px;
    align-self: center;
    justify-self: center;
}

#container_dialog {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 50px;
    padding-right: 10px;
}

#dialogImage {
    max-height: 300px;
    width: 225px;
    border-right: 1px solid rgba(0, 0, 0, 1);
    object-fit: cover;
    display: block;
}

#dialogText {
    display: flex;
    flex-direction: column;
    margin-block: 20px;
    left: 0;
    max-width: 355px;
    justify-content: center;
}

#dialogText p {
    margin-bottom: 0;
    text-align: start;
}

#dialogNome {
    font-size: 24px;
}

#dialogFormacao {
    color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
    padding-bottom: 20px;
}

.dialogSpan {
    font-weight: bold;
    font-size: 18px;

}

#dialogCurriculo {
    border-radius: 10px;
    font-size: 18px;
    text-align: center;
    margin-right: 25px;
    transition: color 0.3s ease, filter 0.3s ease;
}

#dialogCurriculo:hover {
    color: rgb(34, 102, 34, 1);
}

#dialogText button {
    background-color: rgba(255, 255, 255, 0);
    border: none;
}

@media (max-width:1200px) {
    .student_cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:999px) {
    .student_cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #container_dialog {
        flex-direction: column;
        gap: 10px;
        padding-right: 0;
    }

    #dialog {
        width: 70vw;
        height: auto;
        max-height: 700px;
    }

    #dialogImage {
        height: 400px;
        width: auto;
        border-right: none;
    }

    #dialogText{
        padding-inline: 20px;
    }
    
    #dialogText div{
        padding-top: 10px;
        gap: 20px;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width:750px) {
    .student_cards {
        grid-template-columns: repeat(2, 1fr);
    }

    #dialog {
        width: 95vw;
    }
}