/* Enhanced styling for the multiverse showcase */
.multiverse-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #05051000;
    perspective: 1000px; /* Reduced for more dramatic effect */
}

.multiverse-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.multiverse-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-family: 'Arial', sans-serif;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.multiverse-info h2 {
    font-size: 24px;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.multiverse-info p {
    font-size: 16px;
    margin: 0;
    max-width: 400px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.multiverse-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    text-align: center;
}

.multiverse-loading .spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .multiverse-info h2 {
        font-size: 20px;
    }
    
    .multiverse-info p {
        font-size: 14px;
        max-width: 300px;
    }
}

.multiverse-carousel {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* Navigation arrows - Adjusted positioning */
.multiverse-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Reduced width to keep arrows closer */
    max-width: 1200px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(100, 200, 255, 0.8);
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    font-size: 20px;
}

/* Add arrow icons */
.nav-arrow.prev::before {
    content: '←';
}

.nav-arrow.next::before {
    content: '→';
}

.nav-arrow:hover {
    background: rgba(30, 30, 40, 0.9);
    border-color: rgba(100, 200, 255, 0.4);
    color: rgba(100, 200, 255, 1);
    transform: scale(1.1);
}

.multiverse-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 40, 0.9);
    border: 1px solid #ff3366;
    border-radius: 8px;
    padding: 20px;
    color: white;
    text-align: center;
    max-width: 80%;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.error-message h3 {
    color: #ff3366;
    margin: 0 0 10px 0;
}

.error-message p {
    margin: 5px 0;
}

/* GLSL Header styling */
.glsl-header {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 216, 249, 0.8),
        0 0 20px rgba(249, 249, 0, 0.4);
    background: rgba(0, 0, 0, 0.192);
}

/* Add the dark overlay with text cutout */
.header-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Semi-opaque black overlay */
    z-index: 1;
}

.header-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.outline-text {
    position: relative;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 255, 255, 0.8);
    text-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.2);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    mix-blend-mode: screen;
    z-index: 2;
}

/* Add text mask to create cutout effect */
.outline-text::before {
    content: attr(data-text);
    position: absolute;
    top: -4px; /* Offset for glow effect */
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: none;
    -webkit-text-stroke: 6px black; /* Thicker stroke for mask */
    z-index: -1;
    mix-blend-mode: destination-out;
}

#header-shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.multiverse-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    width: 300px;
    height: 100px;
}

/* Button Shader Container and Overlay Styles */
.button-shader-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(102, 0, 255, 0.5);
}

.button-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
}

.showcase-button {
    position: relative;
    background: transparent;
    border: 2px solid rgba(102, 0, 255, 0.8);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 24px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 4px;
}

.button-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(102, 0, 255, 0.8), 0 0 20px rgba(102, 0, 255, 0.4);
    animation: textPulse 3s infinite alternate;
}

.button-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 0, 255, 0.1), rgba(0, 255, 255, 0.1));
    filter: blur(10px);
    opacity: 0.5;
    z-index: 1;
    animation: glowPulse 4s infinite alternate;
}

.showcase-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 0, 255, 0.3);
    border-color: rgba(0, 255, 255, 0.8);
}

.showcase-button:hover .button-glow {
    opacity: 0.8;
    animation: glowIntense 2s infinite alternate;
}

.showcase-button:active {
    transform: translateY(1px);
}

/* Animations for the button */
@keyframes textPulse {
    0% {
        opacity: 0.8;
        text-shadow: 0 0 10px rgba(102, 0, 255, 0.8), 0 0 20px rgba(102, 0, 255, 0.4);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        filter: blur(10px);
    }
    100% {
        opacity: 0.7;
        filter: blur(15px);
    }
}

@keyframes glowIntense {
    0% {
        opacity: 0.6;
        filter: blur(10px);
    }
    50% {
        opacity: 0.9;
        filter: blur(20px);
    }
    100% {
        opacity: 0.7;
        filter: blur(15px);
    }
}

/* Add a flowing effect similar to the header */
.button-shader-container::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, 
        rgba(102, 0, 255, 0) 0%,
        rgba(102, 0, 255, 0.1) 25%, 
        rgba(0, 255, 255, 0.2) 50%, 
        rgba(102, 0, 255, 0.1) 75%,
        rgba(102, 0, 255, 0) 100%);
    z-index: 3;
    pointer-events: none;
    animation: flowEffect 8s linear infinite;
}

@keyframes flowEffect {
    0% {
        transform: rotate(0deg) translateX(-5%) translateY(5%);
    }
    50% {
        transform: rotate(180deg) translateX(5%) translateY(-5%);
    }
    100% {
        transform: rotate(360deg) translateX(-5%) translateY(5%);
    }
}

/* Add offset text effect like in the header */
.showcase-button .button-text {
    position: relative;
    display: inline-block;
}

.showcase-button .button-text::before,
.showcase-button .button-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.showcase-button .button-text::before {
    color: rgba(255, 0, 255, 0.7);
    animation: glitchOffset 3s infinite alternate;
}

.showcase-button .button-text::after {
    color: rgba(0, 255, 255, 0.7);
    animation: glitchOffset 2s infinite alternate-reverse;
}

@keyframes glitchOffset {
    0% {
        transform: translate(-2px, 2px);
    }
    25% {
        transform: translate(2px, -2px);
    }
    50% {
        transform: translate(-1px, 1px);
    }
    75% {
        transform: translate(1px, -1px);
    }
    100% {
        transform: translate(2px, 2px);
    }
}

/* Audio playlist adjustments */
.audio-container {
    width: 95%; /* Instead of 100% */
    max-width: 800px;
    margin: 0 auto;
    transform: scale(.9);/* Slightly reduce the overall size */
    transform-origin: top center;
}


/* If you have a track title, adjust its size */
.track-title {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
}

/* Adjust control buttons if needed */
.control-buttons {
    transform: scale(0.9);
}

/* Add these styles for the PowerShell widget */
.ps-music-widget {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: block; /* Ensure it's initially displayed */
    position: fixed; /* Make sure it's positioned properly */
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.ps-music-widget .ps-command-line,
.ps-music-widget .ps-output,
.ps-music-widget .ps-buttons {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ps-music-widget .ps-command-line.show,
.ps-music-widget .ps-output.show,
.ps-music-widget .ps-buttons.show {
    opacity: 1;
}

/* Add this near the top of your CSS, after the body styling */
.visualizer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.0); /* Adjust this alpha value to control visibility */
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 0; /* Places it above visualizer but under content */
}

/* Adjust the background-visualizer z-index to ensure proper layering */
#background-visualizer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    opacity: 1 !important;
    display: block !important;
    pointer-events: none !important;
} 