/*
 * www.alikzus.se -- Stylesheet
 * Author: Joel A. Haenel, <joel@hanel.nu>
 * Credits: MC at hack.org, http://www.hack.org/mc/nav.css (2015-07-20)
 * Time-stamp: <>
 */

@import url("https://www.alikzus.se/normalize.css");
@import url("https://www.alikzus.se/resources/fonts/ComicNeue.css");
@import url("https://use.fontawesome.com/releases/v5.6.1/css/all.css");

/*
 * Containers
 */

html > body {
    background-color: #ffffea;
    color: #000;
    font-family: Verdana, sans-serif;
    font-size: 120%;
    line-height: 1.5;
    margin: auto;
    max-width: 40rem;
    padding: 0.5rem;
    text-rendering: optimizeLegibility;
}

/*
 * Text
 */

header {
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
}
    
a {
    box-shadow: inset 0 -0.3rem 0 #000;
    color: #000;
    padding: 0.3rem 0.3rem 0.3rem;
    text-decoration: none;
    transition: all 300ms ease;
}

a:active, a:hover, a:focus {
    background-color: #ffbf00;
    box-shadow: inset 0 -0.3rem 0 #ffbf00;
    color: #000;
}

p {
    -webkit-hyphens: auto;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
    -webkit-hyphenate-limit-chars: 6 3 3;
    -webkit-hyphenate-limit-lines: 2;
    -webkit-hyphenate-limit-last: always;   
    -webkit-hyphenate-limit-zone: 8%;

    -moz-hyphens: auto;
    -moz-hyphenate-limit-chars: 6 3 3;
    -moz-hyphenate-limit-lines: 2;  
    -moz-hyphenate-limit-last: always;
    -moz-hyphenate-limit-zone: 8%;

    -ms-hyphens: auto;
    -ms-hyphenate-limit-chars: 6 3 3;
    -ms-hyphenate-limit-lines: 2;
    -ms-hyphenate-limit-last: always;   
    -ms-hyphenate-limit-zone: 8%;

    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-lines: 2;
    hyphenate-limit-last: always;   
    hyphenate-limit-zone: 8%;
}

/*
 * Lists
 */

li > a {
    line-height:2;
}

/*
 * Navigation
 */

nav ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

/*
 *
 * Images
 *
 */

img {
    border: 1px solid;
    max-width: 100%;
}

/*
 * Horizontal Lines
 */

hr {
    border: none;
    height: 1px;
    background-color: #000;
    clear: left;
}

/*
 * Tables
 */

table {
    border: 1px solid #000;
    border-spacing: 0;
    font-family: Verdana, sans-serif;
    text-align: left;
    width: 100%;
}

table th, table td {
    padding: 0.25rem;
    font-size: 1rem;
    vertical-align: top;
}

table > thead {
    background-color: #000;
    color: #ffffea;
}

table.sortable > thead {
    cursor: pointer;
}

table > tbody > tr:nth-child(even) {
    background-color: #ffffcc;
}

table > tbody > tr:hover {
    background-color: #ffbf00;
    color: #1a1300;
}

/*
 * Skin: Gallery
 */

#gallery p {
    text-align: left;
}

#gallery img {
    display: inline;
    float: none;
    margin-right: 0;
    margin-bottom: 0;
}

#gallery hr {
    clear: none;
}
