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

html,
body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-logo span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Navbar Language Selector */
.language-selector {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    min-width: 100px;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.language-selector:focus {
    outline: none;
    border-color: rgba(0, 120, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.3);
}

.language-selector option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px;
}

.celestial-menu-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.celestial-menu-btn .icon,
.language-selector .icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celestial-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Scale Explanation Floating Panel */
.scale-explanation-panel {
    position: fixed;
    top: 80px; /* Just below navbar with some vertical space */
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    max-width: 500px;
    width: calc(100% - 40px);
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scale-explanation-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-10px);
}

.scale-explanation-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 10px 16px;
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.scale-explanation-content span {
    font-weight: 500;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer p {
    margin: 0;
    padding: 2px 0;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer span {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.footer .experience {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer .experience a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer .experience a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer .separator {
    opacity: 0.6;
}

/* GPS Error Overlay */
.gps-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: inherit;
    padding: 20px;
}

.gps-error-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* GPS Language Selector */
.gps-language-selector {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: auto;
    min-width: 120px;
}

.gps-language-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.gps-language-selector:focus {
    outline: none;
    border-color: rgba(0, 120, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(0, 120, 255, 0.3);
}

.gps-language-selector option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px;
}

.gps-error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.8;
}

.gps-error-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gps-error-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.gps-error-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.gps-error-message {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9em;
    color: #ffcccc;
}

.gps-error-button {
    background: rgba(0, 120, 255, 0.8);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 120, 255, 0.3);
}

.gps-error-button:hover {
    background: rgba(0, 120, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 255, 0.4);
}

#canvas1 {
    background-color: black;
    width: 100%;
    height: 100%;
    display: block;
}

#video1 {
    display: none;
}

/* Planet Indicator Textbox - Bottom Left */
.planet-indicator-textbox {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.95);
    padding: 16px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    z-index: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    min-width: 280px;
    max-width: 350px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.planet-indicator-textbox.over-map{
    margin: 28px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-logo img {
        height: 32px;
    }

    .navbar-logo span {
        font-size: 1rem;
        display: none; /* Hide text on very small screens */
    }

    .scale-explanation-panel {
        top: 70px;
        width: calc(100% - 30px);
    }

    .scale-explanation-content {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .planet-drawer {
        left: 10px;
        right: 10px;
    }
}

/* Extra small screens */
@media (max-width: 530px) {
    .navbar {
        padding: 8px 12px;
    }

    .navbar-logo img {
        height: 28px;
    }

    .navbar-logo span {
        font-size: 0.9rem;
        display: none; /* Hide text on very small screens */
    }

    .navbar-controls {
        gap: 10px;
    }

    .celestial-menu-btn {
        padding: 0;
        height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .celestial-menu-btn .text {
        display: none;
    }

    .language-selector {
        min-width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-align-last: center;
    }

    .language-selector option {
        text-align: center;
        text-align-last: center;
    }

    .scale-explanation-panel {
        top: 60px;
        width: calc(100% - 20px);
    }

    .scale-explanation-content {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
    
    .planet-drawer {
        left: 5px;
        right: 5px;
    }

    .language-selector option .text {
        display: none;
    }

    .celestial-menu-btn .icon,
    .language-selector .icon {
        font-size: 1.2rem;
        line-height: 1;
    }
}

.footer {
    padding: 10px 15px;
    flex-direction: column;
    gap: 5px;
}

.footer p {
    font-size: 0.75rem;
    text-align: center;
}

.planet-indicator-textbox {
    bottom: 90px;
    left: 15px;
    font-size: 0.9rem;
    padding: 14px 16px;
}

.gps-error-content {
    padding: 30px 25px;
    margin: 20px;
}

.gps-error-title {
    font-size: 1.5em;
}

.gps-error-icon {
    font-size: 3em;
}

@media (max-width: 480px) {
    .navbar-logo span {
        display: none;
    }

    .celestial-menu-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .footer p {
        font-size: 0.7rem;
    }

    .planet-indicator-textbox {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
}

/* Map Overlay */
.map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 850;
    display: none;
    padding: 20px;
    box-sizing: border-box;
}

/* Map Center Toggle Button */
.map-center-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px;
}

.map-center-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

.map-center-toggle:active {
    transform: scale(0.95);
}

.map-content {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    color: white;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.map-header-content {
    flex: 1;
    margin-right: 20px;
}

.map-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

@media (max-width: 530px) {
    .map-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .map-header-content {
        margin-right: 10px;
    }

    .map-title {
        font-size: 1.4em;
        margin: 0 0 6px 0;
    }
    .map-instructions {
        display: none;
    }
}

.map-header-text {
    margin-top: 10px;
}

.map-question {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #FFD700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.map-instructions {
    font-size: 0.9em;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.map-close {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.ar-map {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Ensure proper stacking */
body > canvas,
body > video {
    position: absolute;
    top: 0;
    left: 0;
}

/* Welcome Overlay Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-y: auto;
    padding: 1rem 0 0 0;
    box-sizing: border-box;
    position: relative;
}

.welcome-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    padding: 0 2rem 6rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.welcome-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.welcome-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.welcome-lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.welcome-logos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 1rem;
}

.welcome-logos-row-upper {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.welcome-logos-row-lower {
    display: flex;
    justify-content: center;
}

.welcome-logo-small {
    height: 40px;
    width: auto;
}

.welcome-logo-large {
    height: 160px;
    width: auto;
}

.welcome-hero {
    margin-bottom: 2rem;
    padding: 1rem;
    margin-top: 1rem;
}

.welcome-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.welcome-scale-explanation {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 600px;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.3s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.welcome-feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
    cursor: pointer;
}

.welcome-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.15);
}

.welcome-feature:nth-child(2) {
    animation-delay: 0.6s;
}



.welcome-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.welcome-feature-description {
    opacity: 0.9;
    line-height: 1.5;
    margin: 0;
}

.welcome-launch {
    animation: fadeInUp 1s ease-out 0.8s both;
    text-align: center;
}

.welcome-ready-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-align: center;
}

.welcome-launch-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
    border: none;
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    margin: 0 auto;
    display: block;
}

.welcome-launch-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.welcome-launch-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Loading progress styles */
.welcome-loading {
    animation: fadeInUp 1s ease-out 0.8s both;
    text-align: center;
}

.welcome-loading-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: white;
    text-align: center;
}

.welcome-progress-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.welcome-progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.welcome-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
    position: relative;
}

.welcome-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.welcome-progress-text {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sparkle effect */
.welcome-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Welcome Footer */
.welcome-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
}

.welcome-footer p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.welcome-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.welcome-footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.welcome-footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.welcome-separator {
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-scale-explanation {
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        margin: 1rem auto;
        max-width: 90%;
    }
    
    .welcome-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .welcome-feature {
        padding: 0.8rem;
    }
    
    .welcome-feature-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }

    .welcome-feature-title .text {
        display: none;
    }

    .welcome-feature-title .icon {
        font-size: 1.5rem;
    }
    
    .welcome-feature-description {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .welcome-ready-title {
        font-size: 1.5rem;
    }
    
    .welcome-launch-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        margin: 0 auto;
        display: block;
    }
    
    .welcome-language-selector {
        top: 10px;
        left: 10px;
    }
    
    .welcome-lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .welcome-loading-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .welcome-progress-container {
        max-width: 300px;
    }
    
    .welcome-progress-bar {
        height: 10px;
    }
    
    .welcome-logos-section {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .welcome-logos-row-upper {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

.welcome-logo-small {
        height: 30px;
    }

    .welcome-logo-large {
        height: 140px;
    }
    
    .welcome-hero {
        margin-bottom: 1rem;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .welcome-progress-text {
        font-size: 1rem;
    }
}

/* Hide overlay when not needed */
.welcome-overlay.hidden {
    display: none;
}

/* Device Orientation Permission Modal */
.orientation-permission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.orientation-permission-modal.show {
    display: flex;
}

.orientation-permission-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease-out;
}

.orientation-permission-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.orientation-permission-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.orientation-permission-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.orientation-permission-ios-note {
    color: #ffd700;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.orientation-permission-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.orientation-permission-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orientation-permission-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.orientation-permission-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.orientation-permission-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.orientation-permission-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Browser Recommendation Modal */
.browser-recommendation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.browser-recommendation-modal.show {
    display: flex;
}

.browser-recommendation-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.4s ease-out;
}

.browser-recommendation-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.browser-recommendation-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.browser-recommendation-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.browser-recommendation-note {
    color: #87ceeb;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
    padding: 15px;
    background: rgba(135, 206, 235, 0.1);
    border-radius: 10px;
    border-left: 4px solid #87ceeb;
}

.browser-recommendation-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.browser-recommendation-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.browser-recommendation-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.browser-recommendation-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.browser-recommendation-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.browser-recommendation-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .orientation-permission-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .orientation-permission-title {
        font-size: 20px;
    }
    
    .orientation-permission-description {
        font-size: 14px;
    }
    
    .orientation-permission-ios-note {
        font-size: 12px;
        padding: 12px;
    }
    
    .browser-recommendation-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .browser-recommendation-title {
        font-size: 20px;
    }
    
    .browser-recommendation-description {
        font-size: 14px;
    }
    
    .browser-recommendation-note {
        font-size: 12px;
        padding: 12px;
    }
}


/* Planet Drawer */

/* Planet Drawer Styles */
.planet-drawer {
    position: fixed;
    bottom: 0;
    left: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 500;
    max-height: 70vh;
    min-height: 200px;
}

.planet-drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px 0;
    cursor: pointer;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.drawer-handle:hover .handle-bar {
    background: rgba(255, 255, 255, 0.5);
}

.drawer-content {
    padding: 0 20px 20px 20px;
    height: calc(100% - 32px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.drawer-header-left {
    flex: 1;
}

.drawer-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-header h3 {
    color: #ffffff;
    margin: 0 0 5px 0;
    font-size: 1.4em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.drawer-last-visited {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    font-style: italic;
    margin-top: 5px;
}

.close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.planet-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.2s ease;
}

.planet-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.drawer-body::-webkit-scrollbar {
    width: 6px;
}

.drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.drawer-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.drawer-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.planet-notes {
    color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

/* Rich text content styling */
.planet-notes h1,
.planet-notes h2,
.planet-notes h3,
.planet-notes h4,
.planet-notes h5,
.planet-notes h6 {
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.planet-notes h1 { font-size: 1.8em; }
.planet-notes h2 { font-size: 1.5em; }
.planet-notes h3 { font-size: 1.3em; }

.planet-notes p {
    margin-bottom: 1em;
    text-align: justify;
}

.planet-notes strong {
    color: #ffd700;
    font-weight: 600;
}

.planet-notes em {
    color: #87ceeb;
    font-style: italic;
}

.planet-notes ul,
.planet-notes ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.planet-notes li {
    margin-bottom: 0.5em;
}

.planet-notes blockquote {
    border-left: 4px solid #ffd700;
    margin: 1.5em 0;
    padding: 1em 1.5em;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.planet-notes code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.planet-notes pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.planet-notes pre code {
    background: none;
    padding: 0;
}

.planet-notes a {
    color: #87ceeb;
    text-decoration: none;
    border-bottom: 1px solid rgba(135, 206, 235, 0.3);
    transition: all 0.2s ease;
}

.planet-notes a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .planet-drawer {
        max-height: 80vh;
    }
    
    .drawer-content {
        padding: 0 16px 16px 16px;
    }
    
    .drawer-header h3 {
        font-size: 1.2em;
    }
    
    .planet-notes {
        font-size: 14px;
    }
    
    .planet-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .drawer-header-right {
        gap: 8px;
    }
}

/* Animation for drawer opening */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.planet-drawer.opening {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} 

/* Celestial Bodies Menu Styles */

/* Toggle Button */
.celestial-bodies-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    z-index: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.celestial-bodies-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* Overlay */
.celestial-bodies-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 800;
    display: none;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.celestial-bodies-content {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.celestial-bodies-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.celestial-bodies-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.celestial-bodies-close {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.celestial-bodies-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Intro Section */
.celestial-bodies-intro {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.celestial-bodies-header-title {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.95);
}

.celestial-bodies-header-subtitle {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 20px 0;
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Planet Cards Grid */
.planet-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.planet-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
}

.planet-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.planet-card.visited {
    background: rgba(34, 139, 34, 0.15);
    border-color: rgba(34, 139, 34, 0.4);
}

.planet-card.visited:hover {
    background: rgba(34, 139, 34, 0.2);
    border-color: rgba(34, 139, 34, 0.5);
}

.planet-card.selected {
    background: rgba(0, 120, 255, 0.2);
    border-color: rgba(0, 120, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.3);
}

/* Selected state overrides visited state */
.planet-card.selected.visited {
    background: rgba(0, 120, 255, 0.2);
    border-color: rgba(0, 120, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.3);
}

.planet-card-visited-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: #228B22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 100;
    border: 2px solid white;
}

.planet-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.planet-card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.planet-card-name {
    font-size: 1.4em;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.planet-card-last-visited,
.planet-card-distance {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.planet-card-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.planet-card-value {
    color: rgba(255, 255, 255, 0.7);
}

.planet-card-value.never-visited {
    color: #ff6b6b;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 107, 107, 0.3);
}

.planet-card-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.planet-card-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.planet-card-button.active {
    background: rgba(0, 120, 255, 0.3);
    border-color: rgba(0, 120, 255, 0.6);
    color: #4da6ff;
}

.planet-card-button.active .nav-arrow {
    color: #4da6ff;
}

.planet-card-button.active:hover {
    background: rgba(0, 120, 255, 0.4);
    transform: none;
    cursor: default;
}

.nav-arrow {
    font-size: 1.2em;
    color: #4da6ff;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .planet-card {
        flex-direction: row;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .planet-card-thumbnail {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        order: 2;
    }
    
    .planet-card-content {
        flex: 1;
        order: 1;
        justify-content: space-between;
        gap: 8px;
    }
    
    .planet-card-name {
        text-align: left;
        font-size: 1.2em;
        margin-bottom: 5px;
    }
    
    .planet-card-button {
        padding: 8px 12px;
        font-size: 0.85em;
        margin-top: 8px;
    }
    
    .planet-card-last-visited,
    .planet-card-distance {
        font-size: 0.8em;
    }
    
    .planet-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .planet-card-visited-indicator {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 12px;
        border-width: 1px;
    }
    
    .celestial-bodies-intro {
        margin-bottom: 30px;
    }
    
    .celestial-bodies-header-title {
        font-size: 1.8em;
    }
    
    .celestial-bodies-header-subtitle {
        font-size: 1.1em;
    }
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .planet-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Planet Modal */
.planet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.planet-modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
    backdrop-filter: blur(10px);
}

.planet-modal-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.planet-modal-thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.planet-modal-header-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.planet-modal-title {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.planet-modal-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

.planet-modal-info-item .info-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.planet-modal-info-item .info-value {
    color: rgba(255, 255, 255, 0.9);
}

.planet-modal-info-item .info-value.never-visited {
    color: #ff6b6b;
    font-weight: 600;
}

.planet-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

.planet-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

.planet-modal-last-visited {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.8);
}

.planet-modal-notes {
    margin: 20px 0 30px 0;
    line-height: 1.6;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.9);
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.planet-modal-notes::-webkit-scrollbar {
    width: 6px;
}

.planet-modal-notes::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.planet-modal-notes::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.planet-modal-notes::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.planet-modal-notes p {
    margin-bottom: 15px;
    text-align: justify;
}

.planet-modal-notes h1, .planet-modal-notes h2, .planet-modal-notes h3 {
    color: #87ceeb;
    margin-top: 25px;
    margin-bottom: 10px;
}

.planet-modal-notes h1 {
    font-size: 1.4em;
}

.planet-modal-notes h2 {
    font-size: 1.3em;
}

.planet-modal-notes h3 {
    font-size: 1.2em;
}

.planet-modal-notes a {
    color: #87ceeb;
    text-decoration: underline;
}

.planet-modal-notes strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.planet-modal-notes em {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.modal-navigation-button {
    background: rgba(0, 120, 255, 0.8);
    border: 2px solid rgba(0, 120, 255, 0.6);
    border-radius: 10px;
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.modal-navigation-button:hover:not(:disabled) {
    background: rgba(0, 120, 255, 1);
    border-color: rgba(0, 120, 255, 0.8);
}

.modal-navigation-button.active {
    background: rgba(0, 120, 255, 0.3);
    border-color: rgba(0, 120, 255, 0.6);
    color: #4da6ff;
    cursor: default;
}

.modal-navigation-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal-navigation-button .nav-arrow {
    font-size: 1.2em;
    color: #4da6ff;
    font-weight: bold;
}

.set-target-button.disabled:hover {
    background: rgba(128, 128, 128, 0.5);
    transform: none;
} 

/* Language Selector Styles */

.language-selector {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    min-width: 120px;
    height: 40px;
    display: flex;
    align-items: center;
    text-align: center;
    text-align-last: center;
  }
  
  .language-selector:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  }
  
  .language-selector:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
  }
  
  .language-selector option {
    background: #2b3654;
    color: white;
    padding: 8px;
    font-size: 0.9rem;
  }
  
  /* Dashboard specific styles */
  .system-actions .language-selector {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: 12px;
    padding: 6px 10px;
    margin-left: 10px;
  }
  
  .system-actions .language-selector:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }
  
  .system-actions .language-selector:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .system-actions .language-selector option {
    background: white;
    color: #495057;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .language-selector {
      font-size: 12px;
      padding: 6px 8px;
      min-width: 100px;
    }
    
    .system-actions .language-selector {
      font-size: 11px;
      padding: 4px 8px;
    }
  }
  
  @media (max-width: 480px) {
    .language-selector {
      min-width: 80px;
      font-size: 11px;
    }
    
    .navbar-controls .language-selector {
      width: 100%;
    }
  } 