*{
   margin: 0;
   padding: 0;
   font-family: sans-serif;
   letter-spacing: 1px;
   font-weight: 300;
}

body{
   overflow-x: hidden;
   background-color: white;
}

nav{
   height: 4.5rem;
   width: 100vw;
   background-color: #131418;
   box-shadow: none !important;
   display: flex;
   position: fixed;
   z-index: 9998;
   -webkit-transform: translateZ(0);
   border-bottom: none !important;
}

.logo{
   padding: 1vh 1vw;
   text-align: center;
   display: flex;
   align-items: center;
   gap: 0px;
}

/* Horizontal navigation styling */
.nav-links{
   display: flex;
   flex-direction: row;  /* Ensure horizontal alignment */
   list-style: none; 
   width: auto;  /* Changed from 88vw to auto */
   padding: 0 1vw;  /* Increased padding */
   justify-content: flex-end;  /* Align items to the right */
   align-items: center;
   text-transform: uppercase;
   margin-left: auto;  /* Push to the right */
   margin-right: 20px;  /* Add some margin from the right edge */
}

.nav-links li {
   margin: 0 8px;  /* Reduced from 15px to 8px to fit more items */
   white-space: nowrap;  /* Prevent text wrapping */
}

.nav-links li a{
   text-decoration: none;
   color: #f2f5f7;
   transition: color 0.3s ease;
   font-size: 0.9rem;  /* Slightly smaller font size */
   padding: 5px 8px;  /* Add some padding */
}

.nav-links li a:hover {
   color: #00FF00;
}

.nav-links li a.active {
   color: #00e400 !important; 
   font-weight: bold;
}

/* Hover state (only if not active) */
.nav-links li a:not(.active):hover {
   color: #00ff00;  /* Same green on hover */
   opacity: 0.8;  /* Slightly dimmed on hover */
}

.login-button{
   background-color: transparent;
   border: 1.5px solid #f2f5f7;
   border-radius: 2em;
   padding: 0.6rem 0.8rem;
   margin-left: 2vw;
   font-size: 1rem;
   cursor: pointer;
   color: #00ff00;  /* Keeping consistent */
}

.login-button:hover {
   color: #00ff00;
   opacity: 0.8;
}

.hamburger {
   display: none;
   cursor: pointer;
   margin-right: 20px;
}

.hamburger div {
   width: 25px;
   height: 3px;
   background-color: #f2f5f7;
   margin: 5px;
   transition: all 0.3s ease;
}

/* Mobile styles - expanded breakpoints for better Android coverage */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9999;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 6rem;
        height: calc(100vh - 6rem);
        background: #131418;
        flex-direction: column;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding: 20px 0;
        justify-content: flex-start;
        align-items: center;
        z-index: 99999;  /* Highest z-index */
    }

    .nav-links.open {
        transform: translateX(0%);
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links li {
        opacity: 0;
        margin: 8px 0;
        padding-top: 20px;
    }

    .nav-links li:first-child {
        margin-top: 30px;
    }

    /* Animation for menu items */
    .nav-links li.fade {
        opacity: 1;
    }

    /* Hamburger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Mobile header adjustments */
    .playlist-table thead th {
        padding: 8px 2px;
        font-size: 10px;
        white-space: normal;
        overflow: hidden;
        max-height: 2.4em;
        line-height: 1.2;
        word-break: normal;
        hyphens: none;
    }

    /* Specific handling for "DONATION" column */
    .playlist-table th:first-child,
    .playlist-table td:first-child {
        min-width: 70px;  /* Increased from 25px */
        width: 70px;     /* Increased from 25px */
        word-spacing: 100vw;
        text-align: center;
    }

    /* Specific handling for "Pixel Location" */
    .playlist-table thead th:nth-child(4) {
        word-spacing: 100vw;
    }

    /* Specific handling for "Date Added" */
    .playlist-table thead th:nth-child(5) {
        word-spacing: 100vw;
    }

    /* Specific handling for "Social Media" */
    .playlist-table thead th:nth-child() {
        word-spacing: 100vw;
    }

    .nav-logo-image {
        height: 35px;
        margin-left: -3px;
    }

    .claim-pixel-fixed {
        bottom: 18px !important;  /* Original 20px + 2px */
        right: 20px !important;
    }
}

/* Base canvas container styles for index.html */
.canvas-container {
    position: fixed;
    top: 8rem;
    left: 2rem;
    right: 2rem;
    bottom: 3rem;  /* Space for scroll instruction */
    overflow: scroll;
    background-color: black;
    z-index: 1;
}

/* Scroll instruction text */
.scroll-instruction {
    position: fixed;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: #888;
    font-style: italic;
    font-size: 14px;
    padding: 10px;
    z-index: 1001;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Show scrollbars on desktop (any window size) */
@media (hover: hover) {
    .canvas-container::-webkit-scrollbar {
        width: 12px;
        height: 12px;
        display: block !important;  /* Force display */
    }
    
    .canvas-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 6px;
    }
    
    .canvas-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 6px;
        border: 3px solid #f1f1f1;
    }
    
    .canvas-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
    .canvas-container::-webkit-scrollbar-corner {
        background: #f1f1f1;
    }
}

/* Hide scrollbars only on touch devices */
@media (hover: none) and (pointer: coarse) {
    .canvas-container {
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .canvas-container::-webkit-scrollbar {
        display: none;
    }
}

#virtual-grid {
    width: 20000px;
    height: 20000px;
    display: grid;
    grid-template-columns: repeat(1000, 20px);
    grid-template-rows: repeat(1000, 20px);
    background-image: 
        linear-gradient(to right, #333 1px, transparent 1px),
        linear-gradient(to bottom, #333 1px, transparent 1px);
    background-size: 20px 20px;
}

.selected-cell {
    position: absolute;
    width: 19px;
    height: 19px;
    background-color: gray;
    pointer-events: none;
}

/* Optimize scrolling performance */
.virtual-grid {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

canvas {
    background-color: white;
    display: block;
    margin: 0 auto;
    transform-origin: 0 0;
    will-change: transform;
}

/* Add a fixed black bar at the top */
.top-padding {
    height: 60px;  /* Reduce from default value */
}

/* Add this to your existing styles */
.left-padding {
    position: fixed;
    top: 0;
    left: 0;
    width: 1rem;  /* Match your nav's left padding */
    height: 100vh;
    background-color: white;
    z-index: 5;  /* Lower than nav and content */
}

/* Add margin to your main content to prevent overlap */
main {
    margin-left: 2rem;  /* Match padding width */
}

/* Add this alongside your existing left-padding styles */
.right-padding {
    position: fixed;
    top: 0;
    right: 0;
    width: 1rem;  /* Match your nav's padding */
    height: 100vh;
    background-color: white;
    z-index: 5;  /* Same as left padding */
}

/* Add this alongside your existing padding styles */
.bottom-padding {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2rem;  /* Match nav's padding */
    background-color: white;
    z-index: 5;  /* Same as other padding */
}

/* Style scrollbars for mobile */
.canvas-container::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
}

.canvas-container::-webkit-scrollbar-track {
    background: black;
}

.canvas-container::-webkit-scrollbar-thumb {
    background-color: white;  /* Changed from #333 to white */
    border: 4px solid black;
    border-radius: 8px;
}

.canvas-container::-webkit-scrollbar-corner {
    background-color: black;
}

/* Base tagline style */
.tagline {
    color: #61DAFB;
    font-style: italic;
}

/* Smaller desktop adjustments */
@media screen and (max-width: 1200px) {
    .tagline {
        font-size: 14px;  /* Reduce from default */
    }
}

@media screen and (max-width: 1000px) {
    .tagline {
        font-size: 12px;  /* Even smaller */
    }
}

@media screen and (max-width: 900px) {
    .tagline {
        font-size: 10px;  /* Smallest for desktop */
    }
}

@media screen and (max-width: 428px) {
    .tagline {
        font-size: 10px;
        letter-spacing: -0.2px;
        white-space: nowrap;
        margin-left: -8px;  /* Move text slightly left on mobile */
    }
}

@media screen and (max-width: 375px) {
    .tagline {
        font-size: 9px;
        margin-left: -12px;  /* Move even more left for smaller screens */
    }
}

/* Ensure all other elements stay below */
.canvas-container, #boxNumber, .top-padding, .left-padding, .right-padding, .bottom-padding {
    z-index: 1;
}

/* First set of controls - moved down */
.player-controls {
    position: fixed;
    top: calc(6.0rem + 18px);  /* Moved down 18px */
    left: 0;
    right: 0;
    padding: 20px;
    background-color: white;
    border-bottom: 1px solid white;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.controls-container {
    position: fixed !important;
    top: calc(6.0rem + 150px);
    left: 0;
    right: 25px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    background: transparent;
}

.control-button {
    background: #131418;
    color: white;
    border: 2px solid #61DAFB;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.control-button:active {
    transform: scale(0.95);
}

.control-button:hover {
    background: #00FF00;
    color: #131418;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,255,0,0.2);
}



/* First Playlist Container */
.playlist-container {
    position: fixed;
    top: calc(6.0rem + 180px);
    left: 0;
    right: 0;
    overflow-y: auto;
    z-index: 100;
    background-color: white;
    -webkit-overflow-scrolling: touch;
}

.playlist-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 60px;  /* Add space at bottom of table */
}

.playlist-table td {
    padding: 8px;
    line-height: 1.4;  /* Adjust line height for better readability */
}

/* Base table styles */
.playlist-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    min-width: auto;
}

/* Common styles for all cells */
.playlist-table th,
.playlist-table td {
    height: 50px;
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
}

/* Desktop column widths */
@media screen and (min-width: 769px) {
    .playlist-table th,
    .playlist-table td {
        width: 16.66%;  /* Equal width for 6 columns */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .playlist-table th:first-child,
    .playlist-table td:first-child {  /* # column */
        width: 8%;
    }

    .playlist-table th:nth-child(5),
    .playlist-table td:nth-child(5) {  /* Date Added column */
        width: 15%;
    }
}

.playlist-table thead {
    background-color: #f5f5f7;
    position: sticky;
    top: 0;
}

/* Base header styles */
.playlist-table thead th {
    height: 50px;
    text-align: center;
    vertical-align: middle;
    padding: 8px 4px;
    background-color: #f0f0f0;
    border-right: 2px solid white;
    position: relative;
}

.playlist-table th {
    padding: 15px;
    text-align: center;  /* Center the headers */
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
    word-break: normal;  /* Changed from word-wrap */
    white-space: normal;  /* Allow natural wrapping */
    hyphens: none;  /* Prevent hyphenation */
}

.playlist-table td {
    padding: 15px 5px;  /* Reduced horizontal padding */
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.playlist-table tbody tr:hover {
    background-color: #f8f8f8;
    cursor: pointer;
}

/* Adjust scrollbar styling */
.playlist-container::-webkit-scrollbar {
    width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.playlist-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.playlist-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Social Media Icons Styling */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    margin: 0 auto;
}

/* Base icon sizing */
.social-icon {
    width: 38px;
    height: 28px;
}

/* Larger icons for bigger screens */
@media screen and (min-width: 1024px) {
    .social-icon {
        width: 32px;
        height: 32px;
    }
}

@media screen and (min-width: 1440px) {
    .social-icon {
        width: 42px;
        height: 42px;
    }
}

/* Keep mobile size */
@media screen and (max-width: 768px) {
    .social-icon {
        width: 25px;
        height: 25px;
    }
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Updated TikTok hover effect */
.social-icon.tiktok:hover {
    fill: #131418;  /* Keep the icon visible */
    filter: drop-shadow(-2px 0 1px #EE1D52) 
           drop-shadow(2px 0 1px #69C9D0);
}

.social-icon.twitter:hover {
    fill: #1DA1F2;
}

.social-icon.instagram:hover {
    fill: #E4405F;
}

#boxNumber {
    position: fixed;
    top: 95px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
    font-size: 14px;
}

body::before {
    content: '';
    position: fixed;
    top: 6.0rem;
    left: 0;
    right: 0;
    height: 70px;
    background-color: white;  /* Restored background */
    z-index: 100;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .playlist-container {
        width: 100%;
        overflow-x: hidden;
    }
    
    .playlist-table {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .playlist-table th,
    .playlist-table td {
        padding: 8px 1px;
        font-size: 10px;
        white-space: normal;  /* Allow text wrapping */
        word-wrap: break-word;  /* Break long words if needed */
        overflow-wrap: break-word;
        height: auto;  /* Allow height to adjust for wrapped content */
        min-height: 50px;  /* Maintain minimum height */
    }
    
    .social-links {
        gap: 4px;
        padding: 0;
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    .social-icon {
        width: 14px;
        height: 14px;
    }

    /* Mobile header adjustments */
    .playlist-table thead th {
        padding: 8px 2px;
        font-size: 10px;
        white-space: normal;
        overflow: hidden;
        max-height: 2.4em;
        line-height: 1.2;
        word-break: normal;
        hyphens: none;
    }

    /* Specific handling for "DONATION" column */
    .playlist-table th:first-child,
    .playlist-table td:first-child {
        min-width: 62px;  /* Increased from 25px */
        width: 62px;     /* Increased from 25px */
        word-spacing: 100vw;
        text-align: center;
    }

    /* Specific handling for "Pixel Location" */
    .playlist-table thead th:nth-child(4) {
        min-width: px; 
        width: 70px; 
        word-spacing: 100vw;
    }

    /* Specific handling for "Date Added" */
    .playlist-table thead th:nth-child(5) {
        word-spacing: 100vw;
    }

    /* Specific handling for "Social Media" */
    .playlist-table thead th:nth-child() {
        word-spacing: 100vw;
    }
}

/* Override for about.html and other pages */
body:not(.songs-page)::before {
    content: none;
}

.controls-container-2 {
    position: fixed;
    top: calc(6.0rem + 375px);
    right: 50px;
    display: flex;
    gap: 20px;
    z-index: 101;
}

/* For index page only */
.index-page {
    background-color: black;
}

.index-page .left-padding,
.index-page .right-padding,
.index-page .bottom-padding,
.index-page .top-padding {
    background-color: black;
}

.index-page nav {
    background-color: #131418;  /* Keep nav dark but not pure black */
}

.index-page body::before {
    background-color: black;
}

.index-page .canvas-container {
    background-color: black;
}

.index-page .canvas-container::-webkit-scrollbar {
    background-color: black;
}

.index-page .canvas-container::-webkit-scrollbar-track {
    background: black;
}

.index-page .canvas-container::-webkit-scrollbar-corner {
    background-color: black;
}

/* For index and about pages */
.index-page,
.about-page {
    background-color: black;
}

.index-page .left-padding,
.index-page .right-padding,
.index-page .bottom-padding,
.index-page .top-padding,
.about-page .left-padding,
.about-page .right-padding,
.about-page .bottom-padding,
.about-page .top-padding {
    background-color: black;
}

.index-page nav,
.about-page nav {
    background-color: #131418;  /* Keep nav dark but not pure black */
}

.index-page body::before,
.about-page body::before {
    background-color: black;
}

.index-page .canvas-container,
.about-page .canvas-container {
    background-color: black;
}

.index-page .canvas-container::-webkit-scrollbar,
.about-page .canvas-container::-webkit-scrollbar {
    background-color: black;
}

.index-page .canvas-container::-webkit-scrollbar-track,
.about-page .canvas-container::-webkit-scrollbar-track {
    background: black;
}

.index-page .canvas-container::-webkit-scrollbar-corner,
.about-page .canvas-container::-webkit-scrollbar-corner {
    background-color: black;
}

/* Add iPad-specific adjustments */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px) {
    .canvas-container {
        right: 2.5rem;
        bottom: 2.5rem;
        left: 2.5rem;
    }
}

.tab-container {
    position: fixed;
    top: calc(6.0rem + 20px);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    background: white;
    padding: 10px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #131418;
    color: white;
    cursor: pointer;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tab-button:hover {
    background: #00FF00;
    color: #131418;
    transform: translateY(-2px);
}

.tab-button.active {
    background: #00FF00;
    color: #131418;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

@media screen and (max-width: 768px) {
    .tab-button {
        padding: 8px 16px;
        font-size: 20px;  /* Adjusted for mobile */
    }
}

/* Color cycling table lines effect for Top Tracks */
@keyframes colorCycle {
    0% { border-color: #ff00cc; }  /* Red */
    20% { border-color: #ff6f00; }  /* Orange */
    40% { border-color: #fff700; }  /* Yellow */
    60% { border-color: #00ff00; }  /* Green */
    80% { border-color: #00ffea; }  /* Cyan */
    100% { border-color: #dd00ff; }  /* Back to Red */
}

#highlighted .playlist-table {
    border-collapse: collapse;
}

/* Apply animation to the entire table to keep colors in sync */
#highlighted .playlist-table,
#highlighted .playlist-table th {
    border-bottom: 3px solid;
    border-top: 3px solid;
    animation: colorCycle 10s infinite linear;
}

/* Mobile optimization */
@media screen and (max-width: 768px) {
    #highlighted .playlist-table,
    #highlighted .playlist-table th {
        border-bottom: 3px solid;
        border-top: 3px solid;
        animation: colorCycle 10s infinite linear;  /* Slightly faster on mobile */
    }

    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: backgroundColorCycle 10s infinite linear;
    opacity: 0.25;  /* Standardized muted opacity */
}

#highlighted .playlist-table thead::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: backgroundColorCycle 10s infinite linear;
}

/* Add subtle color cycling to rows with consistent opacity */
#highlighted .playlist-table tbody tr {
    position: relative;
}

#highlighted .playlist-table tbody tr::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    animation: backgroundColorCycle 10s infinite linear;
    opacity: 0.25;  /* Standardized muted opacity */
}

@keyframes backgroundColorCycle {
    0% { background: #ff00cc; }
    20% { background: #ff6f00; }
    40% { background: #fff700; }
    60% { background: #00ff00; }
    80% { background: #00ffea; }
    100% { background: #dd00ff; }
}

/* Mobile and iPad fixes */
@media screen and (max-width: 1024px) {
    #highlighted .playlist-container {
        height: calc(100vh - 250px);
    }
    
    #highlighted .playlist-table tbody tr {
        background: transparent;
    }
    
    #highlighted .playlist-table tbody {
        background: transparent;
    }
    
    #highlighted .playlist-table td {
        position: relative;
        z-index: 1;
        background: transparent;
    }
}

/* Container styling */
#highlighted .playlist-container {
    max-height: 70vh;
    overflow-y: auto;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* Table base styling */
#highlighted .playlist-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

/* Universal sticky header styling for all devices */
#highlighted .playlist-table th {
    background: white;  /* Or your desired background color */
    position: -webkit-sticky;  /* For Safari */
    position: sticky;
    top: 0;
    z-index: 4;
}

/* Keep header styling consistent across devices */
#highlighted .playlist-table thead {
    position: relative;
    z-index: 4;
}

/* Keep content below header */
#highlighted .playlist-table tbody {
    position: relative;
    z-index: 1;
}

/* Ensure consistent behavior across all screen sizes */
@media screen and (max-width: 1024px) {
    #highlighted .playlist-container {
        height: calc(100vh - 250px);
    }
}

@media screen and (min-width: 1025px) {
    #highlighted .playlist-container {
        height: calc(100vh - 300px);  /* Adjust this value as needed */
    }
}

/* Main container */
#highlighted {
    position: relative;
    padding-top: 0px;
}

/* Table container with device-specific adjustments */
#highlighted .playlist-container {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    margin-bottom: 20px;
    backface-visibility: hidden;  /* Additional stabilization */
    will-change: transform;  /* Optimize for animations */
}

/* Desktop sizing */
@media screen and (min-width: 1025px) {
    #highlighted .playlist-container {
        height: calc(100vh - 360px);
    }
}

/* Tablet sizing */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    #highlighted .playlist-container {
        height: calc(100vh - 330px);
    }
}

/* Mobile sizing */
@media screen and (max-width: 767px) {
    #highlighted .playlist-container {
        height: calc(100vh - 310px);
    }
}

/* Table styling */
#highlighted .playlist-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
}

/* Keep your existing styles and add these */
#highlighted .playlist-table {
    position: relative;
}

#highlighted .playlist-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: inherit;
}

#highlighted .playlist-table thead tr {
    position: relative;
    z-index: 101;
}

#highlighted .playlist-container {
    position: relative;
    overflow-y: auto;
    background: white;
}

/* Ensure scrollbar doesn't overlap */
#highlighted .playlist-container::-webkit-scrollbar {
    width: 8px;
    z-index: 1;
}

/* Fix All Tracks overlap with buttons */
#songlist {
    position: relative;
    padding-top: 0px;
}

#songlist .playlist-container {
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    margin-bottom: 100px;  /* Increased margin to prevent button overlap */
}

/* Desktop sizing */
@media screen and (min-width: 1025px) {
    #songlist .playlist-container {
        height: calc(100vh - 360px);
    }
}

/* Mobile sizing */
@media screen and (max-width: 1024px) {
    #songlist .playlist-container {
        height: calc(100vh - 310px);
        margin-bottom: 120px;  /* Increased margin for mobile */
    }
}

/* Hover highlight for Top Tracks only */
#highlighted .playlist-table tbody tr:hover {
    background-color: rgb(255, 255, 255);  /* Light green with transparency */
    cursor: pointer;
}

/* Style for no social media indicator */
#songlist .playlist-table tr:nth-child(n+5) td:last-child {
    font-size: 15px;  /* Increase size of the ⛔ symbol */
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    #highlighted .playlist-container {
        position: relative !important;
        height: calc(100vh - 310px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 100px;
        z-index: 1;  /* Ensure container is above background */
    }

    #highlighted .playlist-table {
        width: 100%;
        position: relative;
        z-index: 2;  /* Ensure table is above container */
        background: white;
    }

    #highlighted .playlist-table tbody {
        position: relative;
        z-index: 3;  /* Ensure tbody is visible */
        background: white;
    }

    #highlighted .playlist-table tr {
        position: relative;
        z-index: 4;  /* Ensure rows are visible */
        background: white;
    }

    #highlighted .playlist-table td {
        position: relative;
        z-index: 5;  /* Ensure cells are visible */
        background: white;
    }

    /* Keep header on top */
    #highlighted .playlist-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background: white;
    }
}

/* Preserve existing iOS table fixes */
@supports (-webkit-touch-callout: none) {
    #highlighted .playlist-table thead {
        position: sticky;
        top: 0;
        z-index: 10;
        background: white;
    }

    #highlighted .playlist-table thead::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -2;
        animation: backgroundColorCycle 10s infinite linear;
        opacity: 0.25;
    }

    #highlighted .playlist-table {
        position: relative;
        z-index: 1;
        background: white;
    }

    #highlighted .playlist-table tbody {
        position: relative;
        z-index: 2;
        background: white;
    }

    #highlighted .playlist-table tr {
        position: relative;
        z-index: 3;
        background: white;
    }
}

/* Add Modal Styles with specific selectors */
#pixelModal.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
}

#pixelModal .modal-content {
    position: relative;
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#pixelModal .close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

#pixelModal .spotify-search {
    position: relative;
    width: calc(100% - 20px);  /* Account for modal padding */
    margin: 0 auto;
    padding-top: 10px;
    box-sizing: border-box;
}

#pixelModal .spotify-search input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

#pixelModal .search-results {
    position: absolute !important;
    background: white !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: 100% !important;  /* Match parent width */
    left: 0;
    right: 0;
}

#pixelModal .addon-options {
    margin: 20px 0;
}

#pixelModal .addon-options label {
    display: block;
    margin: 10px 0;
}

#pixelModal #socialMediaInputs {
    margin-top: 10px;
}

#pixelModal #socialMediaInputs input {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#pixelModal .price-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

#pixelModal .selected-song {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#pixelModal #paypal-button-container {
    margin: 20px 0;
    text-align: center;
    min-height: 40px;
}

#pixelModal #googlepay-button-container {
    margin: 20px 0;
    text-align: center;
    min-height: 40px;
}

/* Ensure payment buttons are properly sized and centered */
#pixelModal #paypal-button-container > div,
#pixelModal #googlepay-button-container > div {
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Force Google Pay button to match PayPal button size */
#pixelModal #googlepay-button-container button {
    width: 100% !important;
    max-width: 400px !important;
    height: 40px !important;
    min-height: 40px !important;
}

/* Ensure Google Pay button container matches PayPal */
#pixelModal #googlepay-button-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Force Google Pay button to match PayPal button size */
#pixelModal #googlepay-button-container button {
    width: 100% !important;
    max-width: 400px !important;
    height: 40px !important;
    min-height: 40px !important;
}

/* Ensure Google Pay button container matches PayPal */
#pixelModal #googlepay-button-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

#pixelModal #googlepay-button-container:empty::after {
    content: "Google Pay will appear here if available";
    color: #888;
    font-style: italic;
    font-size: 14px;
}

/* Make sure modal is above everything */
#pixelModal {
    z-index: 9999 !important;
}

.claim-pixel-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 3000;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 5px;
    background: #222;
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}

#pixelModal .addon-option-container {
    margin-bottom: 15px;
}

#pixelModal .addon-label {
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

#pixelModal .top-tracks-description {
    margin-left: 25px;
    margin-top: 5px;
    font-size: 12px;
    font-style: italic;
    color: #666;
}

#pixelModal .top-tracks-description ul {
    margin: 0;
    padding-left: 15px;
    list-style-type: none;
}

#pixelModal .top-tracks-description li {
    margin: 3px 0;
    line-height: 1.3;
}

@keyframes rainbowBackground {
    0% { background: rgba(255, 0, 0, 0.1); }
    17% { background: rgba(255, 128, 0, 0.1); }
    33% { background: rgba(255, 255, 0, 0.1); }
    50% { background: rgba(0, 255, 0, 0.1); }
    67% { background: rgba(0, 0, 255, 0.1); }
    83% { background: rgba(128, 0, 255, 0.1); }
    100% { background: rgba(255, 0, 0, 0.1); }
}

@keyframes glowingBorder {
    0% { box-shadow: 0 0 5px #ff0000; border-color: #ff0000; }
    17% { box-shadow: 0 0 5px #ff8000; border-color: #ff8000; }
    33% { box-shadow: 0 0 5px #ffff00; border-color: #ffff00; }
    50% { box-shadow: 0 0 5px #00ff00; border-color: #00ff00; }
    67% { box-shadow: 0 0 5px #0000ff; border-color: #0000ff; }
    83% { box-shadow: 0 0 5px #8000ff; border-color: #8000ff; }
    100% { box-shadow: 0 0 5px #ff0000; border-color: #ff0000; }
}

#pixelModal .price-summary {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#pixelModal .price-summary.rainbow {
    animation: 
        rainbowBackground 10s linear infinite,
        glowingBorder 10s linear infinite;
}

/* Style for the donation column */
.playlist-table td:first-child,
.playlist-table th:first-child {
    text-align: center;  /* Keep donation amounts centered */
    padding: 15px 5px;
}

/* Add a $ symbol before donation amounts */
.playlist-table td:first-child:not(:empty):not([data-value="-"]):before {
    content: "$";
    margin-right: 1px;
}

#pixelModal .donation-container {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

#pixelModal .donation-input-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 5px;
    margin-left: 25px;
}

#pixelModal .donation-input-wrapper::before {
    content: '$';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

#pixelModal .donation-input {
    width: 200px;
    padding: 8px 8px 8px 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

#pixelModal .donation-input:focus {
    outline: none;
    border-color: #00FF00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* Remove the $ from social media column */
.social-links:before {
    content: none !important;
}

/* Song Search Results Styling */
.search-results {
    position: absolute !important;
    background: white !important;
    z-index: 9999 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    width: 100% !important;  /* Match parent width */
    left: 0;
    right: 0;
    max-height: 250px !important;  /* Add max height */
    overflow-y: auto !important;   /* Add scroll */
}

.search-result-item {
    position: relative;
    z-index: 9999 !important;
    background: white;
    width: 100%;
}

.search-result-item:hover {
    background-color: #f8f8f8;
}

.search-result-item:last-child {
    border-bottom: none;
}

.song-thumbnail {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 4px;
}

.song-info {
    flex-grow: 1;
}

.song-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 0.9em;
    color: #666;
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Standardize emoji size in social media column */
.playlist-table td:last-child {
    font-size: 16px;  /* Standardize font size */
    line-height: 1;   /* Ensure consistent line height */
    vertical-align: middle;
}

/* Ensure emoji is centered in the cell */
.playlist-table td:last-child:not(.social-links) {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* iPad-specific styles */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .playlist-table th:first-child,
    .playlist-table td:first-child {
        min-width: 100px;  /* Specific width for iPad */
        width: 100px;
        word-spacing: 100vw;
        text-align: center;
    }
}

@media screen and (min-device-width: 481px) and (max-device-width: 1024px) {
    body {
        min-width: 320px;
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: none;
    }
}

/* --- Fallback for devices that do not support CSS Grid --- 
     This feature query applies only when CSS Grid isn't supported.
     It forces #virtual-grid to display as block and sets its children to float,
     preserving cell size and clickability. */
@supports not (display: grid) {
  #virtual-grid {
    display: block;
    width: 20000px;
    height: 20000px;
    background-image: 
      linear-gradient(to right, #333 1px, transparent 1px),
      linear-gradient(to bottom, #333 1px, transparent 1px);
    background-size: 20px 20px;
  }
  #virtual-grid > * {
    float: left;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
  }
}

/* About Page Container Styles */
.about-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    margin-top: 10px;  /* Add small top margin if needed */
}

.about-article-container {
    padding: 20px;
}

.about-article {
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 10px 0 40px 0;  /* Reduce top padding to 10px */
    margin-bottom: 40px;
    background-color: transparent;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #228B22;  /* Forest Green */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hero-section h1:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.hero-image-placeholder {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    border-radius: 15px;
    margin: 30px 0;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
    padding: 0 20px;
}

.stat-card {
    background: #555;  /* Dark gray background */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    color: white;  /* White text */
    font-size: 3rem;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    color: white;  /* White text */
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.stat-impact {
    display: block;
    font-size: 0.9rem;
    color: #34D399;  /* Keep the green color */
    margin-top: 5px;
    font-weight: 500;
}

/* Article Sections */
.article-section {
    margin: 60px 0;
    padding: 0 20px;
}

.article-section h2 {
    font-size: 2rem;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
}

/* Info Card */
.info-card {
    background: linear-gradient(145deg, #ffffff, #f0f9f0);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin: 30px 0;
}

.info-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.info-card p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.step h3 {
    color: #2c5282;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.5;
    font-family: sans-serif;
    letter-spacing: 1px;
    font-weight: 300;
}

/* Impact Cards */
.impact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.impact-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: #2c5282;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-content p {
    color: #666;
    line-height: 1.5;
}

/* Join Section */
.join-section {
    margin: 60px 0;
    padding: 0 20px;
}

.join-card {
    background: linear-gradient(145deg, #2c5282, #4299e1);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.join-card h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;  /* Increased top margin */
}

.cta-button {
    /* Keep existing button styles */
    display: inline-block;
    background: #07f061;
    color: #131418;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #06d054;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(7, 240, 97, 0.3);
}

.learn-more-button {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;  /* Keep text on one line */
}

.learn-more-button:hover {
    color: #00ff00;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .stats-section,
    .process-steps,
    .impact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-placeholder {
        height: 250px;
    }

    .article-section {
        margin: 40px 0;
    }

    .stat-card,
    .step,
    .impact-card {
        padding: 20px;
    }
}

#pixelModal .pixel-selection {
    margin: 10px 0;  /* Reduced from 15px */
    padding: 5px 0;  /* Reduced from 10px */
    border-top: 1px solid #eee;
}

#pixelModal .pixel-selection label {
    display: block;
    margin-bottom: 5px;  /* Reduced from 10px */
}

#pixelModal .pixel-input-wrapper {
    margin-top: 5px;  /* Reduced from 10px */
    margin-left: 25px;
}

#pixelModal .pixel-input {
    width: calc(100% - 25px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 0px 0;  /* Reduced from 5px */
}

#pixelModal small {
    display: block;
    margin-left: 25px;
    margin-bottom: 5px;  /* Added to control bottom spacing */
    color: #666;
    font-style: italic;
    font-size: 11px;  /* Slightly smaller text */
}

/* Adjust spacing for the next section */
#pixelModal .donation-container {
    margin-top: 10px;
}

#pixelModal .pixel-status {
    font-size: 11px;
    margin-top: 3px;
    margin-bottom: 3px;
    color: #666;
}

#pixelModal .pixel-unavailable {
    color: #ff0000;
    font-size: 11px;
}

#pixelModal .pixel-available {
    color: #00aa00;
    font-size: 11px;
}

#pixelModal .pixel-song-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}

#pixelModal .pixel-song-search-wrapper {
    position: relative;
    width: 100%;  /* Ensure full width */
}

#pixelModal .pixel-song-search-container {
    position: relative;
    flex-grow: 1;
}

#pixelModal .pixel-song-preview {
    margin-top: 10px;
}

#pixelModal .pixel-song-preview iframe {
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Update the nav logo image styles */
.nav-logo-image {
    height: 45px;  /* Increased from 30px */
    width: auto;
    margin-left: -5px;  /* Changed from 10px to move it left */
    margin-top: 8Ypx;
    position: relative;  /* Added to help with positioning */
}

/* Update the "World's LARGEST Playlist" positioning */
nav div[style*="color: #FFFFFF"] {
    color: #FFFFFF;
    font-style: italic;
    font-size: 10px;
    position: absolute;
    left: 25px;
    bottom: 45px;  /* Adjusted from 70px to reduce gap */
}

/* Keep existing logo styles */
.rainbow-text {
    background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 20px;
    margin-top: 8px;
}

.plant-container {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.hydroponic-image {
    width: 400px;
    height: auto;
    object-fit: contain;
}

.plant-image {
    position: absolute;
    top: 48%;
    left: 51%;
    transform: translate(-50%, -40%);
    width: 150px;
    height: auto;
    transform-origin: center bottom;
    cursor: pointer;
}

/* Two complete sway cycles before stopping */
@keyframes sway {
    0% { 
        transform: translate(-50%, -40%) rotate(0deg);
        filter: brightness(1);
    }
    25% {
        transform: translate(-50%, -40%) rotate(8deg);
        filter: brightness(1.05);
    }
    50% {
        transform: translate(-50%, -40%) rotate(-8deg);
        filter: brightness(1.05);
    }
    75% {
        transform: translate(-50%, -40%) rotate(8deg);
        filter: brightness(1.05);
    }
    90% {
        transform: translate(-50%, -40%) rotate(-8deg);
        filter: brightness(1.05);
    }
    100% { 
        transform: translate(-50%, -40%) rotate(0deg);
        filter: brightness(1);
    }
}

.plant-image:hover {
    animation: sway 2.5s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

/* New emotional connection styles */
.impact-statement {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
    font-style: italic;
}

.vision-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('farm-background.jpg');
    background-size: cover;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin: 40px 0;
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
}

.partner-link {
    color: #07f061;  /* Match the new green */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.partner-link:hover {
    color: #07f061;  /* Slightly darker on hover */
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.3);
}

.journey-section {
    width: 100%;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.journey-section h2 {
    font-size: 2.5rem;  /* Larger font size */
    font-weight: bold;  /* Make it bold */
    color: #333;
    margin-bottom: 50px;  /* More space before the buttons */
    text-align: center;
    letter-spacing: 1.2px;
}

.journey-timeline {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.journey-step {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background: white;  /* Changed from #131418 to white */
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.1);  /* Subtle border */
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: #333;  /* Changed to dark text */
}

.journey-step h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;  /* Changed to dark text */
    font-family: sans-serif;
    letter-spacing: 1px;
    font-weight: 300;
}

.journey-step p {
    font-size: 1.3rem;
    color: #666;  /* Changed to medium gray text */
    line-height: 1.5;
    font-family: sans-serif;
    letter-spacing: 1px;
    font-weight: 300;
}

.journey-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .journey-timeline {
        flex-direction: column;
        width: 100%;
        gap: 20px;
        padding: 0 10px;
    }

    .journey-step {
        width: 90%;
        max-width: none;
    }
}

/* Responsive styles for journey section */
@media (max-width: 1200px) {
    .journey-timeline {
        gap: 20px;
        padding: 0 15px;
    }

    .journey-step {
        min-width: 220px;  /* Slightly smaller minimum width */
        padding: 25px 15px;
    }

    .journey-step h3 {
        font-size: 1.6rem;
    }

    .step-icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .journey-timeline {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .journey-step {
        width: 80%;
        max-width: 400px;
        min-height: auto;
        padding: 30px 20px;
    }

    .journey-step h3 {
        font-size: 1.8rem;
    }

    .step-icon {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .journey-step {
        width: 90%;
        padding: 25px 15px;
    }

    .journey-step h3 {
        font-size: 1.6rem;
    }

    .step-icon {
        font-size: 3.5rem;
    }

    .journey-step p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .journey-step {
        width: 95%;
        padding: 20px 15px;
    }

    .journey-step h3 {
        font-size: 1.4rem;
    }

    .step-icon {
        font-size: 3rem;
    }

    .journey-step p {
        font-size: 1rem;
    }
}

/* Handle window resizing */
@media (min-width: 993px) {
    .journey-timeline {
        display: flex;
        justify-content: center;
        gap: calc(2vw + 10px);  /* Dynamic gap based on viewport width */
    }

    .journey-step {
        flex: 1;
        min-width: 0;  /* Allow shrinking below min-width */
        max-width: calc(33.33% - 20px);  /* Maintain proportions */
    }
}

/* Ensure consistent color */
.stat-card .stat-impact {
    color: #07f061;  /* Same new green */
}

/* Impact Page Specific Styles */
body.impact-page {
    background-color: #131418;
    color: white;
}

.impact-page nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 6.0rem;
    background-color: #131418;
    z-index: 9998;
}

.impact-page .left-padding,
.impact-page .right-padding,
.impact-page .bottom-padding,
.impact-page .top-padding {
    background-color: #131418;
    position: fixed;
    z-index: 9997;
}

.impact-page .impact-container {
    position: relative;
    z-index: 1;
    padding-top: 6rem;
}

/* Hero Section */
body.impact-page .impact-hero {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

body.impact-page .impact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: bold;
}

body.impact-page .impact-hero .hero-subtitle {
    font-size: 1.8rem;
    color: #07f061;
}

/* Metrics Section */
body.impact-page .impact-metrics {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

body.impact-page .metric-card {
    background: #1a1c23;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

body.impact-page .metric-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

body.impact-page .metric-value {
    font-size: 2.8rem;
    font-weight: bold;
    color: #07f061;
}

/* Visualization Section */
body.impact-page .impact-visualization {
    background: #1a1c23;
    padding: 40px;
    border-radius: 15px;
    margin: 40px 0;
}

body.impact-page .visualization-container {
    border: 2px dashed #07f061;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    min-height: 200px;
}

/* Community Stories */
body.impact-page .community-stories {
    margin: 40px 0;
}

body.impact-page .story-placeholder {
    background: #1a1c23;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

/* Impact Journey */
body.impact-page .impact-tracking {
    margin: 40px 0;
}

body.impact-page .tracking-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

body.impact-page .track-step {
    background: #1a1c23;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

body.impact-page .step-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* CTA Section */
body.impact-page .impact-cta {
    margin: 40px 0;
}

body.impact-page .cta-card {
    background: #1a1c23;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

body.impact-page .cta-button {
    display: inline-block;
    background: #07f061;
    color: #131418;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
}

/* Common Text Styles */
body.impact-page h2 {
    color: white;
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 30px;
}

body.impact-page p {
    color: #9CA3AF;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    body.impact-page .impact-metrics {
        flex-direction: column;
        align-items: center;
    }
    
    body.impact-page .metric-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    body.impact-page .impact-hero h1 {
        font-size: 2.5rem;
    }
    
    body.impact-page .hero-subtitle {
        font-size: 1.4rem;
    }
    
    body.impact-page h2 {
        font-size: 2rem;
    }
    
    body.impact-page .track-step {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body.impact-page .impact-hero h1 {
        font-size: 2rem;
    }
    
    body.impact-page .metric-card {
        padding: 20px;
    }
}

/* Container for title */
.tab-container {
    text-align: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Title styling */
.tracks-title {
    color: #000000;
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 40px 0;  /* Increased bottom margin for more space */
    padding: 0;
    line-height: 1.2;
}

/* Controls container */
.controls-container {
    width: 100%;
    text-align: center;
    padding: 0;
    margin: -50px 0 40px 0;  /* Negative top margin to bring up buttons, more space below */
    background: transparent;
    position: relative;
    z-index: 2;
}

/* Button styling */
.control-button {
    display: inline-block;
    background-color: #131418;
    color: white;
    border: 2px solid #61DAFB;
    padding: 8px 16px;
    margin: 0 3px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

/* Table container with fixed height and scrolling */
.playlist-container {
    margin-top: 0;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

/* Style for the no social media indicator */
.social-links:empty::before {
    content: '❌';
    font-size: 1.2em;
}

#pixelModal .pixel-song-preview {
    margin-top: 10px;
}

#pixelModal .pixel-song-preview .selected-song {
    margin: 0;
}

#pixelModal .embed-container {
    position: relative;
}

#pixelModal .remove-song-btn {
    position: absolute;
    top: -25px;
    right: -10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#pixelModal .remove-song-btn:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.pixel-songs-container {
    position: relative;
    z-index: 1;
}

.pixel-song-item {
    position: relative;
    margin-bottom: 60px;
}

.pixel-song-search-wrapper {
    position: relative;
    width: 100%;  /* Ensure full width */
}

.spotify-search-mini {
    position: relative;
    width: 100%;  /* Ensure full width */
}

/* Search results container */
.spotify-search-mini .search-results {
    position: absolute;  /* Back to absolute positioning */
    left: 0;
    right: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;  /* Lower z-index but still above other elements */
}

.search-result-item {
    background-color: white;
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Input styling */
.pixel-song-search {
    position: relative;
    z-index: 99;
    background: white;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.selected-song {
    position: relative;
    background: white;
    margin-top: 10px;
    z-index: 1;
}

/* Ensure the results container is above everything */
.search-results-container {
    position: relative;
    z-index: 9999 !important;
    width: 100%;  /* Ensure full width */
}

/* Specific selector for multiple pixel remove button */
.pixel-song-preview .remove-song-btn {
    top: -15px !important;  /* Move button down a bit */
}

/* Keep original remove button styling */
.remove-song-btn {
    position: absolute;
    top: -15px;  /* Updated from -25px to -15px */
    right: -10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.remove-song-btn:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

/* Fundraising Styles */
.campaign-info {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress-container {
    margin-top: 15px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 14px;
}

/* Campaign Form Styles */
.campaign-form-container {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #61DAFB;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.submit-button {
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #45a049;
}

/* Donation Modal Styles */
.donation-amount {
    margin-bottom: 20px;
}

.donation-message {
    margin-bottom: 20px;
}

.donation-message textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    resize: vertical;
}

.social-sharing {
    margin-top: 20px;
}

.social-sharing label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.social-sharing input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Campaign Grid Styles */
.campaign-grid {
    position: relative;
    margin: 20px auto;
    max-width: 1000px;
}

.grid-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .campaign-form-container {
        padding: 20px;
        margin: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on mobile */
    }
    
    .campaign-info {
        position: static;
        margin: 20px;
        max-width: none;
    }
}

.create-campaign-btn {
    background: #00FF00;
    color: #111 !important;
    font-weight: 700;
    border-radius: 24px;
    padding: 10px 22px !important;
    margin-left: 18px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,255,0,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-block;
    text-transform: none;
    letter-spacing: 0.5px;
}
.create-campaign-btn:hover, .create-campaign-btn:focus {
    background: #00cc00;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,255,0,0.18);
    text-decoration: none;
}

#pixelModal #googlepay-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    min-height: 40px;
}
#pixelModal #googlepay-button-container * {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
#pixelModal #googlepay-button-container > div,
#pixelModal #googlepay-button-container > div > div,
#pixelModal #googlepay-button-container > div > div > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
#pixelModal #googlepay-button-container > div {
    width: auto !important;
    margin-left: 812px !important;
    margin-right: auto !important;
    transform: translateY(5px) !important;
    display: block !important;
    min-width: 400px !important;
    max-width: 900px !important;
}
#pixelModal #googlepay-button-container > div > * {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
}

#pixelModal #applepay-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    min-height: 40px;
}
#pixelModal #applepay-button-container * {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}
#pixelModal #applepay-button-container > div,
#pixelModal #applepay-button-container > div > div,
#pixelModal #applepay-button-container > div > div > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}
#pixelModal #applepay-button-container > div {
    width: auto !important;
    margin-left: 812px !important;
    margin-right: auto !important;
    margin-bottom: 10px !important;
    display: block !important;
    min-width: 400px !important;
    max-width: 900px !important;
}
#pixelModal #applepay-button-container > div > * {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    text-align: center !important;
}



