html,
body {
    background: black;
    overflow-x: hidden;
    scroll-behavior: auto !important;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.blinking-text {
    animation: blink 4s infinite;
}

#controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Ensure it's above the canvas */
    pointer-events: none;
}

button {
    position: absolute;
    background: transparent;
    border: none;
    pointer-events: auto;
}

/* Positioning */
#btn-up {
    bottom: 79%;
    left: 50%;
    transform: translateX(-50%);
    height: 75px;
    width: 300px;
}

#btn-down {
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    width: 300px;
}

#btn-left {
    right: 65%;
    top: 39%;
    transform: translateY(-50%);
    height: 120px;
    width: 100px;
}

#btn-right {
    left: 65%;
    top: 39%;
    transform: translateY(-50%);
    height: 120px;
    width: 100px;
}

@media (hover: none) {
    button:hover {
        background: transparent;
        /* Keep the same as default */
    }
}

#mobile-instructions {
    font-size: 16px;
    color: white;
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}


.topnav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: #eeec54;
    width: 100%;
    top: 0;
    left: 0;
    height: 60px;
    position: fixed;
    z-index: 100;
}

.topnav a {
    color: black;
    padding: 14px 18px;
    text-decoration: none;
    font-size: 17px;
    font-family: 'Courier New', Courier, monospace;

}

.topnav a:hover {
    background-color: black;
    color: white;

}

.bottomnav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eeec54;
    width: 100%;
    height: 200px;
    position: relative;
    font-size: 24px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    /* Center the text */
    white-space: nowrap;
    /* Prevent wrapping */
    overflow: hidden;
}


.name {
    font-size: 55px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 0;
    text-align: center;
    /* Center both lines of text */
    line-height: 1.2;
    /* Adjust line-height to fit the text properly */
}

.name-border {
    position: relative;
    margin-top: 190px;
    border-style: solid black;
    background-color: black;
    width: 100%;
    height: 150px;
    /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Vertically centers content */
    z-index: 1;
}

@media (max-width: 768px) {
    .name {
        font-size: 40px;
        /* Adjust font size for smaller screens */
    }
}

.bar-image {
    position: absolute;
    top: 30px;
    height: 400px;
    width: 99%;
    background-size: cover;
}

.bar-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 430px;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.bar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seperate-line {
    position: relative;
    margin-top: 160px;
    border-style: solid black;
    background-color: black;
    width: 100vw;
    height: 5px;
    left: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateX(-50%);
}


.wer {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    text-align: center;
    /* Ensures text is always centered */
}

.wer-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    position: relative;
    /* Ensure the pseudo-element is positioned inside */
    max-width: 300px;
    /* Restrict container size */
}

.wer-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    transition: transform 1s ease-in-out;
}

/* Fix the hover effect's size */
.wer-image-container::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    pointer-events: none;
    opacity: 0;
    border-radius: 10px;
    /* Ensures it follows image shape */
}


.wer-image-container:hover::after {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.disable-hover::after {
    background: none !important;
    opacity: 0 !important;
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.warum {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    text-align: center;
    /* Ensures text is always centered */
}

/* .warum-image {
    margin-top: 160px;
    border-radius: 25px;
    background: transparent;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 900px;
    right: 140px;
} */

.warum-image-container {
    position: relative;
    /* Make this the reference for absolute positioning */
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    position: relative;
    /* Ensure the pseudo-element is positioned inside */
    max-width: 300px;
    /* Restrict container size */
}

.warum-image-container::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    color: black;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    pointer-events: none;
    opacity: 0;
    border-radius: 10px;
    /* Ensures it follows image shape */
}

.warum-image-container:hover::after {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.disable-hover::after {
    background: none !important;
    opacity: 0 !important;
}

.was {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    text-align: center;
    /* Ensures text is always centered */

}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.was-image {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.overlay {
    position: absolute !important;
    top: 0 !important;
    /* Align it to the top */
    left: 0 !important;
    /* Align it to the left */
    width: 100% !important;
    max-width: 300px !important;
    height: auto !important;
    display: block !important;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
    /* Ensure transition happens consistently */
    z-index: 2 !important;
}

.slide-up {
    transform: translateY(0);
}

.wann {
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding: 20px;
    text-align: center;
    /* Ensures text is always centered */

}

.button-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.email {
    justify-content: center;
    align-items: center;
    margin: 150px auto;
    border: none;
    background-color: transparent;
    position: relative;
    width: 15%;
    height: 250px;
    display: flex;
    text-align: center;
    cursor: pointer;
}

.envelope {
    position: absolute;
    transition: opacity 0.3s ease-in-out;
}

.hover {
    opacity: 0;
}

.email:hover .default {
    opacity: 0;
}

.email:hover .hover {
    opacity: 1;
}

.resume {
    justify-content: center;
    align-items: center;
    margin: 150px auto;
    border: none;
    background-color: transparent;
    position: relative;
    width: 20%;
    height: 320px;
    display: flex;
    text-align: center;
    cursor: pointer;
}

.emoji {
    position: absolute;
    transition: opacity 0.3s ease-in-out;
}

.hover {
    opacity: 0;
}

.resume:hover .default {
    opacity: 0;
}

.resume:hover .hover {
    opacity: 1;
}

.number {
    justify-content: center;
    align-items: center;
    margin: 150px auto;
    border: none;
    background-color: transparent;
    position: relative;
    width: 19%;
    height: 230px;
    display: flex;
    text-align: center;
    cursor: pointer;
}

.phone {
    position: absolute;
    transition: opacity 0.3s ease-in-out;
}

.hover {
    opacity: 0;
}

.number:hover .default {
    opacity: 0;
}

.number:hover .hover {
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.email:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip-emoji {
    visibility: hidden;
    background-color: white;
    color: black;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}


.resume:hover .tooltip-emoji {
    visibility: visible;
    opacity: 1;
}

.tooltip-phone {
    visibility: hidden;
    background-color: black;
    color: white;
    text-align: center;
    padding: 5px 10px;
    border-radius: 5px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}


.number:hover .tooltip-phone {
    visibility: visible;
    opacity: 1;
}

.paragraphs {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 2;
}

.container {
    font-size: 20px;
    word-wrap: break-word;
    overflow: hidden;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
    z-index: 2;
}

.typing-line {
    position: absolute;
    display: inline-block;
    width: 2px;
    height: 24px;
    background-color: white;
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.title {
    margin-top: 30px;
    color: Aqua;
    font-family: 'Courier New', Courier, monospace;
}