@import url(https://fonts.googleapis.com/css?family=Arimo:400,400italic,700,700italic);

body, html {
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: 'Arimo', sans-serif;
}

body {
  min-height: 100vh;
}

body, .flex-container {
  padding: 0;
  margin: 0;
}

main {
  z-index: 2;
  position: relative;
  padding: 66px;
  margin: 0;  /* min-height: 100vh; */
  -webkit-transition: transform .7s ease-in-out;
  -moz-transition: transform .7s ease-in-out;
  -ms-transition: transform .7s ease-in-out;
  -o-transition: transform .7s ease-in-out;
  transition: transform .7s ease-in-out;
}

/* POPUP OPEN */

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 200ms;
  visibility: hidden;
  opacity: 0;
}
.overlay.light {
  background: rgba(255, 255, 255, 0.5);
}
.overlay .cancel {
  position: absolute;
  width: 100%;
  height: 100%;
  cursor: default;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 75px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #666;
  width: 300px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
}
.light .popup {
  border-color: #aaa;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.popup h2 {
  margin-top: 0;
  color: #666;
}
.popup .close {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 20px;
  right: 20px;
  opacity: 0.8;
  transition: all 200ms;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #666;
}
.popup .close:hover {
  opacity: 1;
}
.popup .content {
  max-height: 400px;
  overflow: auto;
}
.popup p {
  margin: 0 0 1em;
}
.popup p:last-child {
  margin: 0;
}

/* https://codepen.io/argyleink/pen/xxGPrmq  */

.search {
  --btn-border-radius: 10ch;
  padding-left: 2ch;
  padding-right: 2ch;
  min-height: 4ch;
}

.combo-box {
  margin: 0.5ch;
  display: inline-flex
}

.combo-box > .kbb:first-child {
    border-right: 0; /* bug in postcss: border-inline-end wont work */
    border-radius: .5ch 0 0 .5ch;
  }

.combo-box > .kbb:last-child {
    border-radius: 0 .5ch .5ch 0;
  }

.combo-box > .kbb:hover, .combo-box > .kbb:focus {
    -webkit-animation: none;
            animation: none;
  }

.kbb {
  --btn-hue: 0;
  --btn-saturation: 0%;
  --btn-lightness: 75%;
  --btn-bg-lightness: 100%;
  
  --btn-color: hsl(var(--btn-hue) var(--btn-saturation) var(--btn-lightness));
  --btn-color-active: hsl(var(--btn-hue) var(--btn-saturation) calc(var(--btn-lightness) - 20%));
  --btn-border-radius: .5ch;
  
  --btn-bg: hsl(var(--btn-hue) var(--btn-saturation) var(--btn-bg-lightness));
  --btn-text: hsl(var(--btn-hue) var(--btn-saturation) calc(var(--btn-lightness) - 40%));
  
  --btn-icon-color: var(--btn-color);
  
  position: relative;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  
  display: inline-flex;
  align-items: center;
  grid-gap: 1ch;
  gap: 1ch;
  
  background: var(--btn-bg);
  color: var(--btn-text);
  
  border: 1px solid var(--btn-color);
  border-radius: var(--btn-border-radius);
  box-shadow: 0 2px 0 0 var(--btn-color);
  
  min-height: 4ch;
  padding-left: 1ch;
  padding-right: 1ch;
  
  font-size: 1rem;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  font-weight: normal;
  line-height: 1.1
}

.kbb:hover, .kbb:focus {
    border-color: var(--btn-color-active);
    --btn-icon-color: var(--btn-color-active);
    top: 1px;
    box-shadow: 0 1px 0 0 var(--btn-color);
    outline: none;
  }

.kbb:active {
    top: 2px;
    box-shadow: 0 0 0 0 var(--btn-color);
  }

.kbb {
  
  transition: transform .2s ease
}

.kbb:focus {
    -webkit-animation:
      glow 2s ease-in-out infinite,
      float 2s ease-in-out infinite;
            animation:
      glow 2s ease-in-out infinite,
      float 2s ease-in-out infinite
  }

.kbb:focus > svg {
      -webkit-animation: glow 2s ease-in-out infinite;
              animation: glow 2s ease-in-out infinite;
    }

.kbb > svg {
    width: 2.5ch;
    fill: var(--btn-icon-color);
  }

@-webkit-keyframes glow {
  50% {
    border-color: var(--btn-color);
    fill: var(--btn-color);
  }
}

@keyframes glow {
  50% {
    border-color: var(--btn-color);
    fill: var(--btn-color);
  }
}

@-webkit-keyframes float {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes float {
  50% {
    transform: translateY(-5px);
  }
}

/* POPUP CLOSE */

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --size: 66px;
  --line: #e6eef9;
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size))
  50% 50% / var(--size) var(--size), linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
  var(--size) var(--size);
  mask: linear-gradient(-15deg, transparent 30%, white);
  border-right: var(--line) 1px solid;
  z-index: -1;
}

.sidebar {
  height: 100%;
  width: 240px;
  position: fixed;
  top: 0;
  z-index: 1;
  right: 0;
}

.bar {
  display: block;
  height: 5px;
  width: 50px;
  background-color: #e9ecf4;
  margin: 10px auto;
}

.button {
  cursor: pointer;
  display: inline-block;
  width: auto;
  margin: 0 auto;
  -webkit-transition: all .7s ease;
  -moz-transition: all .7s ease;
  -ms-transition: all .7s ease;
  -o-transition: all .7s ease;
  transition: all .7s ease;
}

.nav-right {
  position: absolute;
  right: 40px;
  top: 20px;
}

.middle {
  margin: 0 auto;
}

.bar {
  -webkit-transition: all .7s ease;
  -moz-transition: all .7s ease;
  -ms-transition: all .7s ease;
  -o-transition: all .7s ease;
  transition: all .7s ease;
}

.button.active .top {
  -webkit-transform: translateY(15px) rotateZ(45deg);
  -moz-transform: translateY(15px) rotateZ(45deg);
  -ms-transform: translateY(15px) rotateZ(45deg);
  -o-transform: translateY(15px) rotateZ(45deg);
  transform: translateY(15px) rotateZ(45deg);
}

.button.active .bottom {
  -webkit-transform: translateY(-15px) rotateZ(-45deg);
  -moz-transform: translateY(-15px) rotateZ(-45deg);
  -ms-transform: translateY(-15px) rotateZ(-45deg);
  -o-transform: translateY(-15px) rotateZ(-45deg);
  transform: translateY(-15px) rotateZ(-45deg);
}

.button.active .middle {
  width: 0;
}

.move-to-left {
  -webkit-transform: translateX(-240px);
  -moz-transform: translateX(-240px);
  -ms-transform: translateX(-240px);
  -o-transform: translateX(-240px);
  transform: translateX(-240px);
}

nav {
  padding-top: 30px;
}

.sidebar-list {
  padding: 0;
  margin: 0;
  list-style: none;
  position: relative;
  margin-top: 99px;
  text-align: center;
}

.sidebar-item {
  margin: 30px 0;
  opacity: 0;
  -webkit-transform: translateY(-20px);
  -moz-transform: translateY(-20px);
  -ms-transform: translateY(-20px);
  -o-transform: translateY(-20px);
  transform: translateY(-20px);
}

.sidebar-item:first-child {
  -webkit-transition: all .7s .2s ease-in-out;
  -moz-transition: all .7s .2s ease-in-out;
  -ms-transition: all .7s .2s ease-in-out;
  -o-transition: all .7s .2s ease-in-out;
  transition: all .7s .2s ease-in-out;
}

.sidebar-item:nth-child(2) {
  -webkit-transition: all .7s .4s ease-in-out;
  -moz-transition: all .7s .4s ease-in-out;
  -ms-transition: all .7s .4s ease-in-out;
  -o-transition: all .7s .4s ease-in-out;
  transition: all .7s .4s ease-in-out;
}

.sidebar-item:nth-child(3) {
  -webkit-transition: all .7s .6s ease-in-out;
  -moz-transition: all .7s .6s ease-in-out;
  -ms-transition: all .7s .6s ease-in-out;
  -o-transition: all .7s .6s ease-in-out;
  transition: all .7s .6s ease-in-out;
}

.sidebar-item:last-child {
  -webkit-transition: all .7s .8s ease-in-out;
  -moz-transition: all .7s .8s ease-in-out;
  -ms-transition: all .7s .8s ease-in-out;
  -o-transition: all .7s .8s ease-in-out;
  transition: all .7s .6s ease-in-out;
}

.sidebar-item.active {
  opacity: 1;
  -webkit-transform: translateY(0px);
  -moz-transform: translateY(0px);
  -ms-transform: translateY(0px);
  -o-transform: translateY(0px);
  transform: translateY(0px);
}

.sidebar-anchor {
  color: #5f5f64;
  text-decoration: none;
  font-size: 25px;
  position: relative;
  padding: 0.25rem;
  font-weight: 500;
}

.sidebar-anchor:hover {
  color: #000;
}

.sidebar-anchor:before {
  content: "";
  width: 0;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: #58c2a9;
  -webkit-transition: all .7s ease-in-out;
  -moz-transition: all .7s ease-in-out;
  -ms-transition: all .7s ease-in-out;
  -o-transition: all .7s ease-in-out;
  transition: all .7s ease-in-out;
}

.sidebar-anchor:hover:before {
  width: 100%;
}

.ua {
  position: absolute;
  bottom: 20px;
  left: 30px;
}

.fa {
  font-size: 1.4em;
  color: #EF8354;
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.ua:hover .fa {
  color: #FFF;
  -webkit-transform: scale(1.3);
  -moz-transform: scale(1.3);
  -ms-transform: scale(1.3);
  -o-transform: scale(1.3);
  transform: scale(1.3);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  transition: all 1s ease;
}

.page-content .header {
  font-size: 26px;
  color: #7d7d7d;
  margin-top: 30px;
}

.flex-container {
  list-style: none;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.flex-item {
  padding: 0px;
  margin: 11px;
  width: 129px;
  height: 129px;
  color: #262a2d;
  text-align: center;
}

a {
  text-decoration: none !important;
}

.sb-icon, .sb-icon-l {
  position: relative;
  display: block;
}

.sb-icon {
  margin: 15px auto 10px auto;
  height: 66px;
}

.sb-icon-l {
  margin: 3px auto 0 auto;
  height: 88px;
}

.sb-icon:hover, .sb-icon-l:hover {
  cursor: pointer;
}

img.sb-icon {
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

img.sb-icon:hover {
  transform: scale(1.1);
}

.sb-title-text {
  display: block;
  position: relative;
  font-size: 21px;
  text-shadow: 0 2px 2px #c8d0e7;
}

@media (min-width:480px) {
  .nav-list {
    display: block;
  }

}

@media screen and (max-width:600px) {
  .gradient {
    padding: 33px 0;
  }

  .flex-item {
    width: 99px;
    height: 99px;
    margin: auto 6px 36px 6px;
  }

  .sb-icon {
    height: 77px;
  }

  .sb-icon-l {
    height: 99px;
  }

}
