@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Poppins-Regular.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Poppins-Italic.woff2) format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Poppins-Bold.woff2) format('woff2');
}

@font-face {
	font-family: 'Early GameBoy';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
	src: url(../fonts/early-gameboy-regular.woff2) format('woff2');
}

body {
    margin: 0;
    padding: 0;
    font: 400 16px Poppins,sans-serif;
    background: #fff;
}

header,
footer {
    background: #f6f8fa;
    border-bottom: 1px solid #e5e7eb;
}

main {
    background: url(../images/grass.png) repeat-x bottom;
    padding-bottom: 0;
}

h1 {
    margin: 0 0 0.5rem 0;
}

h1 img {
    margin: 0;
}

h1 a {
    font-weight: 400;
    color: #000;
    text-decoration: none;
    font-size: 2.6rem;
}

h2 {
    padding: 1rem 0 0 0;
    margin: 0 0 1rem 0;
    font-size: 1.85rem;
    font-weight: 700;
    border-bottom: 1px solid #f6f8fa;
    color: #0c4047;
    position: relative;
    line-height: 2.5rem;
}

h3 {
    padding: 1rem 0 0 0;
    margin: 0 0 1rem 0;
    font-size: 1.55rem;
    font-weight: 700;
    border-bottom: 1px solid #f6f8fa;
}

h4 {
    font-size: 1.2rem;
    margin: 1.4rem 0 1rem 0;
    font-weight: 700;
}

h5 {
    font-size: 1.1rem;
    margin: 1.6rem 0 1rem 0;
    font-weight: 400;
    border-bottom: 1px solid #e5e7eb;
}

p {
    margin: 0 0 1.2rem 0;
    line-height: 1.6rem;
}

a {
    color: #245a61;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

ul, ol {
    margin: 1.6rem 0;
    padding: 0 1.6rem;
}

ul ul {
    margin-top: 0;
}

li {
    margin-top: 0.8rem;
    line-height: 1.6rem;
}

li.file {
    list-style-type: none;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 5px 5px 5px 35px;
    font-size: 0.9rem;
    background: #FDF8E4 local url(../images/file.png) no-repeat 10px center;
    border: 1px solid #f2c779;
    overflow-x: auto;
    white-space: nowrap;
}

hr {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 1rem 0;
}

pre {
    padding: 1rem 0.8rem;
    max-width: 100%;
    overflow: auto;
    background: #f6f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
    font-size: 1rem;
    line-height: 1.5rem;
}

code, kbd {
    background: #f6f8fa;
    border: 1px solid #e5e7eb;
    font-family: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
    padding: 3px 5px;
}

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

kbd {
    border-bottom: 3px solid #E5E7EB;
}

blockquote {
    padding: 1.5rem;
    background: #f6f8fa;
    border-left: 5px solid #e5e7eb;
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.5rem;
}

blockquote p {
    margin-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    margin: 1.6rem auto;
    display: block;
}

small {
    font-size: 0.9em;
}

nav a {
    padding: 0 0.2rem;
}

nav a:first-child {
    padding-left: 0;
}

#header-content,
#main-content,
#footer-content {
    margin: auto;
    max-width: 900px;
    padding: 2rem 1.3rem;
}

#header-content {
    position: relative;
    padding: 1.5rem;
}

#header-content p span {
    display: block;
    font-size: .9rem;
    color: #333;
}

#footer-content {
    text-align: center;
}

#main-content {
    min-height: 200px;
    background: url(../images/tree.png) no-repeat 40px bottom;
    padding-bottom: 340px;
}

article {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

article a {
    font-size: 1.2rem;
}

article span,
.author span {
    font-size: 0.9rem;
    color: #555;
}

table {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 0 0 1rem 0;
}

table td, table th {
    border: 1px solid #e5e7eb;
    padding: 5px 10px;
}

table th {
    text-align: center;
    font-weight: 700;
    background: #0c4047;
    color: #fff;
}

section {
    border-left: 3px solid #e5e7eb;
    padding-left: 15px;
}

aside {
    font-size:0.8rem;
    font-style: italic;
    margin: -0.6rem 0 1rem 0;
    background: url(../images/arrow.png) no-repeat left 4px;
    padding-left: 16px;
    margin-left: 8px;
}

/* Form */

form {
    font-size: 0;
}

form .field {
    margin-bottom: 24px;
    font-size: 18px;
}

form .action {
    font-size: 14px;
    text-align: right;
    position: relative;
}

form label {
    display: block;
    margin-bottom: 12px;
}

form input,
form textarea {
    background: #fff;
    display: inline-block;
    padding: 10px;
    width: 100%;
    border: 1px solid #0c4047;
    color: #000;
    font-size: 16px;
    box-sizing: border-box;
    box-shadow: inset 0 0 1px 0 #666;
    vertical-align: middle;
}

form textarea {
    min-height: 300px;
}

form input[name="_gotcha"] {
    display: none;
}

form button {
    background: #0c4047;
    color: #fff;
    padding: 10px 15px;
    display: block;
    margin: 24px auto;
    font-size: 18px;
    border: 0;
    cursor: pointer;
}

/* Messages */

.message {
    padding: 10px;
    border-radius: 5px;
}

.message.error {
    background: #fce4e4;
    border: 1px solid #fcc2c3;
    color: #962828;
}

.message.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Useful */

.red {
    color: #951C24;
}

.green {
    color: #0c4047;
}

.line-through {
    text-decoration: line-through;
}

.warning {
    background: #FDF8E4;
    border: 1px solid #f2c779;
    color: #333;
    padding: 10px;
}

.info {
    background: #ebf3f4;
    border: 1px solid #015B65;
    color: #333;
    padding: 10px;
}

.alert {
    background: #FFF5F4;
    border: 1px solid #951C24;
    color: #951C24;
    padding: 10px;
}

.alert.csp em {
    color: #C67378;
}

/* Articles */

.social {
    font-size: 1.1rem;
    text-align: center;
    line-height: 28px;
    margin: 9rem 0 0 23rem;
    position: absolute;
}

.social a {
    text-decoration: none;
}

.toolbar {
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 10px;
    width: 100%;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
}

.toolbar a {
    padding-left: 25px;
    background: url(../images/top.png) no-repeat left center;
    text-decoration: none;
    line-height: 20px;
}

.archive {
    overflow-x: auto;
}

.archive img {
    display: inline-block;
    margin: 0 5px 0 0;
    vertical-align: bottom;
}

.archive table {
    border: 0;
    min-width: 790px;
}

.archive table tr.tar {
    background: #fffcf4;
}

.archive table tr.file {
    background: #f9fcfc;
}

.archive table td {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    font-size: 1.3rem;
}

.archive table td.ext {
    width: 25%;
    padding-left: 45px;
}

.archive table td.unpack {
    background: url(../images/unpacking.png) no-repeat 5px center;
}

.archive table td.pack {
    background: url(../images/packing.png) no-repeat 5px center;
}

.archive table td.cmd {
    width: 50%;
    font-family: Consolas, monaco, 'Ubuntu Mono', 'Liberation Mono', 'Courier New', Courier, monospace;
    font-size: 1.4rem;
}

.archive table td.inf {
    color: #999;
    font-size: 0.9rem;
}

.archive table .copy {
    position: relative;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: .06em;
}

.archive table .copy .copied {
    position: absolute;
    text-decoration: none;
    font-size: 0.7em;
    border-radius: 3px;
    background: #1e8422;
    color: #fff;
    padding: 3px 5px;
    white-space: nowrap;
    margin-left: 10px;
    box-shadow: 0 0 15px -10px #000;
}

.game {
    font: 400 16px "Early GameBoy",sans-serif;
}

.project {
    display: inline-block;
    margin-bottom: 0;
}

.compare {
    list-style-type: none;
    padding-left: 32px;
    margin-left: -1.5rem;
}

.compare.positive {
    color: #0c4047;
    background: url(../images/positive.png) no-repeat left center;
}

.compare.negative {
    color: #951C24;
    background: url(../images/negative.png) no-repeat left center;
}

/* Contact */

.required {
    color: #900;
}

form .captcha {
    display: flex;
}

form .captcha img {
    display: inline-block;
    height: auto;
    margin: 0;
}

.contact-success {
    text-align: center;
    margin: 3em 0 0 0;
}

.contact-success h2 {
    border: 0;
}

/* Code Highlight */

.ll-nam {
    color: #0c4047;
}

.ll-num {
    color: #256b75;
}

.ll-str {
    color: #1e8422;
}

.ll-pct {
    color: #666;
}

.ll-key {
    color: #555;
    font-weight: 700;
}

.ll-com {
    color: #888;
    font-style: italic;
}

@media (max-width: 900px) {
    .social {
        margin: 3rem 0 0 0;
        position: relative;
    }
}

@media (max-width: 450px) {
    .social strong,
    .social span {
        display: block;
    }

    .archive table td.ext {
        width: 15%;
    }

    .archive table td {
        font-size: 1rem;
    }

    .archive table td.cmd {
        font-size: 1.1rem;
    }
}
