<?php header('Content-type: text/css');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Foi modificada 
header("Cache-Control: no-cache, must-revalidate"); // Evitar salvar em cache do cliente HTTP/1.1 
header("Pragma: no-cache"); // Evitar salvar em cache do cliente HTTP/1.0 

if (strpos($_SERVER[HTTP_REFERER],$_SERVER['SERVER_NAME'])==0) {
echo "thanks for your time =P";
} else { ?>
html, body, #wrapper {
    min-height: 100%; /* ajusta o min height para a viewport */
    width: 100%;
    height: 100%; 
    margin: 0 auto;
    padding: 0;
}
html>body #wrapper { 
	height: auto;
	font-size: 1em;
    margin: 0 auto;
}
#wrapper{
	<?php if ($err!=404){?>
	
	background-repeat:repeat-x;
	background-position:bottom;	
	<? } ?>
	margin: 0 auto;
}
body {
    position: relative;
    margin: 0 auto;
	background-color: #000000;
	color:#dedede;	
	
	background-repeat:no-repeat;
	background-position:top;
}

p {
    font-size: 1em;
    margin: 0.2em 0; 
}

h1 {
	position:relative;
    font-family: georgia, serif;
    text-align: center;
    text-transform: capitalize;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 0.5em;
	color:#dbdbdb;
	display:block;
	padding-bottom:4px;

}
h2 {
    font-family: georgia, serif;
    text-align: center;
    text-transform: capitalize;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 0.3em;
	color:#aaa;
}

body span{
    position:absolute;
    height:100%;
    width:100%;
	margin: 0 auto;
    background:url('<?php echo "http://".$_SERVER['SERVER_NAME']."/" ?>images/texturah1.gif');
}	

<!--[if lt IE 7]>
body span { background: none; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo "http://".$_SERVER['SERVER_NAME']."/" ?>images/texturah1.gif', sizingMethod='scale');}
<![endif]-->


#wrapper {
    position: absolute;
    width:100%;
	top: 0;
    left: 0;
	margin: 0 auto;
}

#main {
	width:100%;
	height: auto;
	margin: 0 auto;
	text-align:center;
	font-size: 1em;
    margin: 0.2em 0;
}

.maintext { position: relative;
	width:720px;
	height: auto;
	margin: 10px auto;
	text-align:center;
	display: block;
	
}

#footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
	height:44px;
	padding-top:14px;
	margin: 0 auto;
	text-align:center;
}
#footer p{
	margin: 12px auto;
	font-family: georgia, serif;
    text-align: center;
    font-size: 0.8em;
    line-height: 0.5em;
}
/*begin do pageheader */
#pageheader {
    border: 0 none;
    display: table;
    width: 100%;
	height:30px;
	text-align:center;
	padding-top: 20px;

}

#pageheader p {
    color: #dedede;
    float: left;
    font-family: georgia, serif;
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1em;
    margin: 0 0 0;
}

#pageheader a {
    display: block;
    color: #dedede;
    text-decoration: none;
    }
/*end do pageheader */



 
.kern { letter-spacing: -.1em; }

.hidden { display: none; }

.bgfoto{ background-color:#2e2e2e; }

img{border:none;}

p#copyright{color: #000000; font-weight: bold; margin-top:20px; }
.footerlink:link, .footerlink:visited,.footerlink:active,.footerlink:hover{
	color:#999999;
	text-decoration: none;
	font-family: sans-serif;
	font-size: 11px;
	font-weight: bold;
}

.spacer{
	clear: both;
	margin:10px;
	height:2px;
}

label {
	font-family: Verdana;
	font-size: 11px;
	color: #262626
}
a:link, a:visited, a:active{
	color: #5f9b5d;
	text-decoration: none;
	border:none;
	font-family: georgia, serif;
    font-size: .86em;
    font-weight: bold;
    line-height: 1.0;
}

a:hover {
	color: #7fbd6f;
	text-decoration: none;
	border:none;	
	font-family: georgia, serif;
    font-size: .84em;
    font-weight: bold;
    line-height: 1.0;
}
<?php } ?>