body {
  font: 16px 'Open Sans', sans-serif;
  line-height: normal;
  color: #333333;
}
#header,
#footer,
#main {
  max-width: 960px;
  margin: 0 auto;
}
#header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
#header .logo {
  max-width: 198px;
  flex-basis: 30%;
}
#header .logo img {
  max-width: 100%;
}
#header .about {
  max-width: 400px;
  flex-basis: 50%;
}
#header .apps {
  text-align: center;
}
#header .apps .icons {
  display: flex;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  align-items: center;
}
#header .col {
  flex-basis: 20%;
}
.searchBox input[type="text"] {
  display: inline-block;
  width: 200px;
}
.searchBox input[type="submit"] {
  right: 15px;
  width: 5%;
}
.search .searchBox input[type="submit"] {
  border: 0;
  background: white url(/img/icon-search.svg) no-repeat 50%;
  color: transparent;
  cursor: pointer;
  outline: none;
  display: inline-block;
  width: 24px;
  box-shadow: none;
  margin-left: 5px;
}
#main {
  margin-top: 3em;
}
#main:after {
  content: "";
  display: block;
  clear: both;
}
.message {
  margin: 0 0 2em 0;
  border-radius: 6px;
  border: 0px solid #cccccc;
  background-color: #f9fafb;
  padding: 20px 20px;
  display: flex;
  flex-wrap: wrap;
  /*    height: 100%;*/

}
.message .col1 {
  width: 12%;
}
.message .col2 {
  width: 88%;
}
.message .date {
  padding-right: 15px;
}
.message .title {
  margin: 0.7em 0 0.2em 0;
  font-size: 20px;
  color: #7fbf26;
}
.message-hidden {
  background-color: #b9b9b9;
}
/** for fields labels **/

.text-base {
  line-height: 1;
  margin: 0;
  height: 20px;
  padding: 5px 8px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  transition: all .3s;
}
.text-base:focus {
  border: 1px solid #7fbf26;
  outline: 0;
}
.text-field {
  position: relative;
}
.text-field input,
.text-field textarea {
  display: inline-block;
  padding: 10px;
  font-size: 14px;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  height: auto;
  line-height: 20px;
}
.text-field span {
  color: #aaaaaa;
  position: absolute;
  pointer-events: none;
  left: 10px;
  top: 23px;
  transition: 0.3s;
}
.text-field input:focus + span,
.text-field input:not(:placeholder-shown) + span,
.text-field textarea:focus + span,
.text-field textarea:not(:placeholder-shown) + span {
  top: 2px;
  left: 10px;
  font-size: small;
  background-color: white;
  padding: 0 5px 0 5px;
}
.w100p {
  width: 100%;
  margin: 10px 0;
}
.w100p textarea {
  height: 120px;
}
.submit-button {
  padding: 15px 20px;
  background: #7fbf26;
  color: white;
  border: 0 none;
  cursor: pointer;
  border-radius: 6px;
  float: right;
  font-size: 18px;
}
/** /for fields **/

form .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /*    height: 100%;*/

}
form .row .text-field-wrapper {
  flex-basis: 20%;
  padding: 0px;
}
#footer {
  margin-top: 2em;
}
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3em;
}
.pagination {
  list-style-type: none;
  padding: 10px 0;
  display: inline-flex;
  justify-content: space-between;
  box-sizing: border-box;
}
.pagination li {
  box-sizing: border-box;
  padding-right: 10px;
}
.pagination li a {
  box-sizing: border-box;
  background-color: #e2e6e6;
  padding: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #616872;
  border-radius: 4px;
}
.pagination li a:hover {
  background-color: #d4dada;
}
.pagination .next a,
.pagination .prev a {
  text-transform: uppercase;
  font-size: 14px;
}
.pagination .currentpage a {
  background-color: #7fbf26;
  color: white;
}
.pagination .currentpage a:hover {
  background-color: #7fbf26;
}
h3 {
  margin: 0.7em 0 0.2em 0;
  font-size: 26px;
  color: #7fbf26;
}
.text-field-login {
  margin-bottom: 15px;
}
.text-field-login span {
  display: inline-block;
  width: 70px;
}
.login-error {
  color: red;
  margin: 10px 0 20px 0;
}
.userinfo p {
  color: red !important;
  font-size: 12px;
}
.userinfo p a {
  color: red !important;
}
.admin p a {
  color: red !important;
  font-size: 12px;
}
.admin-link {
  font-size: 12px;
  margin: 1em 0 2em 0;
}
.admin-link a {
  color: #333333;
}
@media screen and (max-width: 768px) {
  #header .about {
    flex-basis: auto;
  }
  #header .apps {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
  }
  #header .col {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-basis: 100%;
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    justify-content: space-between;
    align-items: center;
  }
}
@media screen and (max-width: 768px) {
  #header {
    flex-direction: column;
    align-items: center;
  }
  #header > * {
    flex-basis: auto;
    -webkit-flex-basis: auto;
    -ms-flex-preferred-size: auto;
  }
  #header .col {
    flex-direction: column;
  }
  .message {
    flex-direction: column;
  }
  .message .col1 {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
  }
  .message .col1 .date {
    margin-bottom: 10px;
  }
  .message .col1 .admin {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
  }
  .message .col1 .admin p {
    margin: 0 10px 10px;
  }
  form .row .text-field-wrapper {
    flex-basis: 45%;
  }
}
@media screen and (max-width: 640px) {
  #header .logo {
    max-width: 150px;
  }
  #header .about {
    max-width: 280px;
  }
  #header .searchBox {
    max-width: 240px;
    margin: 0 auto;
  }
  #header .apps {
    flex-direction: column;
  }
  #header .apps .icons {
    justify-content: center;
  }
}
