/* ===== VYBE WORLDS - SIMPLIFIED STYLES ===== */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== PAGE-SPECIFIC BODY STYLES ===== */
/* Default gradient background for most pages - Dark theme with green-blue palette */
body {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    overflow-x: hidden;
    color: #ffffff;
}

/* World page - black background, allow scroll for start screen */
body.world-page {
    background: #000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Worlds page - gradient background with scroll */
body.worlds-page {
    overflow-y: auto;
    padding: 20px 0;
}

/* ===== SHARED COMPONENTS ===== */

/* Glass-morphism content container */
.glass-container {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
}

/* Hero section */
.hero-section {
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Interactive cards - Match popover design */
.interactive-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.interactive-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(64, 224, 208, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
}

.card-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-text {
    color: rgba(255, 255, 255, 0.8);
}

.text-muted {
    color: #48D1CC !important;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Home page (index.html) */
.option-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.option-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.option-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: white;
}

.option-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Email Signup CTA Section */
.signup {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.signup-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.signup-title {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.signup-form-container {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.signup-form-container iframe {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
}

.main-options {
    padding: 3rem 0 2rem;
}

.footer {
    padding: 3rem 0 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-tech {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #48D1CC;
    text-decoration: none;
    transform: translateX(5px);
}

.footer-creator {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-social {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
}

.footer-divider {
    border-color: rgba(64, 224, 208, 0.3);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

/* Use Cases Section */
.use-cases-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.use-case-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(64, 224, 208, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.use-case-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #48D1CC;
}

.use-case-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.faq-question {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #48D1CC;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Creator Attribution */
.creator-attribution {
    margin-top: 0;
}

.creator-link {
    color: #48D1CC;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.creator-link:hover {
    color: #40E0D0;
    text-decoration: none;
}

/* Worlds page (worlds.html) - Match popover design */
.main-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
}

.world-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.world-card:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(64, 224, 208, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

.world-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Studio page (studio.html) - Match popover design */
.studio-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
}

.studio-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 300;
    background: linear-gradient(45deg, #40E0D0, #48D1CC, #20B2AA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.studio-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.development-notice {
    background: rgba(72, 209, 204, 0.2);
    border: 2px solid rgba(72, 209, 204, 0.4);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.development-notice h2 {
    color: #48D1CC;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.development-notice p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.features-list {
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.features-list h3 {
    color: #48D1CC;
    margin-bottom: 1rem;
    text-align: center;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    color: #bdc3c7;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: "🚀";
    margin-right: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #40E0D0, #48D1CC, #20B2AA);
    width: 5%;
    border-radius: 4px;
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== UNIFIED UI STYLING ===== */
/* All UI elements (text overlay, hotspots, buttons) use consistent dark backgrounds:
   - Background: rgba(0, 0, 0, 0.7) for normal state
   - Background: rgba(0, 0, 0, 0.8) for hover/active state
   - Border: rgba(255, 255, 255, 0.3) for normal state
   - Border: rgba(255, 255, 255, 0.5) for hover/active state
   - backdrop-filter: blur(5px) for all elements
   - This ensures text and icons remain visible while allowing scene content to show through
*/

/* ===== WORLD GAME STYLES ===== */

/* Screen management */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.screen.hidden {
    display: none;
}

/* Game start screen */
#gameStartScreen {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0;
}

.start-content {
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* World screen */
#worldScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
}

/* Scene display */
#sceneDisplay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#sceneImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sceneImage.error {
    display: none;
}

#sceneVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sceneVideo.error {
    display: none;
}

/* Scene text overlay */
.scene-text-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 150;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scene-text-overlay.typewriter-active:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.scene-text-overlay.typewriter-active::before {
    content: 'Click to skip';
    position: absolute;
    top: -25px;
    right: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scene-text-overlay.typewriter-active:hover::before {
    opacity: 1;
}

/* Typewriter cursor effect */
.scene-text-overlay.typewriter-active::after {
    content: '|';
    animation: blink 1s infinite;
    color: #48D1CC;
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* 3D Canvas */
#threeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Controls bar */
.controls-bar {
    position: absolute;
    top: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.controls-bar-left {
    left: 20px;
}

.controls-bar-right {
    right: 20px;
}

.control-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(52, 152, 219, 0.8);
    border-color: #48D1CC;
}

/* Hotspots */
.hotspot {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    pointer-events: none;
    backdrop-filter: blur(5px);
}

.hotspot:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hotspot-icon {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hotspot tooltips */
.hotspot-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 300;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
}

/* Disabled hotspots */
.hotspot-disabled {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.8;
    position: absolute !important;
    z-index: 200;
    backdrop-filter: blur(5px);
}

.hotspot-disabled:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    transform: none !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

.hotspot-disabled .hotspot-icon {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Collected hotspots */
.hotspot-collected {
    background: rgba(0, 128, 0, 0.3) !important;
    border-color: rgba(0, 255, 0, 0.5) !important;
    cursor: default !important;
    backdrop-filter: blur(5px);
}

.hotspot-collected:hover {
    background: rgba(0, 128, 0, 0.3) !important;
    transform: none !important;
    box-shadow: none !important;
}

.hotspot-collected .hotspot-icon {
    color: rgba(0, 255, 0, 0.8);
}

/* Overlays */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

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

.overlay-content h3 {
    color: white;
    margin-bottom: 1rem;
}

.overlay-content h5 {
    color: #48D1CC;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.overlay-content .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Loading overlay */
.loading-overlay {
    background: rgba(0, 0, 0, 0.9);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #48D1CC;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== UNIFIED MODAL STYLES ===== */
/* All modals use consistent styling matching the unified UI design */

/* Base modal styles - applied to all modals */
.overlay-content {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

.overlay-content h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
}

.overlay-content h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
}

.overlay-content h5 {
    color: #48D1CC;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.overlay-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.overlay-content .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.95rem;
}

/* Modal header styles */
.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: modal-icon-pulse 0.6s ease-out;
}

/* Modal body styles */
.modal-body {
    margin-bottom: 1.5rem;
}

/* Modal footer styles */
.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ===== SPECIFIC MODAL STYLES ===== */

/* Center buttons in overlay content */
.overlay-content .mt-4 {
    text-align: center;
}

/* Start Screen Styling - Match Popover Design */
.start-screen-background {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    min-height: 100vh;
}

.start-screen-content {
    max-width: none !important;
    margin: 0;
    position: static;
    transform: none;
    width: 100%;
}

/* Ensure proper height for Bootstrap layout */
.h-100 {
    height: 100vh !important;
}

/* Item Collection Modal */
.item-collection-modal {
    max-width: 400px;
    text-align: center;
}

.item-collection-header {
    margin-bottom: 1.5rem;
}

.item-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: item-collect-pulse 0.6s ease-out;
}

.item-collection-body h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.item-collection-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.item-collection-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Item Usage Modal */
.item-usage-modal {
    max-width: 400px;
    text-align: center;
}

.item-usage-header {
    margin-bottom: 1.5rem;
}

.item-usage-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    animation: item-usage-pulse 0.6s ease-out;
}

.item-usage-body h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.item-usage-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.item-usage-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Exit Confirmation Modal */
.exit-confirmation-modal {
    max-width: 450px;
    text-align: center;
}

.exit-confirmation-header {
    margin-bottom: 1.5rem;
}

.exit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

.exit-confirmation-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.exit-confirmation-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Volume Control Modal */
.volume-control-modal {
    max-width: 400px;
    text-align: center;
}

.volume-control-header {
    margin-bottom: 1.5rem;
}

.volume-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: volume-pulse 0.6s ease-out;
}

.volume-control-body {
    margin-bottom: 2rem;
}

.volume-slider-container {
    margin-bottom: 1.5rem;
}

.volume-slider-container label {
    display: block;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.volume-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #48D1CC;
    cursor: pointer;
    border: 2px solid white;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #48D1CC;
    cursor: pointer;
    border: 2px solid white;
}

.volume-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.volume-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.volume-buttons .btn {
    min-width: 120px;
}

.volume-control-footer {
    margin-top: 1rem;
    text-align: center;
}

/* Animations */
@keyframes item-collect-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes item-usage-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modal-icon-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes volume-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== SCENE TRANSITIONS ===== */

/* Fade transition effects */
.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

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

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

/* Transition video overlay */
#transitionVideoOverlay {
    z-index: 1000;
    background: #000;
}

#transitionVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Transition skip button */
.transition-skip-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.transition-skip-container .btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.transition-skip-container .btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Inventory */
.inventory-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.inventory-item:last-child {
    border-bottom: none;
}

.inventory-item strong {
    color: white;
}

.inventory-item .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.item-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ===== FORM CONTROLS ===== */
.form-check {
    margin-bottom: 0.5rem;
    text-align: left;
    display: flex;
    align-items: center;
}

.form-check-input {
    cursor: pointer;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    flex: 1;
}

/* ===== SHARED BUTTON STYLES ===== */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover:not(:disabled) {
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover:not(:disabled) {
    color: #fff;
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover:not(:disabled) {
    color: #fff;
    background-color: #545b62;
    border-color: #4e555b;
}

.btn-light {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-light:hover {
    color: #212529;
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.btn-outline-light {
    color: #f8f9fa;
    background-color: transparent;
    border-color: #f8f9fa;
}

.btn-outline-light:hover {
    color: #212529;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.3rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* General responsive adjustments */
    .glass-container {
        padding: 2rem;
        margin: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    /* Page-specific responsive styles */
    body.worlds-page {
        padding: 10px 0;
    }
    
    .studio-content h1 {
        font-size: 2.5rem;
    }
    
    .studio-subtitle {
        font-size: 1rem;
    }
    
    .development-notice {
        padding: 1.5rem;
    }
    
    .development-notice h2 {
        font-size: 1.5rem;
    }
    
    /* Control buttons */
    .controls-bar {
        top: 10px;
        gap: 5px;
    }
    
    .controls-bar-left {
        left: 10px;
    }
    
    .controls-bar-right {
        right: 10px;
    }
    
    .control-btn {
        padding: 8px;
        font-size: 14px;
        min-width: 40px;
    }
    
    /* Hotspot tooltips */
    .hotspot-tooltip {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Mobile start screen adjustments */
    #gameStartScreen {
        padding: 1rem 0;
    }

    .start-content {
        padding: 2rem;
        margin: 1rem auto;
        max-height: 95vh;
    }

    .form-check {
        margin-bottom: 0.75rem;
    }

    .form-check-input {
        transform: scale(1.2);
    }
} 