/* ensure that screen's width matches actual phone display */
@-ms-viewport {
   width: device-width;
}
@-o-viewport { 
   width: device-width;
}
@viewport {
   width: device-width; 
}

@import url(https://fonts.googleapis.com/css?family=Dosis:400,700|Quicksand:400,700|Londrina+Shadow);

@font-face{
	font-family: 'Gen';
	src: url('../fonts/GenW-Regular-webfont.eot');
	src: url('../fonts/GenW-Regular-webfont.woff') format('woff'),
		url('../fonts/GenW-Regular-webfont.ttf') format('truetype'),
		url('../fonts/GenW-Regular-webfont.svg') format('svg');
		font-weight: normal;
		font-style: normal;
}

/* include border-widths and padding values in box sizes */
*
{
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Set base font size to 10px (62.5% of 16px)
	16px is 'normal' size text for most browsers
	with base font = 10px, use rem eg. 1rem = 10px, 2.5rem = 25px etc.
*/
html
{
    font-size: 62.5%;						
    background-color: rgba(255,255,254,1);
}

body
{
    font-family: 'Gen', Arial, sans-serif;
    color: rgba(77,77,77,1);
}

body a
{
    text-decoration: none;
    color: rgba(26,26,26,1);
}

body a:hover
{
    color: rgba(167,167,167,1);
}

.pageWrapper
{
    font-family: 'Quicksand', sans-serif;
    font-size: 1.7rem;
    max-width: 1200px;
    margin: 0 auto; /* centre content horizontally */
    overflow: auto; /* use scroll bars when needed */
}

header
{
    background-image: url(../images/jenkins-background-100px-opacity10-tinytile.png);
    background-repeat: repeat-x;
    margin: 0;
}

/* header includes 'logo' and sitenav */
header .logo
{
    font-size: 6rem;
    font-family: 'Londrina Shadow', Tahoma, sans-serif;
    color: rgba(77,77,77,1);
    padding: 2rem 0 2rem 0;
}

.logo a, .logo a:hover
{
    color: rgba(77,77,77,1);
    text-decoration: none;
}

.siteNav
{
    height: 5.4rem;
    text-align: center;
}

.siteNav ul
{
    padding: .5rem 0 .5rem 0;
    border-top: 2px solid rgba(77,77,77,.7);
    border-bottom: 2px solid rgba(77,77,77,.7);
}

.siteNav ul li
{
    padding: 1rem;
    text-transform: uppercase;
    font-size: 2rem;
    display: inline;
}

.siteNav a, .siteNav a:link, .siteNav a:visited
{
    color: rgba(255,255,254,1);
    text-decoration: none;
    display: inline-block; /* ensure top and bottom padding and margins are obeyed */
    padding: 1rem 1rem 1rem 1rem;
}

.siteNav ul li:nth-child(1) a /* HOME */
{
    background-color: rgba(77,77,77,.7);
    color: rgba(255,255,254,1);
}

.siteNav ul li:nth-child(2) a /* CHRIS */
{
    background-color: rgba(115,153,191,.7);
    color: rgba(255,255,254,1);
}

.siteNav ul li:nth-child(3) a /* VICKY */
{
    background-color: rgba(96,172,96,.7);
    color: rgba(255,255,254,1);
}

.siteNav ul li:nth-child(4) a /* EMRYS */
{
    background-color: rgba(255,204,0,.7);
    color: rgba(255,255,254,1);
}

.siteNav ul li:nth-child(5) a /* BETHANY */
{
    background-color: rgba(204,0,0,.7);
    color: rgba(255,255,254,1);
}

/* enlarge links when hovered over */
.siteNav a:hover
{
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
    -ms-transform: scale(1.3);
    transform: scale(1.3);
}

/* indicate current page of site */
.siteNav ul li a.current
{
    border-radius: 10px;
    font-weight: bold;
}

/* gradient background percentages match 20%-60%-20% layout of 3 columns on page */
.contentWrapper
{
    background: rgba(211,211,211,1);
    background: -webkit-linear-gradient(left,
        rgba(255,255,254,1) 0%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 80%,
        rgba(211,211,211,1) 80%,
        rgba(255,255,254,1) 100%);
    background: -moz-linear-gradient(left,
        rgba(255,255,254,1) 0%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 80%,
        rgba(211,211,211,1) 80%,
        rgba(255,255,254,1) 100%);
    background: linear-gradient(left,
        rgba(255,255,254,1) 0%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 20%,
        rgba(211,211,211,1) 80%,
        rgba(211,211,211,1) 80%,
        rgba(255,255,254,1) 100%);
}

/* 'clearfix' to ensure empty divs clear their children */
.group:after
{
    content: "";
    display: table;
    clear: both;
}

/* columnWrapper is left sidebar (personalNav) and main
    personalNav floats left within it; main floats right */
.columnWrapper {
    float: left;
    width: 80%;
}

/* personalNav(20%) + main(60%) = 80% of page
    personalNav is => 25%, and
    main is => 75% of immediately enclosing div (columnWrapper) */
.personalNav
{
    font-size: 1.8rem;
    padding: .5rem 1rem 0 1rem;
    list-style: none;
    float: left;
    width: 25%;
}

.personalNav a, .personalNav a:link, .personalNav a:visited
{
    color: rgba(77,77,77,1);
    text-decoration: none;
    display: block;
    padding: 1rem 1rem 1rem 2rem ;
}

.personalNav a:hover
{
    background: rgba(77,77,77,.7);
    color: rgba(255,255,254,1);
    border: 0px solid white;
    border-radius: 3rem 0 3rem 0;
}

/* indicate current personal page */
.personalNav a.current
{
    font-weight: bold;
    text-transform: uppercase;
}

.main
{
    float: right;
    width: 75%;
    padding: 1.2rem 2rem;
    line-height: 2rem;
    border-left: 2px solid rgba(77,77,77,.7);
    border-right: 2px solid rgba(77,77,77,.7);
}


.main a
{
    text-decoration: none;
    border-bottom: 2px dotted rgba(26,26,26,1);
}

.main a:hover
{
	border-bottom: none;
}

/* Don't think this is needed now
.main ul
{
    font-family: 'Gen', Arial, sans-serif;
    color: rgba(77,77,77,1);
    padding: 10px;
} */

.sidebar
{
    width: 20%;
    padding: 0 1rem 0 2rem;
    float: right;
}

.sidebar p {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem; 
}

footer
{
    font-size: .6em;
    font-family: Verdana, sans-serif;
    padding: .5rem 0;
    border-top: 2px solid rgba(77,77,77,.7);
    margin-top: 0;
    clear: both;
}

p
{
    font-family: 'Gen', Arial, sans-serif;
    color: rgba(77,77,77,1);
    text-align: justify;
    padding: 1rem;
}

p.smaller {
    font-size: 1.4rem;
}

p.cleared
{
    clear: both;
}

p.nextpage
{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    text-align: right;
    clear: both;
}

p.left
{
    text-align: left;
}

p.right
{
    text-align: right;
}

p.centre
{
    text-align: center;
}

.floatleft
{
    float: left;
}

.floatright
{
    float: right;
}

img {
    max-width: 100%;
}

img.half {
    max-width: 50%;
}

img.left {
    float: left;
    margin: 0 1rem 1rem 0;

}
img.right {
    float: right;
    margin: 0 0 1rem 1rem;
}

img.padded
{
    padding: .6rem;
}

.pageUpdated
{
    font-size: .8rem;
    color: rgb(96,96,96);
}

/* 
Don't think this is needed now
.siteNav ul, header .logo, .contentWrapper
{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
} */

/* Styling for tablets */
@media (min-width: 415px) and (max-width: 768px) {
    header .logo
    {
    font-size: 4rem;
    padding: 3rem 0 3rem 0;
    text-align: center;
    }

/* Reducing link size for 2-column display, although still not quite right */
    .siteNav ul li
{
    padding: .7rem;
    font-size: 1.6rem;
}

    .contentWrapper {
        background: rgba(211,211,211,1);
    }
    .columnWrapper {
        width: auto;
        float: none;
    }
    .main {
        border-right: none;
    }
    .sidebar {
        float: none;
        width: auto;
        clear: both;
        border-top: 2px solid rgba(77,77,77,1);
        padding-top: 1rem;
    }
}

/* Styling for phones */
@media (max-width: 414px) {
    header .logo
    {
    font-size: 4rem;
    padding: 3rem 0 3rem 0;
    text-align: center;
    }

    .siteNav
{
    height: 4.7rem;
}

    .siteNav ul
{
    padding: .5rem 0;
    margin: 1rem 0;
    border-top: 2px solid rgba(77,77,77,.7);
    border-bottom: 2px solid rgba(77,77,77,.7);
}

.siteNav ul li
{
    padding: .2rem 0;
    text-transform: uppercase;
    font-size: 1.3rem;
    display: inline;
}

.siteNav a
{
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 0;
}

.siteNav ul li:nth-child(1) a
{
    background-color: transparent;
    color: rgba(77,77,77,1);
}

.siteNav ul li:nth-child(2) a
{
    background-color: transparent;
    color: rgba(115,153,191,1);
}

.siteNav ul li:nth-child(3) a
{
    background-color: transparent;
    color: rgba(96,172,96,1);
}

.siteNav ul li:nth-child(4) a
{
    background-color: transparent;
    color: rgba(255,204,0,1);
}

.siteNav ul li:nth-child(5) a
{
    background-color: transparent;
    color: rgba(204,0,0,1);
}

.siteNav a:active
{
    color: rgba(041,087,027,1);
}

.siteNav a:hover
{
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -o-transform: scale(1.3);
    -ms-transform: scale(1.3);
    transform: scale(1.3);
}

.siteNav ul li a.current
{
    font-style: italic;
}

    .contentWrapper {
        background: rgba(211,211,211,1);
    }
    .personalNav, .sidebar {
        border-top: 2px solid rgba(77,77,77,1);
        margin-top: 2.5rem;
        padding-top: 1rem;

    }
    .columnWrapper, .main, .personalNav, .sidebar {
        width: auto;
        float: none;
        text-align: center;
    }
    .main {
        border: none;
    }
    
    nav {
        text-align: center;
    }
    nav li {
        /* float: none; */
        display: inline-block;
    }
    nav a {
        /* float: none; */
        display: inline-block;
        border: none;
    }
}
