/******************************************************************************/

/*!
 * Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/******************************************************************************/

/* GENERAL - HTML TAGS */

html {
    width: 100%;
    height: 100vh;
}

body {
    width: 100%;
    height: 100vh;

    font-family: var(--GENERAL-FONT, var(--GENERAL-FONT-1));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--TITLE-FONT, var(--GENERAL-FONT-2));
    font-weight: 700;
}

hgroup {
    margin-bottom: 1em;
}

p {
    font-size: 1em;
    margin-bottom: 20px;
    line-height: 1.5;
}
article p {
    margin: 0;
}

hr {
    border-width: 3px;

//    width: var(--HR-WIDTH);
    border-color: var(--HR-BORDER-COLOR, var(--GENERAL-COLOR-1));
}

/* TODO: move elsewhere in file... */
@keyframes zoom-in {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes slide-right {
    0% {
        width: 0;
        margin-left: 100%;
    }
    100% {
        width: 100%;
        margin-left: 0;
    }
}
@keyframes slide-left {
    0% {
        width: 0;
        margin-right: 100%;
    }
    100% {
        width: 100%;
        margin-right: 0;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .anim-in {
        animation: zoom-in .5s 1;
    }

    .anim-left {
        animation: slide-right .5s 1;
    }

    .anim-right {
        animation: slide-left .5s 1;
    }
}


/* TODO: can be removed*/
hr.light {
    border-color: var(--HR-BORDER-LIGHT-COLOR, var(--GENERAL-COLOR-2));
}

a {
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;

    color: var(--GENERAL-LINK-COLOR-1);
    text-decoration: underline;
}

a:hover,
a:focus {
    color: var(--GENERAL-LINK-ACTIVE-COLOR-1);
    text-decoration: none;
}

/******************************************************************************/

/* GENERAL - RANDOM */

.no-padding {
    padding: 0;
}

.no-gutter > [class*=col-] {
    padding-right: 0;
    padding-left: 0;
}

/* The following could be modified to use variables */

::selection {
    text-shadow: none;
    color: #fff;
    background: #222;
}

::-moz-selection {
    text-shadow: none;
    color: #fff;
    background: #222;
}

img::selection {
    color: #fff;
    background: 0 0;
}

img::-moz-selection {
    color: #fff;
    background: 0 0;
}

.copyright {
    background-color: rgba(255, 255, 255, .5);
    color: black;
    font-weight: 700;
    font-size: .75em;

    font-family: var(--COPYRIGHT-FONT);
}

.copyright::before {
    content: "\00a9\2009"; /* Copyright symbol followed by a thin space character */
}

/******************************************************************************/

/* GENERAL - COLORS */

.bg-primary {
    background-color: var(--GENERAL-COLOR-1);
}

.bg-secondary {
    background-color: var(--GENERAL-COLOR-2);
}

.text-primary {
    color: var(--GENERAL-FONT-COLOR-1);
}

.text-secondary {
    color: var(--GENERAL-FONT-COLOR-2);
}

.text-tertiary {
    color: var(--GENERAL-FONT-COLOR-3);
}

/******************************************************************************/

/* BUTTONS */

/* "btn-default" is not used - but could... */
/*
.btn-default {
    border-color: #fff;
    color: #222;
    background-color: #fff;
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
}

.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    border-color: #ededed;
    color: #222;
    background-color: #f2f2f2;
}

.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    background-image: none;
}

.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
    border-color: #fff;
    background-color: #fff;
}

.btn-default .badge {
    color: #fff;
    background-color: #222;
}
*/

.btn-primary {
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;

    border-color: var(--GENERAL-COLOR-1);
    color: var(--GENERAL-FONT-COLOR-3);
    background-color: var(--GENERAL-COLOR-1);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    border-color: var(--GENERAL-LINK-ACTIVE-COLOR-1);
    color: var(--GENERAL-FONT-COLOR-3);
    background-color: var(--GENERAL-LINK-ACTIVE-COLOR-1);
}

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
    background-image: none;
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
    border-color: var(--GENERAL-COLOR-1);
    background-color: var(--GENERAL-COLOR-1);
}

.btn-primary .badge {
    color: var(--GENERAL-COLOR-1);
    background-color: var(--GENERAL-COLOR-2);
}

.btn {
    border: 0;
    border-radius: 0;
    font-weight: 500;

    font-family: var(--BUTTON-FONT, var(--GENERAL-FONT-2));

    padding: .5em;

    text-decoration: none;
    text-shadow: none;
}

.btn-icon {
    border: 0;
    padding: 0;
}
.btn-icon:hover {
    text-decoration: none;

    -webkit-transition: .1s ease-in-out;
    -moz-transition: .1s ease-in-out;
    -o-transition: .1s ease-in-out;
    transition: .1s ease-in-out;

    transform: scale(1.1);
}
.btn-icon:active {
    text-decoration: none;
    transform: scale(0.9);
}
.btn-icon:focus {
    text-decoration: none;
}

.btn-image img {
    /* TODO: size as param (?) */
    width:64px;
    height:64px;
}
.btn-image img:hover {
    -webkit-transition: .1s ease-in-out;
    -moz-transition: .1s ease-in-out;
    -o-transition: .1s ease-in-out;
    transition: .1s ease-in-out;

    transform: scale(1.1);
}
.btn-image img:active {
    transform: scale(0.9);
}


.btn-xl {
    padding: 15px 30px;
}

/******************************************************************************/

/* ICONS, LOGOS, EMAIL */

.inline-icon {
    display: inline-block;

    font-size: 100%;
    font-weight: 900;
    line-height: 1;

    width: 1em;
    height: 1em;
    vertical-align: -0.125em;

    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;

    background-color: currentColor;
}


.icon {
    display: inline-block;

    font-size: 1rem;
    font-weight: 900;
    line-height: 1;

    width: 1em;
    height: 5.5vh;
    vertical-align: -0.125em;

    mask-repeat: no-repeat;
/*    mask-size: auto;*/
    /* if 'center', small 'jump' at end of zoom anim */
    mask-position: center;
}

.icon-x2 {
    font-size: 2rem;
}

.icon-x4 {
    font-size: 4rem;
}

.icon-x6 {
    font-size: 6rem;
}


.email-link a {
    font-size: 2rem;
}


ul.icons-list {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.icons-list li {
    margin-right: 20px;
}

.icons-list li:last-of-type {
    margin-right: 0;
}

.icons-list li:hover {
    transform: scale(1.5);
}


ul.logos-list {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

@media(min-width: 768px) {
    ul.logos-list {
        justify-content: left;
    }
}

.logos-list li {
    margin: 0 5px 2px 5px;
}

.logo {
    object-fit: contain;
    object-position: center;
    width: 32px;
    height: 32px;
}


ul.images-list {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.images-list li {
    margin: 5px;
}

.image {
    object-fit: contain;
    object-position: center;

    width: 384px;
}

@media(max-width: 448px) {
    .image {
        width: 256px;
    }
}

/******************************************************************************/

/* PROFILE BOX */
/* TODO: make fully separate for 'about' and 'contact'? */

.profile {
    text-align: center;
/*    padding: 30px 10px;*/
/* TODO: set as variables! */
margin: 30px 10px;
//padding: 2rem;
    position: relative;
}

.profile .portrait {
    width: 200px;
    height: 200px;
//    width: 100%;
    margin: 0 auto;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    border-radius: var(--GENERAL-IMAGE-BORDER-RADIUS);
}

.profile .text-primary p {
/* TODO: different size on mobile? */
    font-size: var(--GENERAL-PROFILE-FONT-SIZE);
    font-weight: 300;
}

/******************************************************************************/

/* TAGS */

.tag-title {
    padding-bottom: 0.5rem;

    font-family: var(--SIDEBAR-LINK-FONT, var(--GENERAL-FONT-2));
    font-weight: 700;
}

.tags a {
    display: inline-block;
    border-radius: 999em;
    border: 1px solid rgba(0, 0, 0, .25);
    text-decoration: none;

    line-height: 20px;
    font-size: 10px;
    padding: 0px 7px;
    margin: 0 1px 5px;

    color: var(--GENERAL-FONT-COLOR-2);
}

.tags a:hover,
.tags .tag:hover,
.tags a:active,
.tags .tag:active {
    text-decoration: none;

    color: var(--GENERAL-FONT-COLOR-3);
    border-color: var(--GENERAL-COLOR-2);
    background-color: var(--GENERAL-COLOR-1);
}

/******************************************************************************/

/* NAVBAR */

.navbar-default {
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
    border-color: rgba(34, 34, 34, .05);

    font-family: var(--NAVBAR-FONT, var(--GENERAL-FONT-2));
    background-color: var(--NAVBAR-FIXED-BACKGROUND-COLOR, var(--GENERAL-COLOR-2));
}

.navbar-default .navbar-header .navbar-brand {
    font-weight: 700;
/*    font-size: 50px;*/

    font-family: var(--NAVBAR-BRAND-FONT, var(--GENERAL-FONT-2));
    color: var(--NAVBAR-FIXED-BRAND-COLOR, var(--GENERAL-FONT-COLOR-2));
}

#brand_logo {
    position: absolute;
    display: block;
/*
    margin-left: auto;
    margin-right: auto;
*/
    margin: 0;
    height: 1em;
}

.navbar-default .navbar-header .navbar-brand:hover,
.navbar-default .navbar-header .navbar-brand:focus {
    color: var(--NAVBAR-FIXED-BRAND-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-1));
}

.navbar-default a {
    text-decoration: none;
}
.navbar-default .nav > li > a,
.navbar-default .nav > li > a:focus {
    font-weight: 700;
    font-size: 13px;

    color: var(--NAVBAR-FIXED-BUTTON-COLOR, var(--GENERAL-LINK-COLOR-2));
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus:hover {
    color: var(--NAVBAR-FIXED-BUTTON-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-2));
}

.navbar-default .nav > li.active > a,
.navbar-default .nav > li.active > a:focus {
    color: var(--NAVBAR-BUTTON-ACTIVE-COLOR, var(--GENERAL-FONT-COLOR-2));
    background-color: var(--NAVBAR-BUTTON-ACTIVE-BACKGROUND-COLOR, transparent);
}

.navbar-default .nav > li.active > a:hover,
.navbar-default .nav > li.active > a:focus:hover {
    background-color: transparent;
}

@media(min-width: 768px) {
    .navbar-default {
        border-color: rgba(255, 255, 255, .3);

        background-color: var(--NAVBAR-BACKGROUND-COLOR);
    }

    .navbar-default .navbar-header .navbar-brand {
        color: var(--NAVBAR-BRAND-COLOR, var(--GENERAL-FONT-COLOR-4));
    }

    .navbar-default .navbar-header .navbar-brand:hover,
    .navbar-default .navbar-header .navbar-brand:focus {
        color: var(--NAVBAR-BRAND-HOVER-COLOR, var(--GENERAL-FONT-COLOR-3));
    }

    .navbar-default .nav > li > a,
    .navbar-default .nav > li > a:focus {
        color: var(--NAVBAR-BUTTON-COLOR, var(--GENERAL-FONT-COLOR-4));
    }

    .navbar-default .nav > li > a:hover,
    .navbar-default .nav > li > a:focus:hover {
        color: var(--NAVBAR-BUTTON-HOVER-COLOR, var(--GENERAL-FONT-COLOR-3));
    }

    .navbar-default.affix {
        border-color: rgba(34, 34, 34, .05);

        background-color: var(--NAVBAR-FIXED-BACKGROUND-COLOR, var(--GENERAL-COLOR-2));
    }

    .navbar-default.affix .navbar-header .navbar-brand {
        font-size: 40px;

        color: var(--NAVBAR-FIXED-BRAND-COLOR, var(--GENERAL-FONT-COLOR-2));
    }

    .navbar-default.affix .navbar-header .navbar-brand:hover,
    .navbar-default.affix .navbar-header .navbar-brand:focus {
        color: var(--NAVBAR-FIXED-BRAND-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-1));
    }

    .navbar-default.affix .nav > li > a,
    .navbar-default.affix .nav > li > a:focus {
        color: var(--NAVBAR-FIXED-BUTTON-COLOR, var(--GENERAL-LINK-COLOR-2));
    }

    .navbar-default.affix .nav > li > a:hover,
    .navbar-default.affix .nav > li > a:focus:hover {
        color: var(--NAVBAR-FIXED-BUTTON-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-2));
    }

    .navbar-default.affix .nav > li.active > a,
    .navbar-default.affix .nav > li.active > a:focus {
        color: var(--NAVBAR-BUTTON-ACTIVE-COLOR, var(--GENERAL-FONT-COLOR-2));
        background-color: var(--NAVBAR-BUTTON-ACTIVE-BACKGROUND-COLOR, transparent);
    }

    #brand_logo {
        top: 50%;
        -ms-transform: translateY(-50%);
        transform: translateY(-50%);
    }
}

#navNotFixed {
    margin-bottom: 0;
}

@media(min-width: 768px) {
    #navNotFixed {
        border-color: rgba(34,34,34,.05);

        background-color: var(--NAVBAR-FIXED-BACKGROUND-COLOR, var(--GENERAL-COLOR-2));
    }

    #navNotFixed .navbar-header .navbar-brand {
        font-size: 40px;

        color: var(--NAVBAR-FIXED-BRAND-COLOR, var(--GENERAL-FONT-COLOR-2));
    }

    #navNotFixed.navbar-header .navbar-brand:hover,
    #navNotFixed .navbar-header .navbar-brand:focus {
        color: var(--NAVBAR-FIXED-BRAND-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-1));
    }

    #navNotFixed .nav > li > a,
    #navNotFixed .nav > li > a:focus {
        color: var(--NAVBAR-FIXED-BUTTON-COLOR, var(--GENERAL-LINK-COLOR-2));
    }

    #navNotFixed .nav > li > a:hover,
    #navNotFixed .nav > li > a:focus:hover {
        color: var(--NAVBAR-FIXED-BUTTON-HOVER-COLOR, var(--GENERAL-LINK-ACTIVE-COLOR-2));
    }
}

/******************************************************************************/

/* SECTIONS */

main {
    /* Need to consider header & footer heights as well... */
    min-height: calc(100vh - var(--NAVBAR-HEIGHT));
}

.section {
    padding: var(--homepage-section-padding);
    min-height: calc(100vh - var(--NAVBAR-HEIGHT));
}

.section-heading {
    margin-top: 0;
}
/*
.section-hr {
}
*/

/* TODO: here? */
.section-title-left {
    padding-left: 0;
    text-align:right;
}
.section-title-right {
    padding-right: 0;
    text-align: left;
}
.section-title-center {
    //padding-right: 0;
    text-align: center;
}


/******************************************************************************/

/* HOME */

#home {
    position: relative;
    min-height: 100vh;

/*
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
*/
    background-color: var(--HOME-BACKGROUND-COLOR, transparent);

/* TODO: why was '-2'? => bug (can't select text + button) */
/*z-index: -2;*/
z-index: 0;
}

#background_hidden {
    position: absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;

    width:100%;
    background-position: center bottom;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    opacity: 0;
    background-image: var(--home-bkg-image-hidden,);

    pointer-events:none;
}

#home::after {
    position: absolute;
    z-index: -1;
    content: "";
width:100%;

    background-position: center bottom;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

/*    background-color: var(--HOME-BACKGROUND-COLOR, transparent);*/
top:0;
left:0;
bottom:0;
right:0;
    background-image: var(--home-bkg-image,);
    opacity: var(--home-bkg-image-opacity, 100%);
}

#home_video {
    position: absolute;
    z-index:-1;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit: cover;
}

#home_logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1em;
}

#home .header-content {
    position: absolute;
    width: 100%;
    top: 50%;
    padding: 0;

    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);

    text-align: var(--home-text-align);

    color: var(--HOME-TITLE-COLOR, var(--GENERAL-FONT-COLOR-3));
    font-family: var(--HOME-TEXT-FONT, var(--GENERAL-FONT-1));
    z-index: 99;
}

#home .header-content .header-content-inner h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 700;
    font-family: var(--HOME-TITLE-FONT, var(--TITLE-FONT));
}

#home .header-content .header-content-inner h2 {
    font-weight: 600;
    font-family: var(--HOME-TITLE-FONT, var(--TITLE-FONT));
}

#home .header-content .header-content-inner hr {
    margin: 30px auto;

    /* TODO: use variables for 'bar-width' (0-100%) (find better name) (?) */
    width: 100%;
}

#home .header-content .header-content-inner p {
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 300;
    color: var(--HOME-TEXT-COLOR, var(--GENERAL-FONT-COLOR-3));
}

@media(min-width: 768px) {
    #home .header-content {
        width: var(--home-width);
        left: var(--home-offset-h);
        top: var(--home-offset-v);

        -webkit-transform: translate(
            calc(-1 * var(--home-offset-h)),
            calc(-1 * var(--home-offset-v))
        );
        -ms-transform: translate(
            calc(-1 * var(--home-offset-h)),
            calc(-1 * var(--home-offset-v))
        );
        transform: translate(
            calc(-1 * var(--home-offset-h)),
            calc(-1 * var(--home-offset-v))
        );
    }

    #home .header-content .header-content-inner {
        margin-right: auto;
        margin-left: auto;
//        max-width: 1000px;
    }

    #home .header-content .header-content-inner p {
//        margin-right: auto;
//        margin-left: auto;
//        max-width: 80%;
        font-size: 18px;
    }
}

/******************************************************************************/

/* ABOUT */

/*
TODO: move as much as possible to common (for all background images)
+ adapt each section code (as in "about")
*/
#about {
    display: block;
    position: relative;

    z-index: -2;

    /* TODO: add a 'about' specific color variable? */
    color: var(--GENERAL-FONT-COLOR-1);
    background-color: var(--about-bkg-color);
}
#about::after {
    position: absolute;
    z-index: -1;
    content: "";

    top: 0;
    bottom: 0;
    left: var(--about-bkg-margin-left);
    right: var(--about-bkg-margin-right);

    width: var(--about-bkg-width);

    background-image: var(--about-bkg-image,);
    opacity: var(--about-bkg-opacity);

    background-position: var(--about-bkg-position);
    background-repeat: no-repeat;
    -webkit-background-size: var(--about-bkg-size);
    -moz-background-size: var(--about-bkg-size);
    background-size: var(--about-bkg-size);
    -o-background-size: var(--about-bkg-size);
}

#about .section-hr {
    border-color: var(--about-title-bar-color);
}
#about .section-heading {
    color: var(--about-title-color);
}


#about .profile {
    margin: var(--about-profile-margin);

    background-color: var(--about-profile-bkg-color);
    border: var(--about-profile-border);
}

#about .profile-text {
    text-align: left;
	padding: var(--about-profile-text-padding-v) var(--about-profile-text-padding-h);
}
#about .profile-text p:last-of-type {
    margin: 0;
}

#about .portrait {
    position: relative;

    width: var(--about-profile-image-width);
    height: auto;

    border-radius: var(--about-profile-image-border-radius);
    border: var(--about-profile-image-border);

    /* TODO: rewrite? (compute in HTML?) */
    margin-top: calc((100% - var(--about-profile-image-width)) / 2);
    margin-bottom: calc((100% - var(--about-profile-image-width)) / 2);
}

#avatar1 {
    /* NOTE: setting 'position' here causes problems with height */
    /*position: absolute;*/
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#avatar2 {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}
#avatar2:hover {
    opacity: 100%;
}

#about .main-text {
    text-align: justify;
    text-justify: inter-word;

    padding: var(--about-main-text-padding-v) var(--about-main-text-padding-h);

    color: var(--about-main-text-color);
    background-color: var(--about-main-bkg-color);
    border: var(--about-main-border);
}
@media(max-width: 768px) {
    #about .main-text {
        text-align: left;
        text-justify: none;
    }
}

#about a {
    color: var(--about-link-color);
}
#about a:hover,
#about a:focus {
    text-decoration: none;
    color: var(--about-link-color-active);
}

/* hack to remove margin below profile image */
#about-separator-classic {
    margin: calc((var(--about-profile-image-width) - 100%) / 2) 0;
    padding: 0;
}
#about-separator {
    margin: 0;
    padding: 0;
}

/* TODO: move to each selector (BUT, use PostCSS when building to fix performance issues) */
@media (max-width: 992px) {
    #about::after {
        left: 0;
        right: 0;
        /* TODO: add option to hide background in "small" screen? */
        width: 100%;
        background-size: cover;
    }

    #about .profile-text {
        text-align: center;
    }

    #about .portrait {
        /* TODO: set as custom param */
        max-width: 300px;
    }

    #about-separator {
        /* remove margin below profile image (only on small screen, vertical layout) */
        margin: calc((var(--about-profile-image-width) - 100%) / 2) 0;
    }
}


/******************************************************************************/

/* SERVICES */

#services {
    position: relative;
 
    background-image: var(--services-bkg-image,);
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    /* TODO: add a 'services' specific color variable */
    color: var(--GENERAL-FONT-COLOR-1);
    background-color: var(--services-bkg-color);
}

#services .section-hr {
    border-color: var(--services-title-bar-color);
}
#services .section-heading {
    color: var(--services-title-color);
}

.services-container {
    background-color: var(--services-container-color);
    border-radius: var(--services-container-border-radius);
    box-shadow: var(--services-container-shadow);
}

.service-box {
    margin: 20px auto 20px;
/*    padding: 10px;*/
padding: 20px 10px;
    max-width: 400px;

    background-color: var(--services-box-color);
    border-radius: var(--services-box-border-radius);
    box-shadow: var(--services-box-shadow);

    height: auto;
}
@media(min-width: 768px) {
    .service-box {
        /* TODO: Horrible hack to avoid misalignment of boxes - IMPLEMENT BETTER WAY! */
        height: var(--services-box-height);
    }
}

.service-box h3 {
    margin-top: 10px;
}

.service-box .icon {
    background-color: var(--services-icon-color);
}

.service-box ul {
    text-align: left;
}

.service-box p {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 5px;
}

/* TODO: keep? */
/*
@media(max-width: 992px) {
    .service-box {
        margin: 50px auto 50px;
    }
}
*/

/******************************************************************************/

/* SKILLS */

#skills {
    position: relative;
    text-align: justify;
    background-image: var(--skills-bkg-image,);
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    /* TODO: add a 'skills' specific color variable */
    color: var(--GENERAL-FONT-COLOR-1);
    background-color: var(--GENERAL-COLOR-2);
}
@media(max-width: 768px) {
    #skills {
        text-align: left;
    }
}

#skills .section-hr {
    border-color: var(--skills-title-bar-color);
}
#skills .section-heading {
    color: var(--skills-title-color);
}

#skills .text-tertiary p {
    text-justify: inter-word;
}

.skills-container {
    margin: 50px auto;
    padding: 5px 25px 25px 25px;
    text-align: center;

    box-shadow: var(--GENERAL-BOX-SHADOW);
    background-color: var(--SKILLS-CONTAINER-COLOR, var(--GENERAL-COLOR-2));
}

.skills-container a {
    background-color: var(--SKILLS-LINKS, var(--SKILLS-CONTAINER-COLOR, var(--GENERAL-COLOR-2)));
}

#download-button {
    border-radius: 999em;
    border: 3px solid rgb(255,255,255);
}
#download-button:hover {
    transform: scale(1.1);
    z-index: 1;
}

/******************************************************************************/

/* PROJECTS */

.projects hr {
    width: 100%;
}

@media (max-width:768px) {
    .hide_xs {
        display: none;
    }
}
@media (min-width:768px) and (max-width:1200px) {
    .hide_sm {
        display: none;
    }
}
@media (min-width:1200px) {
    .hide_lg {
        display: none;
    }
}

.projects-link {
    display: block;
}

.project-box {
    display: block;
    position: relative;
    margin: 0 auto;

/* TODO: useless? */
/*    max-width: var(--projectbox-image-width);*/
}

.project-box .project-image {
    padding: var(--projectbox-image-padding);
}

.project-box .project-box-caption {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    text-align: center;
    -webkit-transition: all .35s;
    -moz-transition: all .35s;
    transition: all .35s;
    opacity: 0;

    background: var(--projectbox-caption-background-color);
    color: var(--GENERAL-FONT-COLOR-3);
}

.project-box:hover .project-box-caption {
    opacity: 1;
}

.project-box .project-box-caption .project-box-caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
}

.project-box-caption-content .project-thumbnail {
    margin-left: auto;
    margin-right: auto;
    padding: 1em;
}
.project-box-caption-content .full {
    width: 100%;
}
.project-box-caption-content .big {
    width: 75%;
}
.project-box-caption-content .medium {
    width: 50%;
}
.project-box-caption-content .small {
    width: 25%;
}

.project-box .project-box-caption .project-box-caption-content .project-name {
    padding: 0 10px 10px 10px;
    font-size: 24px;

    font-family: var(--PROJECTBOX-NAME-FONT, var(--GENERAL-FONT-2));
}

.project-box .project-box-caption .project-box-caption-content .project-category {
    /*padding: 10px;*/
    padding: 0 10px;
    font-size: 16px;

    font-family: var(--PROJECTBOX-CATEGORY-FONT, var(--GENERAL-FONT-2));
}

.project-box .project-box-caption .project-box-caption-content .project-category2 {
    /*padding: 10px;*/
    padding: 0 10px;
    font-size: 12px;

    font-family: var(--PROJECTBOX-CATEGORY-FONT, var(--GENERAL-FONT-2));
}


.project-box .project-box-caption .project-box-caption-content .project-date {
    padding: 10px;
    font-size: 12px;

    font-family: var(--PROJECTBOX-DATE-FONT, var(--GENERAL-FONT-2));
}

@media(min-width: 768px) {
    .project-box .project-box-caption .project-box-caption-content .project-name {
        font-size: 28px;
    }

    .project-box .project-box-caption .project-box-caption-content .project-category {
        font-size: 18px;
    }

    .project-box .project-box-caption .project-box-caption-content .project-category2 {
        font-size: 14px;
    }

    .project-box .project-box-caption .project-box-caption-content .project-date {
        font-size: 14px;
    }
}

/******************************************************************************/

/* CONTACT */

#contact {
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    color: var(--contact-color, var(--GENERAL-FONT-COLOR-1));
    background-color: var(--contact-bkg-color);
}

#contact .section-hr {
    border-color: var(--contact-title-bar-color);
}
#contact .section-heading {
    color: var(--contact-title-color);
}

.contact-container {
    position: relative;
    height: 50vh;
}
.contact-container .row {
    margin: 10vh auto;
}
@media(max-width: 768px) {
    .contact-container .row {
        margin: auto;
    }
    .contact-container .text-center {
        text-align: left;
    }
}

#contact .profile {
    background-color: var(--CONTACT-PROFILE-COLOR, var(--GENERAL-COLOR-2));
    border-radius: var(--CONTACT-PROFILE-BORDER-RADIUS, 0px);
    box-shadow: var(--CONTACT-PROFILE-BOX-SHADOW, 0);
}

#contact .portrait {
    border-radius: var(--CONTACT-IMAGE-BORDER-RADIUS, var(--GENERAL-IMAGE-BORDER-RADIUS));
margin-bottom: 2em;
}

#contact .text-primary {
    text-align: left;
	color: var(--contact-color);
}
#contact a {
    color: var(--contact-color);
}
#contact a:hover {
	color: var(--GENERAL-LINK-ACTIVE-COLOR-1);
}

/******************************************************************************/

/* HERO */

.header-image {
    position: relative;
    clear: both;

    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;

    margin-bottom: var(--hero-image-margin-bottom-small);
    height: var(--hero-image-height-small, 250px);
}

.header-image p {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 50%;
    text-align: right;
    margin-right: 0;
    margin-bottom: 0;
    padding-left: 5px;
    padding-right: 5px;
}

@media(min-width: 768px) {
    .header-image {
        height: var(--hero-image-height, 500px);
    }
}

/* Hack to avoid navigation tree to go in header image when no small image in sidebar */
.empty-padding {
    margin-top: calc(0px - var(--hero-image-margin-bottom-small));
}

/*@media (min-width: 64em) {*/
@media (min-width: 992px) {
    .header-image {
        margin-bottom: var(--hero-image-margin-bottom);
    }

    .empty-padding {
        margin-top: calc(0px - var(--hero-image-margin-bottom));
    }
}

/******************************************************************************/

/* SIDEBAR */

/* Sidebar layout */

.sidebar {
    clear: both;
    margin-top: 1em;
    margin-bottom: 1em;

    position: relative;
    z-index: 10;
}

.sidebar::after {
    display: table;
    clear: both;
    content: "";
}

/*@media (min-width: 64em) {*/
@media (min-width: 992px) {
    .sidebar {
        float: left;
        width: calc(200px - 1em);
    }

    .sticky {
        position: -webkit-sticky;
        position:         sticky;
        top: 5em;
        clear: both;
    }

    .sticky::after {
        display: table;
        clear: both;
        content: "";
    }

    .sticky > * {
        display: block;
    }
}

/*@media (min-width: 80em) {*/
@media (min-width: 1200px) {
    .sidebar {
        width: calc(300px - 1em);
    }
}


/* Sidebar Components */

.sidebar h2,
.sidebar h3,
.sidebar h4,
.sidebar h5,
.sidebar h6 {
    margin-bottom: .5em;

    font-family: var(--SIDEBAR-TITLE-FONT, var(--GENERAL-FONT-1));
}


/* Sidebar */

.sidebar-links {
    display: none;
}
@media (min-width: 992px) {
    .sidebar-links {
        display: inherit;
    }
}
.sidebar-bottom {
    display: inherit;
}
@media (min-width: 992px) {
    .sidebar-bottom {
        display: none;
    }
}

/* Sidebar Image */

.sidebar-image {
    display: table-cell;
    width: 75px;
    height: 75px;
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    -o-background-size: cover;
}

/*@media (min-width: 64em) {*/
@media (min-width: 992px) {
    .sidebar-image {
        display: block;
        width: auto;
        height: auto;
    }
}

.sidebar-image img {
    width: 100%;
    max-width: 150px;
    border: 1px solid rgba(0, 0, 0, .25);

    background-color: white;

    border-radius: var(--SIDEBAR-IMAGE-BORDER-RADIUS, var(--GENERAL-IMAGE-BORDER-RADIUS));
}


/* Sidebar Navigation Tree */

.sidebar-tree {
    display: block;
    line-height: 1.5;
    padding: 1em 0 0 0;
}

/*@media (min-width: 64em) {*/
@media (min-width: 992px) {
    .sidebar-tree {
        display: block;
        width: 100%;
    }
}

.sidebar-tree .parent-link {
    font-family: var(--SIDEBAR-LINK-FONT, var(--GENERAL-FONT-2));
    font-weight: 700;
}

.sidebar-tree li {
    display: inline-block;
    font-size: .9em;
    margin-left: -1.5em;
    margin-right: 1.5em;

    padding-left: 1.5em;
    text-indent:-1.5em;

    font-family: var(--SIDEBAR-FONT, var(--GENERAL-FONT-2));
}
.sidebar-bottom .sidebar-tree li:not(:last-of-type)::after {
    white-space: pre;
    content: "\20\2022\20";
}

@media (min-width: 992px) {
    .sidebar-tree li {
        display: block;
        margin-right: 0;
    }
}

.sidebar-tree li > a {
    font-weight: bold;
    text-decoration: none;
}
.sidebar-tree li > a:hover {
    text-decoration: underline;
}
.sidebar-tree li.active > a,
.sidebar-tree li.active > a:focus {
    text-decoration: underline;
}

/******************************************************************************/

/* LISTS & POSTS */

.title-block {
    padding-bottom: 1em;
}

#list-content {
    clear: both;
    max-width: 100%;
    margin-right: auto;
    margin-bottom: 3em;
    margin-left: auto;
    padding-right: 1em;
    padding-left: 1em;
}

#list-content::after {
    display: table;
    clear: both;
    content: "";
}

/*@media (min-width: 80em) {*/
@media (min-width: 1200px) {
    #list-content {
      max-width: 1280px;
    }
}


.list-page {
    margin-bottom: 100px;
}

/*@media (min-width: 64em) {*/
@media (min-width: 992px) {
    .list-page {
        float: right;
        width: calc(100% - 200px);
        padding-right: 0;
    }
}

/*@media (min-width: 80em) {*/
@media (min-width: 1200px) {
    .list-page {
        width: calc(100% - 300px);
        padding-right: 0;
    }
}

.list-page .list-page-container {
    float: left;
    clear: both;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.list-page .list-page-container .list-page-content {
    position: relative;
    float: left;
    clear: both;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-top: 0;
}
@media (min-width: 992px) {
    .list-page .list-page-container .list-page-content {
        padding-top: 3em;
    }
}

.list-page-content h4 {
    font-size: 1em;
    margin-bottom: 0.5em;
}


/******************************************************************************/

/* PROJECTS LISTS & TAXONOMIES */

.project-item-box {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    position: relative;

    margin: 0 auto;
}
@media(max-width: 768px) {
    .project-item-box {
        display: block;
    }
}

.project-item-box:hover {
    background-color: var(--GENERAL-LINK-COLOR-1);
    /* TODO: change opacity? (or set optional?) */
    opacity: 0.9;
}

.project-item-box:link {
  text-decoration: none;
}

.project-item-box .project-title {
    margin-left: 0.5em;

    font-size: 20px;
    font-family: var(--PROJECTBOX-NAME-FONT, var(--GENERAL-FONT-2));
    font-weight: 700;

    color: var(--GENERAL-LINK-COLOR-1);
}
.project-item-box:hover .project-title {
    color: var(--GENERAL-COLOR-2);
}

.project-item-box .project-subtitle {
    margin-left: 1em;
    font-size: 14px;

    font-family: var(--PROJECTBOX-CATEGORY-FONT, var(--GENERAL-FONT-2));
    color: var(--GENERAL-FONT-COLOR-1);
}

ul.project-item-list {
    justify-content: center;
    list-style: none;
    padding: 0;
}

.project-item-list .project-item {
    margin: 0 5px 1em 5px;
}
@media(max-width: 768px) {
    .project-item-list .project-item {
        margin: 1em 5px;
    }
}

.project-item-logo {
    margin: 0.5em;
    width: 32px;
    height: 32px;
}


/******************************************************************************/

/* PAGE 404 */

#p404 {
    padding-top: 50px;
    min-height: auto;
}

.page404-image {
    position: relative;
    clear: both;

    width: auto;
    height: 50vh;
    margin: 0px auto;

    border-radius: var(--404-IMAGE-BORDER-RADIUS, var(--GENERAL-IMAGE-BORDER-RADIUS));

    background-repeat: no-repeat;
    background-position: center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    background-size: contain;
    -o-background-size: contain;
}

.page404-title {
    position: relative;
    width: 100%;
    margin: 0px auto 0;
}

.page404-content {
    position: relative;
    width: 100%;
    font-weight: 700;
}

/******************************************************************************/
