@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@100;400&display=swap');
:root {
    --content: #181818;
    --hr: #BEBEBE;
    --post-link: #5b5b5b;
    --linkhover: #000000;
    --linkunderline: #dedcdc;
    --gainsboro: #E0E0E0;
    --red: #FF3333;
    --white: white;
    --black: black;
    --sub: #787878;
    --code-bg: #f0f0f0;
}

::selection {
  color: var(--black);
  background: var(--gainsboro);
}

#logo img {
    max-height: 4.5rem;
    max-width: 4.5rem;
    vertical-align: middle;
    margin: auto;
    }

#logo {
    text-decoration: none;
    background: unset!important;
    float: left;
    }

nav {
    width: auto;
    height: 100px;
}

nav ul {
    padding: 20px;
    text-align: center;
}

nav ul li {
    list-style-type: none;
    display: inline-block;
    margin-left: 10px;
}


nav a {
    color: var(--content);
    text-decoration: none;
}

.section-title {
    font-size: 25px;
    font-weight: 500;
}

main {
    font-family: 'Inter', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	font-size: 1rem;
	color: var(--content);
	max-width: 620px;
	margin: 40px auto;
	line-height: 160%;
}

main h2, h3 {
  padding: 20px 0 5px 0;
}

main a:hover {
    background-color: var(--gainsboro);
    color: var(--linkhover);
}

article h1 {
    margin-bottom: 10px;
    line-height: 1.3;
}

article .subtitle {
    font-style: italic;
    color: var(--sub);
    margin: 10px 0px 30px 0px;
    font-weight: normal;
}

#content a, article a {
    color: var(--post-link);
    text-decoration: underline;
    text-decoration-color: var(--linkunderline);
}

article img {
    box-shadow: 0px 0px 12px 4px rgba(68, 68, 68, 0.6);
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
}

.index {
    table-layout: fixed;
    width: 100%;
    padding: 7px 0 7px 0;
}

td:first-child {
  padding-left: 0;
}

td:last-child {
  padding-right: 0;
}

.post-title a {
    color: var(--content);
    text-decoration: none;
}

.post-date {
    white-space: nowrap;
    vertical-align: baseline;
    color: var(--sub);
    width: 105px;
    font-size: 1rem;
}

.chal-info {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--code-bg);
    box-shadow: 1.5px 1.5px 1px rgba(68, 68, 68, 0.6);
    padding: 10px;
    overflow-x: auto;
    margin: 20px 0 50px 0;
}

.chal-info-key {
    font-weight: bold;
    vertical-align: top;
}

.chal-info-value {
    padding-left: 10px;
}

code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    overflow-wrap: break-word;
    background-color: var(--code-bg);
}

pre {
    max-width: 620px;
    overflow-x: auto;
    padding: 20px;
    box-shadow: 1.5px 1.5px 1px rgba(68, 68, 68, 0.6);
    line-height: normal;
}

footer {
	max-width: 610px;
	margin: 40px auto;
}

footer img {
    max-height: 2.5rem;
    max-width: 2.5rem;
    display: inline-block;
    vertical-align: middle;
    image-orientation: from-image;
    padding-right: 5px;
}

hr {    
    border: 0;
    height: 1px;
    background: #333;
}

.inputs {
    text-align: center;
}

.icons {
    margin: 15px auto;
}

@media screen and (max-width: 385px) {
   nav ul {
        padding: 20px;
        text-align: left;
        margin-left: 60px;
    }
	nav ul li {
		display: inline-block; 
	}

	table, thead, tbody, th, td, tr { 
	    display: block;
	}

	td {
	    padding: 0;
	    text-align: left;
	}

	tr {
	    padding: 10px 0 10px 0;
	}

    .chal-info table {
        display: table;
    }

    .chal-info tr{
        display: table-row;
    }

    .chal-info td {
        display: table-cell;
    }
}
/* Syntax */
/* Background */ .chroma { background-color: #f0f0f0 }
/* Other */ .chroma .x {  }
/* Error */ .chroma .err {  }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; width: auto; overflow: auto; display: block; }
/* LineHighlight */ .chroma .hl { display: block; width: 100%;background-color: #ffffcc }
/* LineNumbersTable */ .chroma .lnt { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Keyword */ .chroma .k { color: #007020; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #007020; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #007020; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #007020; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #007020 }
/* KeywordReserved */ .chroma .kr { color: #007020; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #902000 }
/* Name */ .chroma .n {  }
/* NameAttribute */ .chroma .na { color: #4070a0 }
/* NameBuiltin */ .chroma .nb { color: #007020 }
/* NameBuiltinPseudo */ .chroma .bp {  }
/* NameClass */ .chroma .nc { color: #0e84b5; font-weight: bold }
/* NameConstant */ .chroma .no { color: #60add5 }
/* NameDecorator */ .chroma .nd { color: #555555; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #d55537; font-weight: bold }
/* NameException */ .chroma .ne { color: #007020 }
/* NameFunction */ .chroma .nf { color: #06287e }
/* NameFunctionMagic */ .chroma .fm {  }
/* NameLabel */ .chroma .nl { color: #002070; font-weight: bold }
/* NameNamespace */ .chroma .nn { color: #0e84b5; font-weight: bold }
/* NameOther */ .chroma .nx {  }
/* NameProperty */ .chroma .py {  }
/* NameTag */ .chroma .nt { color: #062873; font-weight: bold }
/* NameVariable */ .chroma .nv { color: #bb60d5 }
/* NameVariableClass */ .chroma .vc {  }
/* NameVariableGlobal */ .chroma .vg {  }
/* NameVariableInstance */ .chroma .vi {  }
/* NameVariableMagic */ .chroma .vm {  }
/* Literal */ .chroma .l {  }
/* LiteralDate */ .chroma .ld {  }
/* LiteralString */ .chroma .s { color: #4070a0 }
/* LiteralStringAffix */ .chroma .sa { color: #4070a0 }
/* LiteralStringBacktick */ .chroma .sb { color: #4070a0 }
/* LiteralStringChar */ .chroma .sc { color: #4070a0 }
/* LiteralStringDelimiter */ .chroma .dl { color: #4070a0 }
/* LiteralStringDoc */ .chroma .sd { color: #4070a0; font-style: italic }
/* LiteralStringDouble */ .chroma .s2 { color: #4070a0 }
/* LiteralStringEscape */ .chroma .se { color: #4070a0; font-weight: bold }
/* LiteralStringHeredoc */ .chroma .sh { color: #4070a0 }
/* LiteralStringInterpol */ .chroma .si { color: #70a0d0; font-style: italic }
/* LiteralStringOther */ .chroma .sx { color: #c65d09 }
/* LiteralStringRegex */ .chroma .sr { color: #235388 }
/* LiteralStringSingle */ .chroma .s1 { color: #4070a0 }
/* LiteralStringSymbol */ .chroma .ss { color: #517918 }
/* LiteralNumber */ .chroma .m { color: #40a070 }
/* LiteralNumberBin */ .chroma .mb { color: #40a070 }
/* LiteralNumberFloat */ .chroma .mf { color: #40a070 }
/* LiteralNumberHex */ .chroma .mh { color: #40a070 }
/* LiteralNumberInteger */ .chroma .mi { color: #40a070 }
/* LiteralNumberIntegerLong */ .chroma .il { color: #40a070 }
/* LiteralNumberOct */ .chroma .mo { color: #40a070 }
/* Operator */ .chroma .o { color: #666666 }
/* OperatorWord */ .chroma .ow { color: #007020; font-weight: bold }
/* Punctuation */ .chroma .p {  }
/* Comment */ .chroma .c { color: #60a0b0; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #60a0b0; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #60a0b0; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #60a0b0; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #60a0b0; background-color: #fff0f0 }
/* CommentPreproc */ .chroma .cp { color: #007020 }
/* CommentPreprocFile */ .chroma .cpf { color: #007020 }
/* Generic */ .chroma .g {  }
/* GenericDeleted */ .chroma .gd { color: #a00000 }
/* GenericEmph */ .chroma .ge { font-style: italic }
/* GenericError */ .chroma .gr { color: #ff0000 }
/* GenericHeading */ .chroma .gh { color: #000080; font-weight: bold }
/* GenericInserted */ .chroma .gi { color: #00a000 }
/* GenericOutput */ .chroma .go { color: #181818 }
/* GenericPrompt */ .chroma .gp { color: #c65d09; font-weight: bold }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #800080; font-weight: bold }
/* GenericTraceback */ .chroma .gt { color: #0044dd }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }
