/*
Credit: http://www.tooplate.com
*/

body {
	margin: 0;
	padding: 0;
	color: #58412a;
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 12px;
	line-height: 1.5em; 
	background-color: #1d1c1b;
	background-image: url(../../images/tooplate_body.jpg);
	background-repeat: repeat-x;
	background-position: top;
}

a, a:link, a:visited { color: #ffffff; text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 10px 0; padding: 0; }
img { border: none; }

h1, h2, h3, h4, h5, h6 { color: #d8852b; font-weight: normal }
h1 { font-size: 34px; margin: 0 0 30px 0; padding: 5px 0; }
h2 { font-size: 26px; margin: 0 0 20px 0; padding: 0; }
h3 { font-size: 21px; margin: 0 0 15px; padding: 0; }
h4 { font-size: 18px; margin: 0 0 15px; padding: 0; }
h5 { font-size: 16px; margin: 0 0 10px; padding: 0; }
h6 { font-size: 14px; margin: 0 0 5px; padding: 0; }

.cleaner { clear: both }
.h10 { height: 10px }
.h20 { height: 20px }
.h30 { height: 30px }
.h40 { height: 40px }
.h50 { height: 50px }
.h60 { height: 60px }

a.more { 
	display: block; 
	padding: 0 18px 0 0; 
	color: #663908; 
	font-weight: bold; 
	font-size: 12px; 
}

a.more:hover { 
	color: #a96215; 
}

.float_l { float: left }
.float_r { float: right }

.image_wrapper { 
	display: inline-block; 
	border: 1px solid #000; 
	padding: 4px; 
	background: #333; 
	margin-bottom: 5px; 
}

.image_fl { 
	float: left; 
	margin: 3px 15px 0 0; 
}

.image_fr { 
	float: right; 
	margin: 3px 0 0 15px; 
}

blockquote { font-style: italic; margin-left: 10px}
cite { font-weight: bold; color:#000 }
cite span { color: #333 }
em { color: #cf560d }

#tooplate_main_wrapper {
	clear: both;
	margin: 0 auto;
	/*max-height: 100vh;*/
}

#tooplate_content_wrapper {
	padding: 20px 20px;
	background: #00000063;
	max-height: calc(75vh - 25px); /* Set the max-height to 80% of the viewport height minus 20px for padding */
  	overflow: auto; /* Add a scrollbar when content exceeds max-height */
}

/* @media (max-width: 767px) {
	 CSS rules for smartphones 
	#tooplate_main { 
		min-height: calc(80vh - 20px); /* Set the max-height to 80% of the viewport height minus 20px for padding 
		overflow:unset ; / Add a scrollbar when content exceeds max-height 
  }
} */

#tooplate_top {
	height: 20px;
	margin: 15px;
	color: white;
}

#tooplate_bottom {
	height: 20px;
	background: url(images/tooplate_main_bottom.png) no-repeat
}


#tooplate_content {
	padding: 10px 20px 20px 40px;
	background: #000000;
	margin-bottom: 10px;
}


.post_header { 
	width: 585px;
	height: 40px;
	margin: 0 0 10px -40px;
	padding: 0 0 0 15px;
	background: url(images/tooplate_post_header.png) no-repeat top left;
}

.post_header p.date {
	float: left;
	display: block;
	width: 100px;
	padding: 0 0 0 25px;
	color: #ff0202;
	text-shadow: 1px 1px 1px #000;
}

.post_header p.date span {
	font-size: 14px;
	text-shadow: none;
	color: #ffffff;
}

.post_header p.meta {
	float: right;
	width: 440px; 
	color: #f8dbc1;
}

@media (max-width: 767px) {
    
    .post_header p.date {
	    padding: 0 0 0 5px;
    }
    
    .post_header p.date span {
	    font-size: 10px;
    }
	.post_header p.meta { 
		float: left;
		font-size: 10px;
    }
    
    #tooplate_main{
        margin-top:40px;
    }
}

.post_header p.meta a {
	color: #ff0000;
}

.post_box h4 { 
	color: #ccb8a3; 
	font-size: 22px; 
	margin-bottom: 40px 
}

.post_box img { 
	width: 560px; 
	height: 140px; 
	margin-bottom: 20px; 
} 

@media (max-width: 767px) {
	/* CSS rules for smartphones */
	.post_box img { 
		max-width: 100%;
		height: auto;
		margin-bottom: 20px; 
  }
}

.post_footer { 
	clear: both; 
	padding: 5px 0 0; 
	border-bottom: 1px solid #4b2a06; 
	border-top: 1px solid #4b2a06; 
	margin-top: 20px; 
}

.post_footer p.comment { 
	float: left; 
}

.content_box { margin-bottom: 40px }



#tooplate_footer {
	
	padding: 20px 0;
	text-align: center;
	margin: 0 auto;
}

#tooplate_footer a {
	font-weight: normal;
	color: #cd7e00;
}