body {
    overflow-y: scroll;
    font-family: 'Heebo', sans-serif;
    transition: background-color .3s ease-in-out, color .1s ease-in-out;
    background: white;
    color: #333;
}

body.dark {
    background: #333;
    color: white;
}

body.dark .nav-link {
    color: #ccc !important;
}

body.dark .nav-link.active {
    color: white !important;
}

body.dark .nav-link:hover {
    color: #eee !important;
}

.nav-item {
    color: inherit;
}

h1 {
    margin-top: 1rem;
    font-size: 2.2rem;
    line-height: 1.0333;
    font-weight: 500;
}
h2 {
    font-size: 1.3rem;
    text-transform: uppercase;
    line-height: 1.1666;
    font-weight: 400;
}

@media (min-width: 576px) { /* small */
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 1.4rem;
    }
}

@media (min-width: 768px) { /* medium */
    h1 {
        font-size: 4rem;
        margin-top: 0;
    }
    h2 {
        font-size: 1.6rem;
    }
}

@media (min-width: 992px) { /* large */
    h1 {
        font-size: 5rem;
        margin-top: 0;
    }
    h2 {
        font-size: 1.8rem;
    }
}

.container {
    position: relative;
}

.site-nav {
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.navbar-toggler {
    border-color: transparent !important;
}

.nav-item {
    font-size: 1.5rem;
    color: #666;
    padding-right: 0 !important;
}
.nav-item.active {
    color: #333;
}

@media (max-width: 767.98px) {
    .site-nav {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
    }

    .nav-item {
        text-align: center;
    }

    .navbar-toggler {
        position: relative;
        z-index: 2;
        padding: .5rem;
    }

    .navbar-toggler:focus {
        outline: none;
        background: #eee;
        border-radius: 2px;
    }

    .navbar-collapse {
        height: 100vh;
        background: rgba(255, 255, 255, .95);
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        transition: opacity .25s;
        opacity: 0;
        display: flex !important;
        justify-content: center;
        z-index: -1;
    }
    .navbar-nav {
        display: block;
    }
    .navbar-collapse.show {
        opacity: 1;
        z-index: 1;
    }
    .collapsing {
        -webkit-transition: none;
        transition: none;
    }
}

@media (min-width: 768px) {
    #left-column {
        margin-top: -40px;
    }
    .nav-item:not(:last-child) {
        margin-right: 2.5rem;
    }
    .navbar-nav {
        margin-left: auto;
    }
}


/* Hamburger menu */

.hamburger {
    width: 30px;
    cursor: pointer;
}
.hamburger__line {
    stroke: #333;
    stroke-width: 3;
    stroke-linecap: round;
    transition: all 0.15s ease-out;
}

.icon1 .animation .animation__top {
    -webkit-transform-origin: 20px 10px;
    transform-origin: 20px 10px;
}
.icon1 .animation .animation__bottom {
    -webkit-transform-origin: 20px 30px;
    transform-origin: 20px 30px;
}
.icon1 .animation.open .animation__middle {
    opacity: 0;
}
.icon1 .animation.open .animation__top {
    -webkit-animation: topIcon1-open 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
    animation: topIcon1-open 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
}
.icon1 .animation.open .animation__bottom {
    -webkit-animation: bottomIcon1-open 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
    animation: bottomIcon1-open 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
}
.icon1 .animation.closed .animation__top {
    -webkit-animation: topIcon1-closed 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
    animation: topIcon1-closed 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
}
.icon1 .animation.closed .animation__bottom {
    -webkit-animation: bottomIcon1-closed 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
    animation: bottomIcon1-closed 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
}
@-webkit-keyframes topIcon1-open {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    50% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    100% {
        -webkit-transform: translateY(10px) rotate(45deg);
        transform: translateY(10px) rotate(45deg);
    }
}
@keyframes topIcon1-open {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    50% {
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }
    100% {
        -webkit-transform: translateY(10px) rotate(45deg);
        transform: translateY(10px) rotate(45deg);
    }
}
@-webkit-keyframes bottomIcon1-open {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        -webkit-transform: translateY(-10px) rotate(-45deg);
        transform: translateY(-10px) rotate(-45deg);
    }
}
@keyframes bottomIcon1-open {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    100% {
        -webkit-transform: translateY(-10px) rotate(-45deg);
        transform: translateY(-10px) rotate(-45deg);
    }
}
@-webkit-keyframes topIcon1-closed {
    0% {
        -webkit-transform: translateY(10px) rotate(45deg);
        transform: translateY(10px) rotate(45deg);
    }
    50% {
        -webkit-transform: translateY(10px) rotate(0);
        transform: translateY(10px) rotate(0);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
        transform: translateY(0) rotate(0);
    }
}
@keyframes topIcon1-closed {
    0% {
        -webkit-transform: translateY(10px) rotate(45deg);
        transform: translateY(10px) rotate(45deg);
    }
    50% {
        -webkit-transform: translateY(10px) rotate(0);
        transform: translateY(10px) rotate(0);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
        transform: translateY(0) rotate(0);
    }
}
@-webkit-keyframes bottomIcon1-closed {
    0% {
        -webkit-transform: translateY(-10px) rotate(-45deg);
        transform: translateY(-10px) rotate(-45deg);
    }
    50% {
        -webkit-transform: translateY(-10px) rotate(0);
        transform: translateY(-10px) rotate(0);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
        transform: translateY(0) rotate(0);
    }
}
@keyframes bottomIcon1-closed {
    0% {
        -webkit-transform: translateY(-10px) rotate(-45deg);
        transform: translateY(-10px) rotate(-45deg);
    }
    50% {
        -webkit-transform: translateY(-10px) rotate(0);
        transform: translateY(-10px) rotate(0);
    }
    100% {
        -webkit-transform: translateY(0) rotate(0);
        transform: translateY(0) rotate(0);
    }
}

/* splashscreen */

#typed-strings {
    display: none;
}

#typed, .typed-cursor {
    font-size: 2rem;
}

@media (min-width: 768px) { /* medium */
    #typed, .typed-cursor {
        font-size: 3rem;
    }
}

@media (min-width: 992px) { /* large */
    #typed, .typed-cursor {
        font-size: 4rem;
    }
}

@media (min-width: 1200px) { /* x-large */
    #typed, .typed-cursor {
        font-size: 5rem;
    }
}

#splashscreen {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#splashscreen h1 {
    margin-bottom: 100px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bouncing-arrow {
    position: absolute;
    bottom: 100px;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    background-image: url(../images/arrow-down.svg);
    background-size: contain;
    animation: bounce 2s infinite;
}

@media (max-width: 767.98px) {
    .bouncing-arrow {
        width: 30px;
        height: 30px;
        margin-left: -15px;
    }
}

/* Gallery */

.gallery-item-inner {
    position: relative;
    margin-bottom: 30px;
}

.gallery-item a {
    transition: background 0.4s;
    display: block;
    background: transparent;
    color: transparent;
    text-transform: none;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    font-size: 1.5em;
    padding-top: calc(50% - 0.5em);
    text-decoration: none;
}

.gallery-item img {
    width: 100%;
}

.gallery-item a:hover {
    background: rgba(255, 255, 255, 0.8);
    color: black;
}

body.dark .gallery-item a:hover {
    background: rgba(51, 51, 51, 0.8);
    color: white;
}

body:not(.dark) .gallery-item.dark,
body.dark .gallery-item:not(.dark){
    display: none;
}

/* Left menu */

#left-menu {
    margin-top: 13rem;
}

#left-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#left-menu li {
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
}

/* Plus-minus button */

#left-menu button {
    background: none;
    border: none;
    outline: none;
    color: inherit;
    position: relative;
    width: 100%;
    text-align: left;
}

#left-menu svg {
    position: absolute;
    right: 40px;
    fill: #333;
    transition: fill .3s ease-in-out;
}

body.dark #left-menu svg {
    fill: white;
}

#left-menu button .vertical {
    transform-origin: 50% 50%;
    transition: all 0.2s cubic-bezier(0.33, 0, 0.2, 1) 0s;
}

#left-menu button:hover,
#left-menu button.is-open {
    text-decoration: underline;
}

#left-menu button.is-open .vertical {
    transform: rotate(90deg);
    transition: all 0.2s cubic-bezier(0.33, 0, 0.2, 1) 0s;
}

/* Hidden gallery items */

.hidden {
    display: none;
}

/* Slide backgrounds */

.slide {
    background-size: cover;
    background-position: center center;
}

/* Fix fullpage slide navigation wrongly aligned left */

.fp-slidesNav {
    text-align: center;
}

/* Toggle switch */

#switch {
    height: 0;
    width: 0;
    visibility: hidden;
}

#switch + label {
    cursor: pointer;
    text-indent: -9999px;
    width: 50px;
    height: 25px;
    background: #333;
    display: block;
    border-radius: 25px;
    position: relative;
}

#switch + label:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 22.5px;
    transition: .3s ease-in-out;
}

#switch:checked + label {
    background: white;
}

#switch:checked + label:after {
    background: #333;
    left: calc(100% - 2px);
    transform: translateX(-100%);
}

/* Fullpage arrows */

.fp-controlArrow {
    border: none !important;
    width: 60px !important;
    height: 60px !important;
    background-repeat: no-repeat;
    background-size: 60px 60px;
    margin-top: -30px !important;
    display: none;
}

@media (min-width: 768px) { /* medium */
    .fp-controlArrow {
        display: block;
    }
}

@media (min-width: 992px) { /* large */
    .fp-controlArrow {
        width: 70px !important;
        height: 70px !important;
        background-size: 70px 70px;
        margin-top: -35px !important;
    }
}

@media (min-width: 1200px) { /* x-large */
    .fp-controlArrow {
        width: 80px !important;
        height: 80px !important;
        background-size: 80px 80px;
        margin-top: -40px !important;
    }
}

.fp-controlArrow.fp-prev {
    background-image: url(../images/arrow-left.svg);
}

.fp-controlArrow.fp-next {
    background-image: url(../images/arrow-right.svg);
}

/* White border around slide navigation dots */

#fp-nav ul li a span, .fp-slidesNav ul li a span {
    border: 2px solid #eee !important;
    box-sizing: content-box !important;
}

/* Back to portfolio */

#back-to-portfolio {
    position: fixed;
    z-index: 1000;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
}

#back-to-portfolio img {
    width: 100%;
    height: 100%;
}

/* Contact page */

.gutter {
    margin: 0 20px;
}

.section[data-anchor="about"] {
    font-size: 1.2rem;
}

.section[data-anchor="about"] h3 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
}

.contact-black-block {
    margin-top: 3rem;
    background: #333;
    padding: 20px;
    color: white;
}

.contact-black-block a {
    color: white;
}
