/* Principal style class */
.page-style {
    font-family: Mononoki;
    background-color: #212121;
    color: #EEEEEE;
    padding: 1rem;
}

.article-style {
    max-width: 1200px;
    width: auto;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Top page bar */
.top-page {
    display: flex;
    gap: 3rem;
    margin: auto;
    justify-content: space-around;
}

.col-left {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.col-center {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: center;
    font-size: 24px;
}

.col-right {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: end;
    color: #FF0000;
    font-weight: bold;
}

.wt {
    color: #EEEEEE;
}

.rt {
    color: #FF0000;
}

.tc {
    text-align: center;
}

.wst {
    text-align: center;
    text-decoration: bold;
    font-size: 32px;
}

/* Box pre */
.pre-box {
    border-left: 5px solid #2777FF;
    padding: 0px 0px 0px 10px;
    background: #212121;
}

/* Marker style class */
.mk {
    color: #FF0000;
}

/* Center elements */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Code table */
.code-table {
    border-radius: 8px;
    border: 3px solid #222222;
    background: #3F8FFF;
    font-family: monospace;
    width: 1000px;
    margin: auto;
}

.header {
    /* Top cell */
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: #3F8FFF;
    padding: 5px 10px;
    font-family: sans-serif;
    font-size: 20px;
    text-decoration: bold;
    color: black;
}

.header .cell.center {
    text-align: center;
    color: black;
    font-weight: bold;
}

.header .cell.right {
    text-align: right;
    color: black;
}

/* Code cell */
.code-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    background: #121212;
    padding: 10px;
    gap: 10px;
    align-items: start;
}

.code-left {
    margin: 0;
    padding: 0;
    white-space: pre;
    line-height: 1.2em;
    font-family: monospace;
    font-size: 16px;
}

.code-right {
    display: grid;
    grid-auto-rows: 1.2em;
    white-space: pre;
    text-align: right;
    font-size: 16px;
}

.footer {
    /* Bottom cell */
    padding: 8px 10px;
    border-radius: 8px;
}

/* Mobile style */
@media (max-width: 600px) {
    .article-style {
        max-width: 1200px;
        width: auto;
        margin: auto;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    /* Top page bar */
    .top-page {
        display: block;
        gap: 3rem;
        margin: auto;
        justify-content: space-around;
    }

    .col-left {
        display: block;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .col-center {
        display: block;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 24px;
    }

    .col-right {
        display: block;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #FF0000;
        font-weight: bold;
    }

    .pre-box-int {
        max-width: 900px;
        width: auto;
        overflow-x: auto;
    }

    .code-table {
        border-radius: 8px;
        border: 3px solid #222222;
        background: #3F8FFF;
        font-family: monospace;
    }

    .header {
        /* Top cell */
        border-radius: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        background: #3F8FFF;
        padding: 5px 10px;
        font-family: sans-serif;
        font-size: 18px;
        text-decoration: bold;
        color: black;
    }

    .header .cell.center {
        text-align: center;
        color: black;
        font-weight: bold;
    }

    .header .cell.right {
        text-align: right;
        color: black;
    }

    /* Code cell */
    .code-wrapper {
        display: grid;
        grid-template-columns: 1fr auto;
        background: #121212;
        padding: 10px;
        gap: 10px;
        align-items: start;
    }

    .code-left {
        margin: 0;
        padding: 0;
        white-space: pre;
        line-height: 1.2em;
        font-family: monospace;
        font-size: 16px;

        /* srcollabal */
        max-width: 350px;
        width: auto;
        overflow-x: auto;
    }

    .code-right {
        display: grid;
        grid-auto-rows: 1.2em;
        white-space: pre;
        text-align: right;
        font-size: 16px;
    }

    .footer {
        /* Bottom cell */
        padding: 8px 10px;
        border-radius: 8px;
    }

    p {
        font-size: 18px;
        text-align: center;
    }

    .st-img {
        display: block;
        max-width: 500px;
        max-height: 500px;
        width: auto;
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
    }
}

/* Highlighting keywords code cell */
.kw {
    /* Import */
    color: #FF0000;
    font-weight: bold;
}

.kw1 {
    /* Builtin function */
    color: #0077CC;
}

.kw2 {
    /* User function */
    color: #0077CC;
    font-weight: bold;
}

.kw3 {
    /* String */
    color: #184A9E;
}

.kw4 {
    /* Def */
    color: #47E63C;
}

.kw5 {
    /* Comment */
    color: #14592B;
}

.kw6 {
    /* Escepe */
    color: #700061;
}

.kw7 {
    /* Except */
    color: #0DC4E0;
}

/* Footer page */
.ft-pg {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin: auto;
}

.col {
    flex: 1;
}

/* Elements style */
a {
    color: #2777FF;
    text-decoration: none;
}

.st-img {
    display: block;
    max-width: 700px;
    max-height: 700px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
}

kbd {
    font-family: 'Fira Mono', monospace;
    border-radius: 2px;
    padding: 2px 4px;
    box-shadow: 2px 2px 1px #000000;
    margin: 0;
    font-size: 14px;
    background: #777777;
    font-weight: 500;
    color: #EEEEEE;
    white-space: nowrap;
}
