/* Aeracode CSS. Copyright Andrew Godwin 2020 */

/*
    Body layout is a 4-column grid. Columns are 250, spacing 50.
    Two cols is 550. Three cols is 850. Four is 1150.
*/

/* Base styles */

body {
    font-size: 16px;
    min-height: 100%;
    height: 100%;
	font-family: Arial, Helvetica, sans-serif;
    background: #f6f6f6;
    color: #333;
}

.clearfix {
    clear: both;
}

a {
    text-decoration: none;
    color: #369;
}
    a:hover {
        text-decoration: underline;
    }

p {
    line-height: 160%;
    margin-bottom: 1.5em;
}

h1 {
    font-size: 75px;
    font-family: alte_din;
    color: #0e232e;
    margin: 20px 0 25px 0;
    position: relative;
}
    h1 a {
        color: inherit;
    }

h2 {
    font-size: 200%;
    font-family: alte_din;
    color: #0e232e;
    margin: 30px 0 12px 0;
    position: relative;
}

h3 {
    font-size: 28px;
    font-family: alte_din;
    color: #0e232e;
    margin: 20px 0 12px 0;
}

h4 {
    text-transform: uppercase;
    font-size: 16px;
    font-family: alte_din;
    color: #6c7d84;
    margin: 16px 0 12px 0;
}

pre {
    font-family: monospace;
    line-height: 140%;
    font-size: 14px;
    overflow: auto;
}

strong,
b {
    font-weight: bold;
}

em {
    font-style: italic;
}

tt, code {
    font-family: monospace;
    background: #ddd;
    padding: 2px 3px;
}

.button {
    display: inline-block;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 3px;
    padding: 4px 6px;
    color: #333;
    line-height: 16px;
    font-size: 14px;
}
    a.button:hover {
        text-decoration: none;
    }
    .button:hover {
        border-color: #888;
    }

/* Nice tables */

table.nice {
    width: 100%;
}
    table.nice th {
        text-transform: uppercase;
        color: #888;
        font-weight: bold;
        text-align: left;
        padding: 0 10px 15px 10px;
        vertical-align: middle;
    }
    table.nice td {
        padding: 5px 10px 5px 10px;
        vertical-align: middle;
    }

/* Header */

.header {
    width: 1150px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
    .dim-header .header {
        margin-bottom: 10px;
        opacity: 0.5;
        -webkit-transition: opacity 0.4s;
        transition: opacity 0.4s;
    }
    .dim-header .header:hover {
        opacity: 1;
    }
    .header .logo {
        display: block;
        position: absolute;
        padding: 15px 5px 4px 5px;
        margin: 0 0 10px 0;
        color: #225472;
        font-size: 18px;
        font-family: alte_din;
        z-index: 1;
        border-left: 3px solid #225472;
    }
    .index .header .logo {
        background: #225472;
        color: white;
        padding-right: 8px;
        font-size: 20px;
    }
    .header .topnav {
        float: right;
        z-index: 1;
        overflow: hidden;
        padding: 10px 0 0 0;
    }
    .header .topnav li {
        display: inline;
        color: #222;
        font-family: alte_din;
        font-size: 18px;
    }
    .header .topnav li a {
        float: left;
        padding: 5px 9px;
        color: #222;
    }
    .header .topnav li a:hover,
    .header .topnav li.selected a {
        color: #225472;
        text-decoration: none;
    }

/* Footer */

.footer {
    width: 1150px;
    margin-left: auto;
    margin-right: auto;
    clear: both;
    font-size: 80%;
    color: #888;
    text-align: center;
    padding: 20px 0;
    line-height: 150%;
}

/* Content */

.content {
    width: 1150px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    clear: both;
}

.main-column {
    width: 850px;
    position: relative;
}

.left-column {
    float: left;
    width: 550px;
    position: relative;
}

.right-column {
    float: right;
    width: 550px;
    position: relative;
}

.secondary-column {
    float: right;
    width: 250px;
    margin-left: 50px;
}
    .secondary-column h3 {
        margin: 20px 0 10px 0;
        text-transform: uppercase;
        font-size: 16px;
        font-family: alte_din;
        color: #444;
    }
    .secondary-column h3:first-child {
        margin-top: 0;
    }
    .secondary-column p {
        margin: 10px 0 10px 0;
        color: #222;
        font-size: 14px;
    }

.both-columns {
    clear: both;
    width: 1150px;
}

/* Places page */

.content .places {
    margin: 20px 0;
    overflow: hidden;
}
    .content .places h3 {
        margin-top: 0;
        font-size: 18px;
        color: #0e4f7c;
        padding: 0 0 5px 0;
        border-bottom: 2px solid #0e4f7c;
    }
        .content .places h3 small {
            font-size: 14px;
            opacity: 0.5;
        }
    .content .places .place {
        display: inline-block;
        width: 260px;
        overflow: hidden;
        padding: 0 20px 10px 0;
        vertical-align: top;
    }
        .content .places .place .checkbox {
            float: left;
            font-size: 20px;
            padding: 0px 0 0 0;
            font-weight: bold;
            color: #0e4f7c;
        }
        .content .places .place h4 {
            font-family: alte_din;
            font-size: 16px;
            color: #444;
            margin: 0 0 4px 25px;
        }
        .content .places .place p {
            font-size: 13px;
            margin: 0 0 2px 25px;
            color: #555;
        }
        .content .places .place p.done {
            font-size: 12px;
            margin: 0 0 4px 25px;
            font-weight: bold;
        }
    .content .places.nature h3 {
        color: #0d5314;
        border-color: #0d5314;
    }
        .content .places.nature .place .checkbox {
            color: #0d5314;
        }
    .content .places.society h3 {
        color: #5e100c;
        border-color: #5e100c;
    }
        .content .places.society .place .checkbox {
            color: #5e100c;
        }

/* Post page */


.header-image {
    width: 1150px;
    margin-top: 5px;
}

.pre-title {
    display: block;
    color: #999;
    font-family: alte_din;
    font-size: 20px;
    text-transform: uppercase;
    margin-top: 20px;
}
    .pre-title a {
        color: #666;
    }

.post-title h1 {
    margin-top: 0;
    max-width: 750px;
}
    .post-title h1 small {
        font-size: 50%;
        color: #999;
    }

.article-meta {
    margin: 0 0 30px 0;
    text-align: right;
}
    .article-meta .categories {
        display: block;
        color: #555;
        font-size: 14px;
        margin: 2px 0 0 0;
    }
    .article-meta .categories a {
        color: inherit;
    }
    .article-meta .date {
        display: block;
        margin: 6px 0 0 0;
        font-size: 14px;
        color: #555;
    }
    .article-meta h3 {
        margin-bottom: 3px;
    }

.main-column ul {
    list-style-type: disc;
    margin: 0.6em 0;
}
.main-column ol {
    list-style-type: decimal;
    margin: 0.6em 0;
}
    .main-column ul li,
    .main-column ol li {
        margin-bottom: 10px;
        margin-left: 25px;
        font-size: 100%;
        line-height: 140%;
        color: inherit;
    }

.main-column i {
    font-style: italic;
}

.main-column u {
    text-decoration: underline;
}

.main-column pre {
    margin: 1.5em 0;
    padding: 0.4em 0.5em;
    background: #e6e6e6;
}

.content pre {
    margin: 1.5em 0;
    padding: 0.4em 0.5em;
}

.pygments pre {
    background: #272822;
}

.image-left,
.image-right,
.image-big {
    margin: 2em 0;
}
    .image-big p,
    .image-left p,
    .image-right p {
        margin: 5px 0 0 0;
        color: #777;
        font-style: italic;
        font-size: 125%;
        font-family: alte_din;
    }
    .image-big img,
    .image-left img,
    .image-right img {
        width: 100%;
        height: auto;
    }
    .image-big {
        clear: both;
        width: 850px;
    }
    .image-left {
        position: relative;
        width: 300px;
        float: left;
        clear: left;
        margin: 0 2em 1em 0;
    }
    .image-right {
        position: relative;
        width: 300px;
        float: right;
        clear: right;
        margin: 0 300px 1em 2em;
        z-index: 100;
    }

.richtext-image.right {
    float: right;
    clear: right;
    max-width: 500px;
    height: auto;
    margin: 0 -300px 30px 40px;
}

.video-big {
    margin: 2em 0;
    clear: both;
    width: 850px;
    height: 478px;
}

.video-multi {
    margin: 2em 0;
    clear: both;
}
    .video-multi iframe {
        width: 425px;
        height: 239px;
    }

.right_note {
    float: right;
    clear: right;
    margin: 0 0 20px 20px;
    width: 230px;
    background: #e5e9ee;
    padding: 10px 20px;
    border: 3px solid #d2d8e0;
    border-width: 3px 0;
}
    .right_note h4 {
        color: #444;
        font-family: alte_din;
        font-size: 16px;
        margin: 0 0 5px 0;
    }
    .right_note .note {
        margin: 7px 0 0 0;
    }
    .right_note p {
        color: #666;
        font-size: 14px;
    }
        .right_note p:last-child {
            margin-bottom: 0;
        }
    .right_note .out,
    .right_note .in {
        margin: 0;
        background: url(../images/flight_outbound.png) no-repeat 0 50%;
        padding: 3px 0 0 30px;
        line-height: 24px;
    }
    .right_note .in {
        background-image: url(../images/flight_inbound.png);
    }
    .right_note strong {
        font-size: 20px;
    }

.materials {
    margin-bottom: 25px;
    width: 850px;
}
    .materials .material {
        overflow: auto;
        margin: 10px 0 10px 0;
    }
    .materials .material:last-of-type {
        margin-bottom: -3px;
    }
    .materials .material h5 {
        font-weight: bold;
        font-size: 110%;
        margin: 0 0 0.3em 0;
    }
    .materials .price {
        float: right;
        margin: 0 0 0 0;
    }
    .materials .vendors b,
    .materials .price b {
        font-size: 12px;
        font-weight: normal;
        font-family: alte_din;
        color: #6c7d84;
        margin: 0px 0.4em 0 1.5em;
        text-transform: uppercase;
    }
    .materials .vendors {
        clear: right;
        float: right;
    }
    .materials p {
        margin: 0 0 0 0;
    }
    .materials small {
        font-size: 60%;
        color: #777;
    }

.place-title {
    font-size: 140%;
}
    .place-title img {
        margin-top: 25px;
    }
    .place-title h2 {
        margin-top: 15px;
        margin-bottom: 20px;
    }
    .place-title small {
        font-size: 60%;
        color: #999;
        display: inline-block;
    }


/* Archive pages */

.archive-item {
    margin: 0 0 20px 0;
    overflow: hidden;
}
    .archive-item img {
        float: left;
    }
    .archive-item .panel {
        margin-left: 230px;
    }
    .archive-item .pre-title {
        font-size: 100%;
        margin: 0;
    }
    .archive-item h3 {
        font-size: 150%;
        margin: 5px 0 5px 0;
    }

/* Homepage */

.main-item {
    display: block;
    margin-top: 20px;
    margin-bottom: 20px;
    background: #393939;
    color: #fff;
    position: relative;
    height: 250px;
}
    .main-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
    .main-item .panel {
        position: absolute;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        overflow: hidden;
        max-width: 50%;
    }
    .main-item .pre-title {
        margin: 5px 0 -5px 0;
        font-size: 110%;
    }
    .main-item .pre-title a {
        color: #999;
    }
    .main-item h1 {
        margin-top: 10px;
        margin-bottom: 10px;
        color: #fff;
        font-size: 250%;
    }
    .main-item .intro {
        margin-bottom: 10px;
    }

.about-item {
    margin: 20px 0;
    background: #eee;
    height: 150px;
}
    .about-item img {
        float: left;
    }
    .about-item p {
        margin: 0 0 0 170px;
        padding: 20px 20px 0 0;
    }

.secondary-items {
    overflow: hidden;
}

.secondary-item {
    float: left;
    position: relative;
    width: 370px;
    height: 180px;
    margin: 0 20px 30px 0;
    background-color: #E1EAF0;
}
    .secondary-item:nth-child(3n) {
        margin-right: 0px;
    }
    .secondary-item:nth-child(3n+1) {
        clear: left;
    }
    .secondary-item img {
        position: absolute;
        top: 0;
        left: 0;
    }
    .secondary-item .panel {
        margin-left: 75px;
        padding: 10px 20px;
        max-width: 70%;
        overflow: hidden;
        color: #333;
    }
    .secondary-item .pre-title {
        font-size: 90%;
        margin: 7px 0;
    }
    .secondary-item h1 {
        margin: 5px 0 5px 0;
        font-size: 170%;
        color: #3B4556;
    }
    .secondary-item .intro {
        font-size: 90%;
        line-height: 130%;
    }

.map-item {
    margin: 0 0 0 -20px;
    width: 280px;
    height: 206px;
    overflow: hidden;
}

.findme {
    margin: 20px 0 0 0;
    padding: 10px 0;
    background: #8C959F;
    color: #fff;
    font-size: 16px;
    font-family: alte_din;
    text-align: center;
    text-transform: uppercase;
}
    .findme a {
        color: inherit;
        margin: 0 10px;
    }

/* Nice forms */

.niceform {
    overflow: hidden;
}
    .niceform label {
        width: 20%;
        text-align: right;
        float: left;
        clear: both;
        padding-right: 2.5%;
        margin-bottom: 0.8em;
    }
    .niceform small {
        float: right;
        color: #aaa;
        font-size: 80%;
        position: relative;
        top: -1.2em;
        padding-right: 2.0%;
    }
    .niceform input, .niceform textarea {
        float: left;
        margin-bottom: 0.8em;
        width: 75%;
    }
    .niceform br {
        display: none;
    }
    .niceform .errorlist {
        float: right;
        list-style-type: none;
        padding: 0;
    }
        .niceform .errorlist li {
            margin: 0;
            color: #a00;
            font-size: 80%;
            margin-right: 2.5%;
        }
    .niceform .submit {
        width: 10em;
        float: right;
        clear: left;
        margin-right: 2.5%;
        margin-bottom: 0.5em;
    }

/* Projects page */

.projects {
    list-style-type: none;
}
    .projects li {
        float: left;
        width: 250px;
        margin: 0 30px 40px 0;
    }
    .projects li:nth-of-type(4n+1) {
        clear: left;
    }
        .projects img {
            margin: 10px 0;
            width: 100%;
        }
        .projects h3.year {
            color: #888;
            font-family: alte_din;
            font-size: 100%;
            margin: 0 0 5px 0;
        }
        .projects h2 {
            margin: 0 0 5px 0;
            font-size: 180%;
            color: inherit;
            font-family: alte_din;
        }
            .projects h2 a {
                color: inherit;
            }
        .projects p {
            color: inherit;
        }


.links {
    overflow: hidden;
    margin-top: 30px;
}
    .links .prev {
        float: left;
    }
    .links .next {
        float: right;
    }

.medium-thanks {
    font-size: 120%;
}

.huge-thanks {
    font-size: 150%;
}

/* Speaking page */

h2 .countries {
    float: right;
    text-align: right;
    opacity: 0.7;
}
    h2 .countries .howmany {
        display: inline-block;
        vertical-align: middle;
        font-size: 55%;
        padding-right: 10px;
        padding-bottom: 10px;
    }

.talk {
}
    .talk .date {
        float: left;
        text-align: right;
        color: #999;
        width: 80px;
        font-size: 125%;
        font-family: alte_din;
    }
        .talk .date .year {
            display: block;
            font-size: 140%;
            margin-top: 5px;
        }
    .talk h3 {
        margin-left: 100px;
    }
    .talk h4 {
        margin: -5px 0 15px 100px;
    }
        .talk h4 i {
            margin-right: 3px;
        }
        .talk h4 .year {
            color: #999;
        }
    .talk .location {
        margin-bottom: 10px;
    }
    .talk .conference {
        text-transform: none;
        color: #444;
        font-size: 120%;
    }
    .talk p {
        margin: 0 0 10px 100px;
    }
    .talk .length {
        color: #999;
        font-style: italic;
    }
    .talk .button {
        margin-right: 10px;
    }
        .talk .button i {
            margin-right: 5px;
        }

/* Favourites pages */

.favourite {
    display: block;
    min-height: 150px;
    margin: 0 0 35px 0;
}
    .favourite img {
        float: left;
    }
    .favourite .number {
        float: left;
        font-size: 20px;
        line-height: 30px;
        margin: 0 7px 0 15px;
        color: #889;
    }
    .favourite h2 {
        margin: 0;
        padding: 0;
        font-size: 30px;
    }
        .favourite h2 small {
            color: #668;
            font-size: 65%;
        }
    .favourite p {
        margin: 9px 0 0.7em 90px;
    }

.favourite-small {
    display: block;
    min-height: 50px;
    margin: 0 0 25px 0;
}
    .favourite-small .number {
        float: left;
        font-size: 20px;
        margin: 0 7px 0 0;
        color: #889;
    }
    .favourite-small h2 {
        margin: 0;
        padding: 0;
        font-size: 20px;
    }
        .favourite-small h2 small {
            color: #668;
            font-size: 75%;
        }
    .favourite-small p {
        margin: 6px 0 0.4em 0;
        font-size: 90%;
        opacity: 0.9;
    }

/* Pygments */

.pygments  { background: #272822; color: #f8f8f2 }
.pygments .hll { background-color: #49483e }
.pygments .c { color: #75715e } /* Comment */
.pygments .err { color: #960050; background-color: #1e0010 } /* Error */
.pygments .k { color: #66d9ef } /* Keyword */
.pygments .l { color: #ae81ff } /* Literal */
.pygments .n { color: #f8f8f2 } /* Name */
.pygments .o { color: #AD4D70 } /* Operator */
.pygments .p { color: #f8f8f2 } /* Punctuation */
.pygments .ch { color: #75715e } /* Comment.Hashbang */
.pygments .cm { color: #75715e } /* Comment.Multiline */
.pygments .cp { color: #75715e } /* Comment.Preproc */
.pygments .cpf { color: #75715e } /* Comment.PreprocFile */
.pygments .c1 { color: #75715e } /* Comment.Single */
.pygments .cs { color: #75715e } /* Comment.Special */
.pygments .gd { color: #f92672 } /* Generic.Deleted */
.pygments .ge { font-style: italic } /* Generic.Emph */
.pygments .gi { color: #a6e22e } /* Generic.Inserted */
.pygments .gs { font-weight: bold } /* Generic.Strong */
.pygments .gu { color: #75715e } /* Generic.Subheading */
.pygments .kc { color: #66d9ef } /* Keyword.Constant */
.pygments .kd { color: #66d9ef } /* Keyword.Declaration */
.pygments .kn { color: #f92672 } /* Keyword.Namespace */
.pygments .kp { color: #66d9ef } /* Keyword.Pseudo */
.pygments .kr { color: #66d9ef } /* Keyword.Reserved */
.pygments .kt { color: #66d9ef } /* Keyword.Type */
.pygments .ld { color: #e6db74 } /* Literal.Date */
.pygments .m { color: #ae81ff } /* Literal.Number */
.pygments .s { color: #e6db74 } /* Literal.String */
.pygments .na { color: #a6e22e } /* Name.Attribute */
.pygments .nb { color: #f8f8f2 } /* Name.Builtin */
.pygments .nc { color: #a6e22e } /* Name.Class */
.pygments .no { color: #66d9ef } /* Name.Constant */
.pygments .nd { color: #a6e22e } /* Name.Decorator */
.pygments .ni { color: #f8f8f2 } /* Name.Entity */
.pygments .ne { color: #a6e22e } /* Name.Exception */
.pygments .nf { color: #a6e22e } /* Name.Function */
.pygments .nl { color: #f8f8f2 } /* Name.Label */
.pygments .nn { color: #f8f8f2 } /* Name.Namespace */
.pygments .nx { color: #a6e22e } /* Name.Other */
.pygments .py { color: #f8f8f2 } /* Name.Property */
.pygments .nt { color: #f92672 } /* Name.Tag */
.pygments .nv { color: #f8f8f2 } /* Name.Variable */
.pygments .ow { color: #f92672 } /* Operator.Word */
.pygments .w { color: #f8f8f2 } /* Text.Whitespace */
.pygments .mb { color: #ae81ff } /* Literal.Number.Bin */
.pygments .mf { color: #ae81ff } /* Literal.Number.Float */
.pygments .mh { color: #ae81ff } /* Literal.Number.Hex */
.pygments .mi { color: #ae81ff } /* Literal.Number.Integer */
.pygments .mo { color: #ae81ff } /* Literal.Number.Oct */
.pygments .sa { color: #e6db74 } /* Literal.String.Affix */
.pygments .sb { color: #e6db74 } /* Literal.String.Backtick */
.pygments .sc { color: #e6db74 } /* Literal.String.Char */
.pygments .dl { color: #e6db74 } /* Literal.String.Delimiter */
.pygments .sd { color: #e6db74 } /* Literal.String.Doc */
.pygments .s2 { color: #e6db74 } /* Literal.String.Double */
.pygments .se { color: #ae81ff } /* Literal.String.Escape */
.pygments .sh { color: #e6db74 } /* Literal.String.Heredoc */
.pygments .si { color: #e6db74 } /* Literal.String.Interpol */
.pygments .sx { color: #e6db74 } /* Literal.String.Other */
.pygments .sr { color: #e6db74 } /* Literal.String.Regex */
.pygments .s1 { color: #e6db74 } /* Literal.String.Single */
.pygments .ss { color: #e6db74 } /* Literal.String.Symbol */
.pygments .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.pygments .fm { color: #a6e22e } /* Name.Function.Magic */
.pygments .vc { color: #f8f8f2 } /* Name.Variable.Class */
.pygments .vg { color: #f8f8f2 } /* Name.Variable.Global */
.pygments .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.pygments .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.pygments .il { color: #ae81ff } /* Literal.Number.Integer.Long */

/*****************
 *****************
       750px
 *****************
 *****************/

@media (max-width: 1200px) {

.header,
.content,
.footer,
.materials {
    width: 750px;
}

.header-image {
    width: 750px;
    height: auto;
    border-top: 4px solid #0084c8;
}

.image-left,
.image-right {
    width: 250px;
    font-size: 90%;
}
    .image-right {
        margin-right: 0;
    }

.richtext-image.right {
    max-width: 300px;
    height: auto;
    margin: 0 -0px 20px 20px;
}

.image-big {
    width: 750px;
}

.video-big {
    width: 100%;
    height: 422px;
}
.video-multi iframe {
    width: 370px;
    height: 211px;
}

.main-column {
    width: 750px;
}

.secondary-column {
    clear: left;
}
    .secondary-column.post-meta {
        width: 170px;
        margin-left: 20px;
        clear: none;
    }

.main-item {
    width: 750px;
    margin-right: 30px;
    overflow: hidden;
}

.secondary-item {
    width: 365px;
}
    .secondary-item:nth-child(3n) {
        margin-right: 20px;
    }
    .secondary-item:nth-child(3n+1) {
        clear: none;
    }
    .secondary-item:nth-child(2n) {
        margin-right: 0;
    }
    .secondary-item:nth-child(2n+1) {
        clear: left;
    }

.map-item {
    display: none;
}

.right_note {
    float: initial;
    width: 720px;
    padding: 10px 15px;
    margin: 0 0 20px 0;
}

.place-title img {
    margin-top: 25px;
    width: 100%;
    height: auto;
}

.content .places .place {
    width: 230px;
}

.projects li {
    width: 230px;
    margin: 0 30px 30px 0;
}
.projects li:nth-of-type(4n+1) {
    clear: none;
}
.projects li:nth-of-type(3n) {
    margin-right: 0;
}
.projects li:nth-of-type(3n+1) {
    clear: left;
}

}


/*****************
 *****************
       Flexi
 *****************
 *****************/

@media (max-width: 750px) {

body {
    padding: 0 5px;
}

.header,
.content,
.footer,
.header-image,
.image-big,
.main-column,
.materials {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.right_note {
    padding-left: 3%;
    padding-right: 3%;
    width: 94%;
}

.image-left,
.image-right {
    float: none;
    margin: 20px;
}


}
