

.body-and-gif-wrapper {
    display: flex;
    flex-direction: column; /* Stacks items: GIF on top, list below */
    align-items: center;
    gap: 1rem;

    max-width: 1200px;
    margin: 0 auto;
    padding: 5vw;
    box-sizing: border-box;
}

.gif-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.gif-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.body {
    width: 100%;
    overflow:hidden;
}

#link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item a, .list-item i {

    font-size: 0.8rem; /*scales the thing*/


    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s ease;

    overflow:hidden;
}

.list-item a:hover {
    transform: scale(1.03);
}

/*Desktop Layout */
@media (min-width: 768px) {
    body {
        margin: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }


    .body-and-gif-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        max-width: 100%;
        padding: 2vw 8%;
        gap: 3vw;

        flex: 1;
        min-height: 0;

    }

    .gif-wrapper {
        flex: 2;
        width: 100%;
        justify-content: flex-start;
        display: flex;
        min-height: 0;
    }

    .body {
        flex: 1;
        width: 100%;
        max-height: 100%;
        overflow-y: auto;
    }
.list-item a, .list-item i {
        font-size: 1rem; 
        padding: 0.29rem 1rem;
    }
    
    .gif-wrapper img {
        width: 100%;
        max-width: 1000px;
        max-height: 100%;
        object-fit: contain;
        margin: auto 0;
    }

}
