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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

/* Navbar */
.navbar {
    background-color: #4a2e91;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.navbar h1 {
    font-size: 2rem;
    margin: 0;
}
.nav-links {
    list-style: none; /* Remove bullet points */
    display: flex; /* Use Flexbox to align items horizontally */
    justify-content: center; /* Center the links horizontally */
    gap: 15px; /* Add spacing between links */
    margin-top: 10px;
    padding: 0;
}

.nav-links li {
    display: inline; /* Ensure each link item is inline */
}

.nav-links a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline */
    font-size: 1rem; /* Adjust font size */
    padding: 10px 15px; /* Add padding around links */
    transition: background-color 0.3s ease; /* Add hover transition */
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Highlight link on hover */
    border-radius: 5px; /* Optional: Rounded corners on hover */
}

/* Main Content */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4a2e91;
    font-size: 1.8rem;
    margin-bottom: 10px;
    margin-top: 20px;
}

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

/* Code Snippets */
.code-snippets {
    margin-top: 20px;
}

.snippet {
    background-color: #f4f4f4;
    border-left: 5px solid #4a2e91;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.snippet h3 {
    margin-bottom: 10px;
    color: #4a2e91;
}

pre {
    background-color: #e8e8e8;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #4a2e91;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: #4b0082; /* Elegant purple footer background */
    color: #ffffff;
    text-align: center;
    padding: 10px;
    position: static;
    bottom: 0;
    width: 100%;
    font-size: 0.9rem;
}

footer a {
    color: #dcdcdc; /* Light gray links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff; /* Brighten links on hover */
}

a {
    font-weight: bold;       /* Makes the link bold */
    text-decoration: none;   /* Removes underline */
    color: inherit;          /* Keeps the link's default color */
}

/* Global Link Styles */
a {
    color: #4a2e91; /* Default link color */
    text-decoration: none; /* Removes the underline */
}

/* Hover State */
a:hover {
    color: #3a2373; /* Change color when hovered */
    text-decoration: underline; /* Optional: Add underline on hover */
}

/* Focus State */
a:focus {
    outline: 2px dashed #3a2373; /* Optional: Add focus outline for accessibility */
}

/* Button Styling */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a2e91; /* Montero Nava's purple */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
    background-color: #3a2373;
    transform: scale(1.05);
}

/* Center the Button */
.button-container {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    margin-top: 20px; /* Adds spacing from content above */
}