html {
    scroll-behavior: smooth
}

body {
    --accent-color: #1E5B76;
    --main-bg-color: #3260a4;

    transition: all 0.5s ease;
}

header {
    padding: 50px 0 100px;
    width: 100%;
    min-height: 300px;
    color: #fff;
    background: #3260a4;
}

.intro-text h1,
.intro-text .undertitle {
    margin-left: 174px;
}

.intro-text h1 {
    font-size: 50px;
}

@media (max-width: 850px) {

    .intro-text h1,
    .intro-text .undertitle {
        margin-left: 0;
        text-align: center;
    }
}


header td {
    vertical-align: top;
}

header td:first-child {
    font-weight: bold;
    padding-right: 8px;
    min-width: 170px;

    text-align: right;
}

@media (max-width: 650px) {
    header td:first-child {
        min-width: 100px;
    }
}

header .stats {
    margin: 30px 20px 0 0;
    font-size: 16px;
    max-width: 630px;
}

/* .about-me {
    background: #fff;
    margin: -100px 0 0;
    padding: 40px 60px;
    border-radius: 5px;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}
.about-me h2 {
    margin: 0 !important;
} */


.face-photo {
    border-radius: 50%;
    width: 330px;
    height: 330px;
    border: 4px solid #fff;
    aspect-ratio: 1;
}

.face-photo.mobile {
    width: 220px;
    height: 220px;
    display: none;
    margin: 20px auto;
}

@media (max-width: 850px) {
    .face-photo.desktop {
        display: none;
    }

    .face-photo.mobile {
        display: block;
    }
}

.highlights-body img {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 60px;

    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    border-radius: 5px;
    border: 20px solid #fff;
    background: #fff;
}

.highlights-role {
    color: var(--accent-color);
    font-weight: bold;
    margin: -5px 0 10px;
}

.highlights-body,
.footer-body,
.header-body,
.work-history-body,
.toc,
.about-me,
section.contact {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.header-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-padding {
    padding-bottom: 150px;
}


/* h2.parlia {
    border-bottom: 5px solid #19767d;
    display: table;
}

h2.swipe {
    border-bottom: 5px solid #ffa407;
    display: table;
} */


p {
    line-height: 30px;
    margin-bottom: 30px;
}

.text-section h1,
.text-section h2,
.text-section h3,
.text-section h4 {
    margin: 3em 0 0.3em;
}

a {
    color: var(--accent-color);
    font-weight: bold;
}

footer {
    display: flex;
    align-items: flex-end;
    font-size: 16px;
    color: #fff;
    width: 100%;
    min-height: 20px;
    background: #2f333a;
}

hr {
    margin: 150px -200px;
    height: 0;
    border: 0;
    border-bottom: 2px solid #3260a4;
}

.contact-button {
    font-weight: bold;
    background: #3260a4;
    color: #fff;
    border: 0;
    display: inline-block;
    padding: 16px 28px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    outline: none;

    /* Prevents zooming in on iOS on doubletap */
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action */
    touch-action: manipulation;
}

.contact-button:hover {
    background: #4372b8;
    text-decoration: none;
}

.work-history-list {
    margin: 30px 0 0;
    display: flex;
    flex-direction: column;
}

.work-entry {
    display: grid;
    grid-template-columns: 96px 200px 1fr;
    grid-template-rows: 1fr;
    gap: 30px;
    margin: 20px 20px 30px 30px;
}

@media (max-width: 850px) {
    .work-entry {
        grid-template-columns: 96px 1fr;
        grid-template-rows: min-content 1fr;
    }

    .role {
        grid-column: 1 / 3;
    }
}

.work-entry .company-logo {
    max-width: 96px;
    max-height: 96px;
}

.company-logo.parlia {
    padding: 10px;
    align-self: center;
}

@media (max-width: 850px) {
    .company-logo.parlia {
        padding: 0;
    }
}

.company-logo.mnemonic {
    background: #262626;
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 10px;
}

.company-logo.startup-norway {
    background: #000;
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 10px;
}

.company-logo.swipe {
    background: #ffab18;
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 10px;
}

.company-name {
    font-weight: 700;
}

.location {
    font-size: 16px;
}

.timeframe {
    font-size: 16px;
}

.role {
    max-width: 500px;
}

.role p {
    margin: 0 0 6px;
}

@media not print {
    .only-show-in-print {
        display: none;
    }
}

@media print {
    header {
        width: 100vw;
        height: 100vh;
    }

    .hide-in-print {
        display: none;
    }

    .text-section h2 {
        margin-top: 0.5em;
    }

    .print-page-break {
        page-break-before: always;
        clear: both;
        height: 1px;
    }

    .work-entry {
        break-inside: avoid;
    }

    .highlights-body img {
        break-inside: avoid;
        box-shadow: none;
    }

    .bottom-padding {
        display: none;
    }

    footer {
        display: none;
    }

}
