@media (max-width: 768px) {
    #other > ul {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .featuredCard {
        flex-direction: column;
    }

    .featuredCard figure {
        border-top-left-radius: 50px;
        border-top-right-radius: 50px;
        height: 200px;
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    #featured, #other {
        margin: 0 3em;
    }

    #other > ul {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .featuredCard figure {
        border-bottom-left-radius: 50px;
        border-top-left-radius: 50px;
        flex: 0 0 40%;
        overflow: hidden;
        position: relative;
    }

    .featuredCard figure img {
        position: absolute;
    }
}

#featured {
    margin-bottom: 3em;
    margin-top: 1em;
}

#featured h2 {
    font-size: 2em;
    margin-bottom: 0.75em;
    text-align: center;
}

#featured > ul {
    display: flex;
    flex-direction: column;
    gap: 2em;
    list-style: none;
}

#other {
    margin-bottom: 1em;
}

#other h2 {
    border-left: 4px solid var(--accent);
    font-size: 2em;
    margin-bottom: 0.75em;
    padding-left: 0.5em;
}

#other > ul {
    display: grid;
    gap: 2em;
    list-style: none;
}

#other > ul li {
    display: flex;
}

/*
    Featured Card
*/

.featuredCard figure img {
    transition: transform 0.5s ease;
}

.featuredCard:hover figure img {
    transform: scale(1.05);
}

/*
    Other Card
*/

.otherCard {
    flex: 1;
    flex-direction: column;
}

.otherCard figure {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    height: 200px;
    overflow: hidden;
}

/*
    Card
*/

.card {
    display: flex;
    padding: 0;
}

.cardTitle {
    align-self: flex-start;
    margin-bottom: 0;
}

.card figure img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1em;
    padding: 1.5em 1.5em 0.5em;
}

.content p {
    flex: 1;
}

.contentFooter {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.tags {
    display: flex;
    gap: 0.5em;
    list-style: none;
}

.tags img {
    transition: filter 0.2s ease;
    width: 1.5em;
}

.tags .libGDX {
    width: 2em;
}

.tags img:hover {
    filter: brightness(0.8) grayscale(30%);
}

.content .codeLink {
    align-items: center;
    border-radius: 1em;
    color: var(--textPrimary);
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5em;
    margin-right: 0.5em;
    padding: 0.25em;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.codeLink img {
    width: 2.5em;
}

.codeLink:hover, #githubLink a:hover  {
    background-color: var(--hover);
    color: var(--accent);
    transform: scale(1.1);
}

/*
    GitHub Link
*/

#githubLink {
    align-items: center;
    display: flex;
    font-size: 1.2em;
    gap: 0.5em;
    justify-content: center;
    margin-top: 1.5em;
}

#githubLink a {
    align-items: center;
    border-radius: 0.5em;
    color: var(--textPrimary);
    display: flex;
    gap: 0.3em;
    padding: 0.2em;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#githubLink img {
    width: 1.5em;
}
