:root {
    /* CALM THEME - RELAXING COLORS */
    --bg-body: #f0f4f8; 
    --bg-header: #2c3e50;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border: #dcdde1;
    --accent: #3498db;
    --accent-hover: #2980b9;

    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-body: 'Georgia', serif;
    --font-mono: 'Courier New', monospace;
    
    --max-width: 1100px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--bg-header);
    margin-top: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Navbar */
.navbar {
    background-color: var(--bg-header);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
}

.nav-link:hover {
    color: var(--accent) !important;
    background: none;
}

/* Dropdown Menu */
.settings-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 2000;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background: none;
    border: none;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.settings-dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
.main-content {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
}

.welcome-box {
    background-color: #e3f2fd;
    border-left: 5px solid var(--accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.site-sub {
    font-style: italic;
    color: var(--text-muted);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Infobox */
.infobox {
    float: right;
    width: 300px;
    background-color: #f8f9fa;
    border: 1px solid var(--border);
    padding: 1rem;
    margin: 0 0 1rem 2rem;
}

.infobox table {
    width: 100%;
    border-collapse: collapse;
}

.infobox th, .infobox td {
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: left;
}

.goose-header {
    background-color: var(--bg-header);
    color: white;
    text-align: center;
}

.ascii-art {
    font-family: var(--font-mono);
    white-space: pre;
    text-align: center;
    color: var(--text-main);
    padding: 1rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: white;
    background-color: var(--bg-header);
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

/* Geese Animation - CALM */
#geese-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.goose {
    position: absolute;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    transform: translate3d(var(--x, 0), var(--y, 0), 0);
    will-change: transform;
    opacity: 0.2; /* Subtle visibility */
    font-size: 1.5rem;
}

/* Diet Table */
.diet-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
}
.diet-table th {
    background: var(--bg-header);
    color: white;
    padding: 10px;
}
.diet-table td {
    padding: 10px;
    border: 1px solid var(--border);
}

/* Mobile */
@media (max-width: 700px) {
    .infobox {
        float: none;
        width: 100%;
    }
}
