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

body {
    font-family: Montserrat, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #299c05;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #1a1a1a;
}

header {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #96ff50;
}

h1 {
    margin-bottom: 0.5rem;
}

h1 a {
    color: inherit;
    text-decoration: none;
}

nav {
    margin-top: 1rem;
}

nav a {
    margin-right: 1.5rem;
    color: #79e65d;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #96ff50;
}

article h2, article h3 {
    margin-bottom: 0.5rem;
}

article a {
    color: #45dd6b;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

time {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.categories, .tags {
    margin: 0.5rem 0;
}

.category, .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
}

.category {
    background-color: #e3f2fd;
    color: #187032;
}

.category:hover {
    background-color: #a6e4a6;
    color:#1a1a1a
}

.tag {
    background-color: #f3e5f5;
    color: #292929;
}

.tag:hover {
    background-color: #e1bee7;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-item {
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.category-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-item h3 {
    margin-bottom: 0.5rem;
}

.category-item a {
    color: #1976d2;
    text-decoration: none;
}

.category-item a:hover {
    text-decoration: underline;
}

.category-item p {
    color: #666;
    font-size: 0.9rem;
}

.content {
    margin-top: 1.5rem;
}

img {
    max-width: 50%;
    height: auto;
}

img.small-size {
    max-width: 30%;
    height: auto;
}

img.float-right {
    float: right;
    max-width: 40%;     /* adjust as needed */
    margin: 0 0 1rem 1rem;
}

code {
    /* display: block; */
    font-family: "Fira Code", monospace;
    font-size: 0.9rem;
    background-color: #1e1e2e;
    color:#cdd6f4;
    padding: 1rem;
    display: inline-block;
    min-width: 100%;   
}

pre {
    overflow-x: auto;
    padding: 1rem;
    border-radius: 6px;
}