/*
 * yewcottage/css/style.css
 */

/* a couple of quickies I think we should get from elsewhere */
.pull-left { float: left; }
.pull-right { float: right; }

/*
 * now our main styles
 */
body {
	font: 85%/160% Verdana,Arial,Helvetica,sans-serif;
	letter-spacing: 0.04em;
	background-color: #010B05;
	color: #ddd;
	margin: 0;
	padding: 0;
}

img {
	border: none;
}

h1,h2,h3,h4,h5,h6 {
	font-family: Georgia, Times, "Times New Roman", serif;
}

a:link, a:visited {
	color: #8cf;
	text-decoration: none;
}

a:link:hover, a:visited:hover {
	color: #ab6;
	text-decoration: underline;
}

/*
 * narrow-window helper link
 */
#navjump {
	display: none;
}

/*
 * container
 */
#container {
	padding: 0 1em 0.5em 1em;
	max-width: 840px;
	border-left: thin solid #ddd;
	border-right: thin solid #ddd;
	border-bottom: thin solid #ddd;
	margin-left: auto;
	margin-right: auto;
}

/*
 * header
 */
#header {
	background: transparent url(../images/header.jpg) top center no-repeat;
	height: 190px;		/* header.jpg is 180px high */
	border-bottom: thin solid #ddd;
	margin-bottom: 0.5em;
	padding-bottom: 0.1em;
}

#header h1 {
	text-indent: -2000em;
}

/*
 * body
 */
#body {
	clear: both;
	width: 100%;
}

/*
 * site menu and address
 */ 
#leftcolumn {
	overflow: hidden;
	width: 236px;	/* see #contents */
	padding: 0em 1em;
	text-align: center;
	border-right: dotted #ddd thin;
}

#leftcolumn ul {
	list-style: none;
	padding: 0;
	font-size: 140%;
	font-family: Georgia, Times, "Times New Roman", serif;
}

#leftcolumn a {
	display: block;
	color: #ddd;
	text-decoration: none;
}

#leftcolumn li.active a, #leftcolumn li a:hover {
	color: #600;
	/*background-color: #F2F99A;*/
	background-color: #ddb;
}

/* recover the colour of the email link in the leftcolumn */
#leftcolumn #contact a, #leftcolumn #contact a:visited {
        color: #8cf;
}
#leftcolumn #contact a:hover {
        color: #ab6;
        text-decoration: underline;
}

#left {
	margin: 2em 0;
	border-top: thin solid #ddd;
	padding-top: 0.5em;
}

/*
 * address and contact information in the left column
 */
#address, #contact {
        font-size: 80%;
}

#address p, #contact p {
        margin: 0;
        line-height: normal;
}

#address, #contact {
        margin-top: 1em;
}

/*
 * contents
 */
#contents {
	float: right;
	width: 500px;
	padding: 0 1em;
}

/*
 * put a bit of space around pictures
 */
#contents img {
	margin: 0.2em 0.5em;
}

/*
 * sizing for pictures
 */
#contents img.third {
	width: 35%;
}
#contents img.half {
	width: 40%;
}

/*
 * footer
 */
#footer {
        clear: both;
        background: transparent url(../images/back-garden.jpg) center center no-repeat;
        height: 120px;		/* back-garden.jpg is 800x110 */
        margin-top: 1em;
        border-top: thin solid #ddd;
}

/*
 * joomla-generated elements
 */
.componentheading {
	font-size: 140%;
	font-family: Georgia, Times, "Times New Roman", serif;
	font-weight: bold;
}

.contentheading {
	font-size: 120%;
	font-family: Georgia, Times, "Times New Roman", serif;
	font-weight: bold;
}

p.buttonheading {
        float: right;
}

/*
 * get the contact page layout sorted
 * (the default is to have variable-width labels,
 * so it all "wobbles")
 */
div.contact_email label {
        /*
         * label is, by default, an inline element so won't
         * accept a width - make it a block, which will put
         * it on its own line
         */
        display: block;
}

/*
 *=========================================================
 * Overrides for small screens
 *=========================================================
 * Reference:
 *   http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
 */

@media screen and (max-width : 830px) {
  
  /*
   * let the menu stay at the bottom
   */
  #contents {
    float: none;
  }
  
  #leftcolumn {
    border-right: none;
  }
  
  #navjump {
    display: block;
  }
}

@media screen and (max-height: 600px) {
  
  /*
   * if there's not much vertical space, drop the picture
   */
  
  #header {
    display: none;
  }
}
