/* Content in main */
/*article*/
a.article {
    cursor: pointer;
    transition: 0.3s;
}
a.article:hover {
    border: var(--darkest-bg-color) solid 2px;
}
.article.highlight {
    border: var(--secondary-color) solid 2px;
}
.article.highlight:hover {
    border: var(--primary-color) solid 2px;
}
.type_text {
    width: fit-content;
    background-color: var(--highlight-color);
    font-size: 1.6rem;
    padding: 0.2rem;
    margin-left: 0.4rem;
    margin-right: 0.6rem;
    position: absolute;
    top: 1.6rem;
    right: 1rem;
}
.no_img .type_text { /* In the case that there is no image */
    position: static;
    float: right;
}
@media (width < 30rem) {
    .type_text {
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-right: 0;
        position: static;
        top: 0;
        right: 0;
        padding: 0;
    }
}
.no_img img {
    display: none;
}
.author_text {
    text-align: end;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
/*nav cards*/
main .nav_card_container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(auto, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
}
@media (width < 35rem) {
    main .nav_card_container {
        display: block;
    }
}

main .nav_card {
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    overflow: hidden;
}
@media (width < 35rem) {
    main .nav_card {
        margin-bottom: 2.5rem;
        min-height: 0;
    }
}
main .nav_card h2 {
    padding: 0.2rem;
    width: fit-content;
    font-size: 1.5rem;
    text-align: center;
    margin: 0.5rem auto;
    z-index: 4;
    transition: 0.3s;
}

main .nav_card img {
    width: 6rem;
    position: absolute;
    bottom: -0.6rem;
    left: -0.6rem;
    transform: rotate(4deg);
}
@media (width < 80rem) {
    main .nav_card img {
        width: 4rem;
    }
}
/*redirect*/
#redirect_button_container {
    background-color: var(--dark-bg-color);
    border: var(--darkest-bg-color) solid 2px;
    padding: 1rem;
    min-width: 5rem;
    display: grid;
    grid-template-rows: repeat(auto-fill, 1rem auto);
    grid-template-columns: repeat(2, 1fr);
}
@media (width < 30rem) {
    #redirect_button_container {
        grid-template-columns: 1fr;
    }
}
.redirect_button {
    font-size: 2rem;
    border-right: transparent solid 0px; /*Remove the right border*/
    border-left: transparent solid 2px;
}
.redirect_button:hover {
    border-right: transparent solid 0px; /*Remove the right border*/
    border-left: var(--primary-color) solid 2px;
}
/*Margin under*/
.margin_under {
    margin-bottom: 2.5rem !important;
}