@font-face { font-family: Roboto;  src: url(res/roboto.woff2) format('woff2'); }

* {
    scrollbar-width: none;
}

html {
    -webkit-tap-highlight-color: transparent;
}

html, body, .body-content {
    height: 100vh;
}

body {
    overflow: hidden scroll;
    margin: 0;
    background-color: white;
    color: #006;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Roboto;
    font-size: 1em;
    line-height: 1.5;
}

.body-content {
    display: flex;
    flex-direction: column;
}

a {
    cursor: pointer;
    color: #09f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    display: block;
    max-width: 100%;
    margin: 1em auto;
    border: .5em solid #fff;
    outline: .075em solid #dde;
    box-shadow: 0 .1em .4em #ccd;
}

nav {
    display: flex;
    overflow: auto hidden;
}

nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    gap: .5em;
}

nav ul li {
    padding: 1em .75em .5em;
    user-select: none;
    display: flex;
    white-space: nowrap;
    border-bottom: .175em solid transparent
}

header {
    display: flex;
    flex-direction: column;
}

header .logo {
    position: relative;
    background-image: url(res/josef.jpg);
    background-color: #8486AE;
    background-repeat: no-repeat;
    background-position: center 1em;
    padding-bottom: .5em;
    filter: contrast(1.2) brightness(1.2) saturate(.7);
}

header .logo > div {
    text-align: center;
    font-size: .825em;
}

header .logo > div:nth-child(1) {
    margin-top: 3.75em;
    color: #338;
}

header .logo > div:nth-child(2) {
    margin-top: .125em;
}

main {
    box-sizing: border-box;
    width: 100%;
    max-width: 60em;
    margin: 0 auto;
    padding: 1em 1.5em 4em;
    flex: 1;
    word-wrap: break-word;
}

footer {
    padding: 1em 0 3em;
    background-color: #8486AE33;
}

body:not(.loading) nav ul li:not(:has(a)) {
    cursor: pointer;
}


nav.header-menu::before,
nav.header-menu::after {
    content: '';
    background: linear-gradient(90deg, #fff0, #ffff);
    position: absolute;
    width: 2em;
    height: 3em;
    pointer-events: none;
}

nav.header-menu::before { left: 0; scale: -1 1; }
nav.header-menu::after { right: 0; }

nav.header-menu ul li:hover {
    border-color: #8486AE66;
}

body:not(.loading) nav.header-menu ul li:active,
nav.header-menu ul li.active {
    border-color: #8486AE;
}

body:not(.loading) nav.footer-menu ul li:not(:has(a)):active,
nav.footer-menu ul li.active {
    text-decoration: underline;
}

h1 {
    text-align: center;
    margin-top: 1em;
}

.spacer {
    padding-top: 1.5em;
    border-bottom: .125em dashed #dde;
    margin-bottom: 1.5em;
}
