body {
    font-family: "Helvetica Neue", Helvetica, sans-serif; 
    font-size: 13px;
    line-height: 17px;
    color: black;
    background-color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
	height: 100%;
}

body.index {
	width: 100%;
    height: auto;
    background-color: #ccc;
    background-image: url(images/ttm-bg.png);
}

h1, h2, h3, h4, h5 {
    margin: 10px 0 0 0;
}

h1 {
    font-size: 32px;
		line-height: 38px;
}

h2 {
    font-size: 24px;
    line-height: 26px;
}

h3 {
    font-size: 20px;
    line-height: 22px;
}

h4 {
    font-size: 120%;
    line-height: 130%;
}

img{
	border: none;
}

.red {
    color: #FF5000;
}

.block {
    display: inline-block;
    background: #fff;
    padding: 3px !important;
}

#bg { 
    position: fixed;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    overflow: hidden;
    z-index: -100; 
}

body.ios #bg {
    /* for ios, fill width-wise */
    background-size: 100% auto;
}

#bg img {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    min-width: 50%;
    min-height: 50%;
}

#bg .effect {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/darken-overlay.png);
}

body.ios {
    background-color: #999;
	background-repeat: repeat;
}

body.ios #title {
    position: absolute;
}

body.page {
    height: auto;
    background-color: #ccc;
    background-image: url(images/ttm-bg.png);
	background-repeat: repeat;
}

body.page #content {
    width: 500px;
    padding: 10px;
    margin: 3px;
}

body.page #content p {
    margin: 0 0 1em 0;
}

body.page #content p:last-child {
    margin-bottom: 0;
}

sup, sub {
    color: #666;
    font-size: 75%;
    line-height: 50%;
}

sup a, sub a {
    text-decoration: none !important;
}

.block {
    display: inline-block;
}

a img { border: 0; }

a:link, a:visited {
    color: #FF5000;
}

a:link {
    text-decoration: none;
}

a:hover {
    text-decoration: underline !important;
}

#content a:visited {
    text-decoration: line-through;
}

body.page #content a:link {
    text-decoration: underline;
}

#title {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid #FF5000;
}

#title a.moma {
    float: left;
    margin: 1px 0 -7px -19px;
}

#nav, #nav li {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
}

    #nav li {
        display: inline-block;
        padding: 0 3px 0 0;
    }

    #nav li a {
        color: #333 !important;
        padding: 1px 0 2px 5px;
        text-decoration: none;
    }

    #nav li:hover a {
        color: #FF5000 !important;
    }

    #nav li.selected a {
        background-color: white;
    }

#title #nav {
    display: block;
    margin: 3px 0 0 0;
    padding: 0;
}

#title h1 {
    text-align: left;
    margin: 0;
    padding: 0;
    line-height: 0;
}

body#about #content ul,
body#about #content li {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

body#about #links li {
    font-size: 20px;
    line-height: 22px;
    font-weight: bold;
}

body#about #links a {
    text-decoration: none;
}
body#about #links a:hover {
    text-decoration: underline;
}
@media screen and (max-device-width: 480px){
	body#about #content{
		padding: 0;
	}
}

#opening, #rules, #affairs, #people{
	width: 1115px;
}
#opening p, #rules p, #affairs p, #people p{
	width: 500px;
}

.hide{
	display: none;
    background: #fff;
    padding: 3px
}
.section p.about .block{
	background-color: #FF5000;
	color: white;
	text-decoration: underline;
	display: inline-block;
	margin-top: 10px;
	cursor: pointer;
	padding: 3px;
}
.section p.about.active .block{
	background-color: #000000;
}
body#categories.ios #title, body#about.page.ios #title{
	margin-right: 0 !important;
}
body#categories.page #content{
	width: 600px;
	padding: 0;
	margin: 0;
}
@media screen and (max-device-width: 480px){
	body#categories.page #content, body#about.page #content{
		margin-top: 80px;
		width: auto;
	}
}
body#categories h3{
	margin-top: 20px;
}
.section .icon {
    display: inline-block;
    width: 25px;
    height: 25px;
    vertical-align: top;
    background-image: url(images/icons-large.png);
    background-position: 1000px -3px; /* hide */
    background-repeat: no-repeat;
    margin-left: 3px;
}

#worlds .icon-worlds{
	background-position: -5px -73px;
}
#double-entendre .icon-double-entendre{
	width: 35px;
	background-position: -35px -74px;
}
#city .icon-city{
	background-position: -73px -74px;
}
#life .icon-life{
	background-position: -107px -73px;
}
#objects .icon-objects{
	background-position: -140px -73px;
}
#bodies .icon-bodies{
	background-position: -174px -73px;
}

/* For modern browsers */

.cf:before,
.cf:after {
    content: "";
    display: table;
}

.cf:after {
    clear: both;
}

/* For IE 6/7 (trigger hasLayout) */
.cf { zoom: 1; }
