/* Import custom OTF font with better fallback handling */
@font-face {
    font-family: 'Sangha Kali';
    src: url('fonts/SanghaKali-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    width: 100%;
    height: 100%;
    /* REMOVED: overflow: hidden - This was preventing scrolling on mobile */
    /* Added to ensure proper zooming */
    touch-action: manipulation;
}

body {
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Added for mobile safety */
    max-width: 100vw;
    overflow-x: hidden;
}

#cosmicCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

/* Mobile Responsive Fixes */
@media screen and (max-width: 768px) {
    body {
        /* Allow content to flow naturally on mobile */
        display: block;
        overflow-y: auto; /* Enable vertical scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    #cosmicCanvas {
        /* Ensure canvas doesn't prevent tapping on mobile */
        pointer-events: none;
    }

    /* Make sure any text content is readable on mobile */
    .content-container {
        padding: 20px;
        font-size: 16px;
        line-height: 1.5;
    }
}

/* Minimum touch target sizes for accessibility */
a, button, .clickable {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}