:root {
    --main-text-color: #E1E1E1;
    --link-color: #D2B48C ;
}

* {
    font-family: inherit;
}

body, html {
    line-height: 1.6;
    font-size: 103%;
    background-color: #121212;
    color: var(--main-text-color);
}

article ul {
    background-color: #222;
    padding: 1rem 1rem 1rem 2.5rem;
    width: fit-content;
    border-radius: 4px;
}

article h2 {
    position: relative;
    padding-bottom: 0.5em;
}

article h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #444;
}

article h2 {
    padding-top: 1.3rem;
}

article h1 {
    padding-top: 1.5rem;
}

article section {
    line-height: 1.8;
    border-bottom: 1px solid #444;
}

.bot-border {
    border-bottom: 1px solid #444;
    padding: 0px 0px 5px 0px;
}

.container{
    margin: 10px 200px  10px 200px;
}

p {
    font-size: 1.1rem;
}

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

a:hover {
    text-decoration: underline;
}

/* Global Button Styles */
.btn {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--link-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn:hover {
    background-color: var(--link-color);
    color: #121212;
    text-decoration: none;
}

.btn-primary {
    border-color: var(--link-color);
    color: var(--link-color);
}

.btn-primary:hover {
    background-color: var(--link-color);
    color: #121212;
}

.btn-success {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-success:hover {
    background-color: #4CAF50;
    color: #121212;
}

.btn-info {
    border-color: #2196F3;
    color: #2196F3;
}

.btn-info:hover {
    background-color: #2196F3;
    color: #121212;
}

/* Legacy read-more class for backward compatibility */
.read-more {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--link-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    background-color: var(--link-color);
    color: #121212;
    text-decoration: none;
}

/* Project specific styles */
.project-summary {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #444;
}

.project-summary:last-child {
    border-bottom: none;
}

.project-summary h2 {
    margin-bottom: 0.5rem;
    color: var(--main-text-color);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #999;
}

.tech-stack {
    background-color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-date {
    font-style: italic;
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.code-block {
    background-color: #333;
    padding: 1rem;
    border-left: 3px solid #E0E0E0;
    width: fit-content;
    margin: 1.5rem 0;
}

#name {
    font-size: 1.5rem;
    font-weight: italic;
    margin: 0;
    color: var(--main-text-color);
}

h3 {
    margin: 1.2rem 0 0.6rem;
    font-weight: normal;
}

ul {
    padding-left: 1.5rem;
}

code {
    background-color: #333;
    padding: 2px 4px;
    font-family: inherit;
    color: var(--main-text-color);
}

pre {
    background-color: #333;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
    color: var(--main-text-color);
}

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 800px) {
    .container{
        margin: 0px 10px  0px 10px;
    }

    p {
        font-size: 1.0rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn, .read-more {
        text-align: center;
        width: 100%;
    }
}
