* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #20b2aa;
    overflow: hidden;
    height: 100vh;
}

#container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
}

#title {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 0.2em;
    text-shadow: 0 0 20px #20b2aa;
    margin-bottom: 10px;
}

#subtitle {
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: 0.15em;
    opacity: 0.8;
}

#digital-expanse {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#portal-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#instructions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
    z-index: 100;
}

/* Mobile Styles */
#mobile-menu {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.mobile-portal {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 12px;
    background: rgba(32, 178, 170, 0.1);
    border: 1px solid rgba(32, 178, 170, 0.3);
}

.mobile-portal:hover {
    background: rgba(32, 178, 170, 0.2);
    transform: translateY(-5px);
}

.mobile-portal img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.portal-title {
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    #three-container {
        display: none;
    }
    
    #title {
        font-size: 2rem;
    }
    
    #subtitle {
        font-size: 0.8rem;
    }
    
    header {
        top: 20px;
    }
    
    body {
        overflow: auto;
    }
    
    #digital-expanse {
        background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #000 100%);
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    
    .mobile-only {
        display: none;
    }
    
    #mobile-menu {
        display: none;
    }
}

/* Animations */
.mobile-portal img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}