﻿/* LAYOUT */
/* COLORS */
/* FONT SIZES */
/* CONSTANTS */
/* CLASSES */
/* MIXINS */
/* GENERAL */
.layout-page {
  position: relative;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .layout-page {
    flex-direction: row;
  }
}

main {
  flex: 1;
  padding: 10px;
}
@media (max-width: 767px) {
  main {
    margin-top: 56px;
  }
}
@media (min-width: 768px) {
  main {
    margin-left: 250px;
    margin-top: 56px;
    overflow-x: hidden;
  }
}

/* TOP BAR */
.layout-top-row {
  position: fixed;
  background-color: #eee;
  height: 56px;
  width: 100vw;
}
.layout-top-row a {
  color: maroon;
  text-decoration: none;
}
.layout-top-row a:hover {
  color: maroon;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .layout-top-row {
    height: 56px;
    padding: 0px 20px 0px 10px;
  }
}
@media (min-width: 768px) {
  .layout-top-row {
    top: 0;
    z-index: 1;
    padding: 0px 20px;
  }
}

.layout-erin-logo {
  width: 45px;
}
@media (max-width: 767px) {
  .layout-erin-logo {
    display: none;
  }
}

.layout-top-search-bar {
  width: 300px;
}
@media (max-width: 767px) {
  .layout-top-search-bar {
    display: none;
  }
}

.layout-erin-header {
  font-size: 22px;
  color: maroon;
  text-decoration: none;
  margin-left: 15px;
}
.layout-erin-header:hover {
  color: maroon;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .layout-erin-header {
    display: none;
  }
}

/* NAV BAR */
.navbar-toggler {
  background-color: rgba(128, 0, 0, 0.8);
  background-image: url("../images/toggle-button.png");
  background-repeat: no-repeat;
  background-position: center;
  border: none;
}
@media (min-width: 768px) {
  .navbar-toggler {
    display: none;
  }
}

.nav-menu {
  overflow-y: scroll;
  position: fixed;
  background-color: #eee;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.nav-menu::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .nav-menu {
    width: 250px;
    height: calc(100vh - 56px);
    margin-top: 56px;
  }
}
@media (max-width: 767px) {
  .nav-menu {
    margin-top: 56px;
    top: 0;
    left: 0;
    border-width: 0 0 1px;
    width: 100vw;
    height: 100vh;
    background-color: #eee;
    padding-left: 10px;
    border-bottom: 1px solid lightgray;
    z-index: 10;
  }
  .nav-menu.hide-nav-menu {
    display: none;
  }
}

.nav-item-icon {
  width: 32px;
  font-size: 17px;
  vertical-align: text-top;
  top: -2px;
}

.nav-item {
  font-size: 14px;
  padding-bottom: 2px;
  margin: 0px 8px;
}
.nav-item :first-of-type {
  padding-top: 16px;
}
.nav-item :last-of-type {
  padding-bottom: 16px;
}
.nav-item a {
  color: #888;
  border-radius: 4px;
  height: 31px;
  display: flex;
  align-items: center;
  line-height: 48px;
}
.nav-item a.active {
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
}
.nav-item a:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
}

.nav-link {
  transition: unset; /* Undo bootstrap animation */
}

.nav-section-header {
  cursor: pointer;
}
.nav-section-header .nav-link {
  width: 100%;
}

.nav-menu-sub-section-container a {
  padding-left: 30px;
}

.nav-menu-mobile-top {
  height: 56px;
}
@media (min-width: 768px) {
  .nav-menu-mobile-top {
    display: none;
  }
}
