:root {
  --main-bg-color: #cfa54f;
	--panel-bg-color: #89610f;
	--highlight-color: #95cd64;
	--lowlight-color: #ffe5b1;
	--bullet-color: #ffe5b1;
	--neutral-bg-color: #E0E0E0;
	--grey-bg-color: #A0A0A0;
	--dark-grey: #808080;
	--very-pale: #CFEEC3;
}

@font-face{
  font-family: aaargh;
  src: url('/retrojunkies/welsh/fonts/Aaargh-webfont.woff');
}

@font-face{
	font-family: handdrawn;
  src: url('/retrojunkies/welsh/fonts/HandDrawnShapes.woff');
}

/* All elements should include padding in their width */
*{
	box-sizing: border-box;
}

/* No links should be underlined */
a{
	text-decoration: none;
}

body{
	height: 100%;
	font-family: aaargh, sans-serif;
	background: url('/retrojunkies/radiocomedy/images/background.jpg');
	padding: 0;
	margin: 0;
	overflow-x: hidden;
}

/* Override the lnr font used on the menu by adding a span with regular text after it */
a span{
	font-family: aaargh, sans-serif;
	padding-left: 5px;
}

.hideitem{
	display: none;
}

/* The menu bar across the top (hidden when on mobile) */
.menu{
	float: left;
	padding-left: 1em;
	clear: both;
	width: 80%;
	margin-left: 10%;
	margin-right: auto;
	height: 40px;
	background: linear-gradient(var(--main-bg-color), var(--lowlight-color));
	margin-bottom: 15px;
	box-shadow: 0px 2px 6px 2px #222222;
	border-radius: 0 0 5px 5px;
}

.menu a{
	float: left;
	clear: none;
	margin-right: 1em;
	margin-left: 5px;
	margin-top: 6px;
	padding-top: 4px;
	height: 50%;
	text-align: center;
	text-decoration: none;
}

.menu a:link, 
.menu a:visited, 
.menu a:active{
	color: white;
}

.menu a:hover{
	color: lightgray;
}

.title{
	height: 90px;
	width: 90%;
	background-color: var(--panel-bg-color);
	background-image: url("/retrojunkies/radiocomedy/images/rcbg.png");
	background-repeat: repeat-x;
	background-position: center center;
	border-bottom-width: 2px;
	border-color: black;
	border-bottom-style: solid;
	clear: both;
	margin-left: 5%;
	margin-right: auto;
	color: white;
	font-size: 2em;
	text-shadow: 2px 2px #000000;
	box-shadow: 0px 2px 6px 2px #222222;
	float: left;
}

.title .maintitle{
	margin-left: 20px;
	margin-top: 20px;
	font-weight: bold;
	font-family: handdrawn, sans-serif;
}

.title .maintitle a{
	text-decoration: none;
	color: white;
}

.title .subtitle{
	font-size: 0.5em;
	margin-left: 20px;
	margin-top: 10px;	
	font-family: handdrawn, sans-serif;
}

.main{
	background: var(--panel-bg-color);
	float: left;
	clear: none;
	width: 100%;
	margin-bottom: 15px;
	box-shadow: 2px 2px 6px 2px #222222;
	padding: 5px 5px 5px 5px;
	border-radius: 7px;
	margin-top: 10px;
}

.main#search{
	background: var(--panel-bg-color);	
	border-radius: 0;
}

.maincontent{
	/* background: url('/retrojunkies/welsh/images/paper.png'); */
	background: #fff;
	float: left;
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border: 1px solid black;
	color: #222222;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

.maincontent .postdate{
	float: right;
	font-size: smaller;
	font-style: italic;
	color: blue;
}

.searchresult {
	float: left;	
	clear: left;
	text-align: justify;
	height: 80px;
	overflow-y: hidden;
}

.maincontent .fade{
	position: absolute;
	height: 80%;
	width: 98%;
	bottom: 0;
	background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 90%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(95%,rgba(255,255,255,1)));
	background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 90%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=0 );
	/* Disable clicking on fade box so event passes to box below */
	pointer-events: none;
}

.searchtitle{
	font-size: 1.2em;
	padding: 15px;
	color: white;
}

.taglist{
	background: var(--panel-bg-color);
	float: left;
	padding-left: 10px;
	padding-right: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border: 1px solid black;
	color: #222222;
	width: 100%;
	box-sizing: border-box;
	font-size: smaller;
}

.taglist a:before{
	width: 8px;
	height: 8px;
	content: "";
	display: inline-block;
	background: var(--bullet-color);
	margin-right: 10px;
	border: 1px solid black;
}

.taglist a{
	margin-left: 20px;	
}

.posttitle{
	font-weight: bold;
	font-size: larger;
	padding-left: 10px;
	padding-top: 10px;
	margin-top: 8px;
	margin-bottom: 5px;
	margin-left: 5px;
	float: left;
	clear: both;
}

.posttitle span{
	font-family: aaargh, sans-serif;
}

.posttitle a{
	text-decoration: none;
	color: #222222;
}

.editlink a{
	font-size: x-small;
	float: right;
	width: 40px;
	margin-top: 8px;
	padding-top: 8px;
}

.postcontent {
	float: left;	
	clear: left;
	text-align: justify;
}

.postcontent p{
	quotes: '\201c' '\201d';
	text-align: justify;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 5px;
}

.postcontent .disqus_thread{
	padding-left: 20px;
	padding-right: 20px;
}

/* Any embedded images in a post */
.postcontent img{
	padding: 5px;
	/* x offset, y offset, blur radius, spread, colour */
	box-shadow: 2px 2px 8px 1px #888;
}

.rightframe{
	float: left;
	width: 100%;
	margin-top: 10px;
}

.rightitem{
	width: 100%;
	background: var(--main-bg-color);
	margin-bottom: 20px;
	border: 1px solid black;
	box-shadow: 2px 2px 6px 2px #222222;
	display: inline-block;
}

.rightitem:first-of-type{
	margin-bottom: 20px;
}

.rightitem .blurb{
	color: white;
	font-size: larger;
	padding: 15px;
	font-style: italic;	
	background-image: url('/retrojunkies/welsh/images/croeso.jpg');
	background-position: left bottom;
	background-size: 100%;
	display: inline-block;
}

.rightitem .blurb p{
	background: rgba(0,0,0,0.3);
	padding: 4px;
	border-radius: 3px;
}

.rightitem .righttitle{
	color: white;
	background: var(--panel-bg-color);
	padding-left: 8px;
	padding-top: 2px;
	height: 1.5em;
	font-size: larger;
	margin-bottom: 2px;
	display: block;
}

.righttitle span{
	font-family: aaargh, sans-serif;
	padding-left: 1em;
}

.rightimage{
	background: url('/retrojunkies/welsh/images/flag2.jpg');
	background-size: 100% auto;
	height: 200px;
}

.rightitem>a{
	float: left;
	clear: both;
	height: 1.5em;
	margin-left: 2px;
	margin-top: 2px;
	padding-top: 2px;
	padding-left: 6px;
	border-left-width: 8px;
	border-left-style: solid;
	border-left-color: var(--lowlight-color);
	text-decoration: none;
}

.rightitem input[type=text]{
  background: #fff;
  color: #525865;
  border-radius: 4px;
  border: 1px solid #d1d1d1;
  box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.07);
  font-family: inherit;
  font-size: 1em;
  outline: none;
  padding: 0.6em 1.45em 0.7em;
  -webkit-transition: .18s ease-out;
  -moz-transition: .18s ease-out;
  -o-transition: .18s ease-out;
  transition: .18s ease-out;
	margin: 5px;
	width: 75%;
	display: inline-block;
}

.rightitem input[type=text]:hover {
  box-shadow: inset 1px 2px 8px rgba(0, 0, 0, 0.02);
}

.rightitem input[type=text]:focus {
  color: #4b515d;
  border: 1px solid #B8B6B6;
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
}

.rightitem input[type=submit] {
  background: var(--grey-bg-color);
  color: #444;
  border-radius: 4px;
  border: 1px solid var(--dark-grey);
  box-shadow: inset 1px 2px 4px rgba(0, 0, 0, 0.01), 0px 0px 8px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  font-size: 1em;
  outline: none;
  padding: 0.6em 1.45em 0.7em;
  -webkit-transition: .18s ease-out;
  -moz-transition: .18s ease-out;
  -o-transition: .18s ease-out;
  transition: .18s ease-out;
	margin: 5px;
	display: inline-block;
}

.rightitem input[type=submit]:hover{
  background: var(--dark-grey);
	border: 1px solid #B8B6B6;
}

.rightitem a:link{
	color: white;
}

.rightitem a:visited{
	color: white;	
}

.rightitem a:hover{
	color: white;	
}

.rightitem a:active{
	color: white;	
}

.next{
	margin-top: 10px;
	float:right;
	color: white;
}

.next a{
	color: black;
	text-decoration: none;
}

.previous{
	margin-top: 10px;
	float:left;
	color: white;
	clear: left;
}

.previous a{
	color: black;
	text-decoration: none;
}

.pagefooter{
	width: 100%;
	height: 2em;
	background: var(--main-bg-color);
	float: left;
	box-shadow: 2px 2px 6px 2px #222222;
	color: white;
	padding-bottom: 10px;
}

.pagefooter p{
	float: right;
	font-size: smaller;
	padding-right: 1em;
}

.centrecontent{
	float: left;
	width: 100%;
}

.pagecentre{
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}

.img-small{
	width: 480px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modalmain{
	background-color: #ffffff;
	margin: 10%;
	height: 350px;
	width: 70%;
	position: fixed;
	max-height: 350px;
	animation-name: animatetop;
  animation-duration: 0.6s;
  border-radius: 15px;
  border-bottom-left-radius: 0px;
}

.modaltitle{
	background: var(--very-pale);
	height: 35px;
	padding-left: 10px;
	padding-top: 8px;
	font-size: larger;
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
}

.modaltitle a{
	text-decoration: none;
}

.modalcontent{
	padding: 15px;
	overflow-y: scroll;
	height: 250px;
}

.year-expand{
	color: #fff;
	cursor: pointer;
	padding-left: 10px;
}

.year-container{
	display: none;
	padding-left: 10px;
}

.month-expand{
	color: #fff;
	cursor: pointer;
	padding-left: 10px;
}

.month-container{
	display: none;
	padding-left: 10px;
}

/* All of the above assumes a small device. If we have a bigger device, modify some of the classes
   to be visible or bigger (or smaller!) */
@media only screen and (min-width: 768px) {
	.title { height: 130px; font-size: 3em; background-position: center right; width: 80%; margin-left: 10%;}
	.hideitem { display: block; }	
	.rightframe { width: 30%; margin-left: 10px; }
	.pagecentre { width: 80%; margin-left: 10%; margin-right: auto; }
	.postcontent p { padding-left: 50px; padding-right: 50px; }
	.centrecontent{	float: left; margin-left: 30px;	width: 66%; }
}

/* One exception to ensure blog images are OK */
@media only screen and (max-width: 600px) {
	.img-small { width: 240px; }
}

/* Add Animation */
@keyframes animatetop {
  from {top: -300px; opacity: 0}
  to {top: 0; opacity: 1}
}