
/* --- fonts --- */

@font-face {
    font-family: 'Oxygen';
    font-style: normal;
    font-weight: 400;
    src: url('./webfonts/Oxygen-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('./webfonts/Quicksand-Regular.ttf') format('truetype');
}


/* --- general ---*/

body, html {
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

body {
    font-family: Oxygen, sans-serif;
    font-size: 16px;
    margin: 20px;
    background: #fff;
}

.content {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

a, a:link {
    cursor: pointer;
    color: #007e9c;
    -webkit-transition: all 0.11s linear;
    -moz-transition: all 0.11s linear;
    text-decoration: none;
}

a:visited {
    color: #6a54c5;
}

a:hover {
    color: #000980;
    text-decoration: underline;
}

h2 {
    border-top: 1px solid #d5d5d5;
    padding-top: 10px;
    font-family: 'Quicksand', sans-serif;
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-top: 10px;

    animation-duration: 1s;
}

h3 {
    margin: 0;
    margin-bottom: 5px;
    font-size: 1.08em;
}

.light {
    color: #767676;
    font-weight: normal;
}

@keyframes anim-highlight {
    0% {
        background: #d1ecff;
    }

    100% {
        background: none;
    }
}

.text-center {
    text-align: center;
}


/* --- print vs screen --- */
.only-print {
    display: none !important;
}

.only-screen {
    display: initial !important;
}


/* --- list --- */
ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 5px;
}

li::before {
    content: "•";
    color: #31adff;
    position: absolute;
    left: 0;
    top: 0;
}


/* --- sticky & side nav --- */
.fixed-wrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 1;
}

.fixed-content {
    width: min(calc(100% - 40px), 700px);
    margin-left: auto;
    margin-right: auto;
    height: 10px;
    position: relative;
}

#sticky {
    background-color: #fff;

    background-image: url(img/bitbof-cv-logo.svg?v=184971ac510);
    background-size: 23px 23px;
    background-repeat: no-repeat;
    background-position: center center;

    display: flex;
    justify-content: space-between;

    padding: 10px 0px;
    box-shadow: 0 1px #d5d5d5;
}


#side-nav {
    position: absolute;
    left: -190px;
    top: 83px;
    z-index: 2;
    text-align: right;
    width: 150px;
    box-shadow: 1px 0 #d5d5d5;
    padding-right: 10px;
    line-height: 23px;
    display: flex;
    flex-direction: column;
}

.side-nav-el:not(:last-child) {
    margin-bottom: 6px;
}

.number-box {
    display: inline-block;
    color: #939393;
    text-align: center;
    margin-right: 10px;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 1px 0 #d5d5d5;
    padding-right: 10px;
}


/* --- head area --- */
.header-utils {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.header-utils > * {
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #d5d5d5;
}

.header-utils > *:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.lang-option {
    padding-bottom: 2px;
    box-shadow: 0 2px transparent;
}

span.lang-option, a.lang-option:hover {
    box-shadow: 0 2px #31adff;
    text-decoration: none;
}

.header-name {

    font-family: 'Quicksand', sans-serif;
    font-size: 2em;

    /*margin-top: -0.8em;
    margin-left: -0.1em;
    font-size: 2.5em;*/
    padding: 0.18em 0 0.22em 1.8em;
    background-image: url(img/bitbof-cv-logo.svg?v=184971ac510);
    background-size: contain;
    background-repeat: no-repeat;

    background-position: -4px center;
    margin-bottom: 10px;
}

.header-details {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.header-details > * {
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid #d5d5d5;
}

.header-details > *:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.color-a {
    color: #31adff;
}

.color-b {
    color: #c000ef;
}

.color-c {
    color: #17d262;
}

.color-d {
    color: #ffc905;
}




/* --- image --- */
.image {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
}
.caption {
    text-align: center;
}


/* --- project --- */
.project, .project-wide-im {
    margin-bottom: 40px;
}

.project h3, .project-wide-im h3 {
    /*font-size: 1.25em;
    margin-top: 0;
    margin-bottom: 0.5em;*/
    display: flex;
    flex-wrap: wrap;
}

.project h3 > *:first-child, .project-wide-im h3 > *:first-child {
    padding-right: 8px;
}

.tech-tag-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -4px;
}

.tech-tag {
    border: 1px solid #c9c9c9;
    color: #767676;
    padding: 5px;
    box-sizing: border-box;
    margin: 4px;
    display: inline-block;
}



/* --- work & education --- */
.work {
    margin-bottom: 30px;
}

.education {
    margin-bottom: 20px;
}

.education, .work {
    display: flex;
    width: 100%;
}

.education>div:first-child, .work>div:first-child {
    color: #767676;
    flex: 0 0 25%;
    padding-right: 10px;
}

.education>div:last-child>div:first-child, .work>div:last-child>div:first-child {
    font-weight: bold;
    margin-bottom: 5px;
}



/* --- footer --- */

.footer {
    margin-top: 0.83em;
    border-top: 1px solid #d5d5d5;
    padding-top: 80px;
}

.footer-action-wrapper {
    /* box-shadow: 0 0 56px rgba(167, 235, 255, 0.26); */
    background-image: url('img/border-bg.png?v=184971ac510');
    background-size: 100% 100%;
    padding: 2px;
}

.footer-action {
    font-size: 21px;
    padding: 45px;
    background: #fff;
    /*border-top: 2px solid rgba(0, 255, 255, 0.25);
    border-right: 2px solid rgba(255, 200, 0, 0.25);
    border-bottom: 2px solid rgba(98, 253, 0, 0.25);
    border-left: 2px solid rgba(178, 0, 243, 0.25);*/
}

.footer-copyright {
    margin-top: 80px;
    padding-left: 25px;
    background-image: url(img/bitbof-cv-logo.svg?v=184971ac510);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 0 center;

    display: inline-block;

}



/* --- dark ---*/
@media (prefers-color-scheme: dark) {
    body {
        background: #222;
        color: #fff;
    }

    a, a:link {
        color: #45d5fc;
    }

    a:visited {
        color: #669cde;
    }

    a:hover {
        color: #a5f5ff;
    }

    h2 {
        border-top: 1px solid #5b5b5b;
    }

    .light {
        color: #9a9a9a;
    }

    @keyframes anim-highlight {
        0% {
            background: #d1ecff;
        }

        100% {
            background: none;
        }
    }

    li::before {
        color: #31adff;
    }

    #sticky {
        background-color: #222;
        box-shadow: 0 1px #5b5b5b;
    }

    #side-nav {
        box-shadow: 1px 0 #5b5b5b;
    }

    .number-box {
        color: #939393;
        box-shadow: 1px 0 #5b5b5b;
    }

    .header-utils > * {
        border-right: 1px solid #5b5b5b;
    }

    span.lang-option, a.lang-option:hover {
        box-shadow: 0 2px #31adff;
    }

    .header-details > * {
        border-right: 1px solid #5b5b5b;
    }

    .tech-tag {
        border: 1px solid #5b5b5b;
        color: #9a9a9a;
    }

    .education>div:first-child, .work>div:first-child {
        color: #9a9a9a;
    }

    .footer {
        border-top: 1px solid #5b5b5b;
    }

    .footer-action {
        background: #222;
    }
}


/* --- mobile ---*/

@media (max-width: 550px) {

    #sticky {
        background-image: none;
    }

    .header-details {
        display: block;
    }

    .header-details > * {
        margin-bottom: 5px;
        border-right: none;
    }

}

@media (max-width: 1050px) {

    #side-nav {
        display: none;
    }

}
