/* 
Title: Tintinologist.org main styles for screen media 
Author: Irene C. Mar 
Last modified: 20141103 - simplified .more
*/

/* global */
* {
	margin: 0;
	padding: 0;
	}
	
html { 
	clear: both; 
	}
	
body {
	background: #fdfdfd;
	font: 100%/1.6 Helvetica, Arial, sans-serif;
	font-weight: 400;
	color: #222;
	text-align: center;
	position: relative;	
	}
	
/* structure */
#wrapper {
	background: #fcfcfc;
	border: 10px solid #fff;
	margin: 1em auto;
	width: 65%; 
	/*max-width: 980px;*/
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	border-radius: 6px;
	-webkit-box-shadow: 0 3px 5px rgba(0,0,0,.25);
	-moz-box-shadow: 0 3px 5px rgba(0,0,0,.25);
	box-shadow: 0 3px 5px rgba(0,0,0,.25);
	}
	
#header {
	background: #036;
	color: #fff;
	padding: .2em 0 0 0;
	text-align: left;
-moz-border-radius-topleft: 6px;
-moz-border-radius-topright: 6px;
-webkit-border-radius: 6px 6px 0 0;
border-radius: 6px 6px 0 0; 
	}
	
#search {
	font-size: .9em;
	float: right;
	width: 40%;
	margin: .1em 0 0 0;
	padding-right: 1em;
	text-align: right;
	}

#nag-global, #globalnav {
	margin-top: 1em;
	padding-top: .5em;
	}
	
#content {
	padding: 0 1em;
	margin: 0 auto;
	margin-bottom: 2em;
	text-align: left;
	vertical-align: top;
	width: 85%;
	font-size: 16px;
	}
	
/* 2c */
#maincontent {
	float: left;
	width: 62%;
	margin: 0 1% 2em 0;
	text-align: left;
	vertical-align: top;
	}
	
#content-secondary, #sidebar {
	float: right;
	width: 33%;
	margin-bottom: 2em;
	font-size: .95em;
	text-align: left;
	}
	
#footer {
	background:#f7f7f7;
	border-top: 1px solid #ddd;
	clear: both;
	color: #666;
	font-size: 0.8em;
	margin: 1em 0 0 0;
	padding: 1em 0 1em 0;
	}
	
/* header section */
#header img {
	border: none;
	margin: .1em 0 0 0;
	padding-left: .5em;
	}
	
#header a {
	background: none;
	border: none;
	color: #fff;
	text-decoration: none;
	}
#header a:hover {
	background: none;
	border: none;
	color: #fff;
	text-decoration: none;
	}
	
/* search */
#search img {
	border: none;
	margin: 0;
	}
	
#search p { 
	display: inline;
	}
	
#search input.search-text {
	color: #bbb;
	background: #fff; 
	border: none;
	}
	
#search input.search-text:focus {
	color: #bbb;
	outline: none;
	}	

#search a:link {
	color: #aaa; 
	text-decoration: none;
	}
	
#search a:hover {
	color: #fff;
	text-decoration: none;
	}
	
#search form {
	margin: 0;
	padding: .5em 0 0 0;
	}
	
/* nav */
#globalnav ul {
	background: #acd; /*#66979f; #a8bacc;*/
	float: left;
	width: 100%;
	}
	
#globalnav ul li { 
	display: inline; 
	}
	
#globalnav ul li a {
	background: #acd; /*#66979f; #a8bacc;*/
	/*border-right: 1px solid #a9a9a9;*/
	color: #375e85;
	float: left;
	padding: 0.2em 1em;
	text-decoration: none;	
	-webkit-transition: all .2s ease;
	-moz-transition: all .2s ease;
	-o-transition: all .2s ease;
	transition: all .2s ease;
	}
	
#globalnav ul li a:hover {
	background: #fcfcfc;
	/*border-right: 1px solid #a9a9a9;*/
	color: #375e85;
	}
	
/* content */
p { margin-bottom: 1.2em; }

address {
	margin: 0;
	padding: 0;
	font-style: normal;
	}
	
/* links */
a:link {
	background: none;
	color: #06c; /* #f16c32; - orange */
	text-decoration: none;
	-webkit-transition: color .2 ease;
	-moz-transition: color .2 ease;
	-o-transition: color .2 ease;
	transition: color .2 ease;	
	}
	
a:visited {
	background: none;
	color: #036;

	-webkit-transition: color .2 ease;
	-moz-transition: color .2 ease;
	-o-transition: color .2 ease;
	transition: color .2 ease;
	}
	
a:hover {
	text-decoration: underline;
}

a:active, a:focus {background: none;}
	
body#about #abouttab a,
body#articles #articlestab a,
body#diversions #diversionstab a,
body#guides #guidestab a,
body#home #hometab a,
body#links #diversionstab a,
body#news #newstab a,
body#forums #forumstab a,
body#contact #abouttab a {
	background: #fcfcfc;
	color: #375e85;
	font-weight: bold;
	text-decoration: none;
	}
	
a.rss {
	background: transparent url(/i/icon-rss.gif) no-repeat 0 50%;
	padding-left: 15px;
	}
	
a.new {
	background: transparent url(/i/icon-new.gif) no-repeat 100% 0;
	padding-right: 2.5em;
	}

p:last-child {
  margin-bottom: 0; 
  }

h1 {
	color:#444;
	font-size: 2.3em;
	line-height: 1.2em;
	margin: 1.8em 0 .5em 0;
	}
	
h2, h3 {
	color: #444;
	letter-spacing: 1px;
	text-align: left;
	}
	
h1, h2, h3 { 
	font-weight: normal;
	}
	
h2 {
	font-size: 1.4em;
	line-height: 1.4;
	margin: 1.3em 0 .5em 0;
	}
	
h3 {
	font-size:  1.3em;
	line-height: 1em;
	margin: 1em 0 .5em 0;
	}

	
/* images */
img {
	padding: 5px;
	vertical-align: middle;
	}
	
img.border { 
	border: 1px solid #333; 
	}
	
img.left {
	float: left;
	margin: 0 10px 10px 0;
	padding: 0 15px 15px 0;
	}
	
img.right {
	float: right;
	margin: 10px;
	padding: 15px;
	}
	
/* lists */
ol, ul, dl {
	line-height: 1.5em;
	margin-left: 2em;
	}
	
ol li { 
	/*list-style-type: decimal-leading-zero;*/
	}
	
ol ul li {
	list-style: disc;
	margin-left: 0.5em;
	}
	
ul {
	margin: 0;
	padding: 0;
	}
	
ul li {
	list-style: none;
	margin: 0.5em 0;
	vertical-align: middle;
	}
	
dl {
	margin: 0;
	padding:0;
	}
	
dt {
	margin-top: 1.25em;
	margin-bottom: 0;
	}
	
dt:first-child {margin-top: .5em;}

dd {
	margin: 0 0 .5em 0;
	padding: 0;
	}
	
dd p { margin: 0; }

dd p+p { margin: 1em 0; }

/* tables

table {
	background: #fff;
	border-collapse: separate;
	font-size: inherit;
	width: 95%;
	}
	
td {
	background: #f4f4ed;
	padding-left: 2px;
	vertical-align: top;
	text-align: left;
	}
	
th {
	background: #ccc;
	color: #333;
	font-weight: bold;
	padding: 2px;
	text-align: left;
	vertical-align: top;
	}
*/	


table { 
  width: 100%; 
  border-collapse: collapse; 
}
/* Zebra striping */
tr:nth-of-type(odd) { 
  background: #eee; 
}
th { 
  background: #333; 
  color: white; 
  font-weight: bold; 
}
td, th { 
  padding: 6px; 
  border: 1px solid #ccc; 
  text-align: left;}


	
th.title-text { width: 35%; }

/* table special */
table.publications {
	background: #f0f0f0;
	border-collapse: separate;
	width: 100%;
	}
	


/* forms */
input, select, textarea { border: solid 1px #ccc; font-size: .9em; padding: 3px; }

/* 2c - maincontent */
#maincontent  {}

	
/* sidebar */
#sidebar h2, #sidebar h3 {
	font-size: 1.2em;
	padding: .6em 0 0.3em 0;
	}	

/* timeline. do not change order of the two rules */
dl.timeline dt, dl.timeline dd {margin: 0; padding: 0;} 
dl.timeline dt { float: left; margin-right: 0.5em;  color: #f16c32; font-weight: normal;}
dl.timeline {margin-bottom: 1em;}

/*footer */
#footer p {
	margin-bottom: 0;
	padding: 5px;
}

#footer a {
	background: none;
	color: #666;
	font-weight: bold;
	text-decoration: none;
	}
	
	
#footer a:hover {
	font-weight: bold;
	text-decoration: underline;
	}
	
/* classes */
.break {
	clear: both;
	padding-top:1em;
} /* add padding to fix safari clear:both margin bug */

.button {
	margin: 0;
	padding: 1px 2px; /*8px 12px 6px 12px;*/
	font-size: .7em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 2px;
	border: none;
	color: #fff;
	background: #f16c32;
	-webkit-border-radius: 2px;
	   -moz-border-radius: 2px;
	        border-radius: 2px;
	   -webkit-transition: .2s all ease;
	      -moz-transition: .2s all ease;
	        -o-transition: .2s all ease;
	           transition: .2s all ease;
}

.button:hover {background: #66979f;}
.byline-credits, .copyright {font-size: .9em;}
.divider {border-bottom: 1px #999 dotted;}
.highlight {background: url(/i/icon-alert.gif) no-repeat 0; padding:0.5em 0 0.3em 2.3em;}
.invisible {display: none;}

.notebox {
	background: #eee;
	padding: 0.5em;
	margin: auto;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px; 
}

.datacolumn {
	float: left;
	padding: 0 0.1em 1em 0.1em;
	width: 33%;
} /* guides - audio visual */

.scriptcredit {
	color:#999;
	font-size:90%;
}

.sidebox {
	background: #eee;
	float: right;
	padding: 0.5em;
	width: 30%;
	-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px; 
}

.timestamp {
	background: none;
	color: #888;
	font-size: .85em;
	margin-top: -1.2em;
	margin-bottom: 2em;
}

/* home page */
#title h2
{
	font-size: 1em;
	font-weight: normal;
	letter-spacing: 0;
	margin: 0;
}

body#home #special-message { padding: .2em;  margin-top: 1em;}
body#home #special-message img { display: block; border: 0; margin-left: auto;  margin-right: auto; padding: 0; 
   transform: rotate(3deg);
   -moz-transform: rotate(3deg);
   -webkit-transform: rotate(3deg);   
   
 	max-width: 100%;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
	        border-radius: 4px;
	   -webkit-box-shadow: 3px 3px 3px #bbb;
	      -moz-box-shadow: 3px 3px 3px #bbb;
	           box-shadow: 3px 3px 3px #bbb;
	   -webkit-transition: all .2s ease;
	      -moz-transition: all .2s ease;
	        -o-transition: all .2s ease;
	           transition: all .2s ease;  
   
   }
      
body#home #special-message p { text-align: center; }


/* tintin guides and lists */
dl.feature {
	border-bottom: 1px dashed #ddd;
	display: inline-block;
	margin:15px 0;
	padding: 15px;
}

dl.feature:after {
	clear: both;
	content:".";
	display: block;
	height: 0;
	visibility: hidden;
}

dl.feature dt {
	color: #693;
	font-size: 1.4em;
	margin: 0 0 .5em 0;
}

dl.feature dt img {
	float: left;
	padding: 0 4px 4px 0;
	margin: 0 15px 0 0;
	
}

/* css hack - self-clearing floats */
/* Hides from IE-mac \*/
* html dl.feature { height: 1%; }
dl.feature { display: block; }
/* End hide from IE-mac */


dl.illustration {
	float: right;
	margin: 0 0 1em 1em;
	padding: 0 0 10px 0;
	text-align: center;
	width: 320px;
}

dl.illustration dt {
	color: #666;
	font-weight: bold;
	margin-bottom: 10px;
	padding: 5px 10px;
}

dl.illustration dd img {border: 1px solid #ccc;}

dl.illustration dd {
	font-size: 90%;
	margin: 0;
	padding: 0 10px 5px 10px;
}

dl.illustration-wide {
	margin: auto;
	padding: 0 0 10px 0;
	text-align: center;
	width: 500px;
	max-width: 100%;
}

dl.illustration-wide dt {
	font-weight: bold;
	color: #666;
	margin-bottom: 10px;
	padding: 5px 10px;
}

dl.illustration-wide dd img { border: 1px solid #ccc; }
dl.illustration-wide dd {
	font-size: .9em;
	font-family: serif;
	font-style: italic;
	margin: 0;
	padding: 0 10px 5px 10px;
}

a.more {font-size: .85em;  text-transform: uppercase;}   
a.more:hover, a.more:active {text-decoration: underline;}

/* responsiveness */
@media only screen and (max-width: 620px), only screen and (max-device-width: 620px) 
{
#header img {width: 95%;}
#maincontent {float: none; width: 100%;}
#globalnav ul {width: 100%;}
#globalnav ul li a {width: 50%; display: block; padding: 0; border: none;}
#globalnav ul li a:hover {border: none;}
#search { float: none; width: 100%;	}	
#content img {max-width: 100%;}	
#maincontent img {max-width: 100%;}
#sidebar {width: 100%;}
#footer: {width: 100%; margin: 0;}
#sidebar img {float: none;}
}