/*
Theme Name: HIV-AIDS Theme (Responsive)
Author: UOE IS LTW WGI IC Team
Author URI: https://interactive-content.is.ed.ac.uk/
Template: responsive-mobile
Version: 1.0
Text Domain: responsive-mobile-child
*/

/*GOOGLE FONTS*/
@import url(https://fonts.googleapis.com/css?family=Fredoka+One);

@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  src: local('Fredoka One'), local('FredokaOne-Regular'), url(https://fonts.gstatic.com/s/fredokaone/v4/SL0aFUFfkFMMdariYQ3_YbrIa-7acMAeDBVuclsi6Gc.woff) format('woff');
}

/*BUS ANIMATION - KEYFRAMES*/
@keyframes parallax_mg {
	/*this is the width of the graphic*/
  0% { background-position: 3000px 100%;}
  100% {background-position: 1px 100%; }
}

@keyframes parallax_bg {
	0% { background-position: 1600px 100%, 1200px 100%;}
  100% { background-position: 0 100%, 0 100%;}
}

@keyframes bus-cycle {
  0% {background-position: 0 0; }
  100% {background-position: 0 -3472px; } /* Must be full height of sprite or skipping will happen.*/
}

/*BODY*/
html {
	height: 100%;
}

body {
	/*background-image: url("images/graph-paper.gif");
	background-repeat: repeat;*/
	font-family: 'Fredoka One', cursive;
	color: #169FC0;
	height: 100%;
    font-size: 15px;
}

.wp-caption {
    border: none;
}

/**************************RIPPED PAPER EFFECT**************************/
#rip-container {
	background-image: url(images/graph-paper.gif);
	background-repeat: repeat;
	margin: 0 auto;
	z-index: -100;
	width:80%;
	vertical-align:top;
	/*height: 100vh;*/
}

@media (max-width: 1205px) {
#rip-container {
	width:100%; /*This removes the ripped effect for mobile*/
}
}

@media (min-width: 1205px) {
.rip-left {
	position:absolute;
	top: 0;
	height: 100vh; 
	/*height: 100%; */
	height:auto;
	/*min-height: 836px;*/
	width: 68px;
	background-position:right;
	background-image: url(images/Left_border.png);
	background-repeat: repeat-y;
	margin: 0;
	padding: 0;
	float:left;
	clear:none;
	z-index:100;	

}

.rip-right {
	position:absolute;
	top: 0;
	/*height: 100vh;*/
	height: 100%;
	/*min-height: 836px;*/
	width: 68px;	
	right: 10%;
	background-image: url(images/Right_border.png);
	background-repeat: repeat-y;
	margin: 0;
	padding: 0;
	float:right;
	clear:none;
	z-index:50;
}
}

@media (max-width: 1205px) {
	.rip-left {
		height:0 !important;
	}
	
	.rip-right {
		height:0 !important;
	}
}

/**************************HEADER**************************/
h1 {
	margin-top: 0px;
}


@media (min-width: 992px) {
  #site-branding {
    width: 50%;
	padding-left: 30px;
  }
}

#site-branding img {
	margin-top: -10px;
}
.title-block {
	float:left;
}

#site-branding .site-name a {
  color: #169FC0;
}

#site-branding .site-description {
  color: #EF3E54;
  margin-top: -10px;
  width: 180px;
}

/********HEADER - PARTNER LOGOS***********/
#secondary-header {
	/*position logos*/
	padding-right: 20px;
}

@media (min-width: 992px) {
#secondary-header {
	/*position logos*/
	width: 50%;
	float:right;
	padding-right: 30px;
}

}
#secondary-header img {
	/*position logos*/
	padding-left: 20px;
}


/*************LINKS**************/
a {
  color: #29A98D;
  text-decoration: underline;
}
a:hover, a:focus {
	color: #1C7461;
  text-decoration: underline;
}

/**************************MENU**************************/
/*NAV BAR MOBILE*/
#mobile-nav-button {
	background-color: #169FC0;
}

/*MAIN MENU-CONTAINER*/
#main-menu-container {
	margin: 0 auto;
  	background-color: #169FC0;
}

@media (min-width: 992px) {
#main-menu-container {
  background-color: transparent;

}
}

#main-menu-container ul  {
	margin: 0 auto;
}

#main-menu-container ul li {
	border-top:solid 1px #ffffff;

}

#main-menu-container .current_page_item a {
	border:none;
	background-color: #EF3E54;
}

#main-menu-container a {
	display:block;
}

/*MAIN MENU - MAIN NAV*/
#main-navigation .main-nav {
 	/*width: 100%;*/
}

@media (max-width: 992px) {
#main-navigation .main-nav > ul {
	padding-top: 41px; /*mobile adjustment*/
}
}

#mobile-current-item {
	margin-bottom: 10px;
}

/*NAV ADJUST*/


@media (min-width: 992px) {
    #main-navigation .main-nav ul {
        /*display:block;*/
        /*padding-top: 5px;*/
        text-align:center;
        margin: 0 auto;
        /*padding: 0;*/
        /*columns: 7;
        -webkit-columns: 7;
        -moz-columns: 7;
        -webkit-column-count: 7;
        -moz-column-count: 7;
         column-count: 7; 
         list-style-type:none;
         -webkit-column-gap: 3px; / Chrome, Safari, Opera /
        -moz-column-gap: 3px;  / Firefox 
        column-gap: 3px;
        float:none !important;
        line-height: 1em !important;*/
        display:table; /*centres the menu*/
    }
    #main-navigation .main-nav ul li {
        padding-left: 5px;
        padding-right: 5px;
    }
}

#main-navigation .main-nav ul li {
	bottom: 0;
	vertical-align:middle;
}


@media (min-width: 992px) {
    #main-navigation .main-nav ul li a {
        /*margin: 13px 15px 13px 15px;*/
        margin: 13px 5px 13px 5px;
        padding-top: 5px;
        padding-bottom:5px;
        padding-left: 10px;
        padding-right: 10px;
        color: #eeeeee;
        /*min-height: 50px;*/
        vertical-align:middle;
      }
}

#main-navigation ul li a {
	background-color: #169FC0;
	padding-left: 15px;
/*	padding-right: 15px;*/
}

#main-navigation .main-nav ul li a:hover {
    text-decoration: underline;
    color: #ffffff;
  }
  
#main-navigation .main-nav ul li a:active {
	border: none;
	background-color: #EF3E54;
}

/*DROP DOWN MENU*/
@media (min-width: 992px) {
#main-navigation .main-nav ul li > ul {
	background-color: #169FC0;
	margin-left: 15px;
	margin-top: -13px;
	text-align:left;
}
#main-navigation .main-nav ul li > ul li a {
	line-height: 1.3em;
}
}

#main-navigation .main-nav ul li > ul {
	background-color: #169FC0;
	margin-left: 15px;
	text-align:left;
}


#main-navigation .main-nav ul li > ul li a {
	background-color: #169FC0;

}

#main-navigation .main-nav ul li > ul li a:active {
	border: none;
	background-color: #EF3E54;
}

/**************************CONTENT AREA**************************/
@media (min-width: 992px) {
  main#main {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .container, .content-area, #featured-area, .home-widgets, #footer #footer-wrapper {
    /*width: 1170px;*/
	width: 90%;
  }
}

.content-area{ 
	background-color:transparent;
	/*border: dashed 3px #EF3E54;*/
}
#main article{
	border-bottom: 0px;
	padding-bottom: 0px;
}
#main article .post-entry {
}
#main article .post-entry img {
	border: solid 10px #169FC0;
	-webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
}

/*TAGS*/
.tagcloud {
    padding: 10px 10px 0 0;
	line-height: 3em;
}
@media (min-width: 992px) {
.tagcloud {
	margin-top: 20px;
}
}
.tagcloud a, .post_tags a {
    border: none;
	background-color: #58B69E;
    padding: 10px; 
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
	color:#FFFFFF;
	font-size: 8pt !important; /*so all the tags have the same weight*/
}
.tag{
	margin-right: 5px;
	/*margin-bottom: 30px; */
}
.post_tags {
	margin-top: 15px;
	
}
.title-archive {
	color: #169FC0;
}
.entry-content {
	color: #169FC0;
}
/**************************RESOURCES**************************/
#HIV-media {
	
	margin:0 auto;
	width:100%;
	overflow:hidden;
	display:block;
	position:relative;	
	padding-top:5px;
}

.HIV-video p iframe {
    padding-right: 20px;
}

@media (min-width: 992px) {
#HIV-media {
	margin: 0 auto;
	width: 100%;
}	 
}

@media (min-width: 992px) {														
.HIV-video {
	width: 33%;	
	float:left;
}
}
.HIV-video ul {
	padding-left: 0px;
	padding-top: 10px;
}
.HIV-video li {
	list-style:none;
	background-image:url(images/AUDIO_ICON.png);
	background-repeat:no-repeat;
	background-position:left;
	background-size:auto;
	padding-left: 30px;
	min-height: 45px;
	padding-right:10px;
	padding-bottom:10px;
}
@media (min-width: 992px) {
.HIV-image-block {
	width: 33%;
	float:left;
}
}
.HIV-image {
	float:left;
}
.HIV-image img {
	border: 2px solid #169FC0 !important;
	-webkit-border-radius: 0px !important;
    -moz-border-radius: 0px !important;
    border-radius: 0px !important;
	margin-right: 5px;
	margin-bottom: 	5px;
}
@media (min-width: 992px) {
.HIV-pdf {
	width: 33%;
	float:left;
	/*text-align:left;	*/
}
}
.HIV-pdf ul {
	padding-left: 0px;
	padding-top: 10px;
}
.HIV-pdf li {
	list-style:none;
	background-image:url(images/PDF_ICON.png);
	background-repeat:no-repeat;
	background-position:left;
	padding-left: 40px;
	min-height: 45px;
	margin-bottom: 15px
}
.HIV-download ul {
	padding-top: 20px;
}
.HIV-download li {
	list-style:none;
	background-image:url(images/ZIP-ICON.png);
	background-repeat:no-repeat;
	background-position:left;
	padding-left: 40px;
	min-height: 45px;
}

/**************************IMAGE BANK**************************/
.image-bank {
	float:left;
	min-height: 500px;
	max-width: 300px;
	margin: 15px;
	/*border: 1px solid #cccccc;*/
}
.image-bank img {
	border: 2px solid #169FC0 !important;
	-webkit-border-radius: 5px !important;
    -moz-border-radius: 5px !important;
    border-radius: 5px !important;	
	/*margin-right: 5px;*/
	margin-bottom: 	5px;
}

.page-num-container {
	clear:both;
	float:left;
	width: 100%;
	text-align:center;
}

.image-bank h3 {
    *padding-top: 5px !important;
    *padding-bottom: 0px !important;
    margin-top: 10px !important;
    margin-bottom: 5px !important;
}

/**************************SEARCH BOX**************************/
#search-container {
	
}

.search-box {
	float:right;
	text-align:left;
}

input[type="search"] {
	color: #169FC0;
}

/**************************SUBMIT BUTTONS**************************/
input[type="submit"],
input[type="reset"],
input[type="button"] {
  color: #fff;
  background-color: #169FC0;
  border-color: none !important;
}
input[type="submit"]:hover, input[type="submit"]:active {
	
}

/*********************************CONTACT US*********************************/
.wpcf7 {
	width: 400px;
	padding-right:10px !important;
	margin-right: 20px;
	border-right: 5px solid #169FC0;
	float: left;
}

.wpcf7 input[type="text"] { 
	border: 2px solid #169FC0;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.wpcf7 input[type="email"] {
	border: 2px solid #169FC0;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}
.wpcf7 textarea {
	border: 2px solid #169FC0;
	-webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

/* Google Map */
#map-container {
	position:relative;
	padding: 0px;
	margin-left : 20px;
	float:left;
	width: 50%;
	border: 2px solid #169FC0;
}

/* LHSA Address */
address {
	position:relative;
	padding: 0px;
	margin-left : 20px;
	float:left;
}

/**************************FOOTER**************************/
#footer{
	background-color:transparent;
	margin-top: 0;
}

#footer-menu-container {
	margin:auto;
	float: none;	
}

#menu-social-container {
  border-bottom: none;
}

.social-text {
	color: #169FC0;
}

.social-icons {
	position:relative;
}
    
#social-icons-container {
	/* position:relative;  already in top level styles */
	margin: auto;
	float: none;
	padding-top: 10px;
	display:block;
	width: 100%;
}

@media (min-width: 992px) {
 #social-icons-container {
    margin: auto;
	float: none;
	padding-top: 10px;
  }
}

@media (min-width: 992px) and (min-width: 992px) {
#social-icons-container {
    margin: auto;
	float: none;
	padding-top: 10px;
  }
}

#social-icons-container img {
    margin-right: 20px;
}

@media (max-width: 992px) {
#social-icons-container img {
	max-width: 50% !important;
    height: auto;
}
}
/*Licence information*/
#licence-container {
    margin-left: -15px;
    margin-right: -15px;
    padding: 20px 0;
    text-align:center;
    border-top: 1px dashed #999999;
    border-bottom: 1px dashed #999999;
}

#licence-container:before, #licence-container:after {
  content: " ";
  display: table;
}

#licence-container:after {
  clear: both;
}

/*Copyright information*/
#copyright-container {
  margin-left: -15px;
  margin-right: -15px;
  padding: 20px 0;
}

#copyright-container:before, #copyright-container:after {
  content: " ";
  display: table;
}

#copyright-container:after {
  clear: both;
}

@media (min-width: 992px) and (min-width: 992px) {
#copyright-container .copyright {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  text-align: left;
}
}

@media (min-width: 992px) {
  #footer-base .copyright {
    float: left;
    width: 100%;
  }
}
@media (min-width: 992px) {
 #footer-base .copyright {
    position: relative;
    min-height: 1px;
    padding-left: 15px;
    padding-right: 15px;
    text-align: left;
  }
}
@media (min-width: 992px) and (min-width: 992px) {
 #footer-base .copyright {
    float: left;
    width: 100%;
  }
}

#footer-base .login {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
  text-align: left;
  padding-bottom: 10px;
}
@media (min-width: 992px) and (min-width: 992px) {
 #footer-base .login {
    float: left;
    width: 50%;
  }
}

@media (min-width: 992px) and (min-width: 992px) {
  #footer-base .scroll-top {
    width: 50%;
  }
}
@media (min-width: 992px) and (min-width: 992px) {
  #footer-base .scroll-top {
    right: 20%;
  }
}

/************************************BUS STOPS*************************************/
@media (min-width: 992px) {
#bus-stop-container {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:126px;
	overflow:hidden;
	/*border: solid 1px #000;*/
	margin-bottom: -83px;
	z-index:500;
	display:block;
	position:relative;
}
}

.bus-stop-A, .bus-stop-B, .bus-stop-C {
	text-align:center;
}

.bus-stop-A a, .bus-stop-B a, .bus-stop-C a {
	font-size:14px;
}

@media (min-width: 992px) {
.bus-stop-A {
	background-image:url(images/bus_btn.png);
	background-repeat:no-repeat;
	background-position:center;
	width: 33%;
	float:left;
	height: 126px;
	text-align:center;	
}

.bus-stop-B {
	background-image:url(images/bus_btn.png);
	background-repeat:no-repeat;
	background-position:center;
	width: 33%;
	float:left;
	height: 126px;
	text-align:center;
}

.bus-stop-C {
	background-image:url(images/bus_btn.png);
	background-repeat:no-repeat;
	background-position:center;
	width: 33%;
	float:left;
	height: 126px;
	text-align:center;	
}

.bus-stop-A  a, .bus-stop-B  a, .bus-stop-C  a {
	display:block;
	color: #FFFFFF;
	font-size:18px;
	text-decoration:none;
	padding-top: 48px;
	padding-bottom:40px;
}

.bus-stop-A:hover, .bus-stop-B:hover, .bus-stop-C:hover {
	background-image:url(images/bus_btn_hover.png);
	text-decoration:underline;
}

#arts-stop-container {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:126px;
	overflow:hidden;
	margin-bottom: -83px;
	z-index:500;
	display:block;
	position:relative;
}
#arts-stop-container .bus-stop-A {
	background-image:url(images/arts_btn_hover.png);
}
#arts-stop-container .bus-stop-A:hover {
	background-image:url(images/arts_btn_hover.png);
}

#arts-stop-container .bus-stop-B:hover {
	background-image:url(images/health_btn_hover.png);
}

#arts-stop-container .bus-stop-C:hover {
	background-image:url(images/social_btn_hover.png);
}

#artscontainer {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:390px !important;
	border-top:40px solid #EF3E54;
	overflow:hidden;
	position:relative;
	/*background-image:url(images/arts.jpg);*/
	background-position:center;
	display:block;
	z-index:0;
}

#health-stop-container {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:126px;
	overflow:hidden;
	margin-bottom: -83px;
	z-index:500;
	display:block;
	position:relative;
}

#health-stop-container .bus-stop-B {
	background-image:url(images/health_btn_hover.png);
}

#health-stop-container .bus-stop-A:hover {
	background-image:url(images/arts_btn_hover.png);
}

#health-stop-container .bus-stop-B:hover {
	background-image:url(images/health_btn_hover.png);
}

#health-stop-container .bus-stop-C:hover {
	background-image:url(images/social_btn_hover.png);
}

#healthcontainer {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:390px !important;
	border-top:40px solid #EF3E54;
	overflow:hidden;
	position:relative;
	display:block;
	z-index:0;
}

#social-stop-container {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:126px;
	overflow:hidden;
	margin-bottom: -83px;
	z-index:500;
	display:block;
	position:relative;
}

#social-stop-container .bus-stop-C {
	background-image:url(images/social_btn_hover.png);
}

#social-stop-container .bus-stop-A:hover {
	background-image:url(images/arts_btn_hover.png);
}

#social-stop-container .bus-stop-B:hover {
	background-image:url(images/health_btn_hover.png);
}

#social-stop-container .bus-stop-C:hover {
	background-image:url(images/social_btn_hover.png);
}

#socialcontainer {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	height:390px !important;
	border-top:40px solid #EF3E54;
	overflow:hidden;
	position:relative;
	display:block;
	z-index:0;
}
} /*end bus stop container*/

/*************************BUS ANIMATION**************************/

/*require content for mobile*/

@media (min-width: 992px) {
#animcontainer {
	margin:0 auto;
	width:100%;
	max-width:1200px;
	/*height:350px;*/
	height:390px !important;
	border-top:40px solid #EF3E54;
	overflow:hidden;/**/
	position:relative;
	background: #00b0f5; /* Old browsers */
	background: -moz-linear-gradient(top,  #00b0f5 0%, #ffffff 52%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b0f5), color-stop(52%,#ffffff)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #00b0f5 0%,#ffffff 52%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #00b0f5 0%,#ffffff 52%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #00b0f5 0%,#ffffff 52%); /* IE10+ */
	background: linear-gradient(to bottom,  #00b0f5 0%,#ffffff 52%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b0f5', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
	display:block;
	z-index:0;
}

.foreground, .midground, .background{
   	width: 100%;
	height: 100% !important;
	position:absolute;
	top: 0px !important;
  	translate3d(0,0,0);
	margin: 0px !important;
	padding: 0px !important;
	display:block;
}

.foreground {
  z-index: 4;
  margin:0 auto;
  background-color:none;

}

.midground {
  animation: parallax_mg linear 20s infinite;
   background:  url(images_bus_anim/edinburgh_ground.png) 1px 100% repeat-x;
	top:20px;
  z-index: 3 ;
}

.background {
  background-image:
    url(images_bus_anim/hill_trees_background.png),
    url(images_bus_anim/edinburgh_skyline.png);
  background-repeat: repeat-x;
  background-position: 0 10px;
  z-index: 2;
  height:300px;
  animation: parallax_bg linear 40s infinite;
 	animation-play-state: running;
	/*border:1px solid #cc0000;*/
}



/**************************************** BUS ********************************************/
.bus {
  /* steps causes the animation to chunk into 16 equal pieces */
  animation: bus-cycle 1s steps(16) infinite;
  animation-play-state: running;

  background: url(images_bus_anim/bus_animation.png) 0 0 no-repeat;
  height: 217px;
  width: 384px;
  /*margin: 100px auto 0;*/
  position: relative;
  top:105px;
  left: 50%;
  margin-left: -200px;
  transform: translateZ(0); /* offers a bit of a performance boost by pushing some of this processing to the GPU in Safari*/
}

/**************** BUTTON ********************/
#buttonStop {
	background-image: url(images_bus_anim/button_pause.png);
	background-position: 0 0;
	background-repeat: no-repeat;
	background-color:transparent;
	display:block;
	margin:20px;
	border:0;
	cursor: pointer !important;

	cursor: hand !important;
	position:relative;
	top:226px;
	width:84px;
	height:84px;
	z-index: 5;
}

#buttonStop:hover{
}

button:focus {
	outline:0;
}
} /*end animation*/

@media (max-width: 992px) {
#buttonStop {
	display:none !important;
	}
}