body {
    font-size: 0.9em;
    font-family: -apple-system, sans-serif;
    margin: 0;
}

@media (min-width: 745px) {.rspnsv {display: none}}
@media (max-width: 744px) {.responsive {display: none}}

h1 {
    font-size: 3.08rem;
}

@media (max-width: 744px) {h1 {font-size: 2.9rem;}}
@media (max-width: 496px) {h1 {font-size: 8vw;}}

header {
    border-bottom: 1px solid gainsboro;
    padding: 1.5em 1em 1em;
    text-align: center;
    font-weight: 900;
}

footer {
    border-top: 1px solid gainsboro;
    padding: 4em 1em 4em;
    text-align: center;
    font-weight: 900;
}

a#me {
    display: inline-block;
    background-color: gainsboro;
    background-image: linear-gradient(to bottom, #333, #222);
    padding: 2em;
    border-radius: 2em 2em;
    text-decoration: none;
}

a#me:hover {
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 1)
}

a#me:active {
    background-image: linear-gradient(to bottom, #222, #111);
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 1)
}

a#me:focus {
    outline: none;
    box-shadow: inset 0 0 10px 0 rgba(0, 0, 0, 1)
}

a#me span {
    text-shadow: 0 2px 0 black;
    color: #EEEEEE;
}

a#me img {
    vertical-align: middle;
    height: 3em;
    width: auto;
    border-radius: 0.5em;
    margin-right: 1em;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 1)
}

img.loading {
    box-shadow: 0 0 10px 0 gainsboro;
}

grayed {
    color: #BBBBBB;
    font-weight: 200;
}

@media (max-width: 1400px) {
    bookmark {
        position: static;
        display: block;
        margin: 0 -0.8em 1em -8px;
    }
    bookmark:before {
        display: none;
    }
    bookmark:after {
        display: none;
    }
    td {
        padding: 0.5em;
    }
    td:first-child {
        text-align: right;
    }
    fontinfo grayed {
        font-size: 0;
    }
    td:first-child {
        min-width: 18rem;
    }
    /*a.anchor {
        position: absolute;
    }*/
}

h2.biglink {
    width: 100vw;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
    box-sizing: border-box;
    font-size: 2rem;
}

h2.biglink a {
    color: black;
}

section:first-child {
    margin-top: 1rem;
}

section {
    padding: 0;
    margin: 0rem auto;
    display: flex;
    flex-flow: row wrap;
}

section, .biglink {max-width: calc((216px + 2rem) * 5)}
@media (max-width: 1240px) {section, .biglink {max-width: calc((216px + 2rem) * 4)}}
@media (max-width: 992px) {section, .biglink {max-width: calc((216px + 2rem) * 3)}}
@media (max-width: 744px) {section, .biglink {max-width: calc((216px + 2rem) * 2)}}
@media (max-width: 496px) {section, .biglink {max-width: calc((216px + 2rem) * 1)}}

section h2 {
    width: calc(100vw - 4rem - 200px);
    margin: 1rem 1rem 2rem;
    font-size: 2rem;
}

section .emojilist {
    margin: 0 1rem;
    padding: 1rem;
    font-size: 0;
    border-radius: 5px;
    background-color: #F8F8F8;
}

section .emojilist span {
    display: inline-block;
    margin: 0.3rem;
    padding: 0.4rem;
    font-size: 1.1rem;
    border-radius: 5px;
    background-color: #DDDDDD;
}

section #emoji-l1:not(.focused) ~ #emoji-l1-list {
    display: none;
}
section #emoji-l2:not(.focused) ~ #emoji-l2-list {
    display: none;
}
section #emoji-s:not(.focused) ~ #emoji-s-list {
    display: none;
}

figure {
    flex-shrink: 0;
    height: 270px;
    margin: 0.5rem 1rem;
    padding: 0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    transition: margin 0.15s ease, height 0.15s ease;
}

figure.focused {
    height: 315px;
    margin: calc(0.5rem - (315px - 270px) / 2) 1rem;
}

figure.one-img img {
    border-top: 2px solid black;
    border-bottom: 40px solid black;
    transition: border 0.15s ease;
}

figure.focused.one-img img {
    border-top: 10px solid black;
}

figure p.metadata {
    flex-grow: 0;
    height: 40px;
    display: flex;
    flex-direction: column;
    color: black;
    justify-content: center;
    align-items: center;
}

figure p.metadata > span {
    transition: height 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    font-size: 0.85em;
    font-weight: 600;
}

figure p.metadata .friendly {
    align-items: flex-start;
}

figure p.metadata .technical,
figure.focused p.metadata .friendly {
    height: 0;
}

figure p.metadata .friendly,
figure.focused p.metadata .technical {
    height: 1.3em;
}

figure p.metadata .invisible {
    font-size: 0;
}

figure p.metadata .technical {
    -moz-user-select: all;
}

figure div.image-wrapper {
    height: 50px;
    flex-grow: 1;
    flex-shrink: 1;
    margin-bottom: -10px;
    /*opacity: 0.1;*/
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
    box-shadow: 0 0 20px rgba(64, 64, 64, 0.6);
}

figure.focused div.image-wrapper {
    box-shadow: 0 0 20px rgba(64, 64, 64, 1);
}

figure div.image-wrapper {
    min-width: 216px;
    background-color: black;
}

figure div.image-wrapper + div.image-wrapper {
    box-shadow: 0 0 20px rgba(64, 64, 64, 0.6), 0 -1px 0 #666;
}

figure.focused div.image-wrapper + div.image-wrapper {
    box-shadow: 0 0 20px rgba(64, 64, 64, 1), 0 -1px 0 #666;
}

figure div.image-wrapper:last-of-type {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

figure img {
    border: 8px solid black;
    image-rendering: pixelated;
}

figure .metadata.emoji-s,
figure .metadata.emoji-l {
    background-image: url(emoji.svg);
    background-position: 8px 50%;
    background-repeat: no-repeat;
    transition: background-position 0.15s ease;
}

figure.focused .metadata.emoji-s,
figure.focused .metadata.emoji-l {
    background-position: 0 50%;
}
