/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bai Jamjuree', sans-serif;
    font-weight: 600;
    background-color: white;
    color: black;
    overflow: hidden;
    /* Better mobile support */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Logo splash screen */
.logo-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.logo-splash.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    height: 120px;
    width: auto;
    object-fit: contain;
}

/* Main navigation screen */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.main-nav.show {
    opacity: 1;
}

/* Navigation items centered */
.nav-items {
    list-style: none;
    text-align: center;
    width: 600px;
}

.nav-item {
    margin: 0.6rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    color: black;
    width: 100%;
    opacity: 1;
}

.nav-item:hover {
    opacity: 0.5;
}

.nav-number {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: left;
}

.nav-text {
    font-weight: 600;
    font-size: 2.5rem;
    text-align: right;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        overflow: hidden !important;
    }
    
    .logo-image {
        height: 72px !important; /* 1.2x larger: 60px * 1.2 = 72px */
        max-height: 72px !important;
    }
    
    .main-nav {
        padding: 20px !important;
        align-items: center !important;
        justify-content: center !important;
        /* Ensure content is properly centered for mobile */
        min-height: 100vh !important;
        min-height: 100dvh !important; /* Dynamic viewport height for mobile browsers */
    }
    
    .nav-items {
        width: 95% !important;
        max-width: 400px !important; /* Increased from 350px */
        /* Center the navigation better on mobile */
        margin: 0 auto !important;
    }
    
    .nav-item {
        font-size: 2.2rem !important; /* Larger to get closer to screen edges */
        margin: 0.3rem 0 !important; /* Tighter spacing */
        /* Ensure items don't get cut off */
        min-height: 2.5rem !important;
    }
    
    .nav-number, .nav-text {
        font-size: 2.2rem !important; /* Larger to get closer to screen edges */
    }
}

/* iPhone specific fixes */
@media (max-width: 480px) {
    .logo-image {
        height: 60px !important; /* 1.2x larger: 50px * 1.2 = 60px */
    }
    
    .nav-item {
        font-size: 1.9rem !important; /* Larger for better screen coverage */
        margin: 0.25rem 0 !important; /* Tighter spacing */
    }
    
    .nav-number, .nav-text {
        font-size: 1.9rem !important; /* Larger for better screen coverage */
    }
    
    .nav-items {
        width: 95% !important; /* Increased from 90% */
        max-width: 350px !important; /* Increased from 300px */
    }
}