body {
    background-image: url('/img/bg.png');
    background-position: center top;
    background-repeat: no-repeat;
}

body.unauthed {
    background-image: none;
}

nav {
    background: transparent;
}

header {
    background: transparent;
}

footer {
    background: transparent;
}

ol > li {
    margin-left: 2.4em;
}

/* header */

body > header {
    background-color: rgba(0, 0, 0, 0.6667);
}

body > header div.subtitle {
    font-family: "Droid Sans", Arial, Helvetica, sans-serif;
}

body > header nav.header ul {
    list-style-type: none;
    margin: 0;
    text-align: right;
}

body > header nav.header ul > li {
    padding: 0.5em;
}

body > header nav.header ul > li a {
    display: block;
}

/* navigation */

body > nav {
    /* background-color: rgba(0, 0, 0, 0.8667); */
}

div.muctabs {
    margin-bottom: -1.5em;
    color: rgb(60, 60, 60);
}

div.muctabs > div.caption {
    display: inline-block;
}

div.muctabs > ul {
    clear: both;
    display: inline-block;
    float: none;
    padding-bottom: 0;
    margin: 0;
}

div.muctabs > ul > li {
    float: none;
    display: inline-block;
    text-shadow: 0px 1px 0 rgb(170, 170, 170);
    /* background-color: rgba(0, 0, 0, 0.4); */
}

div.muctabs > ul > li:hover {
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
    text-shadow: none;
}

div.muctabs > ul > li.active {
    border-radius: 0;
    color: rgb(77, 135, 199);
    text-shadow: none;
}

div.muctabs > ul > li > a, div.muctabs > ul > li > strong {
    display: block;
    padding: 0.5em;
    background-color: transparent;
    color: inherit;
}

/* main */

body > main > .ym-wrapper,
div.muctabs > ul > li.active {
    background-color: hsla(120, 0%, 90%, 0.85);
}

/* muc info */

ul.muc-stats {
    list-style-type: none;
}

ul.muc-stats > li {
    margin-left: 0;
    padding-left: 0;
}

ul.muc-stats > li > .def {
    display: inline;
}

ul.muc-stats > li > .value {
    display: inline;
}

ul.muc-stats > li.multiline > .def {
    display: block;
}

ul.muc-stats > li.multiline > .value {
    display: block;
}

h3 > div.right {
    display: block;
    vertical-align: baseline;
    float: right;
}

/* post table */

th > a:first-child,
th > a {
    display: block;
    margin-left: -0.5em;
    margin-right: -0.5em;
    margin-top: -0.71429em;
    margin-bottom: -0.71429em;

    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.71429em;
    padding-bottom: 0.71429em;
}

th div.order {
    display: inline-block;
    float: right;
    width: 1.5em;
    text-align: center;
    vertical-align: baseline;
}

td.date, .url .title, td.sender, .url a, .url dt, .url dd {
    font-family: "Droid Sans", Arial, Helvetica, sans-serif;
}

td.date {
    text-align: right;
}

td.sender {
    white-space: pre;
}

td.sender .muc {
    font-size: 80%;
}

.url .title {
    font-weight: bold;
    margin-bottom: 1.5em;
}

.url .title a {
    color: black;
}

.url .title a:hover,
.url .title a:focus,
.url .title a:active {
    color: white;
}

.url aside {
    font-size: 80%;
}

.url aside:first-child {
    font-size: 100%;
}

.url .link {
    overflow: hidden;
    text-overflow: ellipsis;
}

span.datetime-block {
    white-space: pre;
}

.datetime-block.date {
    font-weight: bold;
}

.less-space > div[class*="ym-g"]:first-child > div{
    padding-left: 0;
}

.less-space > div[class*="ym-g"]:last-child > div{
    padding-right: 0;
}

div.url div.image img,
div.url div.image canvas,
div.url div.image video,
div.url div.image audio {
    max-width: 100%;
}

div.url div.image iframe {
    width: 100%;
    height: 23em;
}

div.replacement {
    position: relative;
}

div.replacement div.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-image: transparent;
}

div.play-overlay div.play,
div.url div.youtube-embed {
    text-shadow: 0 0 0.5em black;
    font-weight: bold;
    font-size: 120%;
    color: hsl(0, 0%, 80%);
    text-align: center;
    width: 100%;
    margin-top: 2em;
    background-color: hsla(0, 0%, 0%, 0.33);
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    box-shadow: 0 0 2em hsla(0, 0%, 0%, 0.25);
    font-family: "Droid Sans", Arial, Helvetica, sans-serif;
    cursor: pointer;
}

div.play-overlay:hover div.play {
    color: white;
}

.url h6 {
    margin-bottom: 0;
    margin-top: 1.5em;
}

.url h6:first-child {
    margin-top: 0;
}

.url dl {
    margin-left: 0;
}

.url dd {
    margin-bottom: 0;
}

/* pagination */

ul.pagination {
    display: block;
    text-align: right;
}

ul.pagination > li {
    display: inline-block;
    list-style-type: none;
    width: 2em;
    text-align: center;
    margin: 0;
}

ul.pagination > li.wide {
    width: 4em;
}

ul.pagination > li > a,
ul.pagination > li > div.fakebutton {
    display: block;
    /* steal the button theme from yaml here */
    white-space: nowrap;
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #eeeeee), color-stop(100%, #cccccc));
    background-image: -webkit-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -moz-linear-gradient(top, #eeeeee, #cccccc);
    background-image: -ms-linear-gradient(top, #eeeeee, #cccccc);
    background-image: linear-gradient(to bottom, #eeeeee,#cccccc);
    background-color: #eeeeee;
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC');
    zoom: 1;
    border: 1px solid #777;
    -webkit-box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.8) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 1px 1px rgba(255, 255, 255, 0.8) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
    color: #333 !important;
    font: normal 1em/2em Arial, Helvetica;
    overflow: visible;
    /* removes extra side spacing in IE */
    text-decoration: none !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-right: -1px;
}

ul.pagination > li > div.fakebutton {
    cursor: default;
}

ul.pagination > li > a {
    cursor: pointer;
}

ul.pagination > li > a:hover {
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fafafa), color-stop(100%, #dddddd));
    background-image: -webkit-linear-gradient(top, #fafafa, #dddddd);
    background-image: -moz-linear-gradient(top, #fafafa, #dddddd);
    background-image: -ms-linear-gradient(top, #fafafa, #dddddd);
    background-image: linear-gradient(to bottom, #fafafa,#dddddd);
    background-color: #fafafa;
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#FFFAFAFA', endColorstr='#FFDDDDDD');
    zoom: 1;
    color: black;
}

ul.pagination > li > a:active,
ul.pagination > li.current > a {
    background: transparent;
    -webkit-box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.2);
    box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.2);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #cccccc), color-stop(100%, #bbbbbb));
    background-image: -webkit-linear-gradient(top, #cccccc, #bbbbbb);
    background-image: -moz-linear-gradient(top, #cccccc, #bbbbbb);
    background-image: -ms-linear-gradient(top, #cccccc, #bbbbbb);
    background-image: linear-gradient(to bottom, #cccccc,#bbbbbb);
    background-color: #cccccc;
    filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, startColorstr='#FFCCCCCC', endColorstr='#FFBBBBBB');
    zoom: 1;
}

ul.pagination > li:first-child > a,
ul.pagination > li:first-child > div.fakebutton
{
    border-top-left-radius: .2em;
    border-bottom-left-radius: .2em;
}

ul.pagination > li:last-child > a,
ul.pagination > li:last-child > div.fakebutton
{
    border-top-right-radius: .2em;
    border-bottom-right-radius: .2em;
    margin-right: 0;
}

/* footer */

body > footer {
    background-color: white;
    text-align: center;
}

/* ajax foo */

.ajax-popup {
    display: block;
    position: fixed;
    bottom: 0em;
    width: 100%;
}

.ajax-popup > div {
    text-align: center;
    padding: 0.5em;
    width: 10em;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.67);
    box-shadow: 0 0 0.5em #000;
    color: rgb(170, 170, 170);
}

.hidden {
    display: none;
}

.eof {

}

/* gallery style */

span.g-item {
    display: inline-block;
}

span.g-item a {
    display: block;
    padding: 0;
    margin: 0;
}

span.g-item img, span.g-item video {
    vertical-align: top;
}

span.g-item {
    margin-left: 6px;
    margin-right: 6px;
}

span.g-item:first-child {
    margin-left: 0;
}

span.g-item:last-child {
    margin-right: 0;
}

div.g-row {
    margin-bottom: 12px;
    margin-top: 12px;
}

div.g-row:first-child {
    margin-top: 0;
}

div.g-row:last-child {
    margin-bottom: 0;
}

/* linearization magic */

@media screen and ( max-width: 45em ) {

    .linearize-muc-overview,
    .linearize-muc-overview > [class*="ym-g"] {
        display: block;
        float: none;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .linearize-muc-overview > [class*="ym-g"] > [class*="ym-gbox"] {
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

}

@media screen and ( min-width: 45em ) {

    .linearize-muc-meta,
    .linearize-muc-meta > [class*="ym-g"] {
        display: block;
        float: none;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .linearize-muc-meta > [class*="ym-g"] > [class*="ym-gbox"] {
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

}

@media screen and ( max-width: 32em ) {

    .linearize-muc-meta,
    .linearize-muc-meta > [class*="ym-g"] {
        display: block;
        float: none;
        padding: 0;
        margin: 0;
        width: 100% !important;
    }

    .linearize-muc-meta > [class*="ym-g"] > [class*="ym-gbox"] {
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

}

@media screen and ( max-width: 45em ) {
    .linearize-muc-meta .muc-stats .multiline ol {
        -moz-column-width: 12em;
        -webkit-column-width: 12em;
        -moz-column-gap: 1em;
        -webkit-column-gap: 1em;
    }

}

@media screen and ( max-width: 600px ) {

    #g-root > .g-row > .g-item {
        display: block;
        margin: 0;
        margin-bottom: 1em;
        margin-top: 1em;
    }

    #g-root > .g-row {
        margin: 0;
    }


    #g-root > .g-row > .g-item img {
        width: 100%;
    }

}
