html, body {
  text-align: center;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  color: black;
  background-color: white;
}
html {
}

#gray {
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 800;
  width: 100%;
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
}
.no-scroll {
  overflow: hidden !important;
}
.overlay {
  z-index: 900 !important;
}
.center {
  text-align: center !important;
}
.invisible {
  display: none !important;
}
}
.visible {
  display: block !important;
}

.link:hover {
  cursor: pointer;
}
a[href="#"], a[href=""] {
  color: red !important;
}
@media screen and (max-width: 900px) {
  .invisible-900-down {
    display: none !important;
  }
}
@media screen and (min-width: 900px) {
  .invisible-900-up {
    display: none !important;
  }
}
@media screen and (min-width: 600px) and (max-width: 900px) {
  .invisible-600-to-900 {
    display: none !important;
  }
}
@media screen and (min-width: 600px) {
  .invisible-600-up {
    display: none !important;
  }
}
@media screen and (max-width: 600px) {
  .invisible-600-down {
    display: none !important;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

#container {
  /*position: absolute;/**/
  width: 100%;
  padding-top: 54px;
}



@media screen and (max-width: 600px) {
  .footer-flex {
    flex-direction: column;
    flex-wrap: wrap;
  }
}

#footer {
  width: 100%;
  background-color: rgb(48, 48, 48);
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1em;
  z-index: 149; /* under #gray overlay */
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 3em 2em;
  padding-bottom: 5em;
  color: white;
  box-sizing: border-box;
}
#footer a {
  color: white;
}
#footer a:hover {
  text-decoration: underline;
}
#footer .footer-flex {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: left;
}
#footer .footer-flex-item {
  margin: 0 1.5em;
  margin-bottom: 2em;
}
#footer .footer-flex-separator {
  flex-grow: 0;
  opacity: 0.3;
}
#footer .footer-heading {
  text-align: left;
  margin-bottom: 1em;
}
#footer ul.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer ul.footer-list li {
  padding: 0;
}
#footer ul.footer-list li a, #footer .small-text {
  color: rgb(230, 230, 230);
  font-size: 0.8em;
  font-weight: normal;
}
#footer ul.footer-social {
  list-style: none;
  margin: 0;
  margin-top: 0;
  padding: 0;
}
#footer ul.footer-social li {
  display: inline-block;
}
#footer ul.footer-social li img.social {
  width: 35px;
  margin: 0 0.3em 0.3em 0;
}


















#menu-top {
  width: 100%;
  background-color: rgb(48, 48, 48);
  text-align: center;
  position: fixed;
  /*top: 0;
  left: 0;/**/
  font-family: "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 1em;
  z-index: 149; /* under #gray overlay */
  display: flex;
  margin: 0;
  padding: 0;
  line-height: 0;
  height: 54px;
}
#menu-top .logo-size {
  height: 54px;
  width: 54px;
  display: inline-block;
}
#logo-top {
  background-image: url("/images/jperm-logo-44.png");
  background-position: 50% 50%;
  background-size: 40px 40px;
  background-repeat: no-repeat;
}
#burger-top {
  background-image: url("/images/burger.png");
  background-position: 50% 50%;
  background-size: 33px auto;
  background-repeat: no-repeat;
}
@media screen and (min-width: 900px) {
  #burger-top {
    visibility: hidden;
  }
}












@media screen and (max-width: 900px) {
  #menu-top-space {
    flex-grow: 1;
    line-height: normal;
    margin: auto 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.95);
  }
  #gray {
  }


  #m-nav {
    background-color: rgb(48, 48, 48);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    text-align: left;
    overflow-y: auto;
    height: 100%;
    width: 280px;
    max-width: 85%;
  }
  #m-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  #m-nav .navchild0 {
    background-color: rgb(48, 48, 48);
    font-weight: bold;
    font-size: 1.1em;
  }
  #m-nav .navchild0 li a {
    position: relative;
    display: block;
    color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8em 1.2em;
  }
  #m-nav .navchild0 li a:hover {
    background-color: rgb(70, 70, 70);
    color: white;
    cursor: pointer;
  }
  #m-nav .navchild1 {
    display: none;
    font-size: 0.9em;
    background-color: rgb(35, 35, 35);
  }
  #m-nav .navchild1 li a {
    padding-left: 2.5em;
  }
  #m-nav .navchild2 {
    display: none;
    font-size: 0.93em;
    background-color: rgb(10, 10, 10);
  }
  #m-nav .navchild2 li a {
    padding-left: 4em;
  }
  #m-nav .m-nav-arrow {
    height: 11%;
    width: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(-200%, -50%);
  }
  #m-nav .m-nav-arrow-down {
    transform: translate(-200%, -50%) rotate(180deg);
  }
  #m-nav .navchild1 .m-nav-arrow {
    transform: translate(-250%, -50%);
  }
  #m-nav .navchild1 .m-nav-arrow-down {
    transform: translate(-250%, -50%) rotate(180deg);
  }
}















@media screen and (min-width: 900px) {
  #menu-top-space {
    display: none;
  }
  #m-nav {
    display: none;
  }
  #t-nav {
    text-align: center;
    flex-grow: 1;
    flex-wrap: wrap;
    line-height: normal;
  }
  #t-nav .t-nav-arrow {
    height: 13%;
    width: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(-200%, -50%);
  }
  #t-nav ul {
    margin: 0;
    padding: 0;
  }
  #t-nav li {
    list-style-type: none;
    display: inline-block;
    text-align: center;
    position: relative;
  }
  #t-nav li a {
    display: block;
    padding: 1em 1.8em 1em 1.8em;
  }
  #t-nav li a, #t-nav li a:visited {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
  }
  #t-nav li a:hover {
    text-decoration: none;
    color: rgb(255, 255, 255);
    background-color: rgb(70, 70, 70);
    cursor: pointer;
  }
  #t-nav li a:not([href]):hover {
    cursor: default;
  }
  #t-nav ul.navchild0 {
    font-size: 1em;
  }
  #t-nav ul.navchild1 {
    display: none;
    background-color: rgb(35, 35, 35);
    position: absolute;
    text-align: center;
    width: 100%;
    z-index: 2;
    font-size: 0.85em;
  }
  #t-nav ul.navchild1 li {
    display: list-item;
  }
  #t-nav ul.navchild1 li a {
    padding: 1em;
  }
  #t-nav ul.navchild2 {
    display: none;
    background-color: green;
    position: absolute;
    top: 0;
    left: 100%;
    text-align: center;
    width: 120%;
    z-index: 1;
    white-space: nowrap;
  }
  #t-nav ul.navchild2 li {
    height: 100%;
  }
  #t-nav ul.navchild2 li a {
    padding: 0.5em 1em 0.5em 1em;
    background-color: rgb(10, 10, 10);
  }
  #t-nav ul.navchild2 li a:hover {
    background-color: rgb(70, 70, 70);
  }
}
