body {
    font-family: 'Nunito', sans-serif;
    background-color: #1c1a27;
    color: white;
    margin: 0;
}

.hitech {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 4rem 1rem;
}

.hitech>div {
    background-color: #f9fcff;
    border-radius: 4px;
    box-shadow: 0 0 4px #000000aa inset;
    color: black;
    padding: 2rem;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.hitech a,
.hitech b {
    color: #2d5680;
    font-weight: bold;
}

.mainFlex {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 95vh;

    max-width: 60vh;
    margin: auto;


}

/* hero */
#hero {
    padding: 2%;
    width: 90%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.heroBackground {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100vw - 6px);
    height: 101vh;
    font-size: 4rem;
    color: #4f4f4f;
}

.heroBackground p {
    margin-top: 0;
    width: 100%;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
    max-height: 95%;
    font-family: "Vibur", sans-serif;
}

.heroBackground p span:nth-child(1),
.heroBackground p span:nth-child(15),
.heroBackground p span:nth-child(23) {
    margin-left: -120px;
}

.heroBackground p span:nth-child(3),
.heroBackground p span:nth-child(13),
.heroBackground p span:nth-child(25) {
    margin-left: -60px;
}

.heroBackground p span:nth-child(5),
.heroBackground p span:nth-child(27) {
    margin-left: 20px;
}

.heroBackground p span:nth-child(7),
.heroBackground p span:nth-child(17),
.heroBackground p span:nth-child(29) {
    margin-left: -180px;
}

.heroBackground p span:nth-child(9),
.heroBackground p span:nth-child(19),
.heroBackground p span:nth-child(31) {
    margin-left: -240px;
}

.heroBackground p span:nth-child(11),
.heroBackground p span:nth-child(21),
.heroBackground p span:nth-child(33) {
    margin-left: -300px;
}

@media only screen and (min-width: 1400px) {
    .heroBackground {
        display: unset;
        z-index: 4;
    }

    .mainFlex {
        position: relative;
        z-index: 5;
        padding-bottom: 1vh;
        padding-left: 5vw;
        padding-right: 5vw;

        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);

        background-color: #1c1a27aa;
        box-shadow: 0 0 10px black;

    }



}


#hero.show {
    opacity: 1;
}


#hero p {
    margin: 10px 0;
}

#hero span.carved {
    font-size: 2rem;
    color: #35b19b;
}


#mainText>span {
    transition: opacity 0.5s ease 1s, margin-left 1s ease 1.5s;
}

#mainText.animate>#lbl_tld {
    opacity: 0;
}

#mainText.animate>#lbl_nachname {
    margin-left: 0.5rem;
}




/* pong */
#mainCanvasWrapper {
    position: relative;
    width: 90%;
    margin: 5%;
    opacity: 0;
    transition: opacity 0.5s ease 3s;
}

#mainCanvasWrapper.show {
    opacity: 1;
}

#mainCanvasWrapper>p {
    margin-bottom: 20px;
}

.canvasHint {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%);

    color: #35b19a80;
}

#mainCanvas {
    width: 100%;
    border-top: 2px dashed white;
    border-bottom: 2px dashed white;

    transition: opacity 0.5s;
}

#mainCanvas.gameover {
    opacity: 0;
}

/* scroll hint */
#scrollHint {
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.5s ease 8s;
}

#scrollHint.show {
    opacity: 1;

}

.scroller {
    margin: auto;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 20px 25px 0 25px;
    border-color: #35b19b transparent transparent transparent;
}

/* */
.divider {
    margin-top: 2vh;
    margin-bottom: 5vh;
    height: 2px;
    width: 100%;
    background: rgb(255, 255, 255);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 10%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 70%, rgba(255, 255, 255, 0) 90%, rgba(255, 255, 255, 0) 100%);
}

.hiddenDivider {
    margin-top: 2vh;
    margin-bottom: 5vh;
    height: 2px;
}





.heading {
    text-align: center;
    font-size: 1.5rem;
    margin: 20px 0;
}


.timelineWrapper {
    position: relative;
    margin: 20px;
    margin-bottom: 60px;

}


.timelineEntry {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.timelineEntry .time {

    text-align: center;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 10px;

}

.timelineEntry .time::after {
    position: absolute;
    content: '';
    border-right: 2px dashed white;
    left: 20px;
    top: 60px;
    bottom: -16px;
}

.timelineEntry .time .material-icons {
    margin-top: 8px;
}

.timelineEntry .entry {
    text-align: left;
    width: calc(90% - 40px);
}

.timelineEntry .entry .timespan {
    font-size: 0.8rem;
    margin-top: calc(36px - 0.4rem);
    margin-bottom: 10px;
}

.timelineEntry .entry .title {
    font-size: 1.2rem;
    margin-top: 0px;
    margin-bottom: 2px;
    color: #35b19b;
}

.timelineEntry .entry .subtitle {
    font-size: 0.8rem;
    color: rgb(201, 201, 201);
    margin-top: 2px;
    margin-bottom: 10px;
}

.subtitle a {
    text-decoration: none;
    color: inherit;
}

.subtitle a:hover {
    text-decoration: underline;
}







.projectTitle {
    color: #fff;
    text-shadow:
        0 0 4px #fff,
        0 0 11px #fff,
        0 0 19px #fff,
        0 0 40px #35b19b,
        0 0 80px #35b19b,
        0 0 90px #35b19b;

    text-transform: uppercase;
    font-size: 2rem;
    text-align: center;
    font-family: "Vibur",
        sans-serif;

    vertical-align: bottom;
    margin: 80px 20px 0 20px;
    padding: 10px;
    border: 2px solid white;
    border-radius: 10px;

    box-shadow: 0 0 .2rem #fff,
        0 0 .2rem #fff,
        0 0 2rem #35b19b,
        0 0 0.8rem #35b19b,
        0 0 2.8rem #35b19b,
        inset 0 0 1.3rem #35b19b;
}

.projectTitle a {
    text-decoration: none;
    color: inherit;
}


.projectDescription {
    position: relative;
    padding: 25px 15px;
    border: 2px solid white;
    border-radius: 10px;
    margin: 50px 15px;
    margin-bottom: 100px;

}

.projectDescription p {
    margin: 0;
}




.projectDescription .projectDescriptionContent {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s;
}

.projectDescription .projectDescriptionContent>div {
    overflow: hidden;
}

.projectDescription.spoiled .projectDescriptionContent {
    grid-template-rows: 1fr;
}

.projectDescription::before {
    position: absolute;
    content: 'Beschreibung';
    background-color: #1c1a27;
    padding: 5px;
    top: -20px;
}

.projectDescription::after {
    position: absolute;
    content: 'Mehr Details ▼';
    background-color: #1c1a27;
    padding: 5px;
    bottom: -15px;
    right: 15px;

    transition: color 0.2s;
}

.projectDescription:hover::after {
    color: #35b19b;
    cursor: pointer;
}

.projectDescription.spoiled::after {
    position: absolute;
    content: 'Weniger Details ▲';
    background-color: #1c1a27;
    padding: 5px;
    bottom: -15px;
    right: 15px;
}

.projectLink {
    margin: auto;
}

.projectLink p,
.projectLink p a {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    text-shadow: 0 0 5px white;
}



.btn {
    position: relative;
    background-color: #1c1a27;
    color: white;
    border: 2px solid white;
    border-radius: 5px;
    width: 50%;
    margin: 0 25%;
    padding: 10px;
}

img.responsive {
    max-width: 100%;
    height: auto;
    box-shadow: 0 0 10px #35b19b;
    border-radius: 5px;
    margin: 15px 0;
    display: block;

}

a {
    color: white;
}

.mail {
    position: relative;
    height: 300px;
}


.mail img {
    position: absolute;
    width: auto;
    height: 100%;
    bottom: 0px;
    float: right;
    right: 0px;
}

.mail a {
    text-decoration: none;
}

.mail p.maillink {
    position: absolute;
    font-size: 1.5rem;
    background-color: #1c1a27aa;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px white;

    left: 15px;
    bottom: 15px;
}


.mail p span:not(.material-icons) {
    margin-left: 30px;
}

.mail p span.material-icons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}



.container,
.projects {
    max-width: 100vh;
    margin: auto;
}

/* Scrollbar */
/* width */
::-webkit-scrollbar {
    width: 6px;

}

/* Track */
::-webkit-scrollbar-track {
    background: #1c1a27;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;

}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #35b19b;
}

@media only screen and (min-width: 1400px) {

    /* For desktop: */

    .projects {
        max-width: unset;
        margin: unset;
    }

    .project {
        display: grid;
        grid-template-rows: min-content min-content;
        grid-template-columns: 20vw 30vw 20vw;
        margin: 15vh 15vw;


    }

    .projectTitle {
        grid-column-start: 1;
        grid-column-end: 4;
        margin: auto;
        width: 30vw;
    }

    .projectDescription {
        grid-row-start: 2;
        grid-row-end: 3;
        grid-column-start: 2;
        grid-column-end: 3;
        place-self: center;
        width: 100%;
        margin-top: 80px;

    }




    .projectLink {
        grid-column-start: 3;
        grid-column-end: 4;
        place-self: center;

    }

    img.responsive {
        max-width: 50%;
        margin: 20px auto;
    }

    .mail img {
        right: 40vw;
        transform: translateX(50%);
    }

    .mail p.maillink {
        left: 50%;
        transform: translateX(-50%);
    }

}