/* © 2020 pacman64 */

body {
    margin: 0;
    font-size: 1.1rem;
    font-family: Arial, Helvetica, sans-serif;

    /* prevent address tooltip at the bottom from hiding titles on the last row */
    margin-bottom: 2rem;

    /* avoid a useless horizontal scrollbar on Chromium */
    overflow-x: hidden;
}

/*
default for normal-res desktop/laptop screens up to full-HD: overridden in
later media queries
*/
main {
    /* gap: 1px; */
    /* padding: 1px; */
    display: grid;
    margin: auto;
    justify-items: center;
    grid-template-columns: repeat(6, 1fr);
}

main>* {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    /* border: solid thin #e0e0e0; */
}

a {
    color: steelblue;
    text-decoration: none;
}

a>img {
    width: 100%;
    vertical-align: text-top;
}

a:hover {
    background-color: #f0f0f0;
    border: solid thin lightsteelblue;
}

a:focus {
    color: whitesmoke;
    background-color: steelblue;
    border: solid thin lightsteelblue;
}

/* high-res screens, such as 2560x1440 and 4K */
@media screen and (min-width: 1921px) {
    main {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* regular-res cellphone screens / iPad-res screens */
@media screen and (max-width: 1024px) {
    main {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* small-res cellphone screens, or regular-res cellphone held upright */
@media screen and (max-width: 420px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
}
