
/*
* === MobileFriendly.css ===
Makes all themes mobile friendly. Requires MobileFriendly.js
----------------------------
(C) Copyright 2015 Austin "lash" Williamson
Released under the terms of GNU Public License V2.

Feel free to use, copy, modify, and redistribute this code.
Any code modifications or derivative projects must be released under a GPL-compatible license.

Basically, that means if you change the code, others are allowed to as well.

Version 1.0
An easy-to-install library that makes every theme magically mobile friendly.

CREDITS:
The original Blueline Mobile theme was created by Helena, with input from the Zathyus Networks staff team. Further credits and theme info here: http://if.invisionfree.com/topic/5171069/

Some code drawn from Queen Virgo. Queen Virgo created by Omega.

Media Query code derived from https://www.fourfront.us/blog/jquery-window-width-and-media-queries
*/

.sampleClass {float:left;}
@media only screen and (max-width: 650px){
	.sampleClass {float:none;}
}

/* hides stuff from desktop */
@media only screen and (min-width: 651px) { 
#hide_from_desktop {
display:none;
}

#hide_from_mobile {
display: block !important;
}
}

/*mobile */
@media only screen and (max-width: 650px) { 
#hide_from_mobile,  td.c_info-v {
display: none;
}

#hide_from_desktop {
display: block !important;
}

#wrap, #logo, #submenu, #submenu_bar, #top, #top_bar {
width: 95% !important;
}

.portal_box {
 clear: both;
margin-bottom:auto;
}

#portal_r {
float:right;
width: 100% !important;
clear: both;
}

html, body {
font-family: "Helvetica", "Arial", "Bitstream Vera Sans", "Verdana", sans-serif;
font-size: 13px;
margin: 0;
padding: 0;
}

td.c_sig img, td.c_post img {
display:none;
}

/*These are 2 different things, although they relate to each other. These are the secondary borders, so they affect everything except main text fields and categories.*/
th, td{
border-bottom: 0px;
}

th {
font-weight: 700;
font-size: 90%;
text-transform: uppercase;
}

td {
padding: 5px 5px;
}


h1 {
font-size: 200%;
}

h2, h3 {
font-size: 100%;
}

.category h2, .topic h2, #portal h2, #portal_foot h2, thead th {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
}

thead th {
padding: 5px;
text-align: center;
font-size:100%;
}

input, select, textarea, button, a.btn_fake {
border: 0;
padding: 3px 5px;
vertical-align: middle;
/*border: 1px solid;*/
}

textarea {
font-family:"Verdana", sans-serif;
font-size:95%;
margin:auto;
width:98%;
}

/*What happens to the button when hovered over*/
button:hover,a.btn_fake:hover {
}

button.btn_text {
border:0;
cursor:pointer;
font-family:Arial, "Bitstream Vera Sans", Verdana, sans-serif;
font-size:100%;
}

#top ul,#nav,ul.cat-pages,ul.cat-topicpages,table.calendar ul,div.meta_menu ul,#pm_folderlist,#profile_menuwrap ul {
list-style:none;
padding:0;
}

#profile_menuwrap ul,ul.cat-topicpages,blockquote dl,#fast-reply dd, table.calendar ul, .drop_menu {
margin:0;
}

#top li,#nav li,ul.cat-pages li,ul.cat-topicpages li,table.calendar li,#pm_folderlist li,#profile_menuwrap li,#ucp_gallery li {
display:inline;
}

#top_bar, .c_mark img, .c_mark {
display: none;
}

#top {
font-size: 95%;
height: 28px;
position: relative;
top: 0px;
}

#top_info {
margin-top: 4px;
margin-right:10px;
float:right;
}

#top_menu {
margin-top: 5px;
}

#logo {
clear: both;
margin: 0 2%;
}

#submenu {
width: 99%;
}

#wrap {
margin: 4% 2% 30px;
}

#nav {
font-size: 85%;
height: 1%;
padding: 10px 0;
}

.meta_box {
font-size: 85%;
line-height: 150%;
padding: 10px 25px;
}

.meta_menu {
padding: 0;
width: 100%;
}

.meta_menu h3 {
clear: both;
font-size: 80%;
font-weight: 700;
margin: -1px;
text-align: center;
text-transform: uppercase;
}

ul.cat-pages {
float:left;
font-size:90%;
margin:15px 0;
padding: 5px 1px;
width:49%;
}

.cat-pages span {
font-weight: 700;
padding: 2px 5px;
}

.cat-pages input {
padding: 3px 5px;
vertical-align: baseline;
}

ul.cat-topicpages {
float: right;
font-size: 80%;
padding: 1px 0;
}

tr.generic td,div.generic {
font-size: 95%;
font-weight: 700;
text-align: center;
}


td.c_head, td.c_foot, td.c_sort {
font-size: 90%;
}

td.c_desc {
font-weight: 700;
text-align: right;
vertical-align: middle;
width: 100px;
padding-right: 15px;
}

td.c_desc small {
display:block;
font-weight:400;
}

tr.pm_new td {
font-weight: 700;
font-size: 90%;
}

.bday {
font-size:90%;
font-weight:700;
height:16px;
padding:2px 2px 2px 18px;
width:20px;
}

.c_mark {
text-align:center;
width:1%;
border-right:none;
}

.c_forum {
font-size: 90%;
width: 20%;
}

.c_forum strong a {
font-size: 110%;
}

td.c_last {
font-size: 80%;
width: 1%;
min-width: 150px;
}

.c_forum-desc {
font-size: 85%;
}

.c_last-title {
display: block;
line-height: 20px;
padding-left: 10px;
font-weight:bold;
font-size:120%;
}

td.c_info-v,td.c_info-t,td.c_info-r {
display:none;
}

/*The sub forum background stuff*/
td.c_subforum {
font-size:80%;
font-style:italic;
}

.cat_head td {
padding: 0;
}

.description {
font-size: 85%;
}

td#stats_events a,td#stats_events span {
padding: 4px 0 4px 20px;
}

td.c_username {
width:1%;
}

td.c_user {
display:none;
}

td.c_user dl {
margin: 10px 0;
padding: 5px 7px;
width: 100px;
}

dl.user_profile {
overflow:hidden;
word-wrap:break-word;
}

dl.user_profile dd {
font-style:italic;
margin-left:8px;
}

dl.user_info dd {
font-weight:700;
margin-bottom:1px;
}

#profile_menu a {
font-size: 0%;
width: 80px;
text-transform: capitalize;
letter-spacing: 0;
font-weight: 400;
}

#profile_menu ul li a {
padding: 4px 0.25em;
}

#profile_menu ul {
border-top: 0;
}

#profile_menu li li a {
border: 0;
font-size: 90%;
}

td.c_poll-choice label {
font-weight:700;
padding-left:1em;
}

td.c_poll-votes {
font-size:110%;
text-align:left;
width:15%;
}

td.c_poll-bar div {
float: left;
height: 12px;
padding-right: 3px;
}

td.c_poll-bar span {
display: block;
float: left;
height: 12px;
width: 3px;
}

table.poll th {
font-size:75%;
}

.editby,.queued {
font-size:85%;
font-style:italic;
margin-top:1em;
padding:3px 5px;
}

blockquote, #blog blockquote blockquote {
margin: 10px auto;
padding-bottom: 1px;
width: 98%;
}

/*Uh...not sure, but make it the same color as the blockquote dl*/
blockquote dl dt {
float:left;
font-weight:700;
}

code {
display: block;
font-family: Monaco, Consolas, "Courier New", Courier, monospace;
font-size:85%;
white-space: pre;
max-height: 400px;
max-width: 700px;
overflow: auto;
}

blockquote blockquote blockquote blockquote code {
max-width: 654px;
}

div.spoiler {
padding: 5px 7px;
}

div.spoiler_toggle {
text-transform: uppercase;
cursor: pointer;
font-weight: 700;
font-size: 90%;
padding: 2px 4px;
}

/*Post info in threads*/
td.c_postinfo {
font-size:80%;
vertical-align:middle;
}

td.c_sig blockquote {
border:0;
padding-left:5px;
}

td.c_sig blockquote dl dt,td.c_sig blockquote dl dd {
padding:0;
}

td.c_sig blockquote div {
margin-left:5px;
padding:0;
}

tr.c_postfoot td, td.c_postfoot {
clear: both;
text-transform: uppercase;
font-weight: 700;
padding-bottom: 8px;
}

.c_next a {
display:block;
font-size:125%;
font-weight:700;
text-align:center;
}

div.c_view-list {
font-size: 92.5%;
}


/*This is all of the fast reply stuff. Pretty obvious looking at it.*/
dl#fast-reply dt {
font-size:110%;
font-weight:700;
margin:0;
padding:5px;
}

/Something else with the fast reply. I don't think we even have this option acitve, so whatever.*/
dl#fast-reply dd {
padding:15px 0;
text-align:center;
}

#c_post-preview {
margin:0 auto 10px;
padding:5px;
text-align:left;
width:91%;
}

#c_post-resize span {
cursor: pointer;
font-size: 225%;
padding: 20px 5px 0;
}


#emot_wrap h3 {
font-size: 120%;
text-align: center;
}

#emot_end {
display: block;
font-weight: 700;
padding: 4px 0;
text-align: center;
}

#pm_folders {
padding-top: 30px;
vertical-align: top;
width: 0px;
}

#pm_folderlist {
position: relative;
margin-left:0;
margin-top:0
}

#pm_folderlist li {
display: list-item;
margin-bottom: 4px;
padding-left: 28px;
}

#pm_forwarded {
font-size:90%;
font-style:italic;
margin-top:1em;
padding:3px 5px;
}

#ucp_gallery a {
font-weight: 700;
line-height:1em;
}

.calendar td div {
font-weight:700;
padding:5px 7px;
}

.calendar div a {
float:right;
font-size:80%;
font-weight:400;
padding:0 0 6px 24px;
}

.calendar li a,.calendar li span {
border-width:1px;
display:block;
padding:3px;
}

div.portal_content {
font-size: 100%;
margin: 0;
padding: 5px 7px;
}

#portal h2 {
font-size: 75%;
}


/*The headers for the sections in the portal*/
#portal h4 {
font-size:88.3%;
font-weight:400;
margin:0;
padding:5px 7px;
}

#faq dt a {
font-size: 120%;
font-weight: 700;
}

#faq dd.faq_more a, #faq dl.faq_more a:hover {
font-style: italic;
}

.search_results {
margin-bottom:1em;
padding:5px 7px;
}

.search_results h3 {
display:inline;
font-size:125%;
}

.search_results cite,.search_results p {
font-size:85%;
margin:0;
}

#findposts .c_mark {
font-size:200%;
font-weight:700;
vertical-align:top;
}

/*I think this is the bit that pops up when you get a new PM*/
#pmtoast {
background-position: top right;
background-repeat: no-repeat;
bottom:10px;
display:none;
font-size:90%;
position:fixed;
right:10px;
text-align:right;
text-decoration:none;
width:200px;
z-index:1;
}

/*This is the icon and the like for the PM toast*/
#pmlink {
display:block;
padding: 3px;
text-decoration: none;
}

#pmlink big {
text-transform: uppercase;
display: block;
font-weight: 700;
padding-bottom: 5px;
font-size: 100%;
}

#pmclose {
display: block;
font-size: 80%;
padding: 1px 10px;
}

#foot_wrap {
margin: 20px 1px 20px 0;
padding-left: 8px;
float: center;
width:98%;
}

/*The footer bar at the bottom. Contains the theme option as well*/
#foot td {
float: center;
width:100%;
font-size:80%;
}

/*The date and time on the footer*/
#foot #foot_datetime {
width:1%;
white-space:nowrap;
}

#copyright {
font-size: 100%;
margin: 10px 0;
text-align: center;
}

#copyright a {
font-weight: 700;
}

#c_tos h3 {
font-size: 120%;
}

input.username_ok {
border-bottom: 1px solid #41da2b;
}

input.username_no {
border-bottom: 1px solid #dc636f;
}

a img {
border:0;
}

form {
display: inline;
margin: 0;
padding: 0;
}

.category h2, .topic h2, #portal h2 {
padding: 7px;
text-align: left;
}

h3 {
padding: 3px 0;
}

input[type=checkbox] {
background: transparent;
border: 0;
padding: 0;
vertical-align: bottom;
}


input[type=radio] {
border: 0;
}

/*This is the text field box, along with a few other things such as combo boxes and uploads.*/
input,select,textarea,a.btn_fake {
padding:3px 5px;
vertical-align:middle;
}

option {
margin: 2px 0;
}

button.btn_img {
border: 0;
cursor: pointer;
padding: 0;
}

.notice dt,.notice dd {
padding: 5px 7px;
}

#submenu a {
padding: 3px 5px;
}

#main {
height: 1%;
}

#nav li img {
vertical-align: top;
}

.meta_box,.meta_menu {
margin:10px 0;
}

.meta_box li {
display:list-item;
list-style-position:inside;
list-style-type:square;
margin-left:10px;
}

.meta_menu ul {
font-size:100%;
margin:5px 5%;
}

.meta_menu img,.meta_menu span {
float:right;
margin:10px 20px;
}

.cat-pages a,.cat-pagesjump i,.cat-topicpages a {
cursor:pointer;
padding:2px 5px;
}

.cat-topicpages a {
padding: 1px 3px;
}

.cat-buttons,.topic-buttons {
float:right;
margin:15px 0;
text-align:right;
width:50%;
}

tr.postbtn td {
padding:5px;
text-align:center;
}

.row1,.row2 {
line-height:1.4;
}

td.c_sort button {
padding:1px;
}

td.c_head input,td.c_head button,td.c_foot input,td.c_foot button,td.c_sort input {
padding:1px;
}


td.c_desc img,td.c_desc input {
float:left;
vertical-align:middle;
}

.category {
margin: 10px 0 0;
}

span.collapse, span.uncollapse {
cursor: pointer;
float: right;
position: relative;
}

.c_mark img {
display: block;
margin: auto;
}

.c_last {
line-height: 1.4;
min-width: 210px;
width: 30%;
}

#stats_members {
line-height: 1.2;
}

td.c_cat-mark, td.c_cat-icon {
padding: 5px 0;
text-align: center;
width: 30px;
}

td.c_cat-starter {
width:125px;
}

td.c_cat-lastpost {
width:auto;
}

.c_user {
vertical-align:top;
width:100px;
}

img.c_user {
height: 1px;
}

.avatar, img.member {
display:none;
margin:auto;
text-align:center;
height:0px;
width:0px;
}

.av_wrap {
overflow:hidden;
text-align:center;
margin:auto;
}

td.c_user .usertitle {
text-align:center;
margin:3px 0;
}

.pip {
margin:3px 0;
white-space:nowrap;
}

dl.user_info dt,dl.user_info dd {
padding:.1em;
}

dl.user_info dt {
float:left;
margin:0;
min-width:4em;
}

dl.user_info dd.spacer, dl.user_profile dd.spacer {
clear: both;
float: none;
height: 1px;
padding: 0;
}

td.c_poll-choice {
line-height: 1.5;
padding-left: 5%;
}

td.c_poll-answer {
text-align: center;
width: 92.5%;
}

td.c_poll-bar {
text-align: left;
vertical-align: middle;
width: 42.5%;
}

* html td.c_poll-bar span {
margin-top: 3px;
}

td.c_post {
line-height: 1.4;
vertical-align: top;
padding-left:5px;
}

td.c_post ul {
list-style-type:square;
margin-left:10px;
}

.c_post img,#topic_review img {
max-width:90%;
}

.c_post-attachment {
font-size:83.3%;
margin-top:1em;
padding:1em;
}

.c_post-attachment dd {
margin-left:1em;
}

.post_sep {
display: none;
}

td.c_sig,td.c_nosig {
height:0.5%;
vertical-align:top;
}

td.c_nosig {
border-top-style:hidden!important;
}

blockquote dl dt, blockquote dl dd {
padding: 2px 4px;
}

blockquote dl dd {
font-size: 80%;
}

blockquote div,blockquote code {
margin:0;
padding:5px;
}

dl#fast-reply {
clear:both;
margin:auto;
width:100%;
}

dl#fast-reply dd p {
margin:-3px;
padding:0 5% 10px;
text-align:left;
}

dl#fast-reply dd textarea {
display:block;
height:100px;
margin-bottom:10px;
padding:2px;
width:95%;
}

#c_post-text {
height:150px;
}

#c_post-resize {
float:right;
margin-top:-1px;
padding:4px 0 0;
text-align:right;
}

#btn_preview {
float:left;
margin:10px 0 0 1px;
}

#c_emot {
height:225px;
vertical-align:top;
width:0px;
display:none;
}

#emot_list {
height:150px;
width:auto;
margin:0 auto;
overflow:auto;
text-align:center;
display:none;
}

div#emot_list {
padding:0;
}

#emot_list li {
display:inline;
padding:4px 5px;
}

#emot_list img {
cursor:pointer;
vertical-align:baseline;
}

.pm {
margin-bottom:1em;
}

#pm_datesent {
width:200px;
}

#pm_select {
text-align:center;
width:1px;
}

#conversation .c_post {
padding:2em;
font-size:100%;
}

#ucp_profile,#pm_messages {
float:right;
}

#ucp_settings img,#ucp_profile img {
margin:18px 20px;
}

#ucp_gallery li {
float:left;
margin:15px 5px;
}

#ucp_gallery button {
cursor:pointer;
text-align:center;
}

.ucp button.btn_text {
padding:5px 0;
text-align:center;
width:100%;
}

.calendar td {
height:125px;
padding:0;
vertical-align:top;
width:14.3%;
}

.calendar li {
display:list-item;
font-size:80%;
margin:0;
}

.calendar li.placeholder {
padding:4px;
}

.calendar li span {
cursor:default;
}

.calendar td#cal_current div {
padding-top:3px;
}

#portal_head {
margin-bottom:10px;
}

#portal_foot {
margin-top:10px;
}

#portal_l,#portal_r {
font-size:88.3%;
margin:0;
padding:0;
}

#portal_l a {
font-size: 110%;
}


#portal_l {
float: left;
width: 100%;
}

#portal_r {
float: right;
width: 150px;
}

#portal_news {
margin: 0px;
}

#portal_clear {
border: none;
clear: both;
font-size: 1px;
height: 1px;
margin: 0;
padding: 0;
}

.portal_box {
margin-bottom: -4px;
}

.portal_box table {
clear: none;
}

#portal h2,#portal_foot h2 {
clear: none;
margin: 0;
padding:7px 10px;
}

#faq {
margin:20px 0;
}

#faq dl {
padding:1em;
}

#faq dt {
margin-bottom:5px;
}

#faq dd {
display:list-item;
margin:0 0 3px 15px;
padding-left:3px;
}

.search_results div {
display:block;
margin:5px 0;
}

input, select, td, th {
font-size: 95%;
}

button.btn_default, #nav li span, .c_post-attachment dt, #c_tos dt {
font-weight:700;
}

.meta_box h3, td.c_topicfoot strong, #meta_welcome strong {
font-size:100%;
}

img,.meta_box button img,td.c_cat-mark input,.c_post-attachment img,.warn img,#ucp_gallery a img, td.c_postinfo input {
vertical-align:middle;
}

h1,h2,h3,#nav,#boardmeta,#main {
clear:both;
margin:0;
}

#meta_welcome,.search_results {
clear:both;
}

#stats_events {
line-height:2;
}

.c_cat-starter,.c_cat-replies,.c_cat-views,td.c_poll-total,td.c_poll-vote,.warn,.ucp th,#c_notes,.calendar th {
text-align:center;
}

blockquote dl dd,#foot #foot_links {
text-align:right;
}

#c_post,#ucp_gallery {
text-align:center;
vertical-align:top;
}

#files_upload input, .pm .row1 a, .pm .row2 a, #ucp_gallery button img, #findposts td a {
display: block;
}

#ucp_settings, #pm_settings {
float: left;
}

#c_tos dd,#username_response {
margin-left: 10px;
}

#vlx {
z-index: 1;
}

#blog {
margin: 10px 0;
}

#blog blockquote {
border: none;
font-size: 85%;
padding: 0 10px;
}

#blog blockquote blockquote {
padding: 0;
font-size: 100%;
}

#blog h1 {
float: right;
font-size:150%;
}

#blog h2 {
clear: none;
font-size: 80%;
padding: 5px;
text-transform: uppercase;
}

#blog_foot {
clear:both;
margin-bottom:20px;
}

#blog_head {
border: 8px solid #54ccfe;
padding: 10px 14px;
}

#blog_head img.avatar {
display:inline;
}

#blog_head:after {
content: ".";
display: block;
height: 0;
line-height:0;
clear: both;
visibility: hidden;
}

#blog_main {
margin:20px 0px;
}

#blog_categories, #blog_readers, #blog_about {
margin: 15px 0;
padding: 5px 7px;
border-bottom: 1px solid #65a4e8;
}

#blog_sidebar h3,#blog_sidebar dt {
font-weight:700;
}

#blog_sub {
clear: both;
position: relative;
padding: 5px 7px;
text-align: right;
font-size: 85%;
}

#blog_sub button, #topic_viewer .c_foot button {
}

#blog_sub span {
padding-top: 4px;
}

#blog_sidebar {
float: right;
font-size: 93.3%;
margin: 20px 10px 0 0;
padding: 0 10px;
width: 160px;
}

#blog_sidebar dd {
margin-left: 10px;
}

#blog_user {
font-size: 175%;
}

#blog table {
clear: none;
}

div.blog_options {
font-size: 70%;
text-align: right;
margin: 15px 0;
padding: 3px 7px;
text-transform: uppercase;
}

div.blog_date {
font-weight: 700;
margin: 11px 15px;
text-align: center;
text-transform: uppercase;
width: 40px;
}

div.blog_date span {
display: block;
font-size: 130%;
font-weight: 700;
padding: 2px 4px;
}

div.blog_entry {
margin: 10px 0;
padding: 5px 7px;
}

#blog_comments li {
padding: 5px 7px;
}

#wrap, #submenu, #submenu_bar, #top_bar, #nav, #boardmeta, #main, #logo,#logo > a:nth-child(1) > img:nth-child(1) {
width: 95% !important;
}

h1, h2, h3 {
width:95% !important;

#top {
width: 93%
}
}

