* {
    box-sizing: border-box;
}

body {
    margin: 0;
    margin-bottom: 3rem;
    font-family: Calibri, Arial, sans-serif;
    font-size: 1.2rem;
    scroll-behavior: smooth;
}

header {
    text-align: center;
    /* background-color: #2f71a8; */
    background: rgb(53, 192, 255);
    background: linear-gradient(140deg,
            rgba(53, 192, 255, 1) 0%,
            rgba(24, 0, 184, 1) 100%);
    color: white;
    margin-bottom: 1.7rem;
}

.lang-switch {
    text-transform: uppercase;
    font-size: 1rem;
    position: absolute;
    left: 1rem;
    right: 1rem;
    text-align: right;
    max-width: 500px;
    margin: 0.3rem auto;
}

.lang-switch a,
.lang-switch a:hover,
.lang-switch a:focus {
    color: white;
    text-decoration: underline;
}

.lang-switch a {
    text-decoration: none;
}

.lang-switch span:not(:last-child)::after {
    content: ' · ';
}

html[lang=cs] .lang-switch a[href=cs],
html[lang=en] .lang-switch a[href=en],
html[lang=fr] .lang-switch a[href=fr] {
    font-weight: bold;
}

h1 {
    padding: 20px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 60px;
}

h1 a {
    margin-right: 0.25rem;
}

h1 a img {
    height: 1.1em;
    width: 1.1em;
    vertical-align: top;
    border-radius: 50%;
    border: 2px white solid;
    transition: border-radius 200ms;
}

h1 a:hover img,
h1 a:focus img {
    border-radius: 0;
}

nav {
    /* background-color: rgba(0, 0, 0, 0.2); */
    background: rgba(0, 0, 155, 0.3);
    font-size: 0;
}

nav a {
    color: white;
    font-size: 1rem;
    text-decoration: none;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
    cursor: pointer;
}

nav a svg {
    fill: white;
    height: 1.1em;
}

nav a span {
    margin-left: 0.5rem;
}

@media (max-width: 500px) {
    nav a {
        padding: 15px 20px;
        font-size: 1.15rem;
    }

    nav a span {
        display: none;
    }

    h1 {
        font-size: 50px;
    }
}

nav a:not(.notransform) {
    text-transform: uppercase;
}

nav a:hover,
nav a:focus {
    /* background-color: rgba(0, 0, 0, 0.2); */
    background-color: rgba(0, 0, 155, 0.3);
    color: white;
}

footer {
    background-color: #222222;
    color: #ccc;
    padding-top: 15px;
    margin-top: 15px;
    font-size: initial;
    text-align: center;
}

section {
    max-width: 700px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

p {
    margin: 0.75rem 0;
    line-height: 1.5;
}

h2 {
    font-size: inherit;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

a {
    /* color: #1b46c9; */
}

a:hover,
a:focus {
    text-decoration: none;
    /* color: #1800b8; */
}

.projects td {
    padding: 0.5rem;
    vertical-align: middle;
}

.projects td:first-child {
    padding-left: 0;
}

.projects a {
    display: flex;
    align-items: center;
}

.projects img {
    width: 1.5rem;
    margin-right: 0.75rem;
}

@media (hover: none) {
    abbr {
        text-decoration: underline dashed;
    }

    abbr:hover::after {
        content: " (" attr(title) ")";
    }
}

@media (max-width: 500px) {
    .projects td {
        display: block;
    }

    .projects td:last-of-type {
        padding-left: 2.3rem;
        padding-top: 0;
    }
}
