/* Includes the Roboto font, licensed under the Apache License 2.0 */
@font-face {
    font-family: "Roboto";
    font-weight: 300;
    src: url("/static/fnt/roboto-light.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 400;
    src: url("/static/fnt/roboto-regular.ttf") format("truetype");
}

@font-face {
    font-family: "Roboto";
    font-weight: 700;
    src: url("/static/fnt/roboto-bold.ttf") format("truetype");
}

:root {
    --accent: #0066ff;
    --accent-hover: #3385ff;
    --window: #2b2e3b;
    --text-decoration: #374251;
    --error: #c01c28;
    --indent: #cccccc;
}

* {
    margin: 0;
    outline: 0;
    border: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

html {
    width: 100%;
    height: auto;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
}

header {
    font-size: 0;
    width: 100%;
    height: 64px;
    background-color: var(--window);
    z-index: 1;
}

img.header-image {
    position: absolute;
    top: -32px;
    left: 0%;
    width: 128px;
    height: 128px;
    filter: drop-shadow(0px 0px 5px #222);
}

a.img-header-link {
    margin-left: 16px;
    margin-right: 32px;
}

a.header-link {
    position: relative;
    display: inline-block;
    width: 128px;
    height: 64px;
    vertical-align: top;
    line-height: 64px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    color: white;
}

a.header-link:hover {
    color: var(--accent-hover);
}

@media only screen and (max-width: 815px) {
    a.header-link {
        width: calc((100% - 144px) / 5);
        font-size: 10px;
    }

    a.img-header-link {
        display: inline-block;
        width: 128px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media only screen and (max-width: 400px) {
    a.header-link {
        width: calc((100% - 144px) / 5);
        font-size: 8px;
    }

    a.img-header-link {
        display: inline-block;
        width: 128px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

main {
    min-height: calc(100vh - (64px + 128px));
    flex: 1 0 auto;
}

h1.home-intro {
    display: block;
    position: relative;
    font-style: italic;
    font-weight: 700;
    margin: auto;
    margin-top: 64px;
    width: 768px;
    max-width: 100%;
    line-height: 32px;
    font-size: 24px;
}

h1.home-heading {
    display: block;
    position: relative;
    margin: auto;
    margin-top: 64px;
    width: 768px;
    max-width: 100%;
    height: 32px;
    line-height: 32px;
    border-bottom-style: solid;
    border-bottom-color: black;
    border-bottom-width: 1px;
    font-size: 24px;
}

div.projects {
    display: block;
    position: relative;
    margin: auto;
    width: 768px;
    max-width: 100%;
    height: auto;
    font-size: 0;
}

div.major-projects {
    display: inline-block;
    width: 60%;
    height: auto;
    vertical-align: top;
}

a.major-project-entry {
    display: block;
    position: relative;
    margin-left: 16px;
    margin-right: 16px;
    width: calc(100% - 16px * 2);
    height: 96px;
    text-decoration: none;
}

img.major-project-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: calc(96px - 24px * 2);
    height: calc(96px - 24px * 2);
}

h1.major-project-name {
    position: absolute;
    bottom: 50%;
    left: 96px;
    font-size: 18px;
    color: var(--accent);
}

h2.major-project-subtitle {
    position: absolute;
    top: 50%;
    left: 96px;
    font-size: 14px;
    color: black;
    font-weight: 400;
}

div.minor-projects {
    display: inline-block;
    width: 40%;
    height: auto;
    vertical-align: top;
}

a.minor-project-entry {
    display: block;
    position: relative;
    margin: 16px;
    width: calc(100% - 16px * 2);
    height: auto;
    text-decoration: none;
}

@media only screen and (max-width: 550px) {
    div.major-projects {
        width: 100%;
        vertical-align: none;
    }

    div.minor-projects {
        width: 100%;
        vertical-align: none;
    }
}

h1.minor-project-name {
    font-size: 18px;
    color: var(--accent);
}

h2.minor-project-subtitle {
    font-size: 14px;
    color: black;
    font-weight: 400;
}

a.news-link {
    display: block;
    position: relative;
    width: 768px;
    height: 256px;
    margin: auto;
    margin-top: 32px;
    margin-bottom: 32px;
    font-size: 0;
    text-decoration: none;
}

a.news-link:hover h1.news-title {
    color: var(--accent-hover);
}

img.news-image {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 256px;
    height: 256px;
    object-fit: cover;
}

div.news-details {
    position: absolute;
    top: 0px;
    left: 256px;
    width: 512px;
    height: auto;
}

h1.news-title {
    width: calc(100% - (16px * 2));
    height: auto;
    margin: 16px;
    font-size: 24px;
    color: var(--accent);
    overflow: hidden;
    text-overflow: ellipsis;
}

div.news-info {
    width: calc(100% - (16px * 2));
    height: 20px;
    margin: 16px;
    font-size: 0;
}

span.news-info-spacer {
    display: inline-block;
    width: 16px;
    height: 20px;
    font-size: 14px;
    text-align: center;
    color: black;
}

h2.news-author {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    font-weight: 400;
    color: black;
}

h2.news-date {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    font-weight: 400;
    color: black;
}

h2.news-duration {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    font-weight: 400;
    color: black;
}

p.news-subtitle {
    width: calc(100% - (16px * 2));
    height: auto;
    margin: 16px;
    font-size: 16px;
    font-weight: 300;
    color: black;
}

a.news-more {
    display: block;
    width: 128px;
    margin: auto;
    margin-bottom: 64px;
    text-align: center;
    text-decoration: none;
    color: var(--accent-hover);
}

a.news-more:hover {
    color: var(--accent-hover);
}

@media only screen and (max-width: 800px) {
    a.news-link {
        width: 256px;
        height: 512px;
    }

    div.news-details {
        top: 256px;
        left: 0px;
        width: 256px;
    }
}

footer {
    flex-shrink: 0;
    overflow: auto;
    width: 100%;
    height: 128px;
    background-color: var(--window);
    text-align: center;
}

div.footer-icons {
    display: inline-block;
    font-size: 0;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 16px;
    width: auto;
    height: 64px;
}

@media only screen and (max-width: 800px) {
    div.footer-icons {
        height: 128px;
    }
}

@media only screen and (max-width: 350px) {
    div.footer-icons {
        height: 192px;
    }
}

a.footer-icon-link {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 16px;
}

img.footer-icon {
    width: 100%;
    height: 100%;
}

span.copyright {
    display: block;
    width: 100%;
    height: auto;
    font-size: 16px;
    text-align: center;
    color: white;   
}

article {
    max-width: 768px;
    width: 50%;
    min-height: 512px;
    height: auto;
    margin: auto;
    margin-top: 64px;
    margin-bottom: 64px;
}

@media only screen and (max-width: 750px) {
    article {
        width: calc(100% - (8px * 2));
    }
}

img.post-image {
    width: 100%;
    object-fit: contain;
}

p.post-image-subtitle {
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}

h1.post-title {
    margin-top: 32px;
    font-size: 32px;
}

div.post-info {
    width: 100%;
    height: 32px;
    margin-top: 8px;
    margin-bottom: 16px;
    font-size: 0;
}

span.post-info-spacer {
    display: inline-block;
    width: 16px;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

h2.post-author {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 400;
}

h2.post-date {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 400;
}

h2.post-duration {
    display: inline-block;
    height: 32px;
    line-height: 32px;
    font-size: 14px;
    font-weight: 400;
}

h3.post-subtitle {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
}

p.post-body {
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 300;
    text-align: justify;
}

p.post-disclaimer {
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}

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

a.text-link:hover {
    color: var(--accent-hover);
}

code {
    font-family: monospace;
    padding: 4px;
    border-radius: 4px;
    color: white;
    background-color: var(--text-decoration);
    vertical-align: middle;
}

blockquote {
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: 300;
    text-align: justify;
    padding-left: 8px;
    padding-right: 16px;
    border-left-width: 8px;
    border-left-style: solid;
    border-left-color: var(--text-decoration);
}

strong {
    font-weight: 700;
}

div.error {
    width: 50%;
    height: 256px;
    margin: auto;
    margin-top: 128px;
    margin-bottom: 128px;
}

h1.error-title {

}

h2.error-message {
    font-weight: 400;
}

ul {
    padding: 24px;
}

ol {
    padding: 24px;
}

li {
    font-weight: 300;
}

h1.javascript-warning {
    font-size: 12px;
    font-weight: bold;
    color: var(--error);
    text-align: center;
}

input.form-line-input {
    display: block;
    width: calc(100% - 16px);
    padding: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    background-color: var(--indent);
}

span.form-error {
    font-size: 12px;
    font-weight: bold;
    color: var(--error);
}

button.form-button {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    font-weight: bold;
    color: white;
    background-color: var(--window);
}

pre code {
    padding: 8px;
    border-radius: 8px;
    display: block;
    margin-top: 16px;
    margin-bottom: 16px;
    overflow-x: scroll;
}

p.hidden-message {
    display: none;
}

h1.under-construction {
    width: 100%;
    height: 32px;
    line-height: 32px;
    font-size: 16px;
    text-align: center;
}

div.project {
    width: 50%;
    margin: auto;
    margin-top: 128px;
    margin-bottom: 128px;
}

img.project-image {
    width: 100%;
    object-fit: contain;
}

p.project-text {
    font-weight: 300;
    text-align: justify;
}

@media only screen and (max-width: 750px) {
    div.project {
        width: calc(100% - (8px * 2));
    }
}

div.download {
    width: 50%;
    margin: auto;
    margin-top: 128px;
    margin-bottom: 128px;
}

@media only screen and (max-width: 750px) {
    div.download {
        width: calc(100% - (8px * 2));
    }
}

div.downloads {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 16px;
}

p.download-text {
    font-weight: 300;
    text-align: justify;
}

a.download-link {
    display: flex;
    width: 100%;
    height: 64px;
    margin-bottom: 16px;
    background-color: var(--window);
    text-decoration: none;
}

a.download-link:hover {
    background-color: var(--accent);
}

span.download-name {
    display: inline-block;
    width: calc(100% - (64px * 2));
    height: 100%;
    line-height: 64px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: white;
}

@media only screen and (max-width: 600px) {
    span.download-name {
        font-size: 12px;
    }
}

img.download-icon {
    display: inline-block;
    margin: 8px;
    width: 48px;
    height: 48px;
}
