html,
body {
    overflow-x: hidden;
}

/* Basic CSS Template */

@font-face {
    font-family: 'Ruska Display';
    src: url('fonts/RuskaDisplay-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sono';
    src: url('fonts/sono/Sono-SemiBold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Sono';
    src: url('fonts/sono/Sono-ExtraLight.woff2') format('woff2');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: 'Sono';
    src: url('fonts/sono/Sono-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

header {
    text-align: center;
    width: 100%;
    padding: 8em 0 5em 0;
    background: #7300ff;
    color: #ffc200;

    background-image: url('textures/baked_beans.jpg');
    background-blend-mode: color-burn;
}

header h1 {
    font-family: 'Ruska Display', serif;
    font-size: 5em;
    opacity: 0.5;
    color: #ffc200;
    text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    text-decoration-line: none;

    animation-name: flicker, tilt;
    animation-duration: 3s, 15s;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, both;
    animation-timing-function: none, ease-in-out;
    animation-direction: normal, alternate;
    animation-delay: 1s, 3s;
    /* animation: flicker 3s forwards;
    animation: tilt 20s infinite ease-in-out alternate; */
}

@keyframes tilt {
    0% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(10deg);
    }
}

@keyframes flicker {
    0% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    5% {
        opacity: 1;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 5px, #ffc200 0 0 15px;
    }

    17.5% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    35% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    37.5% {
        opacity: 1;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 5px, #ffc200 0 0 15px;
    }

    55% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    60% {
        opacity: 1;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 5px, #ffc200 0 0 15px;
    }

    70% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    75% {
        opacity: 0.5;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 2px, #ffc200 0 0 2px;
    }

    80% {
        opacity: 1;
        text-shadow: #ffc200 0 0 10px, #ffc200 0 0 15px, #ffc200 0 0 30px;
    }

    100% {
        opacity: 1;
        text-shadow: #ffc200 0 0 2px, #ffc200 0 0 5px, #ffc200 0 0 15px;
    }
}

h2 {
    font-family: 'Sono', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 2.5em;
    color: #7400FF;
    margin-bottom: 1em;

    text-shadow: #005fa3 2px 3px;
}

h3 {
    font-family: 'Sono', sans-serif;
    font-weight: bold;
    text-decoration: overline underline;
}

.segment {
    padding: 5em;
    font-family: 'Sono', sans-serif;
    font-weight: normal;

    padding-top: 5em;
    padding-left: 10%;
    padding-right: 10%;
}

body {
    font-family: 'Sono', sans-serif;
    margin: 0;
    background-color: #bbbbbbff;
    background-image: url('textures/coffee.jpg');
    background-blend-mode: overlay;
    color: #222;
    line-height: 2;
}

#me-img {
    width: min(30rem, 100%);
    height: auto;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;

    /* border: 1px solid #222; */
    box-shadow: #ffc200 0 0 5px, #ffc200 0 0 15px, #ffc200 0 0 30px;
}

#me-img:hover+#me-arrows {
    opacity: 1;
}

#me-img:active {
    transform: rotate(360deg);
    transition: .5s ease-out;
}

#me-img:active+#me-arrows {
    opacity: 1;
    transition: opacity 5s ease-out;
}


.me-arrows-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(50rem, 150%);
    min-width: unset;
    height: auto;
    overflow: hidden;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

#me-arrows {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    opacity: 0;
}

#me-img:hover+.me-arrows-container #me-arrows,
#me-img:active+.me-arrows-container #me-arrows {
    opacity: 1;
}

iframe {
    border: 1px solid #222;
    box-shadow: #ffc200 0 0 5px, #ffc200 0 0 15px, #ffc200 0 0 30px;
}

#cv {
    background-color: #aacc3330;

    ul {
        display: flex;
        flex-direction: row;
        gap: 1em;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0 auto;
    }

    li {
        display: inline-block;
        /* Allows wrapping in flex container */
        width: 5em;
        height: 5em;
        border-radius: 10%;
        overflow: wrap;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.skill {
    position: relative;
    display: inline-block;
}

.skill .tooltiptext {
    visibility: hidden;
    background-color: #ffc200;
    font-weight: normal;
    color: #7400ff;
    text-align: center;
    border-radius: .5em;
    padding: .25em 1em;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;

    top: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.skill:hover .tooltiptext {
    visibility: visible;
}

#projects {
    background-color: #aa55aa30;
}

#impressum {
    width: 50%;
    align-items: center;

    p {
        text-align: center;
        text-decoration-line: overline underline;
        text-decoration-style: wavy;
        text-decoration-color: #ffc200;
        text-decoration-thickness: 1pt;
    }
}

.project {
    margin-bottom: 2em;
}

.druckeridee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: space-between;
    gap: 2em;

    div {
        display: flex;

        button {
            width: 2em;
            height: 2em;
            font-size: 3em;
            background-color: #005fa320;
            color: #7300ff;
            box-shadow: #7300ff 0 0 5px, #7300ff 0 0 15px;
        }

        audio {
            display: none
        }

        p {
            font-size: 3em;
            font-weight: bold;
            color: #7400ff;
            text-shadow: #ffc200 0 0 5px;
        }

        img {
            width: 100%;
            height: auto;
            image-rendering: pixelated;
            border: 2px solid #222;
            box-shadow: #ffc200 0 0 2px, #ffc200 0 0 5px, #ffc200 0 0 10px;
        }
    }
}

#photos {
    background-color: #55aa5530;
    align-items: center;
}

.gallery-arrow {
    font-weight: bold;
    font-size: xx-large;
    color: #7400FF;
    opacity: 0;
    text-shadow: 0 0 8px #000, 0 0 2px #000;
    cursor: pointer;
    mix-blend-mode: saturation;
    text-decoration: none;
}

.carousel-inner {

    border: 2px solid #222;
    box-shadow: #ffc200 0 0 5px, #ffc200 0 0 15px, #ffc200 0 0 30px;
}

.custom-carousel:hover {
    .gallery-arrow {
        opacity: 1;
        transition: opacity 0.1s ease-in-out;
    }
}

#contact {
    ul {
        display: flex;
        flex-direction: row;
        gap: 3em;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0 auto;
    }

    li {
        display: inline-block;
        /* Allows wrapping in flex container */
        width: 4em;
        height: 4em;
        overflow: wrap;
    }

    img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
}

a {
    color: #222;
    text-decoration: underline;
}

a:hover {
    color: #55ff00;
    text-decoration: underline;
    text-decoration-color: #222;
}

h1 {
    a {
        color: #ffc200;
        text-decoration: none;
    }

    a:hover {
        color: #ffc200;
        text-decoration: none;
    }
}

.custom-carousel {
    width: min(50rem, 100%);
    height: auto;
    cursor: pointer;
}

footer {
    text-align: center;
    font-weight: normal;
    padding: 1rem;
    background: #ffc200aa;
    color: #222222;
    box-shadow: #ffc200 0 0 5px, #ffc200 0 0 15px, #ffc200 0 0 30px;
}