/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #2D0A5C;
    color: #9D4EDD;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #2D0A5C;
}

.background object {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Oracle Links */
.oracle-links {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.oracle-link {
    display: block;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    text-decoration: none;
    color: #1e90ff;
    text-shadow: 
        0 0 3px rgba(30, 144, 255, 0.8),
        0 0 6px rgba(30, 144, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.oracle-link:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    color: #00BFFF;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(0, 191, 255, 0.8);
    transform: scale(1.05);
}

/* Home Button */
.home-button {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.35rem;
    transition: all 0.3s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none;
    gap: 0.25rem;
}

.home-button:hover {
    background: transparent;
    transform: scale(1.05);
    box-shadow: none;
}

.home-crystal {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.home-button:hover .home-crystal {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.home-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.5rem;
    padding: 0.4rem 0.6rem;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #DA70D6;
    font-family: 'VT323', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(218, 112, 214, 0.3);
}

.home-button:hover .home-tooltip {
    opacity: 1;
}

.home-url {
    font-family: 'VT323', monospace;
    font-size: 0.65rem;
    color: #DA70D6;
    text-shadow: 
        0 0 3px rgba(218, 112, 214, 0.8),
        0 0 6px rgba(218, 112, 214, 0.6);
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-button:hover .home-url {
    color: #FFFFFF;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(218, 112, 214, 0.8);
}

/* Title */
.title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.7rem;
    font-weight: bold;
    text-align: center;
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    color: #8B1A8B;
    text-shadow: 
        -1px -1px 0 #2D0A5C,
        1px -1px 0 #2D0A5C,
        -1px 1px 0 #2D0A5C,
        1px 1px 0 #2D0A5C,
        0 0 2px rgba(139, 26, 139, 0.9);
    width: 100%;
    padding: 0 1rem;
    z-index: 10;
    -webkit-font-smoothing: none;
    text-rendering: geometricPrecision;
    font-smooth: never;
}

/* Top Logo */
.top-logo {
    position: absolute;
    top: 6.5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 280px;
    max-height: 110px;
    width: auto;
    height: auto;
    z-index: 10;
    image-rendering: pixelated;
    opacity: 0.75;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.3));
}

/* Navigation Buttons */
.nav-buttons {
    position: absolute;
    top: 14rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 1rem;
    z-index: 200;
}

.nav-button {
    position: relative;
    width: 220px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button.active {
    z-index: 100;
}

/* Button-specific colors - More distinct purple/violet theme */
.nav-button:nth-child(1) span {
    color: #9D4EDD;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.6);
}

.nav-button:nth-child(2) span {
    color: #FF69B4;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
}

.nav-button:nth-child(3) span {
    color: #00CED1;
    text-shadow: 0 0 5px rgba(0, 206, 209, 0.6);
}

.nav-button:nth-child(4) span {
    color: #6A0DAD;
    text-shadow: 0 0 5px rgba(106, 13, 173, 0.6);
}

/* Button 1 - Mental */
.nav-button:nth-child(1) {
    color: #9D4EDD;
    text-shadow: 0 0 3px rgba(157, 78, 221, 0.5);
}

.nav-button:nth-child(1) span {
    color: #9D4EDD;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.6);
}

/* Button 2 - Body */
.nav-button:nth-child(2) {
    color: #FF69B4;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.5);
}

.nav-button:nth-child(2) span {
    color: #FF69B4;
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.6);
}

/* Button 3 - Wellness */
.nav-button:nth-child(3) {
    color: #00CED1;
    text-shadow: 0 0 3px rgba(0, 206, 209, 0.5);
}

/* Button 4 - Reflection */
.nav-button:nth-child(4) {
    color: #6A0DAD;
    text-shadow: 0 0 3px rgba(106, 13, 173, 0.5);
}

.nav-button:hover span {
    /* Removed brightness filter to prevent tracer effect */
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.nav-button:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-button:hover::before {
    background: rgba(255, 255, 255, 0.2);
}

/* Dropdown Content - Base */
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-radius: 0;
    margin-top: 0.7rem;
    padding: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: none;
    z-index: 2000;
    pointer-events: none;
    transform-origin: top center;
    transform: scaleY(0) translateY(-30px) rotateX(-15deg);
    overflow: visible;
    bottom: auto !important;
}

/* Mental Dropdown - Bright Purple - Centered Popup */
.nav-button:nth-child(1) .dropdown-content {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: 
        linear-gradient(90deg, rgba(157, 78, 221, 0.1) 0%, rgba(157, 78, 221, 0.05) 50%, rgba(157, 78, 221, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(157, 78, 221, 0.03) 2px, rgba(157, 78, 221, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(157, 78, 221, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(157, 78, 221, 0.6);
    box-shadow: 
        0 0 20px rgba(157, 78, 221, 0.3),
        inset 0 0 20px rgba(157, 78, 221, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-button:nth-child(1).active .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
}

/* Body Dropdown - Hot Pink - Centered Popup */
.nav-button:nth-child(2) .dropdown-content {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: 
        linear-gradient(90deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 105, 180, 0.05) 50%, rgba(255, 105, 180, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 105, 180, 0.03) 2px, rgba(255, 105, 180, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 105, 180, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(255, 105, 180, 0.6);
    box-shadow: 
        0 0 20px rgba(255, 105, 180, 0.3),
        inset 0 0 20px rgba(255, 105, 180, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-button:nth-child(2).active .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
}

/* Wellness Dropdown - Dark Turquoise - Centered Popup */
.nav-button:nth-child(3) .dropdown-content {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: 
        linear-gradient(90deg, rgba(0, 206, 209, 0.1) 0%, rgba(0, 206, 209, 0.05) 50%, rgba(0, 206, 209, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 206, 209, 0.03) 2px, rgba(0, 206, 209, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(0, 206, 209, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 206, 209, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(0, 206, 209, 0.6);
    box-shadow: 
        0 0 20px rgba(0, 206, 209, 0.3),
        inset 0 0 20px rgba(0, 206, 209, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-button:nth-child(3).active .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
}

/* Reflection Dropdown - Deep Purple - Centered Popup */
.nav-button:nth-child(4) .dropdown-content {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9) !important;
    width: auto;
    min-width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background: 
        linear-gradient(90deg, rgba(106, 13, 173, 0.1) 0%, rgba(106, 13, 173, 0.05) 50%, rgba(106, 13, 173, 0.1) 100%),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(106, 13, 173, 0.03) 2px, rgba(106, 13, 173, 0.03) 4px),
        radial-gradient(circle at 20% 20%, rgba(106, 13, 173, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(106, 13, 173, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(106, 13, 173, 0.6);
    box-shadow: 
        0 0 20px rgba(106, 13, 173, 0.3),
        inset 0 0 20px rgba(106, 13, 173, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    will-change: transform, opacity;
    contain: layout style paint;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-button:nth-child(4).active .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1) !important;
    top: 50% !important;
    left: 50% !important;
}

/* Scan Bar - Disabled for centered popups */
.nav-button:nth-child(1) .dropdown-content::before {
    display: none;
}

.nav-button:nth-child(2) .dropdown-content::before {
    display: none;
}

.nav-button:nth-child(3) .dropdown-content::before {
    display: none;
}

.nav-button:nth-child(4) .dropdown-content::before {
    display: none;
}

/* Grid Overlay - Mental */
.nav-button:nth-child(1) .dropdown-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(157, 78, 221, 0.1) 8px, 
            rgba(157, 78, 221, 0.1) 9px),
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(157, 78, 221, 0.1) 8px, 
            rgba(157, 78, 221, 0.1) 9px);
    pointer-events: none;
    opacity: 0.3;
}

/* Grid Overlay - Body */
.nav-button:nth-child(2) .dropdown-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(255, 105, 180, 0.1) 8px, 
            rgba(255, 105, 180, 0.1) 9px),
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(255, 105, 180, 0.1) 8px, 
            rgba(255, 105, 180, 0.1) 9px);
    pointer-events: none;
    opacity: 0.3;
}

/* Grid Overlay - Wellness */
.nav-button:nth-child(3) .dropdown-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(0, 206, 209, 0.1) 8px, 
            rgba(0, 206, 209, 0.1) 9px),
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(0, 206, 209, 0.1) 8px, 
            rgba(0, 206, 209, 0.1) 9px);
    pointer-events: none;
    opacity: 0.3;
}

/* Grid Overlay - Reflection */
.nav-button:nth-child(4) .dropdown-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(106, 13, 173, 0.1) 8px, 
            rgba(106, 13, 173, 0.1) 9px),
        repeating-linear-gradient(0deg, 
            transparent 0px, 
            transparent 8px, 
            rgba(106, 13, 173, 0.1) 8px, 
            rgba(106, 13, 173, 0.1) 9px);
    pointer-events: none;
    opacity: 0.3;
}

@keyframes mechanicalScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Backdrop overlay for all popups */
.nav-button.active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-content a {
    position: relative !important;
    display: block;
    padding: 0.4rem 0;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: transparent !important;
    border: none;
    border-radius: 0;
    width: 100%;
    min-width: auto;
    margin: 0 !important;
    margin-bottom: 0.25rem;
    opacity: 1;
    transform: none !important;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    text-align: left;
    z-index: 52;
}

.dropdown-content a:active {
    transform: none;
    opacity: 0.85;
}

.dropdown-content a:last-child {
    margin-bottom: 0;
}

/* Coming Soon styling */
.dropdown-content .coming-soon {
    display: block;
    padding: 0.4rem 0;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    background: transparent;
    border-radius: 0;
    text-transform: none;
    letter-spacing: 0.5px;
    text-align: center;
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* Mental Coming Soon */
.nav-button:nth-child(1) .dropdown-content .coming-soon {
    color: #9D4EDD !important;
    text-shadow: 0 0 3px rgba(157, 78, 221, 0.4) !important;
}

/* Body Coming Soon */
.nav-button:nth-child(2) .dropdown-content .coming-soon {
    color: #FF69B4 !important;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.4) !important;
}

/* Dropdown item wrapper */
.dropdown-item {
    display: block;
    margin-bottom: 0.5rem;
    width: 100%;
    text-align: center;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item a {
    margin-bottom: 0 !important;
}

/* Dropdown subtitle styling */
.dropdown-subtitle {
    display: inline;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 0.5rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

/* Mental dropdown subtitle */
.nav-button:nth-child(1) .dropdown-content .dropdown-subtitle {
    color: #9D4EDD !important;
    text-shadow: 0 0 2px rgba(157, 78, 221, 0.4) !important;
}

/* Specific styling for Mental dropdown links */
.nav-button:nth-child(1) .dropdown-content a {
    color: #9D4EDD !important;
    text-shadow: 0 0 3px rgba(157, 78, 221, 0.6) !important;
}

.nav-button:nth-child(1) .dropdown-content a:hover {
    color: #B794F6 !important;
    text-shadow: 0 0 5px rgba(183, 148, 246, 0.8) !important;
}

/* Specific styling for Body dropdown links */
.nav-button:nth-child(2) .dropdown-content a {
    color: #FF69B4 !important;
    text-shadow: 0 0 3px rgba(255, 105, 180, 0.6) !important;
}

.nav-button:nth-child(2) .dropdown-content a:hover {
    color: #FFB6C1 !important;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.8) !important;
}

/* Specific styling for Wellness dropdown links */
.nav-button:nth-child(3) .dropdown-content a {
    color: #00CED1 !important;
    text-shadow: 0 0 3px rgba(0, 206, 209, 0.6) !important;
}

.nav-button:nth-child(3) .dropdown-content a:hover {
    color: #40E0D0 !important;
    text-shadow: 0 0 5px rgba(64, 224, 208, 0.8) !important;
}

/* Specific styling for Reflection dropdown links */
.nav-button:nth-child(4) .dropdown-content a {
    color: #6A0DAD !important;
    text-shadow: 0 0 3px rgba(106, 13, 173, 0.6) !important;
}

.nav-button:nth-child(4) .dropdown-content a:hover {
    color: #9D4EDD !important;
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.8) !important;
}

.dropdown-content a:hover {
    text-decoration: underline;
}

/* Add a new overlay to help with iPad touch events */
.nav-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.nav-button.active::after {
    display: none;
}

/* Enable transitions after page load */
.page-loaded .dropdown-content {
    transition: all 0.8s linear;
}

.page-loaded .dropdown-content a {
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

.crystal-ball {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    background: transparent;
    padding: 0;
    overflow: hidden;
    opacity: 0.85;
    transition: all 0.3s ease;
}

.crystal-ball:hover {
    opacity: 1;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.footer-text {
    font-family: 'VT323', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: lowercase;
    letter-spacing: 1px;
}

/* Contact Email Link */
.contact-email-container {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 100;
}

.contact-email {
    font-family: 'VT323', monospace;
    font-size: 0.75rem;
    color: rgba(157, 78, 221, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 3px rgba(157, 78, 221, 0.5);
}

.contact-email:hover {
    color: rgba(157, 78, 221, 1);
    text-shadow: 0 0 5px rgba(157, 78, 221, 0.8);
    transform: scale(1.05);
}

.copy-email-btn {
    background: transparent;
    border: 1px solid rgba(157, 78, 221, 0.3);
    border-radius: 4px;
    padding: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(157, 78, 221, 0.7);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-email-btn:hover {
    background: rgba(157, 78, 221, 0.1);
    border-color: rgba(157, 78, 221, 0.6);
    color: rgba(157, 78, 221, 1);
    transform: scale(1.1);
}

.copy-email-btn:active {
    transform: scale(0.95);
}

.copy-email-btn svg {
    display: block;
}

/* Tablet/iPad Styles */
@media (max-width: 1024px) and (min-width: 481px) {
    .home-button {
        padding: 0.15rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .home-crystal {
        width: 32px;
        height: 32px;
    }

    .home-tooltip {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }

    .home-url {
        font-size: 0.55rem;
    }

    .top-logo {
        top: 6.5rem;
        max-width: 200px;
        max-height: 80px;
        opacity: 0.75;
    }

    .oracle-links {
        top: 6.5rem;
        left: 0.5rem;
        bottom: auto;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .oracle-links {
        top: auto;
        bottom: 0.5rem;
        left: 0.5rem;
        gap: 0.3rem;
    }

    .oracle-link {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-width: 1px;
    }

    .contact-email-container {
        bottom: 0.3rem;
        right: 0.3rem;
        gap: 0.3rem;
    }
    
    .contact-email {
        font-size: 0.65rem;
    }
    
    .copy-email-btn {
        padding: 0.2rem;
    }
    
    .copy-email-btn svg {
        width: 10px;
        height: 10px;
    }

    .home-button {
        padding: 0.15rem;
        top: 0.5rem;
        right: 0.5rem;
        border-width: 1px;
        border-radius: 4px;
        opacity: 0.6;
    }

    .home-crystal {
        width: 24px;
        height: 24px;
        opacity: 0.7;
    }

    .home-tooltip {
        font-size: 0.6rem;
        padding: 0.25rem 0.4rem;
        opacity: 0.9;
    }

    .home-url {
        font-size: 0.45rem;
        opacity: 0.7;
    }
    
    .home-button:hover {
        opacity: 0.85;
    }
    
    .home-button:hover .home-crystal {
        opacity: 0.95;
    }
    
    .home-button:hover .home-url {
        opacity: 0.95;
    }

    .title {
        font-size: 1.5rem;
        font-weight: bold;
        top: 3.5rem;
        text-shadow: 
            0 0 1px rgba(139, 26, 139, 0.9),
            0 0 2px rgba(139, 26, 139, 0.8);
        -webkit-font-smoothing: none;
        text-rendering: geometricPrecision;
        font-smooth: never;
    }

    .top-logo {
        top: 5.5rem;
        max-width: 150px;
        max-height: 60px;
        opacity: 0.75;
    }

    .nav-buttons {
        top: 9.5rem;
        gap: 0.8rem;
        padding: 0 0.5rem;
        flex-direction: column;
        align-items: center;
    }

    .nav-button {
        width: 180px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Simplify mobile button text shadows to prevent tracer effect */
    .nav-button span {
        text-shadow: none !important;
    }
    
    /* Restore mobile button colors without complex effects */
    .nav-button:nth-child(1) span {
        color: #9D4EDD !important;
    }
    
    .nav-button:nth-child(2) span {
        color: #FF69B4 !important;
    }
    
    .nav-button:nth-child(3) span {
        color: #00CED1 !important;
    }
    
    .nav-button:nth-child(4) span {
        color: #6A0DAD !important;
    }

    /* Mobile dropdowns still use centered popups */
    .nav-button:nth-child(1) .dropdown-content,
    .nav-button:nth-child(2) .dropdown-content,
    .nav-button:nth-child(3) .dropdown-content,
    .nav-button:nth-child(4) .dropdown-content {
        min-width: 280px;
        max-width: 90vw;
        padding: 0.8rem;
    }

    .dropdown-content a {
        padding: 0.4rem 0;
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
        z-index: 2001 !important;
        background: transparent !important;
        border-radius: 0 !important;
        border: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
        transition: color 0.2s ease, text-shadow 0.2s ease !important;
        text-align: left;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.2);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(157, 78, 221, 0.3);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(157, 78, 221, 0.2) rgba(0, 0, 0, 0.3);
}

