/* ==============================================================================
 * GITHUB THEME - Base Typography & Content Styling
 * ==============================================================================
 * Extracted from Typora GitHub theme
 * For Techalicious Academy
 * ============================================================================== */

:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --link-color: #4183C4;
    --border-color: #e7e7e7;
    --code-bg: #f8f8f8;
    --blockquote-color: #777777;
    --side-bar-bg-color: #fafafa;
    --control-text-color: #777;
    --select-text-bg-color: #B5D6FC;
}

/* ------------------------------------------------------------------------------
 * Base Styles
 * ------------------------------------------------------------------------------ */

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------------------------
 * Typography
 * ------------------------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.4;
}

h1 {
    font-size: 2.25em;
    line-height: 1.2;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

h2 {
    font-size: 1.75em;
    line-height: 1.225;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.5em;
    line-height: 1.43;
}

h4 {
    font-size: 1.25em;
}

h5 {
    font-size: 1em;
}

h6 {
    font-size: 1em;
    color: #777;
}

/* ------------------------------------------------------------------------------
 * Links
 * ------------------------------------------------------------------------------ */

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

a:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------------------------
 * Paragraphs & Lists
 * ------------------------------------------------------------------------------ */

p, blockquote, ul, ol, dl, table {
    margin: 0.8em 0;
}

ul, ol {
    padding-left: 30px;
}

li > ol, li > ul {
    margin: 0;
}

/* ------------------------------------------------------------------------------
 * Blockquotes
 * ------------------------------------------------------------------------------ */

blockquote {
    border-left: 4px solid #dfe2e5;
    padding: 0 15px;
    color: var(--blockquote-color);
    margin: 0.8em 0;
}

/* ------------------------------------------------------------------------------
 * Horizontal Rule
 * ------------------------------------------------------------------------------ */

hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: var(--border-color);
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box;
}

/* ------------------------------------------------------------------------------
 * Code
 * ------------------------------------------------------------------------------ */

code, pre, tt {
    font-family: "Lucida Console", Consolas, "Courier New", monospace;
}

code {
    background-color: #f3f4f4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

pre {
    background-color: var(--code-bg);
    border: 1px solid #e7eaed;
    border-radius: 3px;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.45;
    margin: 1rem 0;
}

pre code {
    background: none;
    padding: 0;
    border: none;
}

/* ------------------------------------------------------------------------------
 * Tables
 * ------------------------------------------------------------------------------ */

table {
    padding: 0;
    word-break: initial;
    border-collapse: collapse;
    width: 100%;
}

table tr {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 0;
}

table tr:nth-child(2n), thead {
    background-color: #f8f8f8;
}

table th {
    font-weight: bold;
    border: 1px solid #dfe2e5;
    border-bottom: 0;
    margin: 0;
    padding: 6px 13px;
}

table td {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 13px;
}

/* ------------------------------------------------------------------------------
 * Images
 * ------------------------------------------------------------------------------ */

img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------------------------------------------------
 * Selection
 * ------------------------------------------------------------------------------ */

::selection {
    background: var(--select-text-bg-color);
}
