/*
Theme Name: CCC Custom Theme
Theme URI:
Description: Your Theme Description
Version: 1.0
Author: Ian Ball
Author URI: http://www.avonandsomerset.police.uk
*/

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, sans-serif;
  padding: 0 0 2em 0;
  margin: 0;
  color: #333;
}

div,
nav {
  overflow: auto;
  overflow: hidden;
}

h2,
h3 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1em 0;
  line-height: 1.5em;
}

a img {
  border: none;
}
a {
  color: #00a3cc;
  text-decoration: none;
}
a:hover {
  color: #58cae6;
  text-decoration: underline;
}

header a {
  color: #fff;
}
header a:hover {
  color: #00a3cc;
  text-decoration: none;
}

.Wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.ColumnHalf {
  width: 50%;
  float: left;
}
.Row {
  margin-bottom: 5px;
}
header {
  background-color: #222;
  color: #fff;
  padding: 5px;
  font-size: 1.2em;
  margin-bottom: 1em;
  text-align: center;
}

.Btn {
  background-color: rgba(51, 51, 51, 1);
  color: rgba(255, 255, 255, 0.9);
  padding: 9px;
  display: inline-block;
  font-family: inherit;
  font-size: inherit;
  border: none;
  cursor: pointer;
  margin: 0;
}
.Btn:hover {
  background-color: rgba(115, 115, 115, 1);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none !important;
}

label {
  background-color: #fcc;
  font-weight: bold;
  display: block;
  background-color: #333;
  color: #fff;
  padding: 10px;
  text-align: right;
}
.InputBox {
  width: 100% !important;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 9px;
  font-family: inherit !important;
  font-size: inherit !important;
  margin: 0;
  border: 1px solid #333;
}

.Thumbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.Thumbs ul li {
  width: 23%;
  padding: 1%;
  float: left;
  display: block;
  text-decoration: none;
  text-align: center;
}
.Thumbs ul li:nth-child(4n + 1) {
  clear: left;
}
.Thumbs ul li a {
  display: block;
}
.Thumbs ul li a img {
  width: 96%;
  height: auto;
  box-shadow: 0 0 10px #ccc;
  padding: 2%;
}
.Thumbs ul li a:hover img {
  background-color: #58cae6;
}
.Thumbs ul li a span {
  display: block;
}

#PageContent img {
  width: 100%;
  height: auto;
}

#CategoriesList a {
  background-color: #9fd6d2;
  display: block;
  margin-bottom: 1px;
  padding: 5px;
  color: #222;
}
#CategoriesList a:hover {
  text-decoration: none;
  opacity: 0.8;
}
#CategoriesList .children {
  display: none;
}
#CategoriesList .children a {
  background-color: #d0ecea;
  display: block;
  margin-bottom: 1px;
  padding: 5px;
}

.Category {
  background-color: #9fd6d2;
  display: block;
  padding: 10px;
  margin-bottom: 1px;
  color: inherit;
}
.Category:hover {
  text-decoration: none;
  opacity: 0.8;
  color: inherit;
}

.SubCategory {
  background-color: #d0ecea;
  display: block;
  padding: 10px;
  margin-bottom: 1px;
  color: inherit;
}
.SubCategory:hover {
  text-decoration: none;
  opacity: 0.8;
  color: inherit;
}
.SubCats {
  margin-bottom: 10px;
}
.Hidden {
  display: none;
}

.ColumnL {
  width: 73%;
  float: left;
  margin-right: 2%;
}
.ColumnR {
  width: 25%;
  float: left;
}

.ExpandableList h2 {
  margin: 0 0 10px 0;
}
.ExpandableList h2 a {
  background-color: #eee;
  color: #111;
  display: block;
  padding: 10px;
  margin: 0 !important;
  text-decoration: none;
}
.ExpandableList h2 a.Active {
  background-color: #9fd6d2;
  color: #111;
}

#NewMatForm label {
  text-align: left;
  background: none;
  color: #333;
  font-weight: bold;
  padding: 0;
}
#NewMatForm p {
  margin: 0;
}
#NewMatForm .InputBox {
  margin-bottom: 1em;
}

#SearchForm {
  position: relative;
  padding-right: 50px;
  margin: 0;
}
#SearchButton {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background-color: rgba(46, 162, 204, 1);
  background-image: url(images/search-icon.gif);
  border: none;
  cursor: pointer;
}

/* ###################### */
/* ##### Responsive ##### */
/* ###################### */

@media screen and (max-width: 960px) {
  .Wrapper {
    padding: 10px;
  }
}

@media print {
  img {
    display: none;
  }
}

.footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.footer ul li {
  display: inline-block;
}

.footer ul li:first-child {
  margin-right: 1rem;
}
