/*
Theme Name: Always Smiling
Author: Jon Waite (Brandnew Future)
Author URI: http://brandnewfuture.co.uk
Description: The new 2017 website for Always Smiling
Version: 1.1
*/

/*
Pink: #e60094;
Blue: #00b8e0;
*/

@font-face {
    font-family: corky;
    src: url(/wp-content/themes/alwayssmiling/fonts/Corky.ttf);
}

  body[data-aos-duration='6000'] [data-aos], [data-aos][data-aos][data-aos-duration='6000']{
    transition-duration: 6000ms;
  }

/*HEADER*/

.as-header {
	border-bottom:thin solid #C0C0C0;
	background-color:#fff;
}

.logocontainer {
	margin:20px 0;
}

.logocontainer img {
	max-width:400px; 
	margin-left: auto;
	margin-right: auto;
	display: block;
}

.mainmenu {
	text-align:center;
	padding:20px 0;
}

.mainmenu li {
	border-right: 1px solid #e60094;
	padding:0 10px;
    margin:0 -2.5px;	
}

.mainmenu li:last-child {
	border-right:none;
}

.mainmenu a {
	color: #e60094;
}

.mainmenu a:hover {
	color: #00b8e0;
	text-decoration: none;
}

#as-menu li {
    display: inline;
}

ul#as-menu {
    margin: 0px;
    padding: 0px;
}

.socialbanner {

}

.socialbanner img{
	width:30px;
	height:30px;
	margin-top: 25px;
}

.social-fa, .social-tw {
    margin-right: 15px;
}

.mobilesocial img{
	width:30px;
	height:30px;
}

a.mobilesocial {
    display: inline-block !important;
}

.mobileinline {
    float: right;
    position: relative;
    left: -50%;
}

.mobileinline a {
    position: relative;
    left: 50%;
}

.headeright {
	position:absolute;
	top:0;
	right:0;
	margin:20px;
}

.registerlogin {
	background-color: #00b8e0;
	color:white;
	padding:6px 10px;
}

.registerlogin:hover {
	text-decoration: none;
	color:inherit;
}

.mobilemenu {
    margin-top: 35px;
    max-width:40px;
    width:100%;
    height:auto;
    padding:0;
}

.menumobilecontainer {
    padding: 0px;
}

.topnav {
  overflow: hidden;
  background-color: #00b8e0;
}

.topnav a {
  color: #f2f2f2;
  padding: 8px 16px;
  text-decoration: none;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.active {
  background-color: #4CAF50;
  color: white;
}

.topnav .icon {
  display: none;
}

.loggedin, .loggedin a {
  color: #e60094;
}

@media screen and (max-width: 575px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
	.as-header {
	    position: fixed;
	    top: 0;
	    background-color: #fff;
	    z-index: 1;
	    width:100%;
	    /*height:145px;*/
	}

	div#primary {
	    margin-top: 145px;
	}

	.anchor {
	  display: block;
	  height: 121px; /*same height as header*/
	  margin-top: -121px; /*same height as header*/
	  visibility: hidden;
	}		  
}

@media screen and (max-width: 575px) {
  .topnav.responsive {
  	position: relative; 
  	display: block;
    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 1s; /* Firefox < 16 */
        -ms-animation: fadein 1s; /* Internet Explorer */
         -o-animation: fadein 1s; /* Opera < 12.1 */
            animation: fadein 1s;    
  }

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.topnav.menuhidden {
    position:relative;
    display:none;   
}



  .topnav a {
    float: none;
    display: block;
    text-align: center;
  }
}

#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: rgba(0, 184, 224, 0.3);
  color: white;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 10px;
}

#myBtn:hover {
  background-color: #e60094;
}

/* ANIMATED MOBILE MENU */

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #e60094;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
}

/* SECTIONS */

.as-section {
	border-bottom:thin solid #C0C0C0;
	height:100%;
	width:100%;
	background-size: cover;
	background-repeat: no-repeat;
	background-position:center center;
}

.section2 {
	background-color:white;
}

@media screen and (max-height:950px) and (min-width:767px)  {
	.wrapper {
		top: auto !important;
	}
}

@media screen and (max-width:1200px) {
	.animatedbackground {
		bottom:0;
	}
}

.as-section img {
    width: 100%;
    height:auto;
}

.sectionpadding {
	padding: 50px 20px;
}

.sectiontext {
	color: #696969;
}

.motto {
  font-family: corky,Arial;
  font-size:36pt;
  color: #C0C0C0;
  border-radius:10px;
  margin: 7%;
  padding-top:20px;
  padding-bottom: 20px;
  background: rgba(255,255,255,0.9);
}

.motto2 {
	font-family: corky,Arial;
	font-size:24pt;
	color: #C0C0C0;
	padding:25px 0;
}

.profileimage {
	width:200px;
	height:auto;
	padding-bottom:20px;
}

.titlebanner {
    width: 100%;
    text-align: center;
    padding: 20px 20px 10px 20px;
    color: #fff;
    min-height:110px;
}

.eventtext {
    width: 100%;
    text-align: left;
    padding: 20px;
    color: #fff;
    min-height:110px;
}

.eventimage {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #fff;
    min-height:110px;
}

.titlepink, .mobpink a {
    background-color: #e60094;
}

.titleblue, .mobblue a {
    background-color: #00b8e0;
}

.titlebanner.titleblue {
    padding-top: 30px;
}

img.titlesmile {
	width: 65px;
	margin-top: 40px;
	margin-left: -50px;
}

img.titlehearts {
	width: 30px;
	margin-left: 10px;
	margin-bottom: 30px;
}

.slide7image {
    max-width: 500px;
    position: relative;
    float: right;
}

div#primary {
    min-height: calc(100vh - 455px);
}

/* CONTACT FORM */

textarea.wpcf7-form-control.wpcf7-textarea {
    width: calc(100% - 30px);
    margin:0 15px;
    resize: none;
    border: 1px solid #C0C0C0;
}

input.wpcf7-form-control.wpcf7-text {
    width: calc(100% - 30px);
    margin:0 15px;
    border: 1px solid #C0C0C0;
}

.contactform-as {
    border: 1px solid #C0C0C0;
}

.contact-title {
    background-color: #00b8e0;
    padding:15px;
}

.contact-title h3 {
    color: white;
    margin:0;
}

.contact-mainform {
    margin-top: 15px;
}

label {
    width: 100%;
}

input[placeholder], textarea[placeholder] {
    padding: 15px;
}

input.wpcf7-form-control.wpcf7-submit {
    margin-left: auto;
    margin-right: auto;
    display: block;
    background-color: #e60094;
    color: #fff;
    padding: 5px 20px;
    border:none;
}

span.wpcf7-not-valid-tip {
    padding: 0 30px;
}

/* FOOTER */
.as-footer {
	padding:20px 0 75px 0;
  border-top: thin solid #C0C0C0;
  bottom:0;
  width:100%;
  background-color:#fff;
}

.footertext, .footertext a {
	font-size: 9pt;
	text-decoration:none;
	color:#000;
}

/* Small devices (tablets, 768px and up) */
@media (max-width: 767px) {
    .footerleft, .footercenter, .footerright {
        text-align: center;
    }
    .mainmenu li {
    	padding:0 4px;
    }
    .animatezoom {
      text-align:center;
    }
    .profileimage {
      margin-left: auto;
      margin-right: auto;
    }    
  .section1 {
      height: calc(100vh - 145px); /*was 215px */
    }
    .titlebanner h1 {
        font-size: 20pt;
    }        
}

@media (min-width: 768px) {
  .footerleft {
    text-align:left;
  }

  .footercenter {
    text-align:center;
  }

  .footerright {
    text-align:right;
  }
  .section1 {
    height: calc(100vh - 215px); 
  }
}

/* ANIMATION */

@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.animatezoom {
 opacity:0;  /* make things invisible upon start */
 -webkit-animation:fadeIn ease-in 1;  /* call our keyframe named fadeIn, use animattion ease-in and repeat it only 1 time */
 -moz-animation:fadeIn ease-in 1;
 animation:fadeIn ease-in 1;
 
 -webkit-animation-fill-mode:forwards;  /* this makes sure that after animation is done we remain at the last keyframe value (opacity: 1)*/
 -moz-animation-fill-mode:forwards;
 animation-fill-mode:forwards;
 
 -webkit-animation-duration:3s;
 -moz-animation-duration:3s;
 animation-duration:3s;

 -webkit-animation-delay:3s;
 -moz-animation-delay:3s;
 animation-delay:3s;
}

@-webkit-keyframes moveLeft { from { left:-50%; } to { left:0; } }
@-moz-keyframes moveLeft { from { left:-50%; } to { left:0; } }
@keyframes moveLeft { from { left:-50%; } to { left:0; } }

@-webkit-keyframes moveRight { from { right:-50%; } to { right:0; } }
@-moz-keyframes moveRight { from { right:-50%; } to { right:0; } }
@keyframes moveRight { from { right:-50%; } to { right:0; } }

.animatedbackground {
  position: absolute;
  width: 50% !important;
  height: auto;
  z-index: -9999;
}

.leftbackground {
	-webkit-animation: moveLeft 3s 1;
	animation: moveLeft 3s 1;
}

.rightbackground {
	margin-left:50%;
	-webkit-animation: moveRight 3s 1;
	animation: moveRight 3s 1;	
}

.wrapper {
    position: absolute;
    overflow: hidden;
    width:100%;
    height:100%;
    z-index: -999;
    top:0;
}

.showcaseimage, .grid-gallery-caption {
	-webkit-transition: all 200ms ease-out;
   	-moz-transition: all 200ms ease-out;
   	-o-transition: all 200ms ease-out;
   	-ms-transition: all 200ms ease-out;
   	transition: all 200ms ease-out;
}

.showcaseimage:hover, .grid-gallery-caption:hover {
    -webkit-transition: all 200ms ease-in;
    -webkit-transform: scale(1.025);
    -ms-transition: all 200ms ease-in;
    -ms-transform: scale(1.025);   
    -moz-transition: all 200ms ease-in;
    -moz-transform: scale(1.025);
    transition: all 200ms ease-in;
    transform: scale(1.025);
}

/* BB PRESS */

.bbp-header {
    background:#00b8e0 !important;
    color: white !important;
}

fieldset.bbp-form {
    padding: 15px;
}

.bbp-submit-wrapper button {
    margin-left: auto;
    margin-right: auto;
    display: block;
    background-color: #e60094;
    color: #fff;
    padding: 5px 20px;
    border:none;
}

input#bbp_search_submit {
    background-color: #e60094;
    color: #fff;
    padding: 5px 20px;
    border:none;  
}

input#bbp_search {
    font-size: 11pt;
}

.g-recaptcha > div{
    margin: 15px auto !important;  
}


