﻿@import url(https://fonts.googleapis.com/css?family=Open+Sans:300italic,300&subset=latin,latin-ext);

/***************** 

Otago BASECAMP CSS

*****************/

#title h1 {
    padding: 200px 0px 14px 23px;
    font-size: 38px;
    line-height: 1.2;
    background: url(gfx/title.png) 23px 10px no-repeat;
    opacity: 1;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    color: #1f4a8c;
    position: static;
	margin-top: 3px;
    text-rendering: optimizeLegibility;
}
#title h1.notopimage {
    max-width: 650px;
}
.titleinner {
    background: url(gfx/banner-inner.jpg) center 0px no-repeat;
    padding-top: 3px;
    padding-bottom: 0px;
}
.titleinner img {
    display: none;
}
.titleinner h1 {
    margin-top: 0px;
}
#content h2 {
    padding-bottom: 7px;
    font-size: 28px;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
    line-height: 1.3;
    margin-top: 28px;
    text-rendering: optimizeLegibility;
}
#content h2:first-of-type {
    margin-top: 0;
}
#content p + h2:first-of-type {
	margin-top: 28px;
}
#right {
    background-size: 26px 100%;
}

/*  FRONTPAGE  */

body.frontpage {
    background-position: center top;
}
body.frontpage .titleinner {
    background: url(gfx/banner.jpg) center 0px no-repeat;
    padding-top: 14px;
    padding-bottom: 21px;
}
body.frontpage #title h1 {
    padding: 270px 0px 0px 23px;
    font-size: 38px;
    line-height: 1.2;
    background: url(gfx/title.png) 24px 38px no-repeat;
    opacity: 1;
    font-family: 'Open Sans', Helvetica, Arial, Geneva, sans-serif;
    font-weight: 300;
}
body.frontpage .speaker,
body.OTAGO686432 .speaker {
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 21px;
    margin-bottom: 42px;
    clear: both;
}
body.frontpage .speaker {
    border-bottom: none;
}
body.frontpage .speaker img,
body.OTAGO686432 .speaker img {
    float: right;
    width: 186px;
}

/* Grid styles */

.grid-quarter, .grid-third, .grid-fifth, .grid-half {
  -webkit-box-shadow: 0 0 14px #e4e4e4;
  box-shadow: 0 0 14px #e4e4e4;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 46px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: -webkit-box-shadow 0.3s ease-out;
  transition: -webkit-box-shadow 0.3s ease-out;
  transition: box-shadow 0.3s ease-out;
  transition: box-shadow 0.3s ease-out, -webkit-box-shadow 0.3s ease-out;
}
.grid-quarter:hover, .grid-third:hover, .grid-fifth:hover, .grid-half:hover {
  -webkit-box-shadow: 0 0 4px #e4e4e4;
  box-shadow: 0 0 4px #e4e4e4;
  -webkit-transition: -webkit-box-shadow 0.3s ease-in;
  transition: -webkit-box-shadow 0.3s ease-in;
  transition: box-shadow 0.3s ease-in;
  transition: box-shadow 0.3s ease-in, -webkit-box-shadow 0.3s ease-in;
}
.grid-half {
  width: 48%;
  margin-right: 4%;
}
.grid-third {
  width: 29.8%;
  margin-right: 5.3%;
}
.grid-quarter {
  width: 21%;
  float: left;
  margin-right: 5.3%;
}
.grid-fifth {
  width: 17.9%;
  margin-right: 2.6%;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}
#content .grid-quarter h3, #content .grid-third h3, #content .grid-fifth h3, #content .grid-half h3 {
  margin: 0 14px 7px 14px;
  font-family: "Open Sans Condensed Bold", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.25;
}
#content .grid-quarter h3:after, #content .grid-third h3:after, #content .grid-fifth h3:after, #content .grid-half h3:after {
  content: '';
  width: 37px;
  height: 3px;
  display: block;
  background: #f9c000;
  margin-top: 7px;
}
#content .grid-quarter h3 a, #content .grid-third h3 a, #content .grid-fifth h3 a, #content .grid-half h3 a {
  display: block;
}

/* Programme and speakers */

body.OTAGO686277 #content .grid-half h3 a {
  display: block;
  border-bottom: none;
}
body.OTAGO686277 #content .grid-half h3 {
    margin: 21px 21px 21px 21px;
    font-weight: 300;
}
body.OTAGO686277 #content .grid-half {
  float: left;
}
body.OTAGO686277 #content .grid-half:last-of-type {
  margin-right: 0;
}


/* Tablet styles */

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    #features {
        width: 650px;
    }
}

@media only screen and (max-width: 768px) {
	#title h1 {
        padding-right: 0;
    }
    body.frontpage #title h1 {
        padding-right: 0;
    }
    #right {
        border-bottom: none;
    }
    #features .events {
        width: 418px;
        margin-left: 232px;
        border-left: none;
    }
    #features .events article {
        margin-top: 14px;
    }
    #features .events article:first-child {
        margin-top: 14px;
    }
}

/* Mobile styles*/

@media only screen and (max-width: 700px) {
    body.frontpage .titleinner,
    .titleinner {
        background: url(gfx/banner-inner.jpg) -500px 0px no-repeat;
        width: 92%;
    }
    #title h1 {
        padding: 200px 0px 0px 0px;
        background: url(gfx/title.png) 14px 35px no-repeat;
        background-size: 240px;
        font-size: 36px;
    }
    body.frontpage #title h1 {
        padding: 177px 0px 0px 0px;
        background: url(gfx/title.png) 14px 28px no-repeat;
        background-size: 240px;
        font-size: 36px;
    }
    #features .events {
        width: 97%;
        margin-left: 0px;
        padding: 0;
    }
    #features .events article {
        width: 47.5%;
        margin-right: 5%;
    }
    #features .events article:nth-of-type(2n) {
        margin-right: 0;
    }
}