.subjects-container {
    display: flex;
    /* background-color: blue; */
    align-items: center;
    justify-content: center;
}

.subjects-container .subjects-content-container {
    margin: 30px;
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 80px;
    row-gap: 80px;
    width: auto;
    height: auto;
    padding: 15px;
    justify-content: center;
    background-color: #e9e7e7;
    border-radius: 30px;
}

.subject-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #FAF6F4;
    width: 300px;
    height: 550px;
    border-radius: 15px;
    box-shadow: 4px 3px 8px 3px #d3d0d0;
    cursor: pointer;
    transition: cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s;
}

.subject-card:hover {
    scale: 1.02;
    /* transition: linear 0.1s; */
    box-shadow: 4px 3px 14px 7px #d3d0d0;
    transition: cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s;
}


.subject-card:active {
    scale: 1;
    box-shadow: none;
}

.subject-card .subject-image-card {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 35%;
    /* background-color: red; */
    border-radius: 15px;
}

.subject-card .subject-image-card img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    object-fit: cover;
    object-position: center;
}

.subject-card .subject-image-card .subject-category {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: auto;
    height: 30px;
    background-color: #96192b;
    bottom: 0px;
    right: 0px;
    border-top-left-radius: 15px;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.subject-card .subject-image-card .subject-category p {
    margin: 0;
    font-family: 'Aller Std 6';
    font-size: 1rem;
    color: white;
}

/**Fim do css de card e imagem*/

/** CSS para titulo do card */

.subject-card .subject-title-card {
    display: flex;
    flex-direction: column;
    /* background-color: red; */
    align-items: center;
    justify-content: center;
    /* padding: 10px; */
    background-color: #59021b;
}

.subject-card .subject-title-card p {
    font-family: 'Aller Std 6';
    color: white;
    margin: 10px;
    font-size: 1.0rem;
}


/* fim do css para titulo card**/

/* inicio do subtitle*/
.subject-card .subject-subtitle-card {
    display: flex;
    height: 30%;
    /* background-color: red; */
    padding: 10px;
    overflow-y: auto;
}


.subject-card .subject-subtitle-card p {
    margin: 0;
    font-family: 'Aller Std 6';
    font-size: 0.9rem;
    color: #6d6d6d;
}

/* fim do subtitle*/

/* inicio do container saiba mais*/

.subject-card .saiba-mais-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.subject-card .saiba-mais-container p u {
    font-family: 'Aller Std 6';
    font-size: 12px;
    color: #6d6d6d;
}


/**Inicio do subject date div*/

.subject-card .subject-date {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    bottom: 0px;
    background-color: #96192b;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}


.subject-card .subject-date p {
    font-family: 'Aller Std 6';
    color: white;
    margin: 0;
    position: absolute;
    bottom: 10px;
    font-size: 0.7rem;
}

/* fim do subject date div*/



/*Inicio navbar */
#nav-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px;
    background-color: #59021b;
        background-image: url('/media/images/background6.png');
    background-size: cover;
    background-position: right top;
    justify-content: center;
    align-items: center;
}

#nav-bar img {
    width: 100%;
    max-width: 450px;
}

@media screen and (max-width: 767px) {
    .subjects-container .subjects-content-container {
        grid-template-columns: auto;
        background-color: #FAF6F4;
        width: 100%;
    }

    .subjects-container .subjects-content-container .subject-card {
        /* width: 100%; */
        /* height: 100%; */
    }
}


@media screen and (min-width: 768px) and (max-width: 1024px) {
    .subjects-container .subjects-content-container {
        grid-template-columns: auto auto;
    }
}

@media screen and (orientation : portrait) {

    #nav-bar img {
        width: 80%;
    }

}