

@media screen and (min-width: 30em) {
    .dib-ns {
        display: inline-block
    }
    .w-70-ns {
        width: 70%
    }
}
table {
    width: 100%;
    margin-bottom: 0.5em;
    color: #111;
    background-color: rgba(255, 255, 255, 0.25);
}

thead tr {
    background-color: rgba(0,0,0,0.25);
}
tbody tr:nth-of-type(2n) {
    background-color: rgba(0, 0, 0, 0.1);
}
td {
    padding: 0 0.5em;
    text-align: center;
}
tr td:first-child {
    text-align: start;
}

p strong:last-child {
    font-size: 1.1em;
    padding-left: 0.33em;
}
#font-selector {
    font-size: 1.1em;
    padding: 0.25em;
    margin: 4px 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}
#reaction-grid {
    display: inline-grid;
    grid-template-columns: 10% 5% 10% 5% auto 10% 5% 10% 5% 10% 5% 10% 5%;
    grid-template-rows: [heading] 36px [faces] 36px 124px;
    width: 100%;
}
#reaction-grid span {
    text-shadow: -1px 1px white;
}
body.dark #reaction-grid span {
    text-shadow: -1px 1px #000;
}
@media (max-width: 600px) {
    #reaction-grid {
        font-size: 0.8rem;
    }
    #reaction-grid span {
        font-size: 1rem;
    }
    #reaction-grid img {
        max-width: 80%;
        padding-top: 0.5rem;
    }
}
.translation-reactions {
    margin: 0;
    grid-column: 1 / span 4;
    grid-row: heading;
}
.chapter-reactions {
    margin: 0;
    grid-column: 6 / span 8;
    grid-row: heading;
}
#like_reaction {
    grid-column: 1 / span 2;
    grid-row: faces / span 2;
}
#like_count {
    grid-column: 2;
    grid-row: faces;
}
#dislike_reaction {
    grid-column: 3 / span 2;
    grid-row: faces / span 2;
}
#dislike_count {
    grid-column: 4;
    grid-row: faces;
}
#love_reaction {
    grid-column: 6 / span 2;
    grid-row: faces / span 2;
}
#love_count {
    grid-column: 7;
    grid-row: faces;
}
#surprise_reaction {
    grid-column: 8 / span 2;
    grid-row: faces / span 2;
}
#surprise_count {
    grid-column: 9;
    grid-row: faces;
}
#angry_reaction {
    grid-column: 12 / span 2;
    grid-row: faces / span 2;
}
#angry_count {
    grid-column: 13;
    grid-row: faces;
}
#annoy_reaction {
    grid-column: 10 / span 2;
    grid-row: faces / span 2;
}
#annoy_count {
    grid-column: 11;
    grid-row: faces;
}
.reaction {
    text-align: center;
    cursor: pointer;
}
.reaction img {
    max-height: 100px;
}
.reaction.active img {
    background-color:rgba(128, 128, 128, 0.25);
    border-radius: 30%;
}

.dark table {
    color: #fff;
}

.dark thead tr {
    background-color: rgba(255, 255, 255, 0.25);
}

.dark tbody tr {
    background-color: rgba(255, 255, 255, 0.14);
}

.dark tbody tr:nth-of-type(2n) {
    background-color: rgba(255, 255, 255, 0.07);
}


@media(max-width: 800px) {
    .dark table.responsive {
        background-color: transparent;
    }
    .dark table.responsive thead tr {
        background-color: transparent;
    }
    
    .dark table.responsive tbody tr {
        background-color: rgba(255, 255, 255, 0.07);
    }
    
    .dark table.responsive tbody tr:nth-of-type(2n) {
        background-color: rgba(255, 255, 255, 0.07);
    }
    table.responsive td:before {
        content: attr(data-title);
    }
    table.responsive thead {
        left: -9999px;
        position: absolute;
        visibility: hidden;
    }
    table.responsive tr {
        border-bottom: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
    table.responsive td {
        border: 1px solid;
        margin: 0 -1px -1px 0;
        padding-top: 35px;
        position: relative;
        width: 50%;
    }
    table.responsive td:before {
        display: block;
        background-color: rgba(255, 255, 255, 0.14);
        font-size: 12px;
        font-weight: bold;
        padding: 4px 8px;
        position: absolute;
        text-transform: uppercase;
        top: 0;
        left: 0;
    }
}