@charset "utf-8";

/* width */
::-webkit-scrollbar {
    width: 10px;
}

@font-face {
    font-family: Fortnite;
    src: url('Fortnite.ttf');
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 1.00);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgba(87, 87, 87, 1.00);
    border-radius: 100px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 99, 99, 1.00);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #1e1e1e;
    font-family: 'Segoe UI', sans-serif;
    color: #ccc;
    display: flex;
    flex-direction: row;
    /* Make sidebar and content side by side */
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

#Sidebar {
    height: 100vh;
    min-height: 100vh;
    flex-shrink: 0;
}

.sidebar {
    width: 165px;
    /*or your preferred width*/
    min-height: 100vh;
    height: 100vh;
    background-color: #252525;
    display: flex;
    flex-direction: column;
    border-right: 10px solid #1A1A1A;
    padding: 10px;
}

/* Social Buttons in Sidebar */
.socials_div {
    display: flex;
    flex-direction: column;
    /* Stack icons vertically */
    align-items: center;
    /* Center icons horizontally */
    justify-content: center;
    /* Center icons vertically within the div */
    gap: 20px;
    /* Space between icons */
    padding: 20px;
    /* Padding on all sides */
    margin-top: auto;
    /* Push to bottom of sidebar */
    margin-bottom: 20px;
    /* Space from bottom edge */
    /* border: 3px solid #8E0000; */
    /* Test border */
}

.social_icon {
    transform: scale(1);
    width: 60px;
    height: 60px;
    /* background-color: white; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.interact_icon:hover {
    animation: glow-pulse 2s infinite;
    cursor: pointer;
}

.interact_icon:hover img {
    filter: brightness(1.3) saturate(100) hue-rotate(200deg);
    /* color: rgb(255, 162, 81, 0.7); */
}

@keyframes glow-pulse {
    0% {
        transform: scale(1);
        /* filter: drop-shadow(0 0 0 10px rgba(255, 162, 81, 0.7)); */
        box-shadow: 0 0 0 0 rgb(255, 162, 81, 0.7);
    }

    50% {
        transform: scale(0.95);
        /* filter: drop-shadow(10 0 0 10px rgba(255, 162, 81, 1)); */
        box-shadow: 0 0 0 15px rgb(255, 162, 81, 0);
    }

    100% {
        transform: scale(1);
        /* filter: drop-shadow(0 0 0 10px rgba(255, 162, 81, 0)); */
        box-shadow: 0 0 0 0 rgb(255, 162, 81, 0), 0 0 10px rgb(255, 162, 81, 0.5);
    }
}

.scroll-logo-area {
    flex: 0 0 auto;
    z-index: 999;
    transform: scale(1);
    position: absolute;
    left: -13%;
    /* outline: red solid 2px; */
    top: 50%;
    transform: translateY(-85%);
    width: 520px;
    height: auto;
    z-index: 1;
    pointer-events: auto;
    overflow: visible;
    user-select: none;
    transition: transform 0.05s ease-out;
}

.scroll-logo {
    z-index: 998;
    position: relative;
    width: 100%;
    height: 100%;
}

.scroll-logo img {
    z-index: 998;
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.scroll-logo button {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.3);
    /* border: 2px solid red; */
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 999;
}

/* Position each button over the red circles */
#special-button1 {
    top: 50.5%;
    left: 37%;
}

#special-button2 {
    top: 54.5%;
    left: 41%;
}

#special-button3 {
    top: 54.5%;
    left: 32.5%;
}

#special-button4 {
    top: 58.5%;
    left: 37%;
}

#special-button5 {
    top: 50.5%;
    left: 61.3%;
}

#special-button6 {
    top: 54%;
    left: 64.3%;
}

#special-button7 {
    top: 57.5%;
    left: 61.3%;
}

#special-button8 {
    top: 54%;
    left: 58.3%;
}

.icon {
    background: white;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    margin: 0px auto 0px auto;
}

/*	Collapseable button*/
/* .collapsible {
    background-color: rgba(87,87,87,1.00);
    color: white;
    cursor: pointer;
    padding: 5px 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}
.collapsible:hover {
    background-color: rgba(99,99,99,1.00);
}
.project-list {
    margin-bottom: 20px;
    padding: 0px 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
} */
.project-item {
    padding: 0px 0px;
    border-radius: 4px;
}

.project-item:hover {
    background-color: #3a3a3a;
    cursor: pointer;
}

.topbar {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    justify-content: left;
    gap: clamp(4px, 1.5vw, 20px);
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: clamp(6px, 3vw, 80px);
    padding-right: clamp(6px, 3vw, 80px);
    background-color: #1A1A1A;
    color: #fff;
    height: 32px;
    align-items: center;

    border-bottom: 2px solid #111;
    box-sizing: border-box;
    z-index: 2;
}

.tab {
    max-height: 48px;
    justify-content: center;
    display: grid;
    place-content: center;

    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(11px, 2.5vw, 35px);
    display: flex;
    flex-direction: column;
    /* Make icon and text side by side */
    align-items: center;
    /* Vertically center icon and text */
    white-space: nowrap;
    /* Prevent text from wrapping under the icon */
    gap: clamp(3px, 0.5vw, 8px);
    /* Space between icon and text */
    padding: 0 clamp(3px, 0.5vw, 8px);
    flex: 0.5 0.5 0.5;
    /* Allow tabs to shrink/grow */
    min-width: 0;
    /* Allow shrinking to fit container */
    box-sizing: border-box;
}

.tab a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.5vw, 8px);
    color: inherit;
    text-decoration: none;
    font-family: Bahnschrift SemiBold;
}

.tab img {
    max-height: clamp(18px, 3.5vw, 48px);
    height: clamp(18px, 3.5vw, 48px);
    width: auto;
    align-items: center;
    object-fit: fill;
    display: inline-block;
}

.tab p {
    user-select: none;
    color: white;
    text-decoration: none;

}

.tab:not(.tab_divider):hover {
    background-color: #3a3a3a;
    text-decoration: underline;
    cursor: pointer;
    border-radius: 10px;

}

.tab_divider {
    color: #96a7ae;
    text-shadow: -1px -1px 0 #4A4A4A, 1px -1px 0 #4A4A4A, -1px 1px 0 #4A4A4A, 1px 1px 0 #4A4A4A;
}

/* ── Tab icon hover animations ─────────────────────────────────────────── */

/* Shared base: smooth exit transition for all tab icons */
.tab img {
    transition: transform 0.35s ease;
}

/* 1. Home – rotate 190° in, rotate back out */
.tab-home:hover img {
    transform: rotate(190deg);
    transition: transform 0.5s ease;
}

/* 2. Projects – grow while shaking excitedly, then shrink, loop */
@keyframes tab-projects-jingle {
    0%   { transform: scale(1)    translateX(0)    rotate(0deg);  }
    12%  { transform: scale(1.08) translateX(-4px) rotate(-7deg); }
    25%  { transform: scale(1.17) translateX(4px)  rotate(7deg);  }
    37%  { transform: scale(1.22) translateX(-4px) rotate(-7deg); }
    50%  { transform: scale(1.22) translateX(4px)  rotate(7deg);  }
    62%  { transform: scale(1.12) translateX(-3px) rotate(-4deg); }
    75%  { transform: scale(1.02) translateX(3px)  rotate(4deg);  }
    87%  { transform: scale(0.94) translateX(-1px) rotate(-1deg); }
    100% { transform: scale(1)    translateX(0)    rotate(0deg);  }
}

.tab-projects:hover img {
    animation: tab-projects-jingle 0.9s ease-in-out infinite;
}

/* 3. About – jump up then recoil down, loop */
@keyframes tab-about-jump {
    0%   { transform: translateY(0);     }
    30%  { transform: translateY(-13px); }
    50%  { transform: translateY(-14px); }
    65%  { transform: translateY(0);     }
    75%  { transform: translateY(5px);   }
    85%  { transform: translateY(-4px);  }
    93%  { transform: translateY(2px);   }
    100% { transform: translateY(0);     }
}

.tab-about:hover img {
    animation: tab-about-jump 0.8s ease-in-out infinite;
}

/* 4. Contact – scale up 10% then down 10%, loop */
@keyframes tab-contact-pulse {
    0%   { transform: scale(1);   }
    35%  { transform: scale(1.1); }
    65%  { transform: scale(0.9); }
    100% { transform: scale(1);   }
}

.tab-contact:hover img {
    animation: tab-contact-pulse 0.9s ease-in-out infinite;
}
/* ── End tab icon hover animations ─────────────────────────────────────── */

/*
.construction-info {
    display: flex;
    justify-content: center;
	font-size: 50px;
    padding-top: 30px;
    padding-bottom: 40px;
    color: #fff;
    height: 32px;
    flex-direction: row;
    align-items: left;
	//overflow: auto;
    align-items: center;
	
	text-shadow: 2px 2px #000000;
	}
.construction-bg
{
	background: repeating-linear-gradient( 45deg, #C9B64E, #45461E 15px, #1a1a1a 20px, #1a1a1a 40px );
	background-color: transparent;
}
*/

canvas {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    pointer-events: none;
    overflow-y: hidden;
}

.graph-area {
    /* flex: 1; */
    /* padding: 20px;
    background: repeating-linear-gradient(45deg, #313131, #313131 20px, #373737 20px, #373737 40px);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap; */

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    background: repeating-linear-gradient(45deg, #313131, #313131 20px, #373737 20px, #373737 40px);
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    min-height: 100vh;
    scroll-snap-type: x mandatory;
}

.node-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 100vw;
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    gap: 0;
    padding: 20px;
    margin: 0 80px 0 0;
    flex-wrap: nowrap;
    overflow: hidden;
    /* outline: solid 3px white; */
    /* scroll-snap-align: start; */
    scroll-snap-stop: always;
    position: relative;
}

/* Video background with transparent oval gradient */
.node-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    /* Transparent oval gradient mask (edges fade to transparent) */
    mask-image: radial-gradient(ellipse 100% 100% at center,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 1) 0%,
            rgb(0, 0, 0, 0) 0%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at center,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.75) 55%,
            rgba(0, 0, 0, 0) 70%);
}

/* Video visible when section is active */
.node-video-background.playing {
    opacity: 1;
}

/* center and scale nodes in each group */
.node-group .node,
.node-group>.node {
    width: min(88vw, 1100px);
    max-width: 95vw;
    min-height: 540px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.node {
    width: min(88vw, 1100px);
    min-height: 540px;
}


.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh;
}

#connectionCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.node {
    /*    vertical-align: middle;*/
    position: relative;
    background: #1e1e1e;
    border: 2px solid black;
    border-radius: 10px;
    width: min(88vw, 1100px);
    /* min-height: 300px; */
    min-height: 540px;
    height: auto;
    box-shadow: 0 0 5px #000;
    overflow: hidden;
    overflow-x: hidden;
    /*    margin: 20px;*/
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: height 0.4s ease, transform 0.4s ease,
                background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    /* z-index: 1; */
    /*    will-change: transform;*/
}



.node-header {
    color: white;
    padding: 15px 20px;
    min-height: 50px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #FF3535;
    position: relative;
    transition: background-color 0.35s ease;
}

.node-header p {
    margin: 0;
    width: 100%;
    display: block;
    font-size: 3em;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    font-family: Fortnite;
}

.node-header .node-output-detail {
    width: 25px;
    height: 25px;
    background: black;
    border: 3px solid #8E0000;
}

.node-visible {
    position: absolute;
    right: 3%;
    top: 25%;
    bottom: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    background: none;
    border:#808080 solid 2px;
    border-radius: 4px;
    opacity: 0.5;
    padding: 0;
    transition: opacity 0.15s ease;
}

.node-visible img {
    height: 100%;
    width: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}

.node-visible:hover {
    opacity: 0.75;
}

/* Fade transitions for node content when toggled hidden */
.node-header > :not(.node-visible),
.node-body {
    transition: opacity 0.35s ease;
}

.node--faded {
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Inline background-color on .node-header is handled by JS (saved and cleared on fade) */

.node--faded > .node-header > :not(.node-visible),
.node--faded > .node-body {
    opacity: 0;
    pointer-events: none;
}

.node-body {
    background-color: #2c2c2c;
    position: relative;
    padding: 20px 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
    overflow: inherit;
}

.node-contents {
    /* flex: 1;
    text-align: left;
	align-items: center;
	padding-left: 5%;
	padding-right: 5%;
	width: 100%; */

    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* A small fixed-width column for icons (e.g., the large play arrow). */
.lineAnchor-divider {
    flex: 0 0 90px;
    max-width: 90px;
    min-width: 90px;

    /* position:fixed; */
    top: 50%;
    left: 50%;
    transform: translate(0%, 200%);
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

:root {
    --node-info-gap: 20px;
}

.node-info {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    /* overflow: hidden; */
    margin-bottom: calc(var(--node-info-gap) * 3);
    position: relative;
}

.node-info:last-child {
    margin-bottom: 0;
}

/* Center content inside a node-info row (used for the play arrow). */
.node-info--centered {
    justify-content: center;
    align-items: center;
}

/* Ensure the line anchor is centered and does not stretch its siblings. */
/* .node-lineAnchor {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
} */

/* .node-lineAnchor__link {
    font-size: 3rem;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
} */

.node-topics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.node-topic-keyword {
    width: 80px;
    min-height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 13px;
    padding: 6px 8px;
    text-align: center;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    font-family: Bahnschrift SemiBold;
}
.topic-gamedev {
    background-color: #8b4897;
}

.topic-ue5 {
    background-color: #6b7479;
}

.topic-teamwork {
    background-color: #33ac2f;
}

.node-info p {
    margin: 0;
    color: #fff;
    font-size: 23px;
    outline-color: white;
    outline-style: solid;
    outline-width: thin;
    background-color: rgba(33, 33, 33, 1.00);
    padding-left: 5px;
    padding-right: 5px;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
    font-family: Bahnschrift SemiBold;
}

.node-info-details {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    z-index: 2;
    background: linear-gradient(to top,
            #333333,
            #080808cb 50%,
            #00000015 75%,
            #00000000 100%
            );
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: clamp(1rem, 5vw, 2.5rem); 
    text-align: center;
    font-family: Bahnschrift SemiBold;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
}

/* Center and size single images in video-container */
/* .video-container > a > .node-video, */
.video-container>.node-video {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.video-container {
    flex: 1;
    max-width: 100%;
    width: 60%;
    height: auto;
    object-fit: contain;
    margin: 0;
    display: block;
    border-radius: 6px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.node-video {
    flex: 1;
    max-width: 100%;
    width: 60%;
    height: auto;
    object-fit: contain;
    margin: 0;
    display: block;
    border-radius: 6px;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, outline-color 0.3s ease;
    position: relative;
}

.node-video:hover {
    transform: scale(1.1);
}

.video-container:hover {
    outline: 2px solid rgb(115, 187, 255);
}
.video-container:hover>.node-info-details {
    opacity: 1;
}

.video-container:has(.node-info-details:hover)>.node-video {
transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 0;
    border-left: 24px solid #ccdfff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.play-overlay::before {
    content: "";
    position: absolute;
    left: -21px;
    top: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #3a4d69;
}

.play-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFF00;
    border: 3px solid #FFFF00;
    border-radius: 8px;
    width: 100px;
    height: 120px;
    flex-shrink: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
}

.play-wrapper::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid white;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}

.video-container:hover .play-wrapper,
.node-video.playing+.play-wrapper {
    opacity: 0;
}




.node-left-icon,
.node-right-icon {
    position: absolute;
    font-size: 50px;
    top: 15%;
    /*  transform: translateY(-50%);*/
    color: white;
    /*    pointer-events: none;*/
    /*	z-index: 10;*/

}

.node-left-icon {
    left: 2px;
    position: absolute;
}

.node-right-icon {
    right: 2px;
    position: absolute;
    cursor: pointer;
}

/* .-contents {
    flex: 1;
    text-align: left;
	align-items: center;
	padding-left: 5%;
	padding-right: 5%;
	width: 100%;
	 
} */



/* Node Info */
/* .node-info .node-info-section {
  width: 25px;
  height: 25px;
  border-radius: 50px;
  background: black;
  border: 3px solid #8E0000;
  
} */

/* :not(.node-left-icon):not(.node-right-icon) */
.node-lineAnchor div {
    /* width: 64px;
    height: 64px; */
    /* background-color: #fff; */
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    /* display:inline-block; */
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); */
    /* border: 2px solid #fff; */
    color: white;
    z-index: 0;
    /* background-image: url('../Portfolio/img/Icon Path Arrow (Full).png'); */
}






/* .node-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    min-height: 100vh;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
} */

.node-group>.node {
    scroll-snap-align: start;
}

.node-group.node-comment {
    padding-bottom: 50px;
    margin-bottom: 0;
    height: auto;
    min-height: 0px;
    background: linear-gradient(to bottom,
            rgba(135, 135, 135, 0.31) 0%,
            rgba(55, 55, 55, 0.80) 100%);
    border: 2px solid rgba(40, 40, 40, 1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    flex-direction: column;
    /* Stack title and body vertically */
    align-items: stretch;
    flex-wrap: wrap;
}

.node-group.node-comment .node {
    margin-top: 20px;
    /*    margin-bottom: 8px;*/
}

.node-group.node-comment .node:last-child {
    margin-bottom: 0px;
}


.node-comment-title {
    /* Remove position: absolute, top, left, right */
    position: static;
    width: 100%;
    padding: 20px;
    background: rgba(40, 40, 40, 1);
    font-weight: bold;
    font-size: 1.8em;
    color: #fff;
    letter-spacing: 0.5px;
    z-index: 3;
}

.node-comment-body {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(3, 1fr);
    /* Always 3 columns by default */
    gap: inherit;
    /* Use your preferred percentage gap */
    width: 100%;
    align-items: flex-start;
    justify-content: center;
}

.tab a,
.tab a:visited,
.tab a:active,
.tab a:focus {
    color: white !important;
    text-decoration: none !important;
}

/* @media (max-width: 800px) {
  .topbar {
    padding-left: 2%;
    padding-right: 2%;
    gap: 1%;
    font-size: 14px;
    flex-wrap: nowrap; 
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-x: auto; 
  }
  .tab {
    font-size: 16px;
    padding: 0 4px;
    gap: 4px;
    min-width: 80px;
    max-width: none;
    flex: 0 0 auto;
    justify-content: center;
  }
  .tab img {
    width: 22px;
    height: auto;
    margin-right: 2px;
  }
  .tab_divider {
    font-size: 18px;
    padding: 0 2px;
  }
}
@media (max-width: 500px) {
  .topbar {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
    overflow-x: auto;
  }
  .tab {
    font-size: 14px;
    padding: 4px 0;
    min-width: 100px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .tab img {
    width: 18px;
  }
  .tab_divider {
    display: none;
  }
} */
/* Hide pipe dividers on very small screens to save horizontal space */
@media (max-width: 430px) {
    .topbar {
        padding-left: 4px;
        padding-right: 4px;
        gap: 2px;
    }
    .tab_divider {
        display: none;
    }
}

#scroll-notify {
    position: fixed;
    top: 29%;
    left: 18%;
    transform: scale(2);
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    padding: 10px 18px;
    z-index: 10000;
    color: #111;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 14px;
}

#scroll-notify.visible {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}