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

body {
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; */
    font-family: 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    text-decoration: none;
}

/* Logo text styling */
.logo-text {
    font-family: 'Baloo 2', sans-serif;
    font-size: 48px;
    font-weight: 300;
    color: var(--primary-black);
    margin: 0;
}

.logo img:hover {
    opacity: 0.8;
}


.login-btn {
    position: absolute;
    right: 40px;
    color:  var(--nav-color);
    background: transparent;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 300;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: rgba(74, 144, 226, 0.1);
}

.login-btn {
    color: var(--nav-color);;
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn:hover {
    background: rgba(74, 144, 226, 0.1);
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px; /* Reduced padding */
    min-height: 0; /* Allows flex shrinking */
}

.hero-text {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 80px;
    color: #333;
}

/* Prevent flash before JS animation on hero/choice */
.hero-text, .choice-container {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

/* Update hero title to use Baloo 2 */
.hero-title {
    font-family: 'Baloo 2', sans-serif;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.9;
}

.choice-container {
    display: flex;
    gap: 60px;
    margin-bottom: 60px;
}

/* Make buttons smaller */
.choice-card {
    border-radius: 30px;
    border: 2px solid var(--glass-border);
    padding: 40px 35px;
    width: 320px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    color: #333;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(173, 216, 230, 0.3);
}

.choice-card h2 {
    font-size: 28px;
    font-weight: 300; /* Make font thinner */
    color: #333;
    position: relative;
    z-index: 1;
    text-decoration: none; /* Remove underline */
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(173, 216, 230, 0.05) 100%);
    border-radius: 40px;
    pointer-events: none;
}

.choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(173, 216, 230, 0.4);
    border-color: rgba(74, 144, 226, 0.8);
    background: rgba(255, 255, 255, 0.6);
}

.choice-card h2 {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    position: relative;
    z-index: 1;
}


/* Story section */
/* Make story section stick to bottom with peeking title */
/* Remove the fixed positioning and use normal document flow */
.story-section {
    background: #222;
    color: white;
    min-height: 100vh;
    padding: 20px 20px 80px 20px;
    position: relative;
    margin-top: -90px; /* Just peek the title */
}


.story-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.story-title {
    font-family: 'Baloo 2', sans-serif;
    font-size: 36px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    padding-top: 10px; /* Add some padding above title */
}

.story-text {
    font-family: 'Baloo 2', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #e0e0e0;
}

/* Remove the margin-bottom from main-container */

/* Make the main container take full viewport height so story peeks */
body {
    margin: 0;
    padding: 0;
}


/* Add some bottom margin to main content so it's not hidden behind story section */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 20px;
    min-height: calc(100vh - 40px); /* Leave space for story title to peek */
}

.story-text {
    font-family: 'Baloo 2', sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .choice-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        padding: 0 20px; /* Add side padding */
    }
    
    .choice-card {
        padding: 60px 30px; /* Reduced padding */
        width: 100%; /* Use full available width */
        max-width: 400px; /* But don't exceed this */
        height: 140px;
        min-width: 280px; /* Prevent getting too narrow */
    }
    
    .choice-card h2 {
        font-size: 24px; /* Smaller text */
    }
}

@media (max-width: 480px) {
    .choice-container {
        padding: 0 15px; /* More side padding on tiny screens */
    }
    
    .choice-card {
        padding: 40px 20px; /* Even less padding */
        max-width: 320px; /* Smaller max width */
        height: 120px; /* Shorter height */
    }
    
    .choice-card h2 {
        font-size: 20px;
        line-height: 1.2; /* Tighter line spacing */
    }
}

@media (max-width: 360px) {
    .choice-container {
        padding: 0 10px;
    }
    
    .choice-card {
        padding: 30px 15px;
        max-width: 280px;
        height: 100px;
    }
    
    .choice-card h2 {
        font-size: 18px;
    }
}

.footer {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 14px;
}

.terms-link {
    color: #0964ff;
    text-decoration: underline;
}

.terms-link:hover {
    color: #0964ff;
}

.main-logo {
    text-align: center;
    margin-bottom: 40px;
    /* opacity: 0; */
    transform: translateY(20px);
    will-change: opacity, transform;
}

.main-logo img {
    height: 60px; /* Desktop size */
    width: auto;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        position: relative;
        min-height: 50px; /* Ensure minimum height */
    }
    
    .back-btn, .login-btn {
        font-size: 14px;
        padding: 6px 10px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .back-btn {
        left: 20px;
    }
    
    .login-btn {
        right: 20px;
    }
    
    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0 120px; /* Add padding to prevent overlap */
    }

    .main-logo {
        margin-bottom: 30px;
    }
    
    .main-logo img {
        height: 45px; /* Smaller on tablets */
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    
    .back-btn, .login-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .back-btn {
        left: 15px;
    }
    
    .login-btn {
        right: 15px;
    }
    
    .logo {
        padding: 0 100px; /* Adjust for smaller buttons */
    }
    
    .logo img {
        max-height: 12px; /* Make logo slightly smaller on tiny screens */
    }

    .main-logo {
        margin-bottom: 25px;
    }
    
    .main-logo img {
        height: 35px; /* Even smaller on phones */
    }
}

/* Ultra-small screens - stack elements vertically if needed */
@media (max-width: 360px) {
    .header {
        flex-direction: column;
        gap: 10px;
        padding: 15px 10px;
    }
    
    .back-btn, .login-btn {
        position: static;
        transform: none;
        align-self: flex-start;
    }
    
    .login-btn {
        align-self: flex-end;
    }
    
    .logo {
        order: -1; /* Put logo first */
        padding: 0;
        margin-bottom: 10px;
    }

    .main-logo {
        margin-bottom: 20px;
    }
    
    .main-logo img {
        height: 30px; /* Smallest on very small screens */
    }
}
