@media (max-width: 900px) {
    .misc {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 700px) {
    .wrapper {
        grid-template-columns: repeat(5, 1fr);
        grid-template-areas:
            "h h h h h"
            "l m m m r"
    }
}

#ds {
    position: relative;
    background-image: url(images/games/3ds.png);
    background-size: contain;
    background-repeat: no-repeat;
    width: 656px;
    height: 663px;
    /* outline: 1px solid yellow */
}

#top-screen {
    /* border: 1px dashed red; */
    width: 344px;
    height: 193px;
    position: absolute;
    top: 69px;
    left: 141px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;
}

#top-screen h3 {
    text-align: center;
    margin: auto;
}

#top-screen p {
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 5px;
}

#top-screen p + p {
    padding-top: 0;
}

#top-screen a {
    color: black;
    font-weight: normal;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
}

#top-screen p > a {
    text-decoration: underline;
}

#top-screen center > a::before {
    content: "\1F517" / "link";
}

#top-screen center > .override::before {
    content: none;
}

center {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#bottom-screen {
    /* border: 1px dashed red; */
    width: 267px;
    height: 140px;
    position: absolute;
    top: 414px; 
    left: 178px;
    padding: 10px 16px;

    /* display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr 1fr; */

    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    flex-direction: column;

    overflow: scroll;
}

#bottom-screen > div {
    margin: 0;
    padding: 0;
    /* outline: 1px dashed green; */
    width: 63px;
    height: 63px;

    background-size: contain;
    background-size: 43px;
    background-repeat: no-repeat;
    background-position: center;
    /* content: url("images/games/icon.png") */
}

#bottom-screen > div a {
    width: 63px;
    height: 63px;
    content: url("images/games/icon.png");
}

.tabwrap div {
    display: none;
}

.tabwrap div:target {
    display: block;
}