/* nunito-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/nunito-v32-latin-regular.woff2') format('woff2');
}

/* nunito-sans-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/nunito-sans-v19-latin-regular.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Nunito Sans", Tahoma, Geneva, Verdana, sans-serif;
    background: #494949;
    color: #333;

}

/* Impressum CSS */
#Impressum {
    margin-top: 8rem;
    animation: none;
}

#impressumText{
    color: #e9e9e9;
    hyphens: auto;
    font-family: "Nunito Sans", sans-serif;
    text-align: justify;
    font-weight: 500;
    font-size: 1.1rem;
    max-width: 1100px;
    margin: auto;
}

#impressumText {
    text-align: center;
}

#Impressum a:link {
    color: lightblue;
}

#Impressum a:visited {
    color: mediumpurple;
}

.footerContainer footer{
    position: fixed;
    bottom: 0;
    width: 100vw;
}

/*Main Seite CSS*/

.background {
    position: fixed;
    width: 100vw;
    height: 150vh;
    top: 0;
    left: 0;
    background: #1f1f1f;
    overflow: hidden;
    z-index: -1;
}

.background span {
    position: absolute;
    width: 1vmin;
    height: 1vmin;
    border-radius: 50%;
    backface-visibility: hidden;
    animation: move linear infinite;
}

#backgroundVideo {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}

.navbar {
    background-color: #333;
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0 0 10px black;
    align-items: center;
}

.navbar a, .navbar button{
    color: #f2f2f2;
    text-align: center;
    padding: 18px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 2px black;
    transition: all 0.2s;
}

.navbar button{
    background-color: #333;
    border: none;
    outline: none;
}

.navbar a:hover, .navbar button:hover, #yt_dropdownContent a:hover {
    background-color: #ddd;
    color: rgb(55, 55, 55);
    text-shadow: 0 0 2px #000;
}

#yt_dropdown{
    overflow: hidden;
}

#yt_dropdownContent{
    display: none;
    position: absolute;
    min-width: 200px;
    z-index: 2;
}

#yt_dropdownContent a{
    display: block;
    text-align: left;
    background-color: #333;
}

#yt_dropdown:hover #yt_dropdownContent{
    display: block;
}

.sidebar {
    background-color: #333;
    overflow: hidden;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 1;
    box-shadow: 0 0 10px black;
}

.sidebar a {
    color: #f2f2f2;
    text-align: center;
    padding: 18px 20px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 2px 2px black;
    transition: all 0.2s;
}

.sidebar a:hover {
    background-color: #ddd;
    color: rgb(55, 55, 55);
}

header {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    background: #222;
    color: white;
    box-shadow: 0 0 10px black;
    overflow: hidden;
    animation: myAnim 0.5s ease-out 0s 1 normal forwards;
}

.mainImage {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 0.15));
}

main {
    max-width: 1200px;
    margin: 2rem auto;
}

section {
    padding-bottom: 2rem;
    background-color: #38383875;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
    margin-top: 4rem;
    scroll-margin-top: 30vh;

    animation: sectionAnim 0.5s ease-out 0s 1 normal both;
    animation-timeline: view();
    animation-range-start: 15%;
    animation-range-end: 35%;
}

#start {
    scroll-margin-top: 30px;
}

.explainingText {
    display: flex;
    justify-content: center;
    color: #f4f4f4;
    font-weight: 400;
    text-align: center;
    font-style: italic;
    flex-direction: column;
}

ul.skills {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    justify-content: center;
}

ul.skills li {
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    color: white;
    background: linear-gradient(rgba(252, 134, 55, 0.85), rgba(245, 55, 252, 0.5));
    width: 200px;
    height: auto;
    padding: 1rem 1rem;
    border-radius: 5px;
    text-shadow: 0 1px 5px black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.iconsSkills{
    padding-bottom: 10px;
    max-width: 60px;
    filter: drop-shadow(0px 0px 3px black);
}

.skillCategories {
    display: flex;
    justify-content: center;
    color: #f4f4f4;
    font-weight: 600;
    font-size: 1.5rem;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.gallery img {
    border-radius: 8px;
    box-shadow: 0 2px 5px black;
}

.gallery .photo {
    max-width: 350px;
}

.linkedVideos img{
    max-width: 450px;
}

.ytTitle{
    display: none;
    position: absolute;
    width: 450px;
    top: -20px;
    box-sizing: border-box;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    word-break: break-all;
    padding: 1rem 1rem;
    border-radius: 8px;
    text-shadow: 0 1px 4px black;
}

.linkedVideos:hover .ytTitle{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease-out forwards;
}

img.photo, .linkedVideos {
    transition: transform 0.3s ease;
}

img.photo:hover, .linkedVideos:hover {
    transform: scale(1.05);
}

.logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.logos img {
    max-width: 320px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.15));
}

.banner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.banner img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px black;
}

.videos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
}

.vertical_videos {
    aspect-ratio: 9 / 16 !important;
    max-width: 275px !important;
}

.videos video {
    border-radius: 8px;
    box-shadow: 0 2px 5px black;
    aspect-ratio: 16 / 9;
    max-width: 500px;
}

.embedded_intros {
    background-color: black !important;
}

footer {
    margin-top: 5rem;
    text-align: center;
    padding: 2rem 1rem;
    background: #222;
    color: white;
    font-size: 0.9rem;
    box-shadow: 0 0 10px black;
}

footer a:link{
    color: white;
    text-decoration: none;
}

footer a:visited{
    color: deepskyblue;
}

footer a:hover {
    color: lightskyblue;
    text-shadow: 0 0 5px #000;
}

#aboutmeText {
    color: #e9e9e9;
    hyphens: auto;
    font-family: "Nunito", sans-serif;
    text-align: justify;
    font-weight: 500;
    font-size: 1.1rem;
    max-width: 1100px;
    margin: auto;
}

#aboutMeImg {
    max-height: 500px;
    border-radius: 5%;
    box-shadow: 0 0 20px black;
    flex-shrink: 1;
}

.aboutMe-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.spacers {
    color: #e9e9e9;
    border-bottom: 2px solid #484848;
    text-align: center;
    font-size: 2rem;
    padding: 1rem;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 700;
    text-shadow: 0 2px 8px black;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    background-color: #ddd;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.15));
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

@keyframes myAnim {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-button {
    display: none;
}

@keyframes sectionAnim {
    0% {
        opacity: 0;
        transform: translateX(250px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

@media (max-width: 800px) {
    .hideOnMobile {
        display: none;
    }

    .menu-button {
        display: flex;
    }

    .navbar {
        justify-content: flex-end;
    }

    section {
        animation: none;
    }
    .aboutMe-container {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1.5rem;
    }
    #aboutMeImg {
        max-width: 50%;
        height: auto;
    }
}