:root {
    --bg-color: #fcfdc8;
    --text-color: #222;
    --link-color: #7b5dff;
    --button-bg: #fff;
    --button-border: #ddd;
    --button-text: #333;
    --code-bg: #F8F8F8;
}

[data-theme="dark"] {
    --bg-color: #000000;
    --bg-color: #000000;
    --text-color: #e0e0e0;
    --link-color: #9d7eff;
    --button-bg: #333;
    --button-border: #555;
    --button-text: #e0e0e0;
    --code-bg: #141414;
}

body {
    font-family: serif;
    max-width: 700px;
    margin: 80px auto;
    padding: 0 20px;
    padding: 0 20px;
    line-height: 1.6;
    background: var(--bg-color);
    color: var(--text-color);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

@media (max-width: 768px) {
    body {
        margin: 40px auto;
        padding: 0 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
    }

    .theme-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    body {
        margin: 40px auto;
        padding: 0 16px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .theme-toggle {
        top: 16px;
        right: 16px;
    }

    .theme-icon {
        width: 32px;
        height: 32px;
    }
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 2rem;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.theme-toggle:active {
    opacity: 0.7;
}

.theme-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.6s ease;
    filter: invert(0);
    animation: rotate 0.6s ease-in-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

nav {
    margin-bottom: 2rem;
}

nav a {
    font-size: 0.9rem;
    opacity: 0.7;
}

nav a:hover {
    opacity: 1;
}

@import url('https://fonts.googleapis.com/css2?family=Monaspace+Neon:wght@300;400;500;600;700&display=swap');

code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: 'Monaspace Neon', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.75em;
}

.screentime-title {
    display: block;
    margin: 0 0 2rem 0;
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: invert(0);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .screentime-title {
    filter: invert(1);
}

.kwashiorkor-title {
    display: block;
    margin: 0 0 2rem 0;
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: invert(0);
    transition: filter 0.3s ease;
}

[data-theme="dark"] .kwashiorkor-title {
    filter: invert(1);
}

@media (max-width: 768px) {
    .screentime-title {
        max-width: 300px;
        margin: 0 0 1.5rem 0;
    }
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

.image-content img {
    max-width: 100%;
    height: auto;
}
