/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: #ffffff;
    color: #333;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

nav {
    margin-top: 1rem;
}

nav button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 25px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

nav button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

nav button.active {
    background-color: #0056b3;
    font-weight: bold;
}

/* Main Content Area */
main {
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

#content {
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Markdown Content Styling */
#content h1, #content h2, #content h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 1.5rem;
}

#content h1 { font-size: 2.2rem; }
#content h2 { font-size: 1.8rem; }
#content h3 { font-size: 1.4rem; }

#content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

#content li {
    margin-bottom: 0.5rem;
}

#content a {
    color: #007bff;
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

#content code {
    background-color: #e8e8e8;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Loader Animation */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    #content {
        padding: 1.5rem;
    }
}
