@import url(http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic);
@import url(http://fonts.googleapis.com/css?family=PT+Sans+Caption&subset=latin,cyrillic);
@import url(http://fonts.googleapis.com/css?family=PT+Mono);

/* @import url(https://ipfs.io/ipfs/QmYZhwTvPoXPPzs9moBqjPGWdkXh79RRn4oYKH89yBYkHD/PTSansWeb/stylesheet.css); */
/* @import url(https://ipfs.io/ipfs/QmYZhwTvPoXPPzs9moBqjPGWdkXh79RRn4oYKH89yBYkHD/PTMonoWeb/stylesheet.css); */

body {
    background: #5C5C5C;
    color: #FAFAFA;
    margin: 0;
    padding: 0;
    
    font-family: "PT Sans", "dejavu sans", "verdana", sans-serif;
    font-size: 18px;
}

td {
    padding: 0.1em;
}

form {
    margin: 0;
    padding: 0;
}

code, pre {
    font-family: "PT Mono", "dejavu sans mono", monospace;
}

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

/*
 * Headers
 */

h1, h2, h3, #menu {
    font-family: "PT Sans Caption", "PT Sans", "nimbus sans l", "dejavu sans", "verdana", sans-serif;
    font-weight: normal;
    text-align: left;
    padding: 0;
}

h1 {
    font-size: 190%;
    /* font-weight: bold; */
    margin: 0 0 0.5em 0;
}

h2 {
    font-size: 140%;
    /* font-weight: bold; */
    margin: 1em 0 0.5em 0;
}

h3 {
    font-size: 125%;
    font-weight: normal;
    margin: 1em 0 0.5em 0;
}

/*
 * Layout
 */

#content {
    background-image: url("images/design2/panel-left.png");
    background-position: left top;
    background-repeat: repeat-y;
    margin: 0;
    padding: 0;
}

#title {
    background: #D55;
    padding: 8px 24px 2px 32px;
    margin: 0;
    /* font-weight: bold; */
    font-size: 125%;
}

#title a,
#title a:link,
#title a:visited,
#title a:active,
#title a:hover {
    text-decoration: none;
    color: #FAFAFA;
    padding: 0 1pt;
}

#title a:hover {
    background: #E77;
}

#menu {
    background: #D55;
    background-image: url("images/design2/panel-top-shadow.png");
    background-position: left bottom;
    background-repeat: repeat-x;
    padding: 0 24px 24px 32px;
    margin: 0;
}

#menu ul, div#section_menu ul {
    padding: 0;
    margin: 0;
}

#menu li, div#section_menu li {
    display: inline;
    list-style-image: none;
    list-style-type: none;    
    margin-right: 0.3em;
}

#menu li {
    /* font-weight: bold; */
}

#menu li.active_item {
    border-left: solid 2px #E77;
    border-top: solid 2px #E77;
}

#section_menu {
    padding: 0 8px 0.5em 8px;    
    margin: -8px 8px 0.75em 40px;
    border-bottom: solid 2px #DDD;
    
    /* Internet Explorer hack */
    position: relative;
}

#section_menu h1 {
    display: none;
}

#main_content {
    margin: 0 192px 0.2em 48px;
}

#footer {
    background-color: #5C5C5C;
    background-image: url("images/design2/panel-left-bottom.png");
    background-position: left top;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0.2em 8px 0.5em 40px;
    clear: both;
}

#panel_top {    
    background-image: url("images/design2/corner-top-left.png");
    background-position: left top;
    background-repeat: no-repeat;
    margin: -16px 0 0 0;
    height: 16px;
}

#ads_side, #ads_side_adaptive {
    float: right;
    margin: 8px 16px 8px 0;
    width: 160px;
}

@media (max-width:799px) {
    #ads_side_adaptive,
    #ads_side_adaptive .adsbygoogle {
        display: none;
    }

    #main_content {
        margin-right: 1em;
    }
}

#main_content p, #content pre {
    margin-left: 1em;
}

#main_content p.top_level {
    margin-left: 0;
}

#main_content div.top_level p {
    margin-left: 0;
}

#footer td {
    padding: 0 8px;
}

/*
 * Links
 */

a, a:link, a:visited, a:active, a:hover {
    color: #FDD;
    text-decoration: underline;
}

a:hover {
    background: #707070;
}

div#menu a,
div#menu a:link,
div#menu a:visited,
div#menu a:active,
div#menu a:hover {
    color: #FFC;
    padding: 0 1pt;
}

div#menu a:hover {
    background: #E77;
}

/*
 * Miscellaneous
 */

img {
    border: 0px;
}

ul {
    margin: 1em 0;
}

hr {
    width: 100%;
    height: 2px;
    background: #DDD;
    border: none;
}

#sign {
    font-size: 80%;
    vertical-align: top;
}

#buttons {
    padding: 0 0 0 0.5em;
    text-align: right;
}

#buttons a, #buttons a:link, #buttons a:visited, 
#buttons a:active, #buttons a:hover, #buttons a:hover {
    color: #FFF;
    background: #5C5C5C;
    text-decoration: none;
    padding: 0;
    border: none;
}

#valid {
    font-size: 80%;
    vertical-align: top;
    text-align: right;
}

.like_button {
    margin-right: 1ex;
}

.grayed {
    margin-left: 1ex;
    font-size: 80%;
    color: #607060;
    font-style: italic;
}

.grayed a, .grayed a:link, .grayed a:visited, .grayed a:active {
    background: #FFFFFF;
    color: #607060;
    padding: 0em 0.05em;
}

.disabled {
    color: #888;
}

.warning, .warning a {
    color: #A02020;
}

.selected {
    background: #707070;
}

.no_java {
    font-size: 120%;
    font-weight: bold;
    background: #707070;
    padding: 1em;
}

.java_version_warning {
    background: #707070;
    padding: 0.5em;
    text-align: center;
}

.photo {
    text-align: center;
    float: left;
    margin: 0.5em 0.5em 1em 1em;
    /* min-height: 13.5em; */
    min-height: 220px;
}

.photo img {
    border: solid 1px #888;
    vertical-align: bottom;
}

img.normal_photo {
    border: solid 2px #888;
    vertical-align: bottom;
    max-width: 99%;
    height: auto;
}

.photo .photo_description {
    margin-top: 0.2em;
}

.photo .untitled_date {
    margin-top: 0.2em;
    color: #AAA;
}

.photo:target .photo_description,
.photo:target .untitled_date {
    border-bottom: solid 2px #D55;
}

.photo a:hover {
    background: inherit;
}

.photo_nav {
    margin-left: 1em;
}

.license {
    font-size: 80%;
}

.frequent_tag {
    font-weight: bold;
}

/*
 * Game applet
 */

p.game_applet {
    text-align: center;
}

table.game_applet {
    margin: 0 auto;
    padding: 0;
    clear: left;
}

table.game_applet td {
    border: solid 2px #AA5;
    padding: 0;
    margin: 0;
}

table.game_applet object {
    vertical-align: top;
}

p.embed_code {
    overflow: auto;
    white-space: nowrap;
}

p.embed_code code {
    font-size: 80%;
}

.key {
    font-family: monospace;
    border: solid 1px #AAA;
    padding: 0em 0.1em;
    line-height: 150%;
}
