@font-face {
    font-family: 'Nautica Rounded';
    src: url('fonts/NauticaRounded-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'GintoNordBold';
    src: url('fonts/GintoNordBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body,
html {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    font-family: 'Nautica Rounded', sans-serif;
    color: #333;
    background: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* CSS Gradient Removed for Aurora Canvas Animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.07;
}

/* Grass Field at Bottom */
#grass-field {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.grass-blade {
    position: absolute;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to top,
            rgba(40, 90, 40, 0.85) 0%,
            rgba(50, 110, 50, 0.75) 40%,
            rgba(60, 130, 60, 0.6) 70%,
            rgba(70, 150, 70, 0.3) 100%);
    transform-origin: bottom center;
    filter: blur(1px);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

@keyframes grassSway {
    0% {
        transform: rotate(0deg) scaleY(1);
    }

    25% {
        transform: rotate(8deg) scaleY(0.92);
    }

    50% {
        transform: rotate(-2deg) scaleY(1.03);
    }

    75% {
        transform: rotate(-10deg) scaleY(0.9);
    }

    100% {
        transform: rotate(0deg) scaleY(1);
    }
}

@keyframes grassSway2 {
    0% {
        transform: rotate(0deg) scaleY(1);
    }

    30% {
        transform: rotate(-9deg) scaleY(0.88);
    }

    60% {
        transform: rotate(6deg) scaleY(1.05);
    }

    85% {
        transform: rotate(11deg) scaleY(0.93);
    }

    100% {
        transform: rotate(0deg) scaleY(1);
    }
}

@keyframes grassSway3 {
    0% {
        transform: rotate(0deg) scaleY(1);
    }

    20% {
        transform: rotate(7deg) scaleY(0.95);
    }

    45% {
        transform: rotate(-8deg) scaleY(0.91);
    }

    70% {
        transform: rotate(5deg) scaleY(1.02);
    }

    100% {
        transform: rotate(0deg) scaleY(1);
    }
}



#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: auto;
    opacity: 0;
    display: none;
}

#intro-overlay.active {
    display: block;
    opacity: 1;
    animation: fadeOutOverlay 1.0s ease-out 1.5s forwards;
}

#pre-intro-black {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 500;
    opacity: 0;
    display: none;
}

#pre-intro-black.active {
    display: block;
    opacity: 1;
    animation: fadeOut 1.2s ease-out 0.3s forwards;
}

.intro-text {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    stroke: black;
    stroke-width: 0;
}

#intro-overlay.active .intro-text {
    animation: zoomText 2.5s ease-in-out 0.6s forwards;
}

@keyframes zoomText {
    0% {
        transform: scale(1);
        stroke-width: 0;
    }

    100% {
        transform: scale(50);
        stroke-width: 200;
    }
}

@keyframes fadeOutText {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.is-safari #intro-overlay.active .intro-text {
    animation: fadeOutText 2.5s ease-in-out 0.6s forwards;
    transform-box: view-box;
}

@keyframes fadeOutOverlay {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

#loading-overlay {
    display: none;
}


#music-permission {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    cursor: pointer;
    transition: opacity 0.5s ease;
    display: none;
}

#music-permission svg {
    width: 100%;
    height: 100%;
}

#music-permission.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Swipe-Up Overlay */
#mobile-swipe-overlay {
    display: none;
    /* Hidden by default, shown only on mobile via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1500;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    touch-action: pan-y;
    opacity: 1;
}

#mobile-swipe-overlay.swiping {
    transition: none;
}

#mobile-swipe-overlay.dismissed {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.swipe-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.swipe-text {
    font-family: 'Nautica Rounded', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.swipe-indicator {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    animation: bounceUp 1.5s ease-in-out infinite;
}

.swipe-indicator svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounceUp {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-15px);
        opacity: 1;
    }
}


@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.main-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: transform, opacity;

    /* Window styling removed - invisible container */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.main-layout.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.immediate-fade {
    animation-delay: 0s !important;
}

.image-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.image-section img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.image-section img:hover {
    transform: scale(1.02);
}

.contact-ipod {
    max-height: 400px;
    width: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.contact-ipod:hover {
    transform: scale(1.05);
}

.text-section {
    flex: 1;
    text-align: left;
}

h1 {
    font-family: 'Nautica Rounded', sans-serif;
    font-size: 5rem;
    font-weight: normal;
    letter-spacing: 0.01em;
    margin: 0 0 40px 0;

    color: rgba(255, 255, 255, 0.75);

    mix-blend-mode: overlay;

    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);

    line-height: 1.1;
}

.text-section p {
    font-family: 'Nautica Rounded', sans-serif;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: -20px;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-notice {
    display: none;
    font-size: 1.3rem !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-top: -30px !important;
    margin-bottom: 30px !important;
    font-style: italic;
}


#typewriter::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.6rem;
    font-family: 'Nautica Rounded', sans-serif;
    font-style: italic;
    transition: all 0.2s ease;
    position: relative;
}

nav a:hover {
    color: #000;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding-bottom: 120px;
        padding-top: 80px;
    }

    .page-section {
        align-items: flex-start;
    }

    h1 {
        font-size: 3rem;
    }

    .mobile-notice {
        display: block !important;
    }

    .image-section img {
        max-height: 30vh;
    }

    .image-section {
        justify-content: center;
    }

    .text-section {
        text-align: center;
    }

    nav {
        justify-content: center;
    }

    /* Smaller dock on mobile */
    /* Smaller dock on mobile - Revert to 2D Glass */
    .dock-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 40px) !important;
        max-width: calc(100vw - 40px) !important;
        padding: 10px 15px !important;
        gap: 10px !important;
        bottom: 20px !important;
        border-radius: 20px !important;
        justify-content: space-around !important;

        /* Restore 2D Glass Background */
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(15px) saturate(120%) !important;
        -webkit-backdrop-filter: blur(15px) saturate(120%) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;

        /* Disable 3D */
        perspective: none !important;
        transform-style: flat !important;
    }

    /* Hide 3D Shelf parts on mobile */
    .dock-container::before,
    .dock-container::after {
        display: none !important;
    }

    .dock-item {
        width: 50px !important;
        height: 50px !important;
    }

    .dock-item:hover {
        transform: scale(1.2) translateY(-8px) !important;
    }

    .dock-separator {
        height: 32px !important;
    }

    /* Remove reflections on mobile */
    .dock-item img {
        -webkit-box-reflect: none !important;
    }

    /* Also ensure no reflection on individual icons */
    .dock-container .dock-item img {
        -webkit-box-reflect: none !important;
    }

    /* Reduce spacer before trash bin on mobile */
    #nav-dark {
        margin-left: 15px !important;
    }

    /* Shorter notes page on mobile */
    .notes-paper {
        height: 400px !important;
        max-height: 60vh !important;
    }

    .notes-content {
        padding: 20px 25px 30px 25px !important;
        font-size: 1.05rem !important;
        line-height: 26px !important;
    }

    .notes-footer {
        margin-top: 50px !important;
        font-size: 0.85rem !important;
    }
}

/* Tablet specific: restore desktop dock */
@media (min-width: 769px) and (max-width: 1024px) {
    .dock-container {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: none !important;
        padding: 10px 20px !important;
        gap: 8px !important;
        bottom: 20px !important;
        border-radius: 24px !important;
        justify-content: center !important;
    }

    .dock-item {
        width: 72px !important;
        height: 72px !important;
    }

    .dock-item:hover {
        transform: scale(1.5) translateY(-15px) !important;
    }

    .dock-separator {
        height: 40px !important;
    }
}


.dock-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 25px;
    /* Increased spacing */
    padding: 0 40px 15px 40px;

    /* Reset previous glass styles */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    border-radius: 0;

    z-index: 100;
    transition: all 0.3s ease;
    will-change: transform;

    /* 3D Perspective for the shelf */
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* The 3D Shelf Floor */
.dock-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 10%,
            rgba(255, 255, 255, 0.1) 100%);
    transform-origin: bottom center;
    transform: rotateX(50deg) scaleX(1.2);
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: -1;
    border-radius: 10px 10px 0 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* The Shelf Front Edge (Thickness) */
.dock-container::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: -20px;
    right: -20px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    transform: rotateX(50deg);
    z-index: -2;
    filter: blur(5px);
}

.dock-item {
    position: relative;
    width: 72px;
    height: 72px;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    will-change: transform;
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-fit: contain;
    transition: all 0.2s ease;
}

@media (min-width: 1025px) {
    .dock-item img {
        -webkit-box-reflect: below 2px linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
    }
}


.dock-item:hover {
    transform: scale(1.5) translateY(-15px);
}

#nav-guestbook img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}



.dock-item::after {
    content: attr(data-title);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Nautica Rounded', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.dock-item:hover::after {
    opacity: 1;
}

#nav-dark {
    margin-left: 40px;
    /* Spacer before trash bin */
}

#nav-dark:hover::after {
    animation: jitter 0.2s infinite;
}

@keyframes jitter {
    0% {
        transform: translateX(-50%) translate(0, 0);
    }

    25% {
        transform: translateX(-50%) translate(1px, 1px);
    }

    50% {
        transform: translateX(-50%) translate(-1px, -1px);
    }

    75% {
        transform: translateX(-50%) translate(1px, -1px);
    }

    100% {
        transform: translateX(-50%) translate(0, 0);
    }
}




#dock-hint {
    position: fixed;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);

    /* Aqua glass styling */
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);

    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    font-family: 'Nautica Rounded', sans-serif;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;

    box-shadow:
        0 1px 4px rgba(255, 255, 255, 0.2) inset,
        0 4px 15px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(74, 158, 255, 0.2);

    transition: opacity 0.5s ease;
    z-index: 90;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.dock-separator {
    display: none;
    /* Hide separator */
}



.scattered-icon {
    position: absolute;
    opacity: 0.6;
    filter: brightness(0.5);
    transition: transform 0.5s ease;
}

#noise-overlay {
    transition: opacity 1s ease;
}

.noise-light {
    opacity: 0.07 !important;
}

.noise-dark {
    opacity: 0.25 !important;
}

.noise-hidden {
    opacity: 0 !important;
}

#dark h1 {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    margin: 0;
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
}

.bin-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    text-align: center;
    white-space: nowrap;
    font-size: clamp(1.2rem, 5vw, 3rem);
}

.bin-text {
    font-family: 'Nautica Rounded', sans-serif;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    mix-blend-mode: overlay;
    display: inline-block;
    position: relative;
}

.hardhat-container {
    position: absolute;
    top: 0.1em;
    right: -1.2em;
    transform: translateY(-50%) rotate(20deg);
    z-index: 20;
    pointer-events: none;
}

.hardhat-image {
    width: 2.5em;
    height: auto;
    filter: drop-shadow(0 0.2em 0.4em rgba(0, 0, 0, 0.5));
}

#scattered-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}


.music-player {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.player-default {
    display: flex;
    align-items: center;
    gap: 12px;
}

.play-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    padding: 0;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

.play-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 0.5));
}

.play-btn svg {
    width: 100%;
    height: 100%;
}


.visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}

.bar {
    width: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    animation: visualize 1.2s ease-in-out infinite;
    transition: height 0.5s ease;
}


.visualizer.paused .bar {
    animation: none;
    height: 4px;
}

.bar:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 1.1s;
}

.bar:nth-child(2) {
    animation-delay: 0.15s;
    animation-duration: 1.3s;
}

.bar:nth-child(3) {
    animation-delay: 0.3s;
    animation-duration: 0.9s;
}

.bar:nth-child(4) {
    animation-delay: 0.45s;
    animation-duration: 1.4s;
}

.bar:nth-child(5) {
    animation-delay: 0.6s;
    animation-duration: 1.0s;
}

.bar:nth-child(6) {
    animation-delay: 0.75s;
    animation-duration: 1.2s;
}

.bar:nth-child(7) {
    animation-delay: 0.9s;
    animation-duration: 1.1s;
}

@keyframes visualize {
    0% {
        height: 4px;
    }

    25% {
        height: 14px;
    }

    50% {
        height: 8px;
    }

    75% {
        height: 18px;
    }

    100% {
        height: 4px;
    }
}

/* Dark Mode Music Player Styles */
.music-player-dark .play-btn {
    color: rgba(255, 255, 255, 0.6) !important;
}

.music-player-dark .bar {
    background: rgba(255, 255, 255, 0.6) !important;
}

#page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.is-safari #page-container {
    height: 100svh;
    height: -webkit-fill-available;
}

.is-safari .page-section {
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
}

#vertical-slider {
    width: 100vw;
    height: 100%;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother inertial feel */
    will-change: transform;
}

#slider {
    display: flex;
    width: 400vw;
    height: 100%;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    /* Smoother inertial feel */
    will-change: transform;
}

.page-section {
    width: 100vw;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: auto;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.page-section .main-layout {
    position: relative;
}

#active-dot {
    position: absolute;
    bottom: 5px;
    /* Sits on the shelf */
    left: 0;
    width: 4px;
    /* Smaller dot */
    height: 4px;
    /* Smaller dot */
    background: #FFFFFF;
    /* White Dot */
    border-radius: 50%;
    /* No glow/shadow as requested */
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.2s ease;
    opacity: 0;
    z-index: 101;
}

#active-dot.visible {
    opacity: 1;
}

.discord-link {
    font-family: 'GintoNordBold', sans-serif;
    font-size: 0.8em;
    color: white;
    background-color: #5865F2;
    border: 2px solid #5865F2;
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: transform 0.2s ease;
    z-index: 20;
    user-select: none;
    -webkit-user-select: none;
}

.discord-link:hover {
    transform: scale(1.05);
}

.discord-link:hover::after {
    content: '@bear.rus';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: black;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'SFT Sans', sans-serif;
    white-space: nowrap;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease forwards;
}

.discord-link:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: black transparent transparent transparent;
    margin-bottom: -4px;
    pointer-events: none;
    animation: fadeInTooltip 0.2s ease forwards;
}

#dark .main-layout {
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    /* Remove padding since no border */
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 100;
}

.social-item {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 4px rgba(255, 255, 255, 0.2) inset,
        0 4px 12px rgba(0, 0, 0, 0.15),
        0 2px 6px rgba(74, 158, 255, 0.15);
}

.social-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.social-item:hover {
    transform: scale(1.15) translateY(-2px);
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.2) 100%);
    box-shadow:
        0 2px 6px rgba(255, 255, 255, 0.3) inset,
        0 6px 20px rgba(0, 0, 0, 0.2),
        0 3px 10px rgba(74, 158, 255, 0.3);
}

/* Notes Overlay */
.notes-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 3000;
    pointer-events: none;
    transition: all 0.4s ease;
}

.notes-backdrop.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    pointer-events: auto;
}

.notes-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.notes-backdrop.active .notes-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.notes-paper {
    width: 600px;
    max-width: 90vw;
    height: 800px;
    max-height: 85vh;
    background: #FEF8DC;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}



.notes-lines {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(transparent,
            transparent 29px,
            #E8D7B5 29px,
            #E8D7B5 30px);
    pointer-events: none;
}

.notes-content {
    position: relative;
    padding: 40px 50px 50px 50px;
    font-family: 'Nautica Rounded', sans-serif;
    font-size: 1.4rem;
    line-height: 30px;
    color: #3C3C3C;
    height: 100%;
    overflow-y: auto;
}

.notes-content p {
    margin: 0;
    padding: 0;
}

.notes-footer {
    margin-top: 80px !important;
    text-align: center;
    font-size: 0.9rem !important;
    color: #3C3C3C !important;
    opacity: 0.6;
    padding-bottom: 20px;
}

.escape-key {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
}