/* Global */
* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    color: #ccccae;
    font-family: "Lucida Console", "Lucida Sans Typewriter", monaco, "Bitstream Vera Sans Mono", monospace;
    background-color: #1e1e1e;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wrapper {
    width: clamp(300px, 100%, 800px);
    padding: 0 20px;
}

/* Typography */
a {
    color: #ffdd59;
}

a,
.ascii-title,
.nav-item {
    transition:
        color 350ms ease,
        background-color 350ms ease,
        text-shadow 350ms ease;
}

a:hover {
    color: #ccccae;
}

.no-underline {
    text-decoration: none;
}

h1 {
    color: #ffdd59;
    font-size: 24px;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 5px #000;
}

h2 {
    font-size: 20px;
    margin: 30px 0;
}

p {
    text-align: left;
    margin: 30px 0;
}

p,
li,
.code {
    line-height: 1.25;
}

footer p {
    text-align: center;
}

/* ASCII title */
.ascii-title {
    margin: 30px 0;
    color: #ffdd59;
    text-align: center;
    line-height: 1;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: clamp(40%, 2vw, 110%);
}

.ascii-title:hover {
    text-shadow: 0 0 3px white;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 5px;
    margin: 10px 0;
    box-shadow: 5px 6px 6px rgba(0, 0, 0, 0.25);
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-item {
    display: flex;
    flex: 1;
    justify-content: center;
    background-color: #333;
    border: 1px solid #1e1e1e;
    border-radius: 4px;
    margin: 10px;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 1px 1px 5px #000;
    box-shadow: 5px 6px 6px rgba(0, 0, 0, 0.25);
}

.nav-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.nav-item:hover {
    background-color: #252525;
    border: 1px solid #252525;
    box-shadow: none;
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
    }
}

/* Modules */
article {
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 5px 6px 6px rgba(0, 0, 0, 0.25);
}

.code {
    background-color: #1e1e1e;
    border-radius: 4px;
    padding: 20px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

/* Custom Bullets */
.bullet {
    list-style: none;
    padding: 10px 30px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
}

.html {
    background-image: url("/img/html-icon.png");
}
.css {
    background-image: url("/img/css-icon.png");
}
.js {
    background-image: url("/img/js-icon.png");
}
.php {
    background-image: url("/img/php-icon.png");
}
.mysql {
    background-image: url("/img/mysql-icon.png");
}
.wp {
    background-image: url("/img/wp-icon.png");
}
