﻿/* General styles ================================*/
@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 300;
	src: local('Lato Light'), local('Lato-Light'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/KT3KS9Aol4WfR6Vas8kNcg.woff) format('woff');
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 400;
	src: local('Lato Regular'), local('Lato-Regular'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/9k-RPmcnxYEPm8CNFsH2gg.woff) format('woff');
}

@font-face {
	font-family: 'Lato';
	font-style: normal;
	font-weight: 900;
	src: local('Lato Black'), local('Lato-Black'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/BVtM30trf7q_jfqYeHfjtA.woff) format('woff');
}

@font-face {
	font-family: 'Lato';
	font-style: italic;
	font-weight: 400;
	src: local('Lato Italic'), local('Lato-Italic'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/oUan5VrEkpzIazlUe5ieaA.woff) format('woff');
}

@font-face {
  font-family: "Corteq";
  src: url("../fonts/corteq.eot");
  src:
    url("../fonts/corteq.eot?#iefix") format("embedded-opentype"),
    url("../fonts/corteq.woff2") format("woff2"),
    url("../fonts/corteq.woff") format("woff"),
    url("../fonts/corteq.ttf") format("truetype"),
    url("../fonts/corteq.svg#Corteq") format("svg");
}

* {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Lato", sans-serif;
  font-weight: 400;
  background: #4d4d4d;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

a,
a:hover,
a:focus {
  text-decoration: none;
  outline: 0;
}

h1,
h2,
h3,
h5,
.h2,
.h3,
.h5,
.h6 {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 300;
}

h4,
.h4 {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-weight: 400;
  padding-top: 10px;
}

.logo-text {
  font-family: "Corteq", sans-serif;
  font-size: 47px;
  line-height: 1;
  display: inline-block;
  text-align: center;
  letter-spacing: 1px;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 -1px 0 rgba(0, 0, 0, 0.15);
}

/* mobile menu ==================================*/
.mobilemenu {
  position: fixed;
  top: 5px;
  left: 5px;
  right: 0;
  z-index: 1002;
  font-size: 30px;
  padding: 2px 10px;
  background: transparent;
  text-shadow: 2px 2px 2px #000000;
  display: block;
  width: 50px;
  height: 50px;
  color: #fff;
  display: none;
  text-align: center;
}

.mobilemenu:hover,
.mobilemenu:focus {
  color: #fff;
}

/* layout ====================================*/
#sidebar {
  position: fixed;
  width: 250px;
  background: #333333;
  top: 0;
  left: 0;

  /* force sidebar to the actual viewport height */
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;

  bottom: auto;
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

#sidebar:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

#sidebar-wrapper {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 1;
}

#sidebar-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;

  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Nav Bar ========================== */
#nav {
  position: relative;
  text-align: left;
  width: 100%;
  padding-bottom: 0;

  flex: 1 1 0;
  min-height: 0;
  height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

main {
  position: absolute;
  left: 250px;
  right: 0;
  top: 0;
  bottom: 0;
  background: #fefefe;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}

.page {
  position: absolute;
  top: 0;
  left: 2000px;
  bottom: 0;
  width: 85%;
  background-color: #f7f7f7;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
}

.home {
  left: 0px;
  z-index: 1;
  width: 100%;
}

#overlay {
  position: absolute;
  top: 0;
  left: 0px;
  bottom: 0;
  right: 0px;
  background-color: #000;
  opacity: 0.25;
  display: none;
  z-index: 300;
  cursor: crosshair;
  cursor: url(../img/pointer.png), auto;
}

.currentpage {
  -webkit-box-shadow: -2px 0 4px -2px rgba(0, 0, 0, 0.25);
  box-shadow: -2px 0 4px -2px rgba(0, 0, 0, 0.25);
}

/* sidebar ====================================*/
#profile {
  text-align: center;
  padding: 30px 10px;
  position: relative;
}

#profile .portrate {
  width: 200px;
  margin: 0 auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profile a,
#profile a:hover,
#profile a:focus,
#profile a:active {
  text-decoration: none;
}

ul#navigation {
  padding: 0;
  margin: 0;
  list-style: none;

  display: flex;
  flex-direction: column;
}

ul#navigation > li {
  display: block;
  float: none;
  clear: both;
  font-size: 18px;
  background: #303030;
  border-top: 1px solid #373737;
  border-bottom: 1px solid #2b2b2b;
  cursor: pointer;
  background-color: rgba(48, 48, 48, 0.6) !important;
  border-top: 1px solid rgba(43, 43, 43, 0.4) !important;
  border-bottom: 1px solid rgba(43, 43, 43, 0.4) !important;
}

ul#navigation > li > a {
  color: #ccc;
}

ul#navigation li:hover,
ul#navigation li:focus {
  background-color: rgba(54, 54, 54, 0.1) !important;
}

ul#navigation li:hover a,
ul#navigation li:focus a {
  color: #f7f7f7;
}

ul#navigation li.currentmenu {
  background: #363636;
  border-top: 1px solid #3d3d3d;
  border-bottom: 1px solid #252525;
}

ul#navigation li .text {
  padding-left: 5%;
  margin-left: 50px;
  line-height: 45px;
  -webkit-box-shadow: -3px 0 5px -4px #000;
  box-shadow: -3px 0 5px -4px #000;
}

ul#navigation li .fa {
  float: left;
  line-height: 45px;
  width: 50px;
  text-align: center;
  font-size: 27px;
}

footer {
  position: relative;
  bottom: auto;
  left: auto;
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
  background: #303030;
  border-top: 1px solid #373737;
  text-align: center;
  overflow: hidden;
  background-color: rgba(48, 48, 48, 0.6) !important;
  border-top: 1px solid rgba(43, 43, 43, 0.4) !important;
  z-index: 1;
}

.social-icons ul {
  padding: 10px 20px 0px 20px;
  margin: 0;
  list-style: none;
  text-align: center;
}

.social-icons li {
  padding: 5px;
  text-align: center;
  display: inline-block;
}

.social-icons a {
  color: #ccc;
}

.social-icons a:hover,
.social-icons a:focus {
  color: #fff;
}

.social-icons i {
  font-size: 20px;
}

#copyright {
  text-align: center;
  font-size: 0.7em;
  color: #8e8e8e;
  margin-bottom: 15px;
}

#copyright p {
  margin: 0;
}

/* Back-to-top button (structure/behaviour only — colour comes from theme CSS) */
#toTop{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;              /* stays above overlay (overlay z-index 300) */
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;

  /* Default hidden state (JS toggles via fadeIn/fadeOut, but this smooths it too) */
  display: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);

  /* Aesthetic polish */
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, filter 180ms ease;
}

/* When jQuery shows it, it will have display:block; this makes it animate nicely */
#toTop.is-visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

#toTop:hover,
#toTop:focus{
  outline: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(0,0,0,0.28);
  filter: brightness(1.06);
}

#toTop i{
  font-size: 18px;
  line-height: 46px;
}

@media (max-width: 600px){
  #toTop{
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
  #toTop i{ line-height: 42px; }
}

/* page specifics =================================*/
.page-container {
  position: relative;
}

.pageheader {
  background: #333;
  position: relative;
  padding: 60px 0 45px 0;
}

.headercontent .title {
  font-size: 50px;
  text-shadow: 2px 2px 4px #000000;
  margin-bottom: 25px;
  border-bottom: 1px solid #ccc;
  padding: 0 0 20px 0;
}
.headercontent .title.noborder {
  border: none;
}
.headercontent .subtitle {
  border-bottom: 1px solid #ccc;
  margin: 0 0 10px 0;
  padding: 5px 0;
}

.headercontent .subtitle h3 {
  margin: 0;
  padding: 0;
}

.page .section {
  padding: 70px 0;
  position: relative;
}

.section-container {
  padding: 0 10%;
}

.color-1 {
  background: #fcfcfc;
}

.color-2 {
  background: #f7f7f7;
}

.color-3 {
  background: #2c2c2d;
  color: #fff;
}

.color-4 {
  background: #000;
}

.color-5 {
  color: #fff;
}

.section .title {
  border-bottom: 1px solid #ccc;
  margin: 0 0 30px 0;
  padding: 20px 0;
}

.section .title h3 {
  padding: 0;
  margin: 0;
  font-size: 26px;
}

/*  uls ====================================*/
.ul-bolded li {
  font-weight: bold;
}

.ul-boxed li {
  padding: 7px;
  background-color: #fdfdfd;
  margin-bottom: 10px;
  -webkit-box-shadow: 0px 3px 3px -3px #ccc;
  box-shadow: 0px 3px 3px -3px #ccc;
  border-radius: 2px;
  border-left: 5px solid;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* media queries ====================================*/

@media (max-width: 991px) {
  .mobilemenu {
    display: block;
  }

  #nav {
    z-index: 0;
  }

  .page {
    width: 100% !important;
    left: 0 !important;
    padding: 0;
  }

  .section-container {
    padding-left: 3%;
    padding-right: 3%;
  }

  main {
    left: 0;
  }

  .mainline {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0px 20px 5px 20px;
    font-family: "Corteq";
    font-size: 50px;
    color: #af473c;
    text-shadow: 2px 2px 2px #000000;
  }

  .headercontent .title {
    font-size: 30px;
  }

  /* #message {
    padding-top: 20px;
  }*/

  /* Mobile / hamburger layout:
     keep nav at top, logo above footer */
  #profile {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 120px;
    padding: 0;
    margin: 0;
    text-align: center;
    z-index: 2;
  }

  #profile .portrate {
    width: auto;
    height: auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-text {
    font-size: 47px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* Height tuning */
@media (max-height: 720px) {
  :root {
    --home-bottom: clamp(18px, 5vh, 60px);
  }
}

@media (min-height: 1000px) {
  :root {
    --home-bottom: clamp(40px, 8vh, 120px);
  }
}

/* Mobile: pages go full-width, sidebar hidden */
@media (max-width: 991px) {
  :root {
    --home-stop-x: 12px;
    --home-maxw: none;
    --home-bottom: 18px;
  }
  .home .pageheader .home-anchor {
    right: 12px;
  }
  .home .pageheader .home-anchor p {
    max-width: none;
  }

  #nav {
    padding-top: 100px;
    order: 1;
  }

  footer {
    order: 3;
  }

  .logo-text {
    font-size: 47px;
    line-height: 1;
    white-space: nowrap;
  }  
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home .pageheader .home-anchor .home-copy {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Mid-size devices: stop #nav being a forced scroll container */
@media (max-width: 1100px) and (min-width: 601px) {
  #nav {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-overflow-scrolling: auto;
  }

  footer {
    margin-top: auto;
  }
}

/* Mid-size devices with visible sidebar:
   page must sit flush to the sidebar AND fill the remaining width */
@media (max-width: 1100px) and (min-width: 992px) {
  .page {
    width: 100% !important;
  }
}

