@namespace url(http://www.w3.org/1999/xhtml);

/* explosm.net */
@-moz-document domain("explosm.net") {

/* hides advertisements */
iframe[name*="google_ads"],
iframe[src*="http://www.explosm.net/ads"],
#sidebar {
display: none !important;
}

/* fixes the layout */
table[width="728"][height="111"],
table[width="748"][height="168"] td[height="111"],
td[width="320"] {
display: none !important;
}

table[width="748"][height="168"] {
height: 85px !important;
background: url(http://www.explosm.net/images/08/ad-bg.jpg) repeat-x center bottom !important;
}

#maincontent {
background: url(http://www.explosm.net/images/gradients/gradients/EEEEEE.jpg) repeat-x center 60px !important;
}

}


/* cyanide & happiness */
@-moz-document  url-prefix("http://explosm.net/comics"),
		url-prefix("http://www.explosm.net/comics") {

/* changes the font to verdana */
* {font-family: Verdana, Arial, Helvetica, sans-serif !important;}

/* fixes the main content's links */
#maincontent a, 
#maincontent a:link {
text-decoration: none !important;
text-transform: capitalize !important;
}

#maincontent a:hover {
color: #FF9900 !important;
}

/* hides break bars */
#thebodycontent br {
display: none !important;
}

/* shrinks the comic strip table's border */
div[style*="border: 3px solid rgb(204, 204, 204)"] {
border-width: 1px !important;
}

/* fixes self-promotion links above comic */
td[width="240"] {
padding-top: 20px !important;
}

td[width="240"] img {
height: auto !important;
}

/* makes the comic strip table's text smaller */
#thebodycontent > div table b,
#thebodycontent > div table span {
font-size: 12px !important;
letter-spacing: 0px !important;
}

/* fixes the 'copy this comic' box */
div[style*="border: 6px solid rgb(255, 153, 0)"] {
width: 700px !important;
margin: 0 auto !important;
padding: 10px 0 !important;
border: 0 !important;
background-color: transparent !important;
}

div[style*="border: 6px solid rgb(255, 153, 0)"] div[style="overflow: auto;"] {
float: left !important;
width: 46% !important;
height: 1em !important;
margin: 0.5em 1% !important;
padding: 1px !important;
background-color: rgb(255, 255, 255) !important;
border: 1px solid rgb(255, 153, 0) !important;
-moz-border-radius: 5px !important;
white-space: pre !important;
}

div[style*="border: 6px solid rgb(255, 153, 0)"] hr,
div[style*="border: 6px solid rgb(255, 153, 0)"] span {
display: none !important;
}

}