/*
 * HTML5 Boilerplate
 *
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Merriweather+Sans:400,400i,700,700i');

html,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

* {
  margin:0;
  padding:0;
  box-sizing: border-box;
}


/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

.chromeframe {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
/*	height:100%;  */
	background: #9DB95B url(../images/css/leafy-background.png) fixed center top;
    font-family: 'Merriweather Sans', sans-serif;
    margin: 0px;

}

#wrapper {
  width:100%;
  max-width:1000px;
  margin:0px auto;
  padding-bottom:10px;
  background-color: #FFF;
}



 #header {
	width: 100%;
    padding-left: 2%;
    padding-top: 0%;
	background-color: #305516;
	background-image:  url(../images/css/header-bg.jpg);
	background-repeat: no-repeat;
	background-position: right bottom;
    background-size:50%;
    color: #FFF;
 }


#header  img {
   width:40%;
   max-width: 400px;
   height:auto;
}


#content {
  width:100%;
  padding: 20px;
}

#content:after{
  clear: both;
  content: '.';
  display:none;
}

#footer{
   width:95%;
   max-width:1000px;
   margin:0px auto;
   padding-top: 20px;
   width:100%;
   margin: 0px auto;
   text-align: center;
   color: #FFF;
   background-color: #305516;
   margin-bottom:30px;
   padding-bottom: 15px;
 }

h1 {
	font-size: 26px;
	font-weight: 700;
	font-style: italic;
/*	margin-bottom: 10px; */
    margin-top:0px;

}

ul {
	margin-bottom:12px;
}


h2 {
	font-size: 22px;
	font-weight: 700;
	font-style: normal;
/*    margin-top:12px;
	margin-bottom: 10px;*/
}

p {
	font-size: 15px;
/*	margin-bottom: 10px; */
	line-height: 22px;
    text-align: justify;
}

#footer p{
    text-align: center;
}


li{
  	font-size: 15px;
}


h3   {
	font-size: 16px;
	font-weight: 700;
/*    margin-top:12px;
    margin-bottom: 10px;*/
}

h4 {
   font-size: 12px;
   font-weight: normal;

/*   margin-top:10px;
   margin-bottom:8px;*/
}

#header h1 {
   font-size: 1.2em;
   font-weight: 700;
   margin: 0;
   padding: 0;
   padding-bottom: 2%;
   text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}


#footer h3 {
    font-size: 15px;
    font-weight: 400;
    margin-bottom:20px;
}
#footer h4 {
  font-size: 11px;
  font-weight: 400;
}

#footer a {
   color: #FFFFFF;
   text-decoration: underline;
 }
#footer strong {
  font-size:120%;
}

#avail td {
   border: 2px solid #000000;

}
#avail {
  border-collapse: collapse;
  margin:0px  auto;
  min-width:700px;
  margin:0px auto;
}

.left {
  float:left;
  margin-right:20px;
  margin-bottom:10px;
}

.right {
  float:right;
  margin-left:20px;
  margin-bottom:10px;
}

img.left, img.right {
  display:block;
  outline: 1px solid #000;
}

.clr{
  clear: both;
}

ul.cols{
   width:100%;
    -moz-column-count: 4;
    -moz-column-gap: 10px;
    -webkit-column-count: 4;
    -webkit-column-gap: 10px;
    column-count: 4;
    column-gap: 10px;

}



ul.cols li {
    list-style: none;
    display: block;
    line-height: 18px;
    margin-left: 0px;
    text-indent: -15px;
    -webkit-column-break-inside: avoid;
          page-break-inside: avoid;
               break-inside: avoid;
}

ul.cols li:before {
  position: relative;
  top: 4px;
  content: '\2022';
  font-size: 29px;
  margin-right: 4px;
}

dt {
	font-weight: 700;
	margin-top: 20px;
	margin-bottom: 6px;
	font-size: 17px;
	color: #851C19;

}
dd {
	font-size: 17px;
	margin-left: 20px;

}

hr {
    clear: both;
	height: 12px;
    border-top: none;
    border-bottom: 2px solid #5F56A9;
    margin-bottom: 20px;
}

.centre {
	text-align: center;
}


a {
  color: #3C691C;
  text-decoration: none;
}

a:link {
  color: #3C691C;
}

a:visited {
  color: #3C691C;
}

a:active, a:hover, a:visited:hover, {
  color: #4E8924;
  text-decoration: underline;
}

#map_canvas {
  width:680px;
  height:500px;
  background-color:#CCCCCC;
  float:right;
  margin-left: 10px;
  margin-bottom: 20px;
  overflow:hidden;

}

#map_canvas p {
  font-family:Arial, Helvetica, sans-serif;
  font-size: 13px;
  margin: 0px;
}

#map_canvas h3 {
  font-family:Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight:bold;
  margin:6px 0px;
}

/* slideshow stuff */


/*#container {
  display:block;
  width: 1000px;
  height:320px;
  position:relative;
  overflow:hidden;
  margin:0px;
}*/


#sscontainer {
  display:block;
  float:right;
  overflow:hidden;
  margin-left: 15px;
  position:relative;
  background-color: #000;
  outline: 1px solid #000;
}

/*#container img, */
#sscontainer img {
   height:100%;
   width:100%;
   position:absolute;
}

#img1 {
  z-index:20;
}

#img2 {
  z-index:10;
}

.small {
   font-size: 80%;
 }


table {
  border-collapse: collapse;
}

td{
  font-size: 15px;
  background-color: #FFFFFF;
  border: 2px solid #000000;
  padding: 6px;
}

/* datepicker calendar */

#vacancies {
  float:left;
  width:35%;

}
#request {
  float:right;
  width: 60%;
}

#calendar  {

}

#vacancies h3 {
 text-align:center;
 width: 275px;
  margin: 6px auto;
}

#vacancies #backward {
   padding: 0px 10px;
   color: #5F56A9;
   font-size: 1em;
   float:left;
   cursor:pointer;
}

#vacancies #forward {
   padding: 0px 10px;
   color: #5F56A9;
   font-size: 1em;
   float: right;
   cursor:pointer;
}

#vacancies #backward.disabled {
   color: #B6B1D8;
   cursor:default;
}


#calendar table {
  border-collapse: collapse;
  width: 275px;
  margin: 0px auto;
}

#calendar td {
  border: 1px solid #CCCCCC;
  text-align: center;
  line-height: 25px;

}
 #calendar th {
   font-size: .7em;
 }

td.booked {
  color: #000;
  background: #BD1600;
}

td.open {
  color: #305516;
  background: #86C072;

}

td.past {
  color: #969696;
  background: #CCCCCC;
}

td.clickable {
  background-color:#66AD4E;
  color: #000;
  cursor:  pointer;
}


#legend {
  margin-top: 20px;
  padding: 15px;
/*  border-radius: 3px;  background: #FAF7F5;
  box-shadow: inset -1px -1px 5px #000000;*/

}

#legend span {
    display: block;
    width: 270px;
    margin: 5px auto;
}

#legend span.booked {
  display: inline-block;
  width:20px;
  height:20px;
  margin-right: 20px;
  background-color: #BD1600;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#legend span.open {
  display: inline-block;
  width:20px;
  height:20px;
  margin-right: 20px;
  background-color: #66AD4E;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

input#checkinDate, input#checkoutDate {
  background: url(../images/icons/calendar.png) no-repeat right;
}
/*

#request .ui-datepicker table {
  width:100%;

}

#request .ui-datepicker th {
  background-color: #5F56A9;
  padding: 6px;
  font-weight:700;
  color: #FFF;
}

#request .ui-datepicker td {
  padding: 0 6px;
  line-height: 30px;
}
*/




input[type="button"],
input[type="submit"],
input[type="reset"],
a.button{
  border:0;
  border-radius: 5px;
  color: #FFF;
  font-size: 16px;
  font-weight:bold;
  background-color: #3C691C;
  line-height: 24px;
  padding: 1px 10px;
}

a.button {
  padding: 3px 10px;
}

#directions * {
  border: 0;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 14px;
}
#directions td.adp-substep {
    border-bottom: 1px solid #A4D095;
}

@media only screen and (max-width: 900px) {

  body {
    background-color: #9DB95B;
    background-image:none;
  }

  #wrapper {
    width: 100%;
    margin:0;

  }

  #footer {
    margin:0;
  }

       #map_canvas{
       float:none;
       width: 100% !important;
       margin: 10px auto;
    }
    #vacancies {
      float:none;
      width:100%;
    }
    #calendar {
  margin: 0px auto;

}
   #header {
     background-size: 58%;
   }



    #request {
      float:none;
      width: 100%;
    }
}


@media only screen and (max-width: 800px) {
    #sscontainer{
       float:none;
       max-width: 100% !important;
       margin: 10px auto;
    }

  img.left, img.right {
   float:none;
   margin:0;
   max-width:100% !important;
   height:auto !important;
   margin:10px auto;
 }
 div.left, div.right {
   float:none;
   margin:10px auto;
   width:100% !important;

 }

  ul.cols{
      -moz-column-count: 3;
      -webkit-column-count: 3;
      column-count: 3;
  }

  header h1 {
    font-size: 0.6em;
  }

}

@media only screen and (max-width: 640px) {
    /* Style adjustments for viewports that meet the condition */
  #wrapper{
     margin-top: 30px;
  }


  #content {
    padding: 20px 8px;
  }

  #header{
    margin:0;
    padding:0;
    background-size:cover;
/*    background-position: left bottom; */

  }

  #header  img {
   width:60%;
   height:auto;
   padding: 0;
 }

  #header h1 {
   margin-left: 10px;

  }


  #calendar div  {
    width: 80%;
  }

   #map_canvas {
     height: 300px !important;
   }

    h1  {
     font-size: 22px;
   }
    h2 {
      font-size: 20px;
    }
    h3 {
      font-size: 17px;
    }
     p, li {
       font-size: 14px;
     }
    ul.cols{
    -moz-column-count: 2;
    -webkit-column-count: 2;

    -moz-column-gap: 30px;
    -webkit-column-gap: 30px;
     column-count: 2;column-gap: 30px;
    }

    ul.cols li {
/*       margin-left: -5px; */
    }

}









/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
