@charset "UTF-8";
/*
# Copyright (C) Konsoll 2021
# Renewed by Kei Ishizaki
# with respect to Steffen Øie and Robin G. Aaberg

  Color Codes:
  ------------------
  White: #eeeeee
  Black: #231c1e
  Dark Gray: #4a4648
  Light Gray: #aeacad
  Red: #ff6347
  Light Red: #fea898
*/

/* =====  GLOBAL NAVIGATION  =========================== */

/* global nav */

#nav-global {
  max-width: none;
  margin-top: 0;
  padding: 0.4rem 0;
  background: #4a4648;
  box-shadow: 0 1rem 1.25rem 0 rgba(0,0,0,0.05) inset;
  border-bottom: 1px solid #6e6c6d;
}

#nav-global ul {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
}

#nav-global li {
  margin: 0.25rem 0 0 0;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  white-space: nowrap;
  position: relative;
}

#nav-global li:after{
  content: " ";
  position: absolute;
  bottom: -0.525rem;
  left: 50%;
  width: 0;
  height: 0.2rem;
  background-color: #eeeeee;
  transition: 0.5s;
}

#nav-global .activeMenuItem:after {
  left: calc(50% - 0.5rem);
  width: 1rem;
  height: 0.2rem;
  transition: 0.5s;
}

#nav-global ul li:hover:after {
  left: 0;
  width: 100%;
  height: 0.1rem;
  background-color: #ff6347;
  transition: 0.5s;
}

#nav-global .nav-logo {
  width: auto;
  height: 1rem;
  top: -0.09rem;
  opacity: 0.8;
  vertical-align: middle;
  margin-right: 0.25rem;
  position: relative;
}

#nav-global ul{
  list-style: none;
}

/* hide hamburger icon on pc */
.humberger-icon, #humberger-check {
  display: none;
}

/* ----  GLOBAL NAVIGATION (MOBILE)  ---------------------------- */

@media screen and (max-width: 480px) {

  /* make global nav full-screen */
  #nav-global {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0.5rem;
    z-index: 110;

    background-color: rgb(35, 28, 30, 0.0);
    font-weight: 400;
    vertical-align: middle;
    transition: 0.25s;
  }

  /* align menu items vertically */
  #nav-global ul {
    flex-direction: column;
  }

  /* adjust logo */
  #nav-global .nav-logo {
    width: auto;
    height: 1.2rem;
    vertical-align: middle;
    opacity: 0.95;
    top: 0;
  }

  /* hide hilighting bars */
  #nav-global li:after{
    display: none;
  }

  /* adjust menu item looks */
  #nav-global ul {
    margin: 1rem 1rem;
  }
  #nav-global a li {
    font-size: 1.25rem;
    line-height: normal;
    padding: 1rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid #4a4648;
  }
  #nav-global ul li {
    color: #eeeeee;
  }

  /* hamburger icon */
  .humberger-icon {
    z-index: 120;
    position: fixed;
    top: 0.15rem;
    right: 0.5rem;
    height: 45px;
    width: 45px;

    display: flex;
    justify-content: center;
    align-items: center;

    background-color: rgb(0, 0, 0, 0.0);
  }

  /* bars in humburger icon */
  .humberger-icon span,
  .humberger-icon span:before,
  .humberger-icon span:after { /* all bars */
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: rgb(238, 238, 238, 0.5);
    position: absolute;
    box-shadow: 0 0.15rem 0.25rem 0 rgba(0,0,0,0.4);
    transition: 0.15s ease;
  }
  .humberger-icon span:before { /* top bar */
    bottom: 8px;
  }
  .humberger-icon span:after { /* bottom bar */
    top: 8px;
  }

  /* animate humburger icon on click */
  #humberger-check:checked ~ .humberger-icon span { /* middle bar */
      background-color: rgba(255, 255, 255, 0.0);
  }
  #humberger-check:checked ~ .humberger-icon span::before { /* top bar */
      bottom: 0;
      background-color: rgb(238, 238, 238, 1.0);
      transform: rotate(45deg);
      box-shadow: none;
  }
  #humberger-check:checked ~ .humberger-icon span::after { /* bottom bar */
      top: 0;
      background-color: rgb(238, 238, 238, 1.0);
      transform: rotate(-45deg);
      box-shadow: none;
  }

  /* show menu on click */
  #humberger-check:checked ~ #nav-global {
    top: 0;
    background-color: rgb(35, 28, 30, 0.95);
  }

}

/* =====  LOCAL NAVIGATION  =========================== */

/* local nav */
#nav-local {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  max-width: none;

  margin: 1rem auto 0 auto;
  padding: 0;

  background-color: #231c1e;
  opacity: 0.8;
  /* border: 1px solid #ff0000; */
}

.nav-local-inner{
  width: 100%;
  max-width: 960px;

  margin: 0 auto;
  padding: 0 1rem 0.2rem 1rem;
  border-bottom: 1px solid #4a4648;

  display: table;
}

.nav-local-title {
  display: table-cell;
}

#nav-local h1 {
  font-size: 1.5rem;
}

.nav-local-links {
  display: table-cell;
  text-align: right;
}

.nav-local-links li {
  display: inline;
  list-style: none;
  margin-left: 1.5rem;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-local-active {
  font-weight: 600;
  color: #eeeeee;
}

#nav-local li {
  position: relative;
}

#nav-local li:after{
  content: " ";
  position: absolute;
  bottom: -5px;
  left: 50%;
  content: " ";
  width: 0;
  height: 4px;
  background-color: #aeacad;
  transition: 0.5s;
}

#nav-local .activeMenuItem:after {
  left: calc(50% - 10px);
  width: 14px;
  transition: 0.5s;
}

#nav-local ul li:hover:after {
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6347;
  transition: 0.5s;
}

#nav-local ul {
  list-style: none;
}


/* ----  LOCAL NAVIGATION (MOBILE)  ---------------------------- */

@media screen and (max-width: 480px) {

  /* split into separete rows */
  #nav-local .nav-local-title h1 {
    display: table-row;
  }
  #nav-local .nav-local-links {
    display: table-row;
    text-align: left;
  }

  /* hide hilighting bars */
  #nav-local li:after{
    display: none;
  }

  /* adjust spacing */
  #nav-local {
    margin-top: 0;
    padding: 0.5rem 0 0 0;
    /* border-bottom: 1px solid #4a4648; */
  }
  #nav-local .nav-local-links li {
    margin-left: 0;
    margin-right: 0.5rem;
    /* giving margin not to the left but right, so the second row is also alined to the left edge */
  }
  #nav-local .nav-local-links li:last-child {
    margin-right: 0;
  }
  .nav-local-inner{
    margin-bottom: 0.15rem;
  }

  /* move border over */
  #nav-local {
    border-bottom: 1px solid #4a4648;
  }
  .nav-local-inner{
    border-bottom: none;
  }

}
