/* Simple Text and Markdown Site Styling */

/* Font definitions using local Selawik fonts */
@font-face {
    font-family: 'Selawik';
    src: url('Selawik-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Selawik';
    src: url('Selawik-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'Selawik', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

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

header p {
    margin: 0;
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    margin-bottom: 2rem;
}

section {
    background: white;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #4a5568;
    margin-top: 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.welcome {
    border-left: 4px solid #667eea;
}

.content {
    border-left: 4px solid #48bb78;
}

.features {
    border-left: 4px solid #ed8936;
}

.security-demo {
    border-left: 4px solid #f56565;
}

.html-example {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-line;
    /* Preserves formatting in plain text */
    font-size: 0.9rem;
    color: #2d3748;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #4a5568;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
}

footer p {
    margin: 0;
}

/* Link styling for better contrast */
a {
    color: #667eea;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: #553c9a;
}

/* Footer links need special treatment for dark background */
footer a {
    color: #a8d4ff;
    text-decoration: none;
}

footer a:hover {
    color: #c8e4ff;
    text-decoration: underline;
}

footer a:visited {
    color: #9bb5ff;
}

/* Code and technical text styling */
pre,
code {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: monospace;
}

code {
    padding: 2px 4px;
    font-size: 0.9em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Lists in text content */
ul {
    padding-left: 1.5rem;
}

li {
    margin: 0.5rem 0;
}

/* Markdown content styling */
blockquote {
    border-left: 4px solid #667eea;
    margin: 1rem 0;
    padding: 0.5rem 0 0.5rem 1rem;
    background-color: #f8f9ff;
    font-style: italic;
    color: #4a5568;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border: 1px solid #e2e8f0;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

tr:hover {
    background-color: #f9f9f9;
}

/* Styling for checkmark lists */
li.no-bullet {
    list-style: none;
    margin-left: -1rem;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2rem;
    }

    main,
    header,
    footer {
        padding: 1rem;
    }
}
