* {
    box-sizing: border-box;

}

html, body {
	margin: 0px;
	height: 100%;
	position: relative;
	font-family: "Avenir Next", serif;
}

#navbar {
	display: none;
}

#nav-mobile {
	display: flex;
	position: fixed;
	top: 0;
	width: 100%;
	justify-content: space-around;
	padding: 15px;

}

.overlay {
  	height: 0%;
  	width: 100%;
  	position: fixed;
  	z-index: 3;
  	top: 0;
  	left: 0;
  	display: flex;
  	flex-flow: column wrap;
  	background-color: #333;
  	overflow-y: hidden;
  	transition: 0.5s;
}

.overlay-content {
  	position: relative;
  	width: 50%;
  	text-align: center;
  	margin-top: 30px;
}

.overlay .closebtn {
  	position: absolute;
  	bottom: 20px;
  	right: 45px;
  	font-size: 60px;
}



nav {
    justify-content: flex-start;
  	background-color: #333;
  	padding: 10px 30px; /*30px*/

  	overflow: none;
    white-space: nowrap;
    text-align: center;

    z-index: 4; /* Sit on top */

    margin: 0;
}

nav img {
	 width: 50px;
   height: auto;
}


nav a, .overlay a {
    display: block;
    color: #fff;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    min-width: 5%;
    border-bottom: medium solid transparent;
}

nav a:hover, .overlay a:hover {
    border-bottom: medium solid #fff;
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  display: inline-block; /*block*/
  color: #fff;
  text-align: center;
  padding: 14px 14px 24px;
  text-decoration: none;
  min-width: 5%;
  /*border-bottom: medium solid transparent;*/



  font-size: 16px;
  border: none;
  outline: none;

  background-color: inherit;
  font: inherit; /* Important for vertical align on mobile phones */
  margin: 0; /* Important for vertical align on mobile phones */
}

/* Add a red background color to navbar links on hover */
.dropdown:hover .dropbtn {
  /*background-color: red;*/
  cursor: pointer;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  margin-top: 10px;
  background-color: #f9f9f9;
  width: 100%;
  left: 0;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Mega Menu header, if needed */
.dropdown-content .header {
  background: #333;
  padding: 6px;
  color: white;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {display:block;}

header {
	height: 60%;
}

header img {
	width: 50%;
	height: auto;
}

.intro {
  	padding: 16px 5%;
}

.intro p {
	margin: 0 10%;
}

.intro-heading {
	flex-basis: 70%;
	position: relative;
}

.intro-text {
	flex-basis: 30%;
	position: relative;
	margin-top: 1%;
}

.heading {
    font-size: 5vw;

}

.sticky {
	position: fixed;
	top: 0;
 	width: 100%;
}

.sticky + .intro {
  	padding-top: 94px;
}

.dark {
  color: #fff;
	background-color: #333;
}

.green {
  color: limegreen;
}

.form-success {
  color: #107727;
  background-color: #A0FFB5;
  border: 2px solid #107727;
  border-radius: 5px;
}

.error {
  color: crimson;
}

.form-error {
  color: #9F1C28;
  background-color: #FF7885;
  border: 2px solid #9F1C28;
  border-radius: 5px;
}

.flex-container {
	display: flex;
	position: relative;
	width: 100%;
	max-width: 1920px;
	margin: 0;
}

.text-padding {
	padding: 2% 5% 0%;
}

.padding {
	padding: 2% 10%;
}

.flex-row {
	display: flex;
	flex-flow: row wrap;
}

.flex-row-nowrap {
	display: flex;
	flex-flow: row nowrap;
}

.flex-col {
	display: flex;
	flex-flow: column wrap;
}

.flex-item {
	flex-basis: 50%;
	-webkit-flex-basis: 50%;
	position: relative;
	padding: 10px;
}

.active {
	order: -1;
	flex-basis: 100% !important;
	-webkit-flex-basis: 100% !important;
}

.basis-50 {
	flex-basis: 50% !important;
	-webkit-flex-basis: 50% !important;
}

.basis-30 {
	flex-basis: 33.3% !important;
	-webkit-flex-basis: 33.3% !important;
}

.flex-centre {
	justify-content: center;
    align-items: center;
}

.pad-right {
	padding-right: 5px;
}

.text-centre {
    text-align: center;
}

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

.grid-img:hover {
	padding: 0;
  	margin: -10px;
  	width: 108%;
  	height: auto;
  	transition-duration: .5s;
}

.link {
    text-decoration: none;
    color: #4A90E2;
}

.link:hover{
    color: #3D74B4;
}

.hidden {
	display: none;
}

.button {
    -webkit-appearance: none;
    margin-left: 0px;
    margin-top: 20px;
    width: 100%;
    background-color: #D8D8D8;
    color: #333;
    padding: 12px 24px;
    border: 2px solid #D8D8D8;
    border-radius: 20px;
    cursor: pointer;
}

.button:hover {
    background-color: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
}

/*
i {
    border: solid #fff;
    border-width: 0 6px 6px 0;
    display: inline-block;
    padding: 12px;
}

.i-blk {
    border: solid #333;
    border-width: 0 6px 6px 0;
}

.i-fff {
    border: solid #fff;
    border-width: 0 6px 6px 0;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}
*/
.sketch-img {
	width: 80%;
  	height: auto;
  	opacity: 0.5;

}

.sketch-title {
 	position: absolute;
 	width: 100%;
 	height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}


.image-container {
  background-image: url("../images/mountain-blue.jpg"); /* The image used - important! */
  background-size: cover;
  position: relative; /* Needed to position the cutout text in the middle of the image */
  height: 300px; /* Some height */
}

.text {
  background-color: white;
  color: black;
  font-size: 10vw; /* Responsive font size */
  font-weight: bold;
  margin: 0 auto; /* Center the text container */
  padding: 10px;
  width: 50%;
  text-align: center; /* Center text */
  position: absolute; /* Position text */
  top: 50%; /* Position text in the middle */
  left: 50%; /* Position text in the middle */
  transform: translate(-50%, -50%); /* Position text in the middle */
  mix-blend-mode: screen; /* This makes the cutout text possible */
}





#contact-top {
	padding: 20% 0%;
}

/************************************************** CONTACT ************************************************/

label {
    color: #fff;
    vertical-align: top;
    padding: 5% 1%;
}

#contact {
    margin: 0 10%;
}

.contact-form input[type=text], .contact-form textarea {
    vertical-align: top;
    -webkit-appearance: none;
    padding: 10px 12px;
    font-size: 16px;
    background-color: #6D6D6D;
    border: 2px solid #6D6D6D;
    border-radius: 5px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
    width: 100%;
}

.contact-form textarea {
    width: 100%;
}

.contact-form input[type=text]:focus, .contact-form textarea:focus {
    background-color: #fff;
    border: 2px solid #fff;
}

.captcha-container {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
}

/************************************************** FOOTER ************************************************/

footer {
    margin-top: 5%;
    padding-bottom: 2%;
    position: relative;
    text-align: center;
}

footer img {
    margin: 1% 5% 1%;
    width: 100%;
}

.footer-padding {
    -webkit-appearance: none;
    padding-top: 10%;
    padding-bottom: 2%;
}

/******************* snackbar styling ******************/

/* The snackbar - position it at the bottom and in the middle of the screen */
#snackbar {
  visibility: hidden; /* Hidden by default. Visible on click */
  min-width: 250px; /* Set a default minimum width */
  /*margin-left: -125px; /* Divide value of min-width by 2 */
  background-color: #333; /* Black background color */
  color: #fff; /* White text color */
  text-align: center; /* Centered text */
  border-radius: 2px; /* Rounded borders */
  padding: 16px; /* Padding */
  position: fixed; /* Sit on top of the screen */
  z-index: 1; /* Add a z-index if needed */
  left: 50%; /* Center the snackbar */
  transform: translateX(-50%);
  bottom: 30px; /* 30px from the bottom */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.showSnack {
  visibility: visible; /* Show the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar. */
  -webkit-animation: fadein 0.5s;
  animation: fadein 0.5s;
}

#snackbar.closeSnack {
  visibility: hidden; /* Close the snackbar */
  /* Add animation: Take 0.5 seconds to fade in and out the snackbar. */
  -webkit-animation: fadeout 0.5s 2.5s;
  animation: fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

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

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

.fa-times {
  cursor: pointer;
}


/*********** accordion **************/

.accordion {
  cursor: pointer;
  color: #4A90E2;
}

.active, .accordion:hover {
  color: #3D74B4;
}

.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

/******************** media queries for tablet up **********************/

@media only screen and (min-width: 600px) {
	/* For tablets: */
	#navbar {
		display: flex;
	}

	#nav-mobile {
		display: none;
	}

	.flex-item {
		flex-basis: 33%;
		-webkit-flex-basis: 33%;
	}

  .button {
      width: auto;
      margin-left: 20px;
      margin-top: 0px;
  }

	#contact-top {
		padding: 15% 0%;
	}

  #contact {
      margin: 0 15%;
  }

	 .captcha-container {
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-items: baseline;
    }

}

@media only screen and (min-width: 800px) {
    /* For desktop: */
    .flex-item {
		flex-basis: 25%;
		-webkit-flex-basis: 25%;
	}

	#contact-top {
		padding: 8% 0%;
	}
}
