/* Critical CSS for initial render */
body {
    background-color: #0a192f;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
}
#loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(10, 25, 47, 0.95);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes float-random {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Cookie Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #001e3c; /* deepBlue */
    padding: 1.5rem;
    z-index: 1000;
    display: none; /* Initially hidden */
    border-top: 2px solid #00f0ff; /* neonBlue */
    box-shadow: 0 -4px 15px rgba(0, 240, 255, 0.2);
}

#cookie-consent-banner p {
    margin-bottom: 1rem;
    color: #cbd5e1; /* gray-300 */
}

#cookie-consent-banner a {
    color: #64ffda; /* lightBlue */
    text-decoration: underline;
}

#cookie-consent-banner .cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

#cookie-consent-banner button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#cookie-consent-banner #cookie-accept-btn {
    background-color: #00f0ff; /* neonBlue */
    color: #0a192f; /* darkBlue */
}

#cookie-consent-banner #cookie-accept-btn:hover {
    transform: scale(1.05);
}

#cookie-consent-banner #cookie-reject-btn {
    background-color: transparent;
    border: 2px solid #64ffda; /* lightBlue */
    color: #64ffda;
}

#cookie-consent-banner #cookie-reject-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
} 

/* Mobile-First Optimizations */
@media (max-width: 768px) {
    /* Adjust typography for smaller screens */
    h1, .text-4xl {
        font-size: 2.25rem; /* 36px */
    }
    h2, .text-3xl {
        font-size: 1.875rem; /* 30px */
    }
    .text-5xl {
        font-size: 2.5rem; /* 40px */
    }

    /* Reduce padding on sections */
    section, header {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Ensure form elements are stacked nicely */
    #stock-input, #analyze-btn {
        width: 100%;
    }
    
    /* Adjust modal for smaller screens */
    #line-modal .p-8 {
        padding: 1.5rem;
    }
} 