:root{
    --vanessa_theme_color_0: #ff88ff;
    --vanessa_theme_color_1: #ffaa55;
    --vanessa_theme_color_rgb_0: 255, 136, 255;
    --vanessa_theme_color_rgb_1: 255, 170, 85;
    --color-bg-r: 40;
    --color-bg-g: 40;
    --color-bg-b: 50;
    --color-bg-rgb: rgb(var(--color-bg-r), var(--color-bg-g), var(--color-bg-b));
    --color-fg: #d7d7d7;
    --content-padding-x: 20%;
    --box-padding: 30px;
    --box-container-padding-top: 100px;
    --box-container-padding-bottom: 40px;
    --gradient-angle: -45deg;
    --gradient-start: orange;
}

@property --gradient-angle	{
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-start	{
    syntax: '<color>';
    initial-value: transparent;
    inherits: false;
}

@media screen and (max-width: 650px) {
    :root{
        --box-padding: 10px;
    }
}

@media screen and (max-width: 1000px) {
    :root{
        --content-padding-x: 5%;
    }
    
}

/* @font-face {
    font-family: 'Roboto';
    src: url('Roboto-Light.ttf');
    font-weight: 300;
} */

html{
    width: 100%;
    background: var(--color-bg-rgb);
    scroll-padding-top: 60px;
}

body{
    color: var(--color-fg);
    font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
	font-weight: 300;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    display: flex;
    flex-direction: column;
    min-height: 100svh;

    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin: 0;
}

h2, h3, h4, h5, h6{
    display: inline;
}

/* Used for styling to look h4, but keep the correct heading level ordering
(only for uni münchen) */
.h4{
    font-weight: 700;
    line-height: 1.5;
}

h1{
    font-size: 2.5rem;
    line-height: 1.2;
}

a{
    color: var(--vanessa_theme_color_1);
    text-decoration: none;
    background-image: linear-gradient(90deg, var(--vanessa_theme_color_1), var(--vanessa_theme_color_0));
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition:
        color .2s ease-in-out,
        background-size .2s ease-in-out;
}

a:hover:not(.dont-underline), a:focus:not(.dont-underline)
{
    /* color: rgb(254, 186, 255); not sure about the look */
    background-size: 100% 3px;
}

/* Internal links */

/* External links */
a.external::after
{
    content: "🗗";
    vertical-align: super;
    font-size: smaller;
}

.intro a.external
{
    color: var(--color-fg);
}

/* .intro a
{
    color: var(--color-fg);
    background-image: linear-gradient(90deg, var(--vanessa_theme_color_1) 0%, var(--vanessa_theme_color_0) 50%, var(--color-fg) 50%);
    background-size: 200% 2px;
    background-position: 100% 100%;
    transition:
        background-position .2s ease-in-out;
}

.intro a:hover, .intro a:focus
{
    background-size: 200% 2px;
    background-position: 0% 100%;
} */

#header{
    background-color: rgba(var(--color-bg-r), var(--color-bg-g), var(--color-bg-b), 0.72);
    border-bottom: 1px solid #dddddda4;
    box-shadow: 0 0 10px rgba(0,0,0,.25);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;

    display: flex;
    justify-content: center;
    align-items: center;
}

#content{
    padding: 60px var(--content-padding-x) 20px var(--content-padding-x);
    flex: 1;
}

#footer{
    background-color: #ffffff44;
    border-top: 1px solid #dddddda4;
    box-shadow: 0 0 10px rgba(0,0,0,.25);
    padding: 20px;
    z-index: 100;
}

#nav
{
    display: inline-block;
}

li{
    vertical-align: middle;
}

#nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

#nav ul li{
    display: inline-block;
    margin: 0;
}

#nav ul li a{
    color: var(--color-fg);
    display: block;
    /* font-weight: 700; */
    padding: 20px;
    text-decoration: none;
    text-transform: uppercase;
}

#nav ul li a:hover{
    color: rgb(246, 187, 255);
    text-shadow: 0 0 15px rgb(234, 96, 255);
}

#nav ul li a.active{
    background-color: #e4e4e4;
}

.small-profile-pic{
    border-radius: 50%;
    height: 50px;
    width: 50px;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-left: 10px;
    margin-right: 10px;
}

.large-profile-pic{
    border-radius: inherit;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.large-profile-pic-container{
    border-radius: 50%;
    width: 400px;
    height: 400px;
    margin: 2rem;

    position:relative;
}

.large-profile-pic-container::before,
.large-profile-pic-container::after
{
    content: "";
    position: absolute;
    inset: -0.5rem;
    z-index: -1;
    background: conic-gradient(from var(--gradient-angle), var(--gradient-start) 0deg, var(--vanessa_theme_color_0) 180deg, var(--vanessa_theme_color_1) 360deg);
    background: conic-gradient(from var(--gradient-angle), var(--gradient-start) 0deg, var(--vanessa_theme_color_0) 180deg, var(--vanessa_theme_color_1) 360deg);
    animation: gradient-rotation 10s linear infinite;
    border-radius: inherit;
}

@keyframes gradient-rotation {
    0% { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

.large-profile-pic-container::after
{
    filter: blur(2.5rem	);
}

.intro h2
{
    font-size: 50px;
}
.intro h3
{
    font-size: 30px;
}
.intro p
{
    font-size: 22px;
}
.intro .p-large
{
    font-size: 25px;
}

.box-container
{
    padding-top: 40px;
}

.box
{
    border: 1px solid #989898;
    box-shadow: 0px 0px 10px 1px #5c5c5c;
    border-radius: 20px;
    padding: var(--box-padding);
    display: inline-block;
    width: -webkit-fill-available;
}

.linkAsNormalText{
    text-decoration: none;
    color: inherit;
}

.social-icon{
    --color1: #905a98;
    --color2: #877647;
    --color1-hover: #a86ab2;
    --color2-hover: #ab9559;
    display: inline-block;
    vertical-align: middle;
    height: 50px;
    margin: 10px;
    border-radius: 25px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgb(126 126 126);
    /* background: linear-gradient(90deg, var(--color1-hover), var(--color2-hover) 33%, var(--color1) 66%, var(--color2));
    background-size: 300% 100%;
    background-position: right; */
    background: linear-gradient(90deg, var(--color1-hover), var(--color2-hover));
    filter: brightness(0.8);
    transition:
        background-position 0.2s ease-in-out,
        filter 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.social-icon:hover, .social-icon:focus
{
    box-shadow: 0 0 15px rgb(255, 255, 255);
    /* background-position: left; */
    filter: brightness(1);
    cursor: pointer;
}

.social-icon a p{
    display: inline-block;
    padding: 0px 10px 0px 0px;
    margin: 0px;
    line-height: 50px;
    vertical-align: top;
}
.social-icon a{
    display: inline-block;
    height: 50px;
    color: white;
}
.social-icon a img{
    height: 50px;
    width: 50px;
    border-radius: 50%;
}
.social-icon a:hover, .social-icon a:focus
{
    background-size: 0 0 ;
}

.social-icon-text{    
    height: 50px;
    margin: 10px;
    vertical-align: middle;
}


#text{
    display: flow-root;
    padding: 20px;
}

#mobileMenuButton {
    display: none; 
    background-color: transparent;
    border: none;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--color-fg);
    width: 95%;
    text-align: right;
}

#titleheader
{
    display: inline-block;
    vertical-align: middle;
    font-size: x-large;
    color: var(--vanessa_theme_color_1);

    background: -webkit-linear-gradient(45deg, var(--vanessa_theme_color_1), var(--vanessa_theme_color_0) 65% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mail{
    padding: 0px 0px 0px 35px;
}

.mail::before{
    content: "✉";
    font-size: 24px;
    position: absolute;
    transform: translate(-27px, 8px);
}

.phone{
    padding: 0px 0px 0px 35px;
}

.phone::before{
    content: "☎";
    font-size: 24px;
    position: absolute;
    transform: translate(-27px, 8px);
}

.special-listing > div
{
    display: flex;
}

.special-listing > div img:first-child, .special-listing > div div:first-child
{
    margin-right: 10px;
}

.special-listing > div > div > ul
{
    padding-left: 20px;
}

.box h2
{
    display: inline;
}

.project-description{
    display: block;
}

.project-image{
    width: 50%;
    border-radius: 30px;
    float: right;
    background: linear-gradient(-45deg, var(--vanessa_theme_color_1), var(--vanessa_theme_color_0));
    margin: 5px;
    padding: 5px;
    box-shadow: 0 0 15px rgb(0 0 0);
    object-fit: contain;
    height: fit-content;
}

video{
    display: block;
    width: 50%;
    border-radius: 30px;
    background: linear-gradient(-45deg, var(--vanessa_theme_color_1), var(--vanessa_theme_color_0));
    margin: 5px;
    padding: 5px;
    box-shadow: 0 0 15px rgb(0 0 0);
}

.project-image-mobile{
    display: none;
}

/* .fancy
{
    width: 100%;
    height: 100%;
    left: 50%;
    z-index: -1;
    transform: translate(-50%, 0%);
    position: absolute;
    --color1: rgba(238,130,238, 1);
    --color2: rgba(62, 200, 255, 1);
    background: linear-gradient(90deg, var(--color1), var(--color2));
}

.fancy::after
{
    width: 101%;
    height: 101%;
    transform: translate(-0.5%, -0.5%);
    content: "";
    position: absolute;
    background: radial-gradient(ellipse, rgba(var(--color-bg-r), var(--color-bg-g), var(--color-bg-b),0.298) 5%, 
    var(--color-bg-rgb) 70%);
} */

.fancy-bg
{
    background: linear-gradient(153deg, rgba(var(--vanessa_theme_color_rgb_0),0.698091736694678) 10%, rgba(149,62,255,0.7064950980392157) 90%);
}

mark_word, edu, tool, vr, cg{
    --hue: 300;
    --hightlight: 0%;
    background-color: hsla(var(--hue), 100%, 76.67%, 0.5);
    background: linear-gradient(90deg, hsla(var(--hue), 100%, 76.67%, 0.5) 0%, hsla(calc(var(--hue) - 50), 100%, 70.65%, 0.5) 90%);
    background-size: 100% 100%;
    background-position: 0 100%;

    box-shadow: 0 0;
    transition:
        box-shadow 0.2s ease-in-out;
}
html:has(tool:hover) tool, html:has(edu:hover) edu, html:has(vr:hover) vr, html:has(cg:hover) cg{
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.729);
}


edu{
    --hue: 250;
}

tool{
    --hue: 300;
}

vr{
    --hue: 200;
}

cg{
    --hue: 100;
}

.skill-container
{
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-evenly;
}

.skill-container > div
{
    --bg-color: #5c5c5c;
    border: 1px solid var(--bg-color);
    box-shadow: 0px 0px 10px 1px var(--bg-color);
    border-radius: 20px;
    padding: 10px;
    margin: 10px;
    width: 25%;
}

.programming-languages-table2
{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.programming-languages-table2 > div
{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.programming-languages-table2 > div > div
{
    width: 25%;
    text-align: center;
}

.programming-languages-table2 > .row > div:nth-child(2)
{
    text-align: left;
}

.programming-languages-table2 > .header
{
    font-weight: bold;
}

.programming-languages-table2 > .row
{
    border-top: 1px solid #989898;
}

.programming-languages-table2 .assesment-mobile
{
    display: none;
}

/* Only show the mobile menu button and hide the main nav on small screens */
@media screen and (max-width: 650px) {
    html
    {
        scroll-padding-top: 50px;
    }

    body
    {
        font-size: 16px;
    }

    #header{
        flex-direction: column;
    }

    #titleheader{
        position: absolute;
        left: 10px;
        top: 10px;
    }

    #mobileMenuButton {
        display: inline-block; /* Show the hamburger menu button */
    }

    #content
    {
        padding: 60px var(--content-padding-x) 60px var(--content-padding-x);
    }

    .titleheader
    {
        padding: 10px 20px;
        float: left;
    }

    .small-profile-pic{
        display: none;
    }

    
    .large-profile-pic-container{
        width: calc(100% - 2*2rem);
        height: initial;
        aspect-ratio: 1;
    }

    .intro h2
    {
        font-size: 40px;
    }
    .intro h3
    {
        font-size: 26px;
    }
    .intro p
    {
        font-size: 18px;
    }
    .intro .p-large
    {
        font-size: 20px;
    }

    /* Initially, the navigation is hidden */
    #nav {
        display: block;  /* Change from none to block */
        background-color: rgba(var(--color-bg-r), var(--color-bg-g), var(--color-bg-b), 0.72);
        max-height: 0;  /* Start with a max-height of 0 so it's hidden */
        overflow: hidden;  /* This ensures content that exceeds the max-height is hidden */
        transition: max-height 0.4s ease-in-out;  /* Animation effect */
        width: 100%;
    }

    #nav ul li{
        display: block;
        text-align: right;
    }

    #menuToggle:checked + #mobileMenuButton + #nav {
        max-height: 500px;
    }

    video{
        width: 90%;
    }

    .project-image{
        display: none;
    }

    .project-image-mobile{
        display: block;
        width: calc(100% - 20px);
        border-radius: 30px;
        background: linear-gradient(-45deg, orange, violet);
        margin: 5px;
        padding: 5px;
        box-shadow: 0 0 15px rgb(0 0 0);
    }

    .box > ul
    {
        padding-left: 20px;
    }

    .box > .special-listing
    {
        padding: 0px;
        list-style: none;
    }

    .skill-container > div
    {
        width: 100%;
    }

    .programming-languages-table2 .header
    {
        display: none;
    }

    .programming-languages-table2 > div
    {
        flex-direction: column;
        align-items: flex-start;
        border: 1px solid #989898;
        box-shadow: 0px 0px 10px 1px #5c5c5c;
        border-radius: 20px;
        margin: 10px;
        padding: 10px;
    }

    .programming-languages-table2 > .row > div:nth-child(1)
    {
        width: 100%;
        text-align: left;
        font-weight: 700;
        font-size: 1.17em;
    }

    .programming-languages-table2 .assesment-mobile
    {
        display: inline;
        font-weight: 100;
        font-size: 0.8em;
    }

    .programming-languages-table2 > .row > div:nth-child(3)
    {
        display: none;
    }

    .programming-languages-table2 > div > div
    {
        width: 100%;
        text-align: left;
    }
}

@media (prefers-reduced-motion: no-preference)
{
    html
    {
        scroll-behavior: smooth;
    }

    .social-icon{
        opacity: 0;
        scale: 0.5;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: 50px 200px;
    }

    @keyframes fade-in {
        to {
            opacity: 1;
            scale: 1;
        }
    }
}

@supports(animation-timeline: view())
{
    @media (prefers-reduced-motion: no-preference) and (min-width:650px)
    {
        html
        {
            scroll-padding-top: 0;
        }

        #content
        {
            padding-top: 0;
        }

        .box-container
        {
            min-height: calc(100svh);
            padding-top: var(--box-container-padding-top);
        }

        .box-in{
            min-height: calc(100svh - var(--box-container-padding-top) - var(--box-container-padding-bottom) - 2 * var(--box-padding));
            opacity: 0;
            scale: 0.6;
            animation: fade-in2 linear forwards;
            animation-timeline: view();
            animation-range: entry contain -300px;
        }

        @keyframes fade-in2 {
            0% { opacity: 0; scale: 0.6; }
            100% { opacity: 1; scale: 1; }
        }

        .box-out{
            min-height: calc(100svh - var(--box-container-padding-top) - var(--box-container-padding-bottom) - 2 * var(--box-padding));
            opacity: 1;
            scale: 1;
            animation: fade-out linear forwards;
            animation-timeline: view();
            /* animation-range: exit 40px; */
            animation-range: exit 300px;
        }

        @keyframes fade-out {
            0% { opacity: 1; scale: 1; }
            100% { opacity: 0; scale: 0.6; }
        }

        @keyframes flyin-test {
            to { opacity: 1; transform: translateX(0px); }
        }

        .flyin-left, .ul-flyin-left li
        {
            opacity: 0;
            transform: translateX(-300px);
            animation: flyin-left linear forwards;
            animation-timeline: view();
            animation-range: 0% 20%;
        }

        @keyframes flyin-left {
            to { opacity: 1; transform: translateX(0px); }
        }

        .flyin-right, .ul-flyin-right li
        {
            opacity: 0;
            transform: translateX(300px);
            animation: flyin-right linear forwards;
            animation-timeline: view();
            animation-range: 0% 20%;
        }

        @keyframes flyin-right {
            to { opacity: 1; transform: translateX(0px); }
        }
    }
}