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

/* Body Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7f9fa;
    color: #222;
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
header {
    background: #2d3748;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.85;
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #4a5568;
    padding: 1rem 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: #63b3ed;
    text-decoration: none;
}

nav a.inactive:hover {
    color: #fff;
    cursor: default;
    text-decoration: none;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

/* Headings */
h1, h2, h3, h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    margin: 10px;
}

/* Paragraphs */
p {
    margin-bottom: 1rem;
    margin: 10px;
}

/* Buttons */
.button, button, input[type="submit"] {
    background: #3182ce;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.button:hover, button:hover, input[type="submit"]:hover {
    background: #2b6cb0;
}

/* Links */
a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    background: #2d3748;
    color: #fff;
    margin-top: 3rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Responsive Design */
@media (max-width: 600px) {
    main {
        padding: 1rem;
    }
    header h1 {
        font-size: 2rem;
    }
    nav {
        gap: 1rem;
        flex-direction: column;
    }
}

code {
    background: #f1f1f1;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, monospace;
}

.caption {
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
    margin: 10px;
    color:rgb(128, 128, 128);
}