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

header {
    background-color: #34495e;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.container {
    display: flex;
    justify-content: space-between;
    max-width: 95%;
    margin: 0 auto;
    padding: 20px;
}

article {
    background-color: #fff;
}

article h2 {
    color: #34495e;
    font-size: 2em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-align: center;
}

article p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

main {
    flex: 2;
}

article {
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 1px solid rgb(145, 145, 145);
    margin-right: 10px;
}

aside {
    flex: 1;
    background-color: #c9c9c9;
    padding: 10px;
}

footer {
    background-color: #242424;
    color: #fff;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

article a {
    text-decoration: none;
    color: inherit;
}

article a:hover {
    text-decoration: none;
}

.article-content {
    max-width: 70%;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
}

.article-content h2,
.article-content h3 {
    text-align: center;

}

.article-content p {
    margin: 1rem 0;
    text-align: justify;
}

pre {
    background: #1e1e1e;
    color: #eaeaea;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9rem;
    white-space: pre-wrap;
    padding: 0.6rem 0.8rem;
}


code {
    font-family: Consolas, "Courier New", monospace;
}

pre {
    margin: 0;
}


p code {
    background: #eee;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.code-block {
    position: relative;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
}

.code-block pre {
    margin: 0 !important;
    padding: 1rem 1rem 1rem 1rem !important;
    background: #1e1e1e !important;
    color: #dcdcdc;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.5;
    border-radius: 8px;
}

.perceptron-visual {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 70%;
}

.article-content ol li a:hover {
    text-decoration: none;
}

.article-content ol a {
    text-decoration: none;
    color: inherit;
}

header input[type=text] {
    float: center;
    padding: 6px;
    border: none;
    margin-top: 8px;
    margin-right: 16px;
    font-size: 17px;
}

@media screen and (max-width: 600px) {
    .header input[type=text] {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .header input[type=text] {
        border: 1px solid #ccc;
    }
}

.no-results-message {
    display: none;
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    flex-basis: 100%;
    align-self: center;
}

.sample-table {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.sample-table table {
    width: 100%;
    border-collapse: collapse;
}

.sample-table th,
.sample-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;

}

.sample-table thead {
    background: #f5f5f5;
    font-weight: bold;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    font-size: 0.75rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.85;
    transition: background 0.2s ease, opacity 0.2s ease;
    z-index: 10;
}

.copy-btn:hover {
    opacity: 1;
    background: #2980b9;
}

.copy-btn:active {
    background: #1f6fa5;
}
