@import url(https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css);
@import "KYD.css";
@import "../fonts/gotham.css";


:root {
	--main-color: #3b3837; /* rgba(59, 56, 54, 1) */
	--accent-color: #7DA454; /* rgba(124, 164, 83, 1) */
	--text-color: rgba(0, 0, 0, 0.6);
	--line-color: rgba(0, 0, 0, 0.2);
	--hyperlink: #7DA454;
	--visited-link: #9FAF8F;
	--padding-lr: 20px;
	--header-height: 50px;
	--headerlogo-height: 36px;
	--body-font-size: 1.6em;
	--border-radius: 10px;
	--container-width: 1280px;
	color: rgba(59, 56, 54, 0.97);
}
/* Tablet */
@media (min-width:641px) {
	:root {
		--header-height: 60px;
		--headerlogo-height: 48px;
		--body-font-size: 1.8em;
	}
}
/* Desktop */
@media (min-width:1025px) {
	:root {
		--header-height: 80px;
		--headerlogo-height: 64px;
		--body-font-size: 2.0em;
	}
}

/* @group Base Style */

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
  background-repeat: no-repeat;
  background-size: cover !important;
  background-position: center center !important;
  position: relative;
}
body, html {
  height: 100%;
  min-width: 320px;
  background-color: #eee;
  z-index: 0;
}
html {
  font-size: 62.5%; /*making font-sizes base 10*/
}

/*setting up font sizes and base font family*/
body {
  color: var(--text-color);
	font-size: var(--body-font-size);
	line-height: 1.5;
  font-family: "Gotham-Light", Helvetica, sans-serif;
  font-weight: 300;
  text-align: center;
}
input,
select,
textarea {
	font-family: "Gotham-Light", Helvetica, sans-serif;
	font-size: 1em;
	font-weight: 300;
}

img {
  width: 100%;
  height: auto;
	vertical-align: middle;
	-ms-interpolation-mode: bicubic;
}
a img {
	border: none;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
div, article, section {
	overflow: auto; /*fix float problem*/
}

/* @end */

/* @group Typography */

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 1em;
	line-height: 1.2;
}

h1 {
  font-weight: 100;
  font-size: 3.4em;
  color: var(--accent-color);
  text-align: center;
}

h2 {
  font-weight: 100;
  font-size: 3.0em;
  color: var(--accent-color);
  text-align: center;
}

h3 {
  font-weight: 100;
  font-size: 2.0em;
  color: var(--accent-color);
}

h4 {
  font-weight: 700;
  font-size: 1.6em;
  /*color: var(--main-color);*/
}

h5 {
  font-weight: 700;
  font-size: 1.3em;
  /*color: var(--main-color);*/
}

h6 {
  font-family: 'Gotham-Bold';
  font-size: 1.0em;
  /*color: var(--main-color);*/
  margin-bottom: 0;
}

/* @end */

/* @group Blockquote */

blockquote {
	font-size: 1.2em;
	line-height: 1.3;
	font-style: italic;
	font-weight: 100;
	width: 80%;
	margin: 0 auto 3em;
}

blockquote p {
  margin-bottom: 0.75em;
}

blockquote p:first-of-type::before {
	content: "\“";
}

blockquote p:last-of-type::after {
	content: "\”";
}
blockquote cite {
  display: block;
  text-align: left;
  font-size: 0.75em;
  font-weight: normal;
  /*font-style: normal;*/
}

/* @end */

/* @group Buttons */

.btn,
button,
[type=submit] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
  font-family: inherit;
  background: var(--main-color);
  color: #fff;
	font-size: 0.9em;
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
	border: none;
	border: 1px solid var(--main-color);
	border-radius: var(--border-radius);
	/*white-space: nowrap;*/
	white-space: wrap;
	text-decoration: none !important;
	text-transform: uppercase;
  box-sizing: border-box;
  display: block;
  width: 100%;
	margin: 0.5em auto;
	padding: 0.75em 1.5em;
  overflow: hidden;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
          
  -webkit-transition: all 0.5s ease-in-out;
 				  transition: all 0.5s ease-in-out;
 	font-smooth: always;
 	-webkit-font-smoothing: antialiased;
 	-moz-osx-font-smoothing: grayscale;
 	
}
@media (min-width: 481px) {
	.btn,
	button,
	[type=submit] {
		width: auto;
		min-width: 10em;
		display: inline-block;
		margin: 0.5em;
	}
}
.btn:hover,
button:hover,
[type=submit]:hover,
.btn.white:hover {
	color: #fff;
  opacity: 0.8;
}
.btn:active,
button:active,
[type=submit]:active,
.btn.white:active {
  opacity: 0.7;
}
.btn:focus, button:focus, [type=submit]:focus {
  outline: none;
}
.btn:disabled, button:disabled, [type=submit]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn.white {
	color: var(--main-color);
	border-color: #fff;
	background-color: #fff;
}
.btn.white:hover {
	color: var(--main-color);
}

.btn.ghost {
  color: var(--main-color);
  background: transparent;
}
.btn.ghost:hover,
.btn.ghost:active {
	color: #fff;
	background-color: var(--main-color);
}

.btn.ghost.white {
	color: #fff;
	border-color: #fff;
	background: transparent;
}
.btn.ghost.white:hover,
.btn.ghost.white:active {
	color: var(--main-color);
	background-color: #fff;
}
.btn.small,
button.small {
	padding-top: 0.5em;
	padding-bottom: 0.5em;
	border-radius: 8px;
}

/* @end */

/* @group Components */

p {
	margin: 0 0 1.5em;
	text-align: left;
}

hr {
	clear: both;
	border: none;
	border-top: 1px solid var(--line-color);
	display: block;
	/*margin: 1em 0;*/
}

.small {
	font-size: 0.8em;
}

.intro {
	font-size: 1.6em;
	font-weight: 100;
}

nav {
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
}
nav a {
	text-decoration: none;
	opacity: 0.8;
}
nav a:hover,
nav a:active,
nav a:visited {
	text-decoration: none;
	opacity: 1;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.padding-lr {
	padding-left: var(--padding-lr);
	padding-right: var(--padding-lr);
}

section {
	padding-top: calc(var(--header-height) *1);
	padding-bottom: var(--header-height);
}

/* @group .nextsection */
.nextsection {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 10px;
	width: 48px;
	height: 24px;
	background-image: url(../images/arrow-down.svg);
	/*background-color: black;*/
	background-size: contain;
	opacity: 0.3;
	text-decoration: none !important;
	transition: 0.5s;
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.nextsection:hover {
	opacity: 1;
}
@media (min-width:641px) {
	.nextsection {
		width: 72px;
	}
}
@media (min-width:1025px) {
	.nextsection {
		width: 96px;
	}
}
/* @end */

/* @group .autocol */

@media (min-width:641px) {
	.autocol {
	  column-count: 2;
	  -webkit-column-count: 2;
	  -moz-column-count: 2;
	  column-gap: calc( var(--padding-lr) * 2 );
	  -webkit-column-gap: calc( var(--padding-lr) * 2 );
	  -moz-column-gap: calc( var(--padding-lr) * 2 );
	  overflow: hidden;
	  margin-bottom: 1.5em;
		transform: translateZ(0); /* fix Chrome column bug */
	}
}
@media (min-width:1025px) {
	.autocol {
		column-count: 3;
		-webkit-column-count: 3;
		-moz-column-count: 3;
	}
}

/* @end */

/* @group #back-top */

#back-top {
  margin: 0;
	position: fixed;
	bottom: 0;
  right: 5%;
  z-index: 9;
}
#back-top a {
	display: block;
	font-size: 0;
	width: 50px;
	height: 50px;
	opacity: 0.9;
	text-decoration: none;
}
#back-top a:hover {
  opacity: 1;
}
#back-top a::after {
	content: "\0043";
	display: block;
	background-color: var(--accent-color);
	font: 24px/24px KYD;
	text-align: center;
	padding: 13px;
	color: #ffffff;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* @end */

/* @end */

/* @group Header */
header {
	/*background-color: var(--main-color);*/
	position: fixed;
	top: 0;
	width: 100%; /* Ensure header full width when in 'fixed' position */
	z-index: 10; /* Ensure header is above content when in 'fixed' position */
	/* fix blurry icon rendering */
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;	
}
header > * {
	height: var(--header-height);
	/*padding: 0 5%;*/
	display: flex;
	justify-content: space-between;
	align-items: center; /* vertical centralise */
}
#headerlogo img {
	height: var(--headerlogo-height);
	width: auto;
}
#mainmenu-button {
	color: #fff;
	width: 24px;
	height: 24px;
	font-size: 24px;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	opacity: 0.8;
	overflow: hidden; /* prevent scrollbar */
	z-index: 11; /* Header's z-index is 10. This is to ensure the button always visible */
	-webkit-transform: translate3d(0,0,0); /* Safari z-index order fix */
}
#mainmenu-button::after {
	font-family: KYD;
	content: "\0041";
}
#mainmenu-button:hover {
	opacity: 1;
}
/* @end */

/* @group Main Menu */
#mainmenu {
	font-size: 1.5em;
	font-weight: 300;
	z-index: 10;
	
}
#mainmenu>* {
	display: none;
	flex-direction: column;
	justify-content: center;
	background-color: var(--main-color);
	list-style: none;
	text-align: center;
	margin: 0;
	padding: 0;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: scroll;
	-webkit-overflow-scrolling: touch;
}
#mainmenu>*>* {
	margin: 0.5em 3%;
}
#mainmenu a {
	color: #fff;
	display: inline-block;
}
.mainmenu-on {
	overflow: hidden;
	/*position: relative;*/
	/*height: 100%;*/
}
.mainmenu-on header {
	position: fixed;
	z-index: 1000;
	background-color: blue;
}
.mainmenu-on #mainmenu>* {
	display: flex !important;
}
.mainmenu-on #mainmenu-button::after {
	content: "\0042"; /* x */
}
/* @end */

/* @group Footer */
footer {
	background-color: var(--main-color);
	color: #fff;
	padding-top: var(--header-height);
	padding-bottom: var(--header-height);
	font-smooth: always;
	-webkit-font-smoothing: antialiased;
	position: relative;
	overflow: hidden;
}
footer #footerlogo {
	display: inline-block;
	opacity: 0.8;
	margin-bottom: 20px;
}
footer #footerlogo:hover {
	opacity: 1;
}
footer #footerlogo img {
	height: 48px;
	width: auto;
}
footer nav {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}
footer nav a {
	color: #fff !important;
	white-space: nowrap;
	line-height: 30px;
}
footer hr {
	border-color: #fff;
}
footer #copyright,
footer #author {
	font-size: 13px;
	opacity: 0.8;
}
footer #author {
	font-style: italic;
}
footer #author a {
	color: #fff;
}
footer #socialmedia {
	margin-bottom: 20px;
}
footer #socialmedia a {
	color: #fff;
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	opacity: 0.8;
	/*background-color: #978686;*/
	display: inline-block;
	padding: 0.2em;
}
footer #socialmedia a:hover {
	opacity: 1;
}

@media only screen and (min-width:641px) {
	footer #footerlogo,
	footer #copyright {
		float: left;
		text-align: left;
		clear: left;
	}
	footer nav,
	footer #socialmedia,
	footer #author {
		float: right;
		text-align: right;
		clear: right;
	}
}

/* @end */

/* @group Table */

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
th,
td {
  padding: 0.5em;
  text-align: left;
}
th:first-child,
td:first-child {
  padding-left: 0;
}
th:last-child,
td:last-child {
  padding-right: 0;
}

/* @end */

/* @group Forms */

/*base form styles*/
input[type="text"], 
input[type="password"], 
input[type="tel"], 
input[type="email"], 
input[type="number"], 
input[type="date"], 
input[type="time"], 
input[type="datetime"], 
input[type="datetime-local"], 
input[type="week"], 
input[type="month"], 
input[type="url"], 
input[type="search"], 
textarea, 
select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	outline: none;
	width: 100%;
	max-width: 640px;
	box-sizing: border-box;
	display: block;
	margin: auto auto 1em;
	padding: 0.5em 1em;
	border-radius: var(--border-radius);
	background-color: rgba(255, 255, 255, 0.5);
	color: var(--text-color);
	border: 1px solid rgba(0, 0, 0, 0);
	
	/*-webkit-transition: 0.5s;
	transition: 0.5s;*/
}

/*set border on focus*/
input[type=text]:focus, input[type=password]:focus, input[type=email]:focus, input[type=search]:focus, textarea:focus, textarea[type=text]:focus {
    border: 1px solid var(--main-color);
}

input[type="file"] {
  display: block;
  width: 100%;
}

input[type="radio"],
input[type="checkbox"] {
	margin-right: 0.5em;
}

textarea {
	min-height: 6em;
	resize: vertical;
}

select {
	background-image: url(../images/icon-down.svg);
	background-size: 1em !important;
	background-repeat: no-repeat !important;
	background-position-x: calc(100% - 1em) !important;
	background-position-y: center !important;
	padding-right: 3em;
}
input[type="search"] {
	background-image: url(../images/icon-search.svg);
	background-size: 1em !important;
	background-repeat: no-repeat !important;
	background-position-x: 1em !important;
	background-position-y: center !important;
	padding-left: 3em !important;
}
::-webkit-input-placeholder {
	color: rgba(0, 0, 0, 0.4);
	font-style: italic;
}
::-moz-input-placeholder {
	color: rgba(0, 0, 0, 0.4);
	font-style: italic;
}
/* @end */

/* @group Links */

a, a.hyperlink {
	color: var(--hyperlink);
	text-decoration: none;
}
a:hover, a.hover-link {
	color: var(--hyperlink);
	text-decoration: underline;
}
a.visited-link {
	color: var(--visited-link);
}

/* @end */

/* @group Lists */

ul, ol {
	margin: 1em 0;
	padding-left: 2em;
	text-align: left;
}

dl>dt {
  padding: 0;
  margin: 0;
  font-weight: bold;
}

dl>dd {
  padding: 0;
  margin: 0 0 1.5em;
}

/* @end */

/* @group Utilities */

@media (min-width:641px) {
	.pull-left {
		width: 50%;
	  float: left;
	}
	.pull-right {
		width: 50%;
	  float: right;
	}
}

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

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.full-screen {
  width: 100vw;
  height: 100vh;
}

.horizontal-align {
  display: flex;
  justify-content: center;
}

.blur-backdrop { /* Safari & iOS only */
	backdrop-filter: blur(50px);
	-webkit-backdrop-filter: blur(50px);
}

.hidden {
    display: none !important;
    visibility: hidden;
}
.nowrap {
	white-space: nowrap;
}

/* @end */

/* @group Misc */

code {
  padding: .2rem .5rem;
  margin: 0 .2rem;
  font-size: 90%;
  white-space: nowrap;
  background: #F1F1F1;
  border: 1px solid #E1E1E1;
  border-radius: var(--border-radius); 
}
pre > code {
  display: block;
  padding: 1rem 1.5rem;
  white-space: pre-wrap;       /* css-3 */
  white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
  white-space: -pre-wrap;      /* Opera 4-6 */
  white-space: -o-pre-wrap;    /* Opera 7 */
  word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

/* @end */
