/*
17.01.2024
LIB mobile framework
-relies on app/helpers/lib_mobile_framework_helper.rb
*/

body {
  font-family: "Helvetica", "Arial", sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

h1 {
  margin: 0;
  text-align: center;
  color: white;
  font-size: 150%;
  padding: 5px;
}

#header {
  background: #1d1d1d;
  clear: left;
}

#header a:link {
  text-decoration:none;
}

#header-home-link {
  right: 0;
  position: absolute;
  padding: 19px 11px;
}

#footer {
  background: #1b1b1b;
  display: flex;
}

.footer-item {
  flex: 1;
  color: white;
  text-align: center;
  font-weight: bold;
  border: 1px solid black;
  box-sizing: border-box;
}

.footer-item a {
  color: inherit;
  text-decoration: none;
  padding: 5px;
  display: block;
}

.navbar {
  display: flex;
}

.navbar div {
  flex: 1;
  text-align: center;
  font-weight: bold;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  box-sizing: border-box;
}

.navbar div a.active {
  color: white;
  background: #3388cc;
}

.navbar div a {
  color: inherit;
  text-decoration: none;
  padding: 5px;
  display: block;
}

.subtitle {
  color: white;
  font-weight: bold;
  background: #003366;
  text-align:center;
}

.listview {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listview li {
  position: relative;
  border-top: 1px solid #ddd;
}

.listview li a {
  color: inherit;
  font-weight: bold;
  font-size: 110%;
  padding: 10px;
  text-decoration: none;
  display: block;
}

.listview li.text {
  padding: 10px;
}

.listview li span.box-right {
  float: right;
  margin-right: 2px;
  margin-top: 2px;
  font-size: 80%;
  background: #e9e9e9;
  padding: 0.05em 0.4em;
  border: 1px solid #ddd;
}

.list-header {
  font-weight: bold;
  font-size: 110%;
  padding: 10px;
  background: #e9e9e9;
}

.list-divider {
  padding: 8px;
  background: #e9e9e9;
}

.listview-image {
  padding: 10px;
}

.listview-image-list {
  position: relative;
}

.listview-image-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  pointer-events: none;
}

.copyright {
  color: gray;
  font-size: 70%;
  font-weight: normal;
  padding: 10px;
}

.text-area {
  padding: 10px;
}

.alert-box {
  background-color: #F2DEDE;
  border: 1px solid #EED3D7;
  border-radius: 4px 4px 4px 4px;
  color: #B94A48;
  margin-bottom: 22px;
  padding: 8px 35px 8px 14px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.area-right {
  position: absolute;
  top: 10px;
  right: 10px;
}

.content-right {
  display: inline-block;
  float: right;
  margin-right: 10px;
  margin-top: 2px;
}

.arrow-right {
  display: inline-block;
  float: right;
  width: 0.8em;
  height: 0.8em;
  border-radius: 100%;
  margin-left: 10px;
}

.arrow-gray {
  background-color: lightgray;
  border: 0.3em solid lightgray;
}

.arrow-black {
  background-color: black;
  border: 0.3em solid black;
}

.arrow-right:after {
  content: '';
  display: inline-block;
  margin-bottom: 0.3em;
  width: 0.5em;
  height: 0.5em;
  border-top: 0.2em solid white;
  border-right: 0.2em solid white;
  -moz-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* Home icon based on http://nicolasgallagher.com/pure-css-gui-icons/demo/ */

.icon-home:before,
.icon-home:after {
  content:"";
  position:absolute;
  margin:-8px 0 0;
  background: white;
}

.icon-home:before {
  left:1px;
  border-style:solid;
  border-color:transparent;
  border-width:8px 7px;
  border-bottom-color: white;
  margin-top:-16px;
  background:transparent;
}

.icon-home:after {
  left:3px;
  width:2px;
  height:4px;
  border-style:solid;
  border-color:white white transparent;
  border-width:3px 4px 0;
  margin-top:0;
  background:transparent;
}