
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: local('Open Sans'), url(/static/opensans-regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	color: #eee;
}

body, html {
    width: 100%;
}

body {
    background: #111111;
    padding-top: 30px;
    font-family: "Open Sans", sans-serif;
}

table {
    width: 100%;
}

a {
    text-decoration: none;
}

a:link,
a:visited {
    color: #00dd00;
}

a:hover {
    color: #22ff22;
}

#main {
    margin-left: 280px;
    line-height: 200%;
    width: 75%;
}

#main h1 {
    font-size: 40px;
    font-weight: normal;
    line-height: 40px;
    letter-spacing: -1px;
}

#main p {
    margin: 20px 0;
    font-size: 15px;
    line-height: 20px;
}

#main ul, #main ol {
    margin: 20px;
}

#main li {
    font-size: 15px;
    line-height: 20px;
}

#main ul li {
    list-style-type: square;
}

#topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    text-align: center;
    height: 25px;
    line-height: 25px;
    font-size: 20px;
    font-weight: bold;
    padding: 10px;
}

#sidebar {
    float: left;
    width: 200px;
    padding: 20px 20px 0 0;
    border-right: 1px solid #ccc;
    text-align: right;
}

#sidebar h2 {
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
    letter-spacing: 1px;
    line-height: 20px;
}

#sidebar ul {
    list-style-type: none;
    margin: 20px 0;
}

.frontpage_item:not(:last-of-type) {
    border-bottom: 1px solid #ddd;
}

.frontpage_item {
    padding: 10px;
    margin: 10px;
}

.frontpage_item_date, .frontpage_item_author, .frontpage_item_tag_box {
    font-size: 0.8em;
    line-height: 150%;
}

.frontpage_item_desc {
    margin: 10px 0;
    line-height: 150%;
}

.frontpage_talk, .frontpage_blog {
    position: relative;
}
.frontpage_talk:after, .frontpage_blog:after {
    position: absolute;
    top: 50%;
    left: -25px;
    padding: 2px;
    line-height: 100%;
    transform: rotate(-90deg);
}
.frontpage_blog:after {
    content: "Blog";
    background-color: #E03311;
	color: #efe;
}
.frontpage_talk:after {
    content: "Talk";
    background-color: #eeff33;
	color: #448844;
}

@media only screen and (max-width : 860px) {
    #sidebar {
        float: none;
        border: none;
        border-bottom: 1px solid #ccc;
        text-align: center;
        width: auto;
    }
    #sidebar li {
        display: inline-block;
        margin-left: 10px;
    }
    #main {
        margin: 0;
        margin-top: 10px;
        width: auto;
    }
    #topbar {
        width: 100%;
    }
    .frontpage_talk:after, .frontpage_blog:after {
        transform: none;
        top: 0px;
        left: initial;
        right: 0px;
    }
}
