:root {
  --font-color: #333333;
  --font-contrast: #ececec;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f7;
  --bg-tertiary: #efefef;
  --bg-hover: #b0cbdc;
  --bg-hover-border: #8DB4CC;
  --bg-image: url('images/light_land_large.jpg');
  --max-width: 1200px;
  --footer-height: 60px;
}

[data-theme="dark"] {
  --font-color: #ececec;
  --font-contrast: #333333;
  --bg-primary: #090909;
  --bg-secondary: #292929;
  --bg-tertiary: #333333;
  --bg-hover: #033619;
  --bg-hover-border: #0b2a1a;
  --bg-image: url('images/dark_aurora_large.jpg');
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--font-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

#wrap {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a, a:link, a:visited {
  color: var(--font-color);
  text-decoration: none;
}

.meta_toggle {
  display: none;
}

.center {
  text-align: center;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column
}

.flex_wrap {
  flex-wrap: wrap;
  justify-content: center;
}

.flex_item.flex_wrap {
  flex-basis: calc(95% / 1);
  flex-grow: 0;
}

/*  */
#siteContent {
  width: 100%;
  background: var(--bg-primary);
}

#bodyContainer {
  flex: 1;
}

#footer {
  height: var(--footer-height);
}

.hero {
  background-image: var(--bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  margin: 0;
}

.welcome {
  position: relative;
  top: 10vh;
  margin: 0;
  font-size: 2.5rem;
}

i.welcome {
  width: 100%;
  text-align: center;
  position: relative;
  top: 25vh;
  animation: mirror 4s infinite;
}

#homeHero {
  background-position: center;
  height: 100vh;
}

#sectionHero {
  background-position: bottom;
  height: 45vh;
}

#sidebarNav {
  z-index: -1;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 200px;
}

#sidebarClose {
  position: fixed;
  width: calc(100% - 200px);
  height: 100%;
  z-index: -99;
}

#sideNavToggle {
  position: fixed;
  top: 5vw;
  right: 5vw;
  font-size: 1.6rem;
  z-index: 10;
}

.nav_show#sidebarNav {
  z-index: 10;
}

.nav_show#sidebarClose {
  z-index: 99;
  background: var(--bg-primary);
  opacity: 0.7;
}

.nav_show#siteContent,
.nav_show#homeHero,
.nav_show#sideNavToggle {
  transform: translate(-200px,0);
}

.layout_container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.content_container {
  /* max-width: 1200px; */
  /* padding-left: calc((100vw - var(--max-width)) / 2); */
  /* padding-right: calc((100vw - var(--max-width)) / 2); */
  padding-top: 20px;
  padding-bottom: 20px;
  margin: inherit;
}

.content_divide {
  max-width: var(--max-width);
  margin: 5px auto;
  border-bottom: thin solid var(--font-color);
}

.subnav {
  color: rgb(255, 255, 255);
  transition: 0.75s;
}

.subnav a {
  display: block;
  width: 100%;
  padding: 0 1rem;
}

a.menu_item {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.card {
  background-color: var(--bg-secondary);
  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.5);
}

.card:hover {
  background-color: var(--bg-tertiary);
  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.5), 0px 0px 5px 1px rgba(0,0,0,0.5);
}

#siteContent .card {
  margin: 10px 5px;
  padding: 10px;
  padding-top: 0px;
}

.card h3 {
  border-bottom: thin solid #000000;
}

#theme_toggle {
  display: none;
}

.contact_row {
  padding: 5px;
  align-items: stretch;
  display: flex;
  flex-direction: column;
}

.contact_label {
  padding-top: 0.75rem;
  flex-basis: 25%;
}

.contact_entry {
  flex-grow: 1;
  flex-basis: 75%;
}

#contact_submit {
  margin-left: auto;
}

/* Style inputs, select elements and textareas */
input[type=text], select, textarea{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  resize: vertical;
}

@media screen and (min-width: 900px) {
  .flex_item.flex_wrap {
    flex-basis: calc(95% / 2);
    flex-grow: 0;
  }

  .contact_row {
    width: 100%;
    padding: 5px 2rem;
    flex-direction: row;
  }
}

@media screen and (min-width: 1300px) {
  #sideNavToggle {
    display: none;
  }

  #bodyContainer {
    width: 100vw;
    display: flex;
    padding-left: calc((100vw - var(--max-width)) / 2);
    padding-right: calc((100vw - var(--max-width)) / 2);
  }

  #footer {
    padding-left: calc((100vw - var(--max-width)) / 2);
    padding-right: calc((100vw - var(--max-width)) / 2);
  }

  .label_toggle {
    cursor: pointer;
  }

  #sidebarNav {
    z-index: 1;
    display: inline-block;
    position: sticky;
    top: 0;
    right: auto;
    bottom: 0;
    padding-top: 1rem;
    height: 100%;
    width: calc((var(--max-width) / 5) - 2rem);
    margin-right: 2rem;
  }

  .layout_container {
    width: calc(4 * var(--max-width) / 5);
  }

  .subnav.nav_show {
    transition: 0s;
  }

  .menu_item {
    border-bottom: thick solid rgba(1,1,1,0);
  }

  .menu_item:hover {
    background-color: var(--bg-hover);
    border-bottom: thick solid var(--bg-hover-border);
  }
}

@keyframes mirror {
  0%, 30% {
    transform: rotateY(0deg);
  }
  15% {
    transform: rotateY(180deg);
  }
}

