/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: #f0fdf9;
    color: #333;
    /* Smooth background color transition */
    transition: background-color 0.5s ease;
}

header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.logo { font-weight: bold; font-size: 24px; display: flex; align-items: center; }

.btn-icon { background: #fff; border: 1px solid #ddd; padding: 8px 12px; border-radius: 8px; cursor: pointer; }

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 800px;
    text-align: center;
}

h1 { font-size: 40px; margin-bottom: 0px; }

/* Dynamic Container for synchronized animation */
#dynamic-container {
    display: inline-block;
    white-space: nowrap;
}

/* Wrapper for alignment */
.search-and-menu-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 20px auto 0 auto;
}

.search-container {
    width: 100%;
    display: flex;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

input { border: none; outline: none; flex: 1; font-size: 16px; }

.search-icon {
    height: 20px;
    margin-right: 10px;
    opacity: 0.6;
    align-self: center;
}

.slash-key {
    color: #999;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    align-self: center;
}

.menu-row { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    flex-wrap: wrap; 
    justify-content: flex-start; 
}

.menu-btn { 
    padding: 8px 16px; 
    border: 1px solid #ddd; 
    border-radius: 20px; 
    background: white; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    font-size: 14px;
    color: #666666;
    transition: color 0.2s, border-color 0.2s;
}

.menu-btn img {
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
}

.menu-btn:hover {
    color: #333333;
    border-color: #bbb;
}

.cookie-banner { background: #f9f9f9; padding: 15px 20px; border-radius: 20px; margin-bottom: 20px; border: 1px solid #eee; text-align: center; }

.blue-btn { background: #007bff; color: white; border: none; padding: 5px 15px; border-radius: 5px; cursor: pointer; }

/* Footer Styles */
footer {
    width: 100%;
    padding: 20px 40px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
    font-size: 14px;
    color: #666;
    background-color: #fff;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-right { display: flex; gap: 15px; }
.footer-right a { text-decoration: none; color: #666; }
.footer-right a:hover { color: #333; }

/* Animation for the dynamic text */
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-slide {
    display: inline-block;
    animation: slideDown 0.5s ease-out;
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 600px) {
    header { padding: 15px 20px; }
    h1 { font-size: 28px; }
    
    .menu-row { 
        flex-direction: column; 
        gap: 10px; 
        width: 100%; 
    }
    
    .menu-btn { width: 100%; justify-content: center; }
    .search-container { padding: 12px 15px; }
    
    .footer-container { flex-direction: column; gap: 10px; text-align: center; }
}