:root {
    --bg: #fff;
    --table-bg: #f8f8f8;
    --code-bg: #f7f7f7;
    --notice1-bg: #fffbf0;
    --notice2-bg: #fdf0f0;
    --notice3-bg: #f0f8fe;
    --heading: #333;
    --text: #333;
    --code: #666;
    --link: #4183c4;
    --link-active: #333;
    --blockquote: #777;
    --blockquote-accent: #ddd;
    --notice1-accent: #fb0;
    --notice2-accent: #d00;
    --notice3-accent: #08e;
    --separator: #ddd;
    --border: #bbb;
    --font: -apple-system, Roboto, Helvetica, sans-serif;
    --monospace-font: Consolas, Menlo, Courier, monospace;
}

/* General */

* {
    box-sizing: border-box;
}

html, body, div, form, pre, span, tr, th, td, img {
    margin: 0 auto;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}
body {
    margin: 0 auto;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1em;
    font-weight: 400;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
    font-weight: 400;
}
h1 {
    font-size: 2em;
}
hr {
    height: 1px;
    background: var(--separator);
    border: 0;
}
strong {
    font-weight: bold;
}
code {
    font-size: 1.1em;
}
a {
    color: var(--link);
    text-decoration: none;
}
a:hover {
    color: var(--link);
    text-decoration: underline;
}

/* Content */

.content {
    min-height: 80vh;
    margin: 2em auto;
    font-size: 1.25em;
    line-height: 1.15em;
    word-wrap: break-word;
    font-family: "Gill Sans", sans-serif;
    font-weight: 200;
}
.content p,
.content blockquote,
.content table,
.content pre {
    margin: 1em auto;
}
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--heading);
}
.content h1 {
    font-size: 2em;
    border-bottom: 1px solid var(--separator);
}
.content h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--separator);
}
.content h3 {
    font-size: 1.25em;
}
.content h4 {
    font-size: 1em;
}
.content h5 {
    font-size: 0.875em;
}
.content h6 {
    font-size: 85em;
}
.content h1 a {
    color: var(--heading);
}
.content h1 a:hover {
    color: var(--heading);
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}
.content form {
    margin: 1em 0;
}
.content table {
    border-spacing: 0;
    border-collapse: collapse;
}
.content table th {
    font-weight: bold
}
.content table th,
.content table td {
    padding: 6px 13px;
    border: 1px solid var(--separator);
}
.content table tr {
    background-color: var(--bg);
    border-top: 1px solid var(--separator);
}
.content table tr:nth-child(2n) {
    background-color: var(--table-bg);
}
.content code,
.content pre {
    font-family: var(--monospace-font);
    font-size: 90%;
}
.content code {
    padding: 0.15em 0.4em;
    margin: 0;
    background-color: var(--code-bg);
    color: var(--code);
    border-radius: 3px;
}
.content pre > code {
    padding: 0;
    margin: 0;
    white-space: pre;
    background: transparent;
    border: 0;
    font-size: inherit;
}
.content pre {
    padding: 1em;
    overflow: auto;
    line-height: 1.45;
    background-color: var(--code-bg);
    color: var(--code);
    border-radius: 3px;
}
.content blockquote {
    margin-left: 0;
    padding-left: 1em;
    border-left: 4px solid var(--blockquote-accent);
    color: var(--blockquote);
}
.content .notice1 {
    margin: 1em 0;
    padding: 10px 1em;
    background-color: var(--notice1-bg);
    border-left: 4px solid var(--notice1-accent);
}
.content .notice2 {
    margin: 1em 0;
    padding: 10px 1em;
    background-color: var(--notice2-bg);
    border-left: 4px solid var(--notice2-accent);
}
.content .notice3,
.content .notice4,
.content .notice5,
.content .notice6 {
    margin: 1em 0;
    padding: 10px 1em;
    background-color: var(--notice3-bg);
    border-left: 4px solid var(--notice3-accent);
}
.content ul, .content ol {
    padding-left: 2em;
}
.content .flexible {
    position: relative;
    padding-top: 0;
    padding-bottom: 56.25%;
}
.content .flexible iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
iframe {
    max-height: 80vh;
    width: 100%;
    margin: 0 auto;
    justify-content: center;
}
.content .task-list-item {
    list-style-type: none;
}
.content .task-list-item input {
    margin: 0 0.2em 0.25em -1.75em;
    vertical-align: middle;
}
.content .toc {
    margin: 0;
    padding: 0;
    list-style: none;
}
.content .previousnext .previous {
    margin-right: 1em;
}
.content .pagination .previous {
    margin-right: 1em;
}
.content .pagination {
    margin: 1em 0;
}
.content .left {
    float: left;
    margin: 0 1em 0 0;
}
.content .center {
    display: block;
    margin: 0 auto;
}
.content .right {
    float: right;
    margin: 0 0 0 1em;
}
.content .rounded {
    border-radius: 4px;
}

/* Header */

.header {
    min-height: 13em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url(headercov.png);
    opacity: 0.75;
    background-color: rgba(0, 0, 0, 0.15);
    background-size: cover;
    width: 100%;
}
.sitename {
    display: inline-block;
}
.sitename h1 {
    margin-bottom: 0;
    justify-content: center;
}
.header .sitename p {
    font-size: 12px;
    color: white;
    margin-top: 0
}
.header .sitename-logo {
    display: inline-block;
    background-image: url(nasrullah-logo.png);
    opacity: 1.0;
    background-size: cover;
    vertical-align: middle;
}
.sitename h1 a {
    color: white;
    font-size: 1.75em;
    text-decoration: none;
    font-family: Copperplate, "Copperplate Gothic Light", fantasy;
    margin: 0 auto;
    justify-content: center;
}
.sitename h1 a:hover {
    color: darkorange;
    text-decoration: none;
}

/* Navigation */

.navigation {
    min-height: 3em;
    background: #373B44;  /* fallback for old browsers */
background: -webkit-linear-gradient(to top, #4286f4, #373B44);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #4286f4, #373B44); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    justify-content: center;
    align-items: center;
    display: flex;
    font-weight: 500;
    font-size: 1.25em;
    font-family: "Gill Sans", sans-serif;
}
.navigation a {
    color: var(--text);
    text-decoration: none;
    padding: 0 0.5em;
    color: white;
}
.navigation a:hover {
    color: red;
    text-decoration: none;
}
.navigation ul {
    margin: 0 .5em;
    padding: 0;
    list-style: none;
}
.navigation li {
    display: inline;
}
.navigation li a.active {
    color: darkorange;
    text-transform: uppercase;
}
.navigation li a.active:hover {
    color: orange;
}
.navigation-banner {
    clear: both;
}

/* Footer */

.footer {
    margin-top: 5em;
    font-family: "Gill Sans", sans-serif;
    font-size: 1.25em;
    min-height: 13em;
}
.footer-contentinfo {
    line-height: normal;
    color: white;
    min-height: 13em;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    gap: .5em;
    padding: .5em;
}
.siteinfo {
    flex: 65%;
}
.siteinfo-banner {
    flex: 35%;
}
.siteinfo-banner a {
    color: darkorange;
}
.siteinfo-banner ul {
    padding: 0;
    list-style-type: none;
}

/* Forms and buttons */

.form-control {
    margin: 0;
    padding: 2px 4px;
    display: inline-block;
    min-width: 7em;
    background-color: var(--bg);
    color: var(--text);
    background-image: linear-gradient(to bottom, var(--bg), var(--bg));
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9em;
    font-family: inherit;
    font-weight: normal;
    line-height: normal;
}
.btn {
    margin: 0;
    padding: 4px 22px;
    display: inline-block;
    min-width: 7em;
    background-color: #eaeaea;
    color: #333333;
    background-image: linear-gradient(to bottom, #f8f8f8, #e1e1e1);
    border: 1px solid var(--border);
    border-color: #c1c1c1 #c1c1c1 #aaaaaa;
    border-radius: 4px;
    outline-offset: -2px;
    font-size: 0.9em;
    font-family: inherit;
    font-weight: normal;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}
.btn:hover,
.btn:focus,
.btn:active {
    color: #333333;
    background-image: none;
    text-decoration: none;
}
.btn:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive and print */

.bar {
    margin: 2em auto;
    padding: .5em;
    display: flex;
    gap: .5em;
    justify-content: space-between;
    align-items: stretch;
}
.l-bar,
.r-bar,
.blog-id,
.blog-en,
.siteinfo,
.siteinfo-banner {
    padding: 0 .5em;
    line-height: normal;
    flex-grow: 1; 
    flex-basis: 1;
    flex-shrink: 1;
    width: 100%;
}
.postpreview {
    width: 90%;
    min-height: 70vh;
}
.postprev {
    margin: 2em auto;
    line-height: normal;
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: .5em;
}
.postprev .entry {
    padding: 0 .25em;
    border: 1px solid silver;
}

.footer {
    background: rgb(0,0,0);
    background: -moz-linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(24,95,140,1) 70%, rgba(24,120,184,1) 100%);
    background: -webkit-linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(24,95,140,1) 70%, rgba(24,120,184,1) 100%);
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(24,95,140,1) 70%, rgba(24,120,184,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#1878b8",GradientType=1);
}

@media screen and (min-width: 1024px) {
    .main {
        width: 60%;
    }
    .bar,
    .footer-contentinfo {
        width: 80%;
    }
    iframe {
        max-height: 80vh;
     }
}
@media screen and (max-width: 1024px) {
    .main {
        width: 88%;
    }
    .bar,
    .footer-contentinfo {
        width: 100%;
    }
    .postprev {
        grid-template-columns: 1fr 1fr;
    }
    iframe {
        max-height: 75vh;
     }
}
@media screen and (max-width: 780px) {
    .main {
        width: 95%;
    }
    .sitename h1 a {
        font-size: 1.5em;
    }
    .postprev {
        grid-template-columns: 1fr;
    }
    .bar,
    .footer-contentinfo {
        flex-direction: column;
    }
    iframe {
        max-height: 65vh;
     }
}
@media print {
    .page {
        border: none !important;
    }
}
