* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    width: 100%;
}

body {
    width: 100%;
    margin: 0;

    font-family: K2D, sans-serif;
    font-weight: normal;
    /* font-size: 16px; */
    line-height: 1.2;
    background-color: #efefef;
}

@media only screen and (max-width: 600px) {
    /* body {} */
}

p {
    margin: 0;
    padding-bottom: 1em;
}

.container {
    width: 100%;
    max-width: 800px;
}

.header {
    background-color: #efefef;

    padding: 0 32px 32px 32px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.header .container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.header.top {
    position: sticky;
    position: -webkit-sticky;
    top: 0;

    height: 100vh;
}

.header.attached {
    position: fixed;
    top: 0;
    height: 80px;
    width: 100%;
    z-index: 100;
    padding: 0;

    transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    -webkit-transition: opacity 0.5s cubic-bezier(0.86, 0, 0.07, 1);
    opacity: 1;
    box-shadow: 0 0 10px #0f0f0faa;

    flex-direction: row;
    justify-content: center;
    overflow: hidden;
}

.header.attached .container {
    flex-direction: row;
    justify-content: start;
    overflow: hidden;
}

.header.attached.hidden {
    opacity: 0;
    /* box-shadow: none; */
}

.next-page-marker {
    position: absolute;
    bottom: 0;
    padding: 8px;
}

.next-page-marker .fas {
    font-size: 10vh;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 1;
}

.tooltip .tooltip-text::after {
    content: " ";
    position: absolute;
    top: 100%;
    /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

.tooltip .tooltip-text.tooltip-above {
    width: 120px;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
    /* Use half of the width (120/2 = 60), to center the tooltip */
}

.header.attached .next-page-marker {
    display: none;
}

.alex-face {
    width: 320px;
    border-radius: 320px;
    box-shadow: 0 0 10px #0f0f0fee;
}

.header.attached .alex-face {
    width: 64px;
    margin: 8px;
    box-shadow: 0 0 2px #0f0f0fee;
}

/* there is no room for my face on small screens */
@media only screen and (max-width: 400px) {
    .header.top .alex-face {
        width: 200px;
    }

    .header.attached .alex-face {
        display: none;
    }
}

.alex-name {
    font-size: 2em;
    font-weight: bold;
    margin: 12px 8px;
}

.header.attached .alex-name {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.5em;
    font-weight: normal;
}

.header.attached .header-detail {
    margin-right: 8px;
}

.header.attached .link-list {
    font-size: 0.8em;
}

.page {
    font-size: 20px;
    width: 100%;
    padding: 2em 2em;
    box-shadow: 0 0 10px #0f0f0fee;

    display: flex;
    align-items: start;
    justify-content: center;
}

.page .container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.page.sticky {
    position: sticky;
    position: -webkit-sticky;
    top: 81px;

    min-height: calc(100vh - 80px);
}

.page.sticky:not(:last-child) {
    /* margin-bottom: 100vh; */
    /* to give some scroll room between contents */
}

.page-spacer {
    height: 400px;
}

.columns {
    display: flex;

    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.columns .column {
    flex-basis: 224px;
    flex-grow: 1;
    flex-shrink: 0;
    margin: .5em;
}

#page-about {
    background-color: #5a78ca;
    color: #efefef;
}

.page h2 {
    margin-block-end: 1em;
}

ul.about-myself {
    list-style-type: disc;
}

ul.about-myself li {
    margin-block-end: 1em;
}

#page-projects {
    background-color: #ca5555;
    color: #efefef;
}

.link-list {
    list-style: none;
    display: flex;
    flex-direction: row;
}

/* there is no room for link descriptions small screens */
@media only screen and (max-width: 600px) {
    .header.top .link-list>li>a {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .header.attached .link-description {
        display: none;
    }
}


.link-list.vertical {
    flex-direction: column;
}

.link-list li {
    display: block;
    text-decoration: none;
    margin: .4em;
}

.link-list a {
    font-size: 1.5em;
    text-decoration: none;
    color: #1647cc;
}

.link-list li i {
    font-size: 1.5em;
    margin: 4px;
}

h1 {
    font-size: 2em;
}

h2 {
    font-size: 1.5em;
}

@media screen {
    .speech-text {
        display: none;
    }
}

.nav-links {
    width: 100%;
    height: 60px;
    padding: 0 20px;

    display: flex;
    align-items: center;
}

a.nav-link {
    text-decoration: none;
    font-size: 1em;
}

.nav-link i {
    font-size: 1em;
}