@font-face {
    font-family: 'Droid Sans Mono';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/droidsansmono/v20/6NUO8FuJNQ2MbkrZ5-J8lKFrp7pRef2r.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * GLOBAL STYLING
 */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
    color: white;
    background-color: #0b1011;
}

a,
a:visited,
a:active {
    color: #00FF00;
    display: inline-block;
    text-decoration: none;
}

a:hover {
    color: #94ff94;
}

a.pagehead_link,
a.pagehead_link:hover,
a.pagehead_link:visited,
a.pagehead_link:active {
    color: inherit;
    display: initial;
    text-decoration: none;
}

button {
    background-color: green;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5em 2em;
    margin-right: 1em;
}

button:hover {
    background-color: lightgreen;
}

/*
 * TEMPLATE BASE STYLING
 */
#container {
    margin: auto;
    max-width: 1240px;
}

#menubar {
    padding: 0.3em 0 0.3em 0;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    font-size: 85%;
}

#menu_auth_details {
    display: none;
}

#menu_login,
#menu_logout {
    cursor: pointer;
}

#pagehead {
    padding: 0 0 2em 0;
}

#pagehead_namerow {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: min(350%, 10vw);
}

#pagehead_namerow_face {
    width: 3em;
    margin-right: 0.5em;
}

#pagehead_namerow_name {
    font-weight: bold;
}

#pagehead_categoryrow {
    padding: 1em 0 2em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

#pagehead_categoryrow > div.category_box {
    padding: 1em;
    border-radius: 8px;
}

#pagehead_categoryrow > div.category_selected {
    background-color: #444;
}

#pagehead_categoryrow > div.category_box:hover {
    box-shadow: 0 0 0 2px white;
}

#pagehead_categoryrow img.category_icon {
    display: block;
    margin: auto;
    height: 4em;
}

#pagehead_categoryrow span.category_text {
    display: block;
    text-align: center;
    text-transform: capitalize;
    padding: 1em 0 0 0;
}

/*
 * BASE FORM STYLING
 */
input[type='text'],
input[type='password'] {
    padding:0.5em;
    box-sizing: border-box;
    border: 2px solid #888;
    border-radius: 8px;
    background-color: #e2e9e9;
    color: #0b1011;
}

textarea {
    width: 100%;
    padding: 0.5em;
    box-sizing: border-box;
    border: 2px solid #888;
    border-radius: 8px;
    background-color: #e2e9e9;
    color: #0b1011;
    font-family: inherit;
}

ul.formlist {
    padding: 0;
}

ul.formlist > li {
    margin: 0 0 0.5em 0;
    display: flex;
    align-items: center;
    list-style: none;
}

ul.formlist > li > label {
    flex: 1;
}

ul.formlist > li > input {
    flex: 3;
}

/*
 * ADMIN ELEMENTS
 */
div.adminbar {
    display: none;
    margin: 0 0 0.5em 0;
}

/*
 * BLOG POSTS
 */
#postlist > a {
    display: block;
    color: inherit;
    border-radius: 12px;
    padding: 1em;
}

#postlist > a:hover {
    background: linear-gradient(90deg, rgba(0,60,0,1) 0%, rgba(11,16,17,1) 30%, rgba(11,16,17,1) 100%);
}

div.blogpost {
    border-bottom: 2px solid green;
}

#blogpage_container {
    padding: 1em;
    background-color: #e2e9e9;
    color: #0b1011;
    border-radius: 8px;
}

h2.blogpost_title {
    margin: 0 0 0.5em 0;
}

.maxw {
    max-width: 100%;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

pre {
    overflow-x: scroll;
}

code {
    font-family: 'Droid Sans Mono', monospace;
    font-size: 1rem;
}

@media (max-aspect-ratio: 1/2) {
    code {
        font-size: 60%;
    }
}

#blogpage_container a {
    background-color: black;
    border-radius: 4px;
    padding: 0.1em 0.5em;
}

#blogpage_container img {
    display: block;
    margin-bottom: 1em;
}
