:root {
  --primary_color: #666;
  --primary_color_fg: #fff;

  --primary_color_app: #ddd;
  --primary_color_fg_app: #444;

  font-size: 16px;
}
html,body { height: 100%; }
body {
  background: #f3f4f6;
  padding: 0;
  font-size: 16px;
}
h1, .h1 {
  font-size: 1.5em;
}
h2, .h2 {
  font-size: 1.3em;
}
h3, .h3 {
  font-size: 1.1em;
}
#app_header {
  padding: 3px 0;
  height: 42px;
  line-height: 33px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 98;

  background-color: var(--primary_color_app);
  color: var(--primary_color_fg_app);
}
#app_footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 98;

  background-color: var(--primary_color_app);
  color: var(--primary_color_fg_app);
}
#app_header img {
  max-height: 30px;
  vertical-align: middle;
  display: inline-block;
}
#app_header .profile-photo {
  width: 26px;
  height: 26px;
}
#app_header a {
  color: var(--primary_color_fg_app) !important;
}

#app_guts {
  padding-top: 40px;
}
#app_guts.wfooter {
  padding-bottom: 70px;
}

#app_footer a {
  font-size: 1.5em;
  display: inline-block;
  margin: 0 8px;
  padding: 5px 15px;
  text-decoration: none;
  position: relative;
  border-top: 4px solid transparent;
  padding-bottom: 7px;
  color: var(--primary_color_fg_app);
}
#app_footer i {
  line-height: 1.3em;
}
#app_footer a div {
  font-size: 0.4em;
}
#app_footer.dark a + a:before {
  height: 50%;
  border-left: 1px solid var(--primary_color_fg_app);
  content: "";
  position: absolute;
  left: -9px;
  top: 25%;
  pointer-events: none;
}
#app_footer.dark a:hover, #app_footer.dark a.active {
  border-top: 4px solid var(--primary_color_fg_app);
}
#app_footer.light a + a:before {
  height: 50%;
  border-left: 1px solid var(--primary_color_fg_app);
  content: "";
  position: absolute;
  left: -9px;
  top: 25%;
  pointer-events: none;
}
#app_footer.light a:hover, #app_footer.light a.active {
  border-top: 4px solid var(--primary_color_fg_app);
}

#app_drawer .inner {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: -300px;
  background-color: #111;
  overflow-x: hidden;
  padding-top: 35px;
  transition: 0.5s;
  font-size: 16px;
  z-index: 99;
}
#app_drawer .overlay {
  left: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  position: fixed;
  z-index: 99;
}
#app_drawer .inner, #app_drawer .items a {
  width: 300px;
  max-width: 100%;
}
#app_drawer.open .overlay {
  left: 0;
}
#app_drawer.open .inner {
  right: 0;
}
#app_drawer .items {
  max-height: 85vh;
  overflow-y: auto;
}
#app_drawer, #app_drawer a {
  color: #fff;
}
#app_drawer a:hover, #app_drawer a:active, #app_drawer a:focus {
  text-decoration: none;
}
#app_drawer .items a.active, #app_drawer .items a:hover {
  background: rgba(255,255,255,0.3);
}
#app_drawer .items a {
  display: block;
  padding: 8px 10px;
}
#app_drawer .closebtn {
  position: absolute;
  top: 0;
  left: 5px;
  font-size: 24px;
}

.elem-banner {
  display: block;
  position: relative;
  width: 100%;
  max-height: 250px;
  overflow: hidden;
}
.elem-banner .bg_img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.elem-banner:after {
  content: "";
  display: block;
  padding-bottom: 56%;
}
.elem-banner:before {
  z-index: 2;
  background-color: rgba(0,0,0,0.4);
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%,rgba(0,0,0,0.3) 60%,rgba(0,0,0,0.65) 80%,rgba(0,0,0,0.65) 100%);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.elem-banner .inner {
  position: absolute;
  bottom: 3%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 3;
  color: #fff;
  font-size: 1.2em;
  text-shadow: 0 0 5px #000;
  padding: 0 20px;
}

.tile_boxes {
  padding-top: 20px;
}
.tile_boxes .tile {
  position: relative;
  border-radius: 5px;
  margin-bottom: 20px;
  overflow: hidden;
}
.tile_boxes .tile .bg_img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  border-radius: 5px;
}
.tile_boxes .tile, .tile_boxes .tile a {
  color: #fff;
}
.tile_boxes .tile:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.tile_boxes .tile:before {
  z-index: 2;
  background-color: rgba(0,0,0,0.4);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 5px;
}
.tile_boxes .tile .inner {
  position: absolute;
  text-align: center;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 3;
}

.indicated-link {
  position: relative;
  padding-right: 15px;
}
.indicated-link:after {
  content: "»";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}

.alert-dismissable .close, .alert-dismissible .close {
  right: 0;
}
