body{
	background-color: #96A8C8;
	text-align: center;
	
	font-size: 16px;
	font-variant: small-caps;
	font-family: Lucida, sans-serif;
	font-weight: 500;
}

a {
	color: #96A8C8;
	text-decoration: none;	
	font-weight: 800;
}

a:hover {
	text-decoration: underline;
}

img {
	border: 0;
}

#container {
	width: 780px;
	margin-left: auto;
	margin-right: auto;
	padding-bottom: 10px;		
}

#topContainer {
	width: 100%;	
	overflow: hidden;
}

#topLeft {
	width: 200px;
	float: left;
}

#topLeft .s {
	height: 125px;
	overflow:hidden;
	position: relative;
}

#topLeft ul {
	display: block;	
	list-style-type: none;
	padding: 0;
}

#topLeft a {
	color: #282B30;
	text-decoration: none;
	font-size: 21px;
	font-variant: small-caps;	
	font-family: Lucida, sans-serif;
	font-weight: 800;
}

#topLeft a:hover {
	font-size: 21px;
	font-variant: small-caps;
	font-family: Lucida, sans-serif;
	font-weight: 800;
	text-decoration: underline;
}

#topRight {
	width: 580px;	
	float: right;
}
#topRight .s {
	height: 125px;	
	overflow:hidden;	
	position: relative;
}

#topRightContainer {
	width: 100%;
	position: absolute;
	top: -5px;
	
}

#topRightContainer img {
	float:left;
}

#logo{
	height: 83px;
}


#contentContainer .s {
	text-align: center;
}


#middleContent li {
	display: inline;
}

#middleContent ul li a {
	background-color: #6E7B91;
	color: #FFF;
	border: 1.5px solid #333;
	font-size: 16px;
	font-weight: 600;
	padding: 1.5px 12px;
	margin: 0 4px;
	text-decoration: none;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	box-shadow: 0 0 5px 0 gray;
	-moz-box-shadow: 0 0 5px 0 gray;
	-webkit-box-shadow: 0 0 5px 0 gray;
}

#middleContent ul li a:hover {
	background-color: #FFF;
	color: #6E7B91;
	box-shadow: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
}

.topCling {
	position: absolute;
	top: 0px;
}

.clearleft { clear: left; }

.line {
	padding: 0;
	display: block;
	height: 1px;
	font-size: 0px;
	background-color: #6E7B91;
	width: 95%;
	margin: auto;
}

#comicLinks {
	margin:auto;
	display:block;
	width: 300px;
}

#licenseText {
        margin:auto;
        display:block;
        width: 410px;
}


/* content-specific */
h1 {
	display: inline;
	font-size: 20px;
	font-variant: small-caps;	
	font-family: Lucida, sans-serif;
}

h2 {
	font-size: 20px;
	font-variant: small-caps;
	font-style: italic;
	font-family: Lucida, sans-serif;
	font-weight: 800;
}

h3{
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	font-variant: small-caps;
	font-style: italic;
	font-family: Lucida, sans-serif;
	font-weight: 800;
	clear: both;
}
h4{
	margin: 0px;
	padding: 0px;
	font-size: 6px;
	font-variant: small-caps;
	font-style: italic;
	font-family: Lucida, sans-serif;
	font-weight: 800;
	clear: both;
}

.dialog {
 min-width: 100px;
 color:#000;
 text-align: left;
}

.dialog .hd .c,
.dialog .ft .c {
 font-size:1px; /* ensure minimum height */
 height:13px;
}

.dialog .ft .c {
 height:14px;
}

.dialog .hd {
 background:transparent url(http://imgs.xkcd.com/static/tl.png) no-repeat 0px 0px;
}

.dialog .hd .c {
 background:transparent url(http://imgs.xkcd.com/static/tr.png) no-repeat right 0px;
}

.dialog .bd {
 background:transparent url(http://imgs.xkcd.com/static/ml.png) repeat-y 0px 0px;
}

.dialog .bd .c {
 background:transparent url(http://imgs.xkcd.com/static/mr.png) repeat-y right 0px;
}

.dialog .bd .c .s {
 margin:0px 8px 0px 4px;
 background:#fff;
 padding:1em;
}

.dialog .ft {
 background:transparent url(http://imgs.xkcd.com/static/bl.png) no-repeat 0px 0px;
}

.dialog .ft .c {
 background:transparent url(http://imgs.xkcd.com/static/br.png) no-repeat right 0px;
}

#logo h1 {
    font-size: 48px;
}

#archive-ul {
    text-align: left;
}

#comic img.strip {
    display: block;
    margin: 20px auto 0 auto;
    max-width: 100%;
    height: auto;
}

/* Navigation buttons styling to match xkcd original */
.comicNav {
	padding: 0;
	list-style-type: none;
	margin: 0 auto;
	width: 550px;
	text-align: center;
	margin: 20px auto;
}

.comicNav li {
	display: inline;
}

.comicNav li a {
	background-color: #6E7B91;
	color: #FFF;
	border: 1.5px solid #333;
	font-size: 16px;
	font-weight: 600;
	padding: 1.5px 12px;
	margin: 0 4px;
	text-decoration: none;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
	-moz-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
	-webkit-box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.5);
}
.comicNav li a:hover, .comicNav li a:focus {
	background-color: #FFF;
	color: #6E7B91;
	box-shadow: none;
	-moz-box-shadow: none;
	-webkit-box-shadow: none;
}
.comicNav li a.disabled {
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
}
