
/* Define default colours */
:root {
  --text-colour: #23364A;
  --menu-text-colour: #313131;
  --background-colour: #FAF8F3;

  --theme-forest-green: #355E4B;
  --theme-soft-sage: #A7B8A5;
  --theme-warm-sand: #E8DFC8;
  --theme-deep-navy: #23364A;
  --theme-off-white: #FAF8F3;

  --theme-colour: #879167;
  --theme-tone1: #d0d3be;
  --theme-tone2: #bbbe93;
  --theme-tone3: #466880;

}

/* Update colours for dark mode 
@media (prefers-color-scheme: dark) {
  :root {
    --text-colour: #fff;
    --menu-text-colour: #d1d1d1;
    --background-colour: #000;
    --background-colour-form: #1d1d1d;
    --background-colour-bars: #303030;
  }
}
 */

/* Apply default colours */
body {
  color: var(--text-colour);
  background-color: var(--background-colour);
  width: 100%;
  margin:0;
  font-family: system-ui, Helvetica, 'Helvetica Neue', 'Trebuchet MS', sans-serif;
  font-style: normal;
  font-weight: normal;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
    overflow: scroll;
    overflow-x: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
::-webkit-scrollbar {
  display: none;
    width: 0;  /* Remove scrollbar space */
    background: transparent;  /* Optional: just make scrollbar invisible */
}


/* Default anchor tag */
a {
    font-style: normal;
    font-weight: normal;
    text-decoration:none;
    cursor:pointer;
    display: flex;
    align-items: center;
    color: var(--text-colour);
}
a:hover{text-decoration:none}


/* main display area  */
.main {

  display: flex;
  flex-direction: column;
  margin: auto;
  width: 100%;
}

/*  Top menu bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;

  display: flex;
  align-items: center;
  flex-direction: row;
  overflow: hidden;
  background-color: white;
}

.navbar .logo {
    margin: 1em;
    width : 7em;
    height: auto;
    cursor: pointer;
}
.navbar .pat {
    width : auto;
    height: 3em;
}

.navbar a {
  padding: 1.3em 1em;
  text-decoration: none;
  font-size: 1.1em;
  
}
.navbar a:hover{
  text-decoration: none;
  color: var(--theme-colour);
}

.navbar .active {
  color: var(--theme-colour);
}



/* menu */

.navbar .menu {
  margin: 0;
  padding: 0;
  background-color: white;
  position: fixed;
  right:0;
  top: 8em;
  z-index: 2;
  width:100% !important;

  overflow: hidden;
  transition: transform 0.3s ease;

  clear: both;
  max-height: 0;
  transition: max-height .5s ease-out;
}

.navbar .menu a {
  display: block;
  padding: 20px 20px;
  text-decoration: none;
}


/* menu icon */
.navbar .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 20px 20px;
  position: relative;
  user-select: none;
}

.navbar .menu-icon .navicon {
  background: #333;
  display: none;
  height: 3px;
  position: relative;
  transition: background .2s ease-out;
  width: 24px;
}

.navbar .menu-icon .navicon:before,
.navbar .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.navbar .menu-icon .navicon:before {
  top: 8px;
}

.navbar .menu-icon .navicon:after {
  top: -8px;
}

/* menu btn */
.navbar .menu-btn {
  display: none;
}

.navbar .menu-btn:checked ~ .menu {
  max-height: 100%;
  display: block;
}

.navbar .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.navbar .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.navbar .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.navbar .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

/* 48em = 768px */

@media (max-width: 48em) {

  .navbar .menu {
    clear: none;
    float: right;
    max-height: none;
    width: fit-content;
    display: none;
  }

  .navbar .menu-btn:checked ~ .menu {
    max-height: 100%;
  }

  .navbar .menu-icon .navicon {
    display: block;
  }

  .navbar a {
    display: none;
  }
}


@media (max-width: 42em) {

 .navbar .logo {
    margin: .7em;
    width : 6em;
    height: auto;
  }
  .navbar .pat {
      width : auto;
      height: 3em;
  }

  .navbar .menu {
    top: 7em;
  }
}







.footer {
  display: flex;
  flex-direction: column;
  
}

.footer .links {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: var(--theme-tone1);
  padding: 1em 4em;
  padding-top:0;
}
.footer .links .heading {
  font-size: 1.1em;
  color: var(--theme-tone3);
  margin-top: 1em;
  margin-bottom: 0.6em;
}

.footer .links .text {
  color: rgb(118, 118, 118);
}

.footer .copyright {
  display: flex;
  align-items: center;
  flex-direction: row;
  background-color: var(--theme-tone2);
  font-size: 0.8em;
  padding: 1em 2em;
}

/* end top menu bar*/

.content-area {
  width:100%;
  padding: 2em;
  margin-top: 7em;
     
}

.show {
  display: block !important;
}
.hide{
  display: none;
}


.h_item {
  display: flex;
  flex-direction: row;
}

/* Smooth scrolling IF user doesn't have a preference due to motion sensitivities */
@media screen and (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}


.back-to-top-wrapper {
  display: none;
  position: fixed;
  right: 0.25rem;
  bottom: 0;
  width: 3em;
  z-index: 99999;
}

.back-to-top-wrapper a {
  width: 3rem;
  height: 3rem;
  background-color: var(--theme-tone2);
  text-align: center;
  border-radius: 10%;
  font-size: 2rem;
  display: inline-block;
  text-decoration: none;
  outline: none;
  overflow: hidden;
}


#cookie-bar {
  display: flex;
  align-items: center;
  flex-direction: row;
	color: #ffffff;
	min-height: 20px;
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	z-index: 999;
	padding:3px 20px 2px;
	background-color: var(--theme-deep-navy);
	text-align: center;
	font-size: 0.8em;
}

#cookie-bar a {
	color: #ffffff;
	text-decoration: underline;
}

button#cookieAccept {
	margin:0.5em;
	background:var(--theme-colour);
	border:none;
	color: #ffffff;
	padding:2px 12px;
	border-radius: 3px;
	cursor: pointer;
	font-size: 1em;
	font-weight: bold;
}