body {
    background-color: #fff;
    font-family: "montserrat", sans-serif;
    text-align: center;
    overflow-x: hidden;
}

.sidebar {
    height: 100%;
    width: 40vh;
    position: fixed;
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    /* align-items: center; */
    text-align: center;
    /* border-right-style: solid; /* TDOD: remove. Only for visual separation  */
    /* border-color: black; */
}

.sidebar-header {
    margin-top: 10px;
    position: absolute;
    left: 2vh;
    top: 0;
}

.sidebar-content {
    align-items: center;
    padding: 30px;
    text-align: center;
    margin-top: 40%;
}
.sidebar-content h3 {
    color: black;
}
.scroll-hint {
    display: none;
}

.content-view {
    /* padding: 30px; */
    display: flex;
    flex-direction: column;
    justify-items: center;
    margin-left: 40vh; /* same as sidebar width */
    gap: 50px;
    overflow-x: hidden;
}

.content-card {
    width: 100%;
    height: auto;
    overflow-x: hidden;
    overflow-y: hidden;
}

.content-card b {
    width: 100%;
    height: auto;
    overflow-x: hidden;
}

.content-section-title {
    margin-bottom: 5vh;
    font-weight: bold;
}

.profile-picture {
    width: 25vh; /* needs to related to sidebar width */
    height: auto;
    margin-bottom: 10px;
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}
.social-icon {
    min-width: 5vh;
    height: auto;
    max-width: 15vh;
    display: block;
}

.tech-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.tech-marquee-row {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.tech-marquee-row:last-child {
    margin-bottom: 0;
}

.tech-marquee-row.top-row {
    transform: rotate(1.5deg);
}

.tech-marquee-row.bottom-row {
    transform: rotate(-1.5deg);
}

.tech-marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
    padding-right: 3rem; /* Add gap at the end to match spacing between duplicated content */
}

.tech-marquee-row.bottom-row .tech-marquee-content {
    animation: marquee-reverse 25s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-reverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

.tech-icon-container {
    position: relative; /* This is crucial for the overlay positioning */
    width: 80px; /* Fixed width for the container */
    height: 80px; /* Fixed height for the container */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking in marquee */
}

.tech-stack-icon {
    max-width: 100%; /* Ensure icon is never wider than its container */
    max-height: 100%; /* Ensure icon is never taller than its container */
    object-fit: contain; /* Scale the image to fit within the container */
    display: block;
}

.tech-icon-overlay {
    position: absolute;
    bottom: 100%; /* Position the tooltip above the icon */
    left: 50%;
    transform: translateX(-50%); /* Center the tooltip */
    opacity: 0;
    transition: opacity 0.3s ease;
    background-color: #333; /* Give tooltip a background */
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap; /* Prevent tooltip text from wrapping */
    pointer-events: none; /* Prevent the tooltip from interfering with mouse events */
    /* z-index: 100; */
}
.tech-icon-container:hover .tech-icon-overlay {
    opacity: 1;
}
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2vh;
    overflow-x: hidden;
    /* margin-top: 3vh; */
    /* margin-left: 20vh; */
    /* margin-right: 20vh; */
}
.repo-pin {
    /* max-width: 35vh; */
    width: 100%;
    height: auto;
    /* padding: 1vh; */
    /* max-height: 15vh; */
}
.impressum-link {
    font-size: 13px;
}

.impressum-text {
    text-align: start;
    font-size: 16px;
}
.impressum-title {
    color: black;
    font-size: 20px;
    text-align: start;
    margin-top: 8vh;
}

.language-toggle {
    background-color: Transparent;
    border: none;
    /* padding: 5px 10px; */
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9em;
    /* color: #333; */
    margin: 5px 0;
    display: inline-block;
    user-select: none;
    transition: background-color 0.2s ease;
}

.language-toggle:hover {
    /* text-shadow: 0 0 3px #FF0000; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.25);
}

.language-toggle .lang-current {
    font-weight: bold;
    color: #000;
}

.language-toggle .lang-switch-to {
    color: #666;
}

@media screen and (orientation: portrait) {
    .sidebar {
        width: auto;
        position: relative; /* Or static */
        height: 100%; /* Adjust based on content */
        margin-bottom: 5vh;
        /* max-height: 100vh; */
    }
    .sidebar-content {
        margin-top: 10vh;
        height: 80vh;
    }
    .scroll-hint {
        display: block; /* You already have this, which is good */
        position: fixed; /* Position relative to the viewport */
        left: 50%; /* Center horizontally */
        bottom: 3vh; /* Distance from the bottom (adjust as needed) */
        transform: translateX(-50%); /* Fine-tune horizontal centering */
        z-index: 10; /* Ensure it's on top if needed */
        opacity: 1; /* Initially visible */
        transition: opacity 0.3s ease-out; /* For smooth disappearance */
        padding: 5px;
    }

    .scroll-hint img {
        width: 30px;
        height: auto;
        display: block;
    }

    .scroll-hint.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .content-view {
        margin-left: 0; /* Remove the margin intended for the desktop sidebar */
    }
    .repo-pin {
        max-width: 90%;
        height: auto;
    }
    
    .tech-marquee-row.top-row {
        transform: rotate(1deg);
    }

    .tech-marquee-row.bottom-row {
        transform: rotate(-1deg);
    }
    
    .tech-marquee-content {
        gap: 2rem;
        padding-right: 2rem; /* Match mobile gap spacing */
    }
    
    .tech-icon-container {
        width: 60px;
        height: 60px;
    }
}

.i18n-loading [data-i18n-key] {
    visibility: hidden;
}
