@charset "UTF-8";
/*
Theme Name: HCC 2020
Author: Dan Ellis
Author URI: http://www.daniel-ellis.co.uk
Description: Custom theme produced for Haverhill Cricket Club
Version: 1.0
Tags: 
*/
/* Fonts */
/* Headings */
h1 {
  color: #FFF;
  font-size: 1.5em;
  margin-top: 0.35em;
  float: left;
}

h2 {
  color: #0D2F97;
  margin-top: 1em;
}
h2 em, h2 strong {
  color: #0D2F97;
}

h3 {
  color: #328BD9;
}
h3 em, h3 strong {
  color: #328BD9;
}

/* General */
* {
  font-family: "Helvetica", "Arial", "Sans Serif";
  margin: 0 auto;
  color: #303030;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#container {
  min-height: 100%;
  position: relative;
}

.content {
  padding: 10px;
  padding-bottom: 18em;
  height: 100%;
}

.hidden {
  display: none;
}

a {
  text-decoration: none;
}

.page-content p, .entry-content p {
  line-height: 1.5em;
  margin-bottom: 1em;
}

figcaption, .date {
  font-style: italic;
  color: #303030;
  font-size: 0.8em;
}

.date {
  margin-top: 5px;
}

#main button, #main .btn {
  padding: 0.5em 0.75em;
  background-color: #0699AD;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #FFF;
  font-size: 14px;
  line-height: 1.42857143;
  text-decoration: none;
  cursor: pointer;
}

.btn.return {
  float: right;
}

#cover {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(212, 204, 204, 0.6);
  z-index: 9999;
}

i {
  margin-left: 5px;
}

p:empty:before {
  display: none;
}

/* Header */
header {
  height: 4.5em;
  overflow: auto;
  background-color: #328BD9;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.25em 0;
}
header img {
  height: 4.5em;
  float: left;
}
header h1 {
  margin-top: 0.5em;
  margin-left: 0.2em;
}

/* Footer */
footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: #328BD9;
  margin-top: 1em;
}
footer * {
  color: #FFF;
}
footer section {
  padding: 0.5em;
}
footer h4 {
  font-size: 1em;
}
footer .socialMedia {
  display: inline-block;
  margin: 0.5em;
  margin-left: 0;
}
footer .socialMedia i, footer .socialMedia p {
  display: inline-block;
}
footer .socialMedia i {
  font-size: 1.5em;
  vertical-align: middle;
}
footer .socialMedia a {
  text-decoration: none;
}
footer .socialMedia h4 {
  padding-bottom: 0.25em;
}
footer .socialMedia:nth-of-type(odd) {
  margin-left: 0;
}
footer #site-info {
  width: auto;
  background-color: #0D2F97;
}
footer #site-info .copyright {
  display: inline-block;
  width: 100%;
  font-size: 0.75em;
}

/* Mobile Navigation */
.header-button {
  float: left;
  vertical-align: top;
  padding: 0.1em 0.2em;
  text-decoration: none;
  font-size: 2.5em;
  color: #FFF;
}

#site-navigation {
  position: fixed;
  top: 5em;
  left: 0;
  right: 0;
  bottom: 0;
  visibility: hidden;
  opacity: 0;
  z-index: 1000;
  transition: all 200ms linear;
  background-color: #328BD9;
  overflow-y: auto;
  max-height: 100vh;
  padding: 0.25em 0;
}
#site-navigation * {
  color: #FFF;
}
#site-navigation .primary-menu {
  width: calc(100% - 2%);
  float: left;
  min-height: 100%;
  transform: translateX(-100%);
  transition: 200ms ease-out;
  transition: transform 200ms ease-out;
}
#site-navigation .primary-menu h2 {
  margin-top: 0.25em;
  padding-left: 5%;
  float: left;
  font-size: 1.75em;
  color: #FFF;
}
#site-navigation .primary-menu li {
  width: calc(100% - 0.5em);
  margin: 0.5em 0.25em;
  float: left;
  display: block;
}
#site-navigation .primary-menu li a {
  padding: 0.5em;
  display: block;
  font-weight: bold;
}
#site-navigation .primary-menu li .sub-menu {
  width: calc(100% - 2% - 5em);
  margin-left: 1em;
}
#site-navigation .primary-menu li .sub-menu li {
  width: calc(100% - 0.5em);
  clear: both;
}
#site-navigation .primary-menu li .sub-menu li:last-of-type {
  margin-bottom: 0;
}

.burger-open #site-navigation {
  visibility: visible;
  opacity: 1;
}
.burger-open #site-navigation .primary-menu {
  transform: translateX(0);
  padding: 0.5em 1%;
}

/* Content */
#main {
  width: 90%;
  margin-top: 80px;
}
#main section {
  margin: 2em 0;
}
#main a {
  text-decoration: underline;
  color: #007CBA;
}
#main button a {
  text-decoration: none;
  color: unset;
}
#main .imgContainer {
  position: relative;
  padding-bottom: 70%;
  /* 1:0.7 ratio */
  margin-bottom: 5px;
  height: 0;
  overflow: hidden;
}
#main .imgContainer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#main .x50 {
  width: 100%;
  position: relative;
}
#main .home_tiles {
  width: 100%;
  display: inline-block;
  position: relative;
  vertical-align: top;
  text-align: center;
  border-bottom: 1px solid #CCC;
  padding: 0.5em 0;
}
#main .home_tiles a {
  text-decoration: none;
}
#main .home_tiles img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
}
#main .home_tiles h2 {
  margin-top: 0;
}
#main #fixturesTable {
  width: 100%;
  margin-bottom: 0.5em;
  table-layout: fixed;
}
#main #fixturesTable th, #main #fixturesTable tfoot td {
  text-align: left;
  background-color: #0699AD;
  color: #FFF;
}
#main #fixturesTable tfoot td {
  font-style: italic;
  font-size: 0.75em;
}
#main #fixturesTable th, #main #fixturesTable td {
  width: 30%;
}
#main #fixturesTable th:nth-of-type(4), #main #fixturesTable td:nth-of-type(4) {
  width: auto;
  text-align: center;
}
#main #fixturesTable thead .sorting_asc,
#main #fixturesTable thead .sorting,
#main #fixturesTable thead th {
  position: relative;
  background-image: none !important;
}
#main #fixturesTable thead th.sorting:after,
#main #fixturesTable thead th.sorting_asc:after,
#main #fixturesTable thead th.sorting_desc:after {
  position: absolute;
  top: 12px;
  right: 8px;
  display: block;
  font-family: "Font Awesome 5 Free";
}
#main #fixturesTable thead th.sorting:after {
  content: "";
  color: #FFF;
  font-size: 0.8em;
  padding-top: 5px;
  top: 0;
}
#main #fixturesTable thead th.sorting_asc:after {
  content: "";
  color: #0D2F97;
}
#main #fixturesTable thead th.sorting_desc:after {
  content: "";
  color: #0D2F97;
}
#main #fixturesTable tfoot a {
  color: #FFF;
}
#main #fixturesTable, #main #fixturesTable th, #main #fixturesTable td {
  padding: 5px;
  border-collapse: collapse;
  border-bottom: 1px solid #0D2F97;
}
#main .dataTables_wrapper .dataTables_length, #main .dataTables_wrapper .dataTables_filter {
  margin-bottom: 0.5em;
  text-align: left;
}
#main #recentNews {
  /* The dots/bullets/indicators */
}
#main #recentNews .slideshow-container {
  height: 400px;
  background-color: #0699AD;
  position: relative;
  margin: auto;
  overflow: hidden;
  border-radius: 5px;
  /* Fading animation */
}
#main #recentNews .slideshow-container .newsSlide {
  display: none;
}
#main #recentNews .slideshow-container .newsSlide .imgContainer {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  padding-bottom: 150px;
}
#main #recentNews .slideshow-container .newsSlide .imgContainer img {
  vertical-align: middle;
}
#main #recentNews .slideshow-container .newsSlide .postInfo {
  width: calc(100% - 5px);
  height: 395px;
  margin: 5px 5px 0 5px;
  display: inline-block;
  overflow: hidden;
}
#main #recentNews .slideshow-container .newsSlide .postInfo h3 {
  font-size: 2em;
}
#main #recentNews .slideshow-container .newsSlide .postInfo h3, #main #recentNews .slideshow-container .newsSlide .postInfo h3 strong, #main #recentNews .slideshow-container .newsSlide .postInfo p {
  color: #FFF;
}
#main #recentNews .slideshow-container .newsSlide .postInfo .date {
  margin-bottom: 5px;
}
#main #recentNews .slideshow-container .fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}
@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
#main #recentNews .slideNavigation {
  margin-top: 0.5em;
  text-align: center;
}
#main #recentNews .slideNavigation .dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
#main #recentNews .slideNavigation .active {
  background-color: #717171;
}
#main .contactProfile, #main .blogPost {
  display: inline-block;
  vertical-align: top;
  margin: 1em;
  width: 39%;
}
#main .contactProfile .imgContainer img, #main .blogPost .imgContainer img {
  border-radius: 5px;
}
#main .contactProfile .imgContainer {
  padding-bottom: 100%;
  /* 1:1 ratio */
}
#main .blogPost .imgContainer {
  padding-bottom: 50%;
  /* 1:0.5 ratio */
}
#main .contactProfileGroup:target, #main .contactProfile:target {
  animation: profileFlash 3s;
}
@keyframes profileFlash {
  0% {
    outline: 2px solid blue;
  }
  15% {
    outline: none;
  }
  30% {
    outline: 2px solid blue;
  }
  45% {
    outline: none;
  }
  60% {
    outline: 2px solid blue;
  }
  75% {
    outline: none;
  }
  90% {
    outline: 2px solid blue;
  }
}
#main #contactModal {
  position: absolute;
  height: auto;
  width: calc(100% - 4em);
  left: 0;
  top: 30%;
  z-index: 10000;
  margin: 1em;
  padding: 1em;
  background-color: #FFF;
  border-radius: 3px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.19), 0 1px 6px rgba(0, 0, 0, 0.23), 0 4px 4px -2px #000;
}
#main #contactModal #closeContactModal {
  float: right;
}
#main #contactModal h3, #main #contactModal p {
  margin-bottom: 1em;
}
#main .sponsor-tile {
  width: 26%;
  margin: 3%;
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
#main .sponsor-tile .imgContainer img {
  opacity: 1;
  display: block;
  transition: 0.5s ease;
  backface-visibility: hidden;
  object-fit: scale-down;
}
#main .flip-card {
  display: inline-block;
  background-color: transparent;
  width: 100%;
  height: 58px;
  perspective: 1000px;
}
#main .flip-card .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
#main .flip-card .flip-card-inner .flip-card-front, #main .flip-card .flip-card-inner .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
#main .flip-card .flip-card-inner .flip-card-back {
  background-color: #0D2F97;
  color: white;
  transform: rotateY(180deg);
}
#main .flip-card .flip-card-inner .flip-card-back p {
  color: #FFF;
  top: 50%;
  transform: translateY(-50%);
  position: relative;
  padding: 5px;
  font-weight: bold;
}
#main .policy, #main .alternatingRow {
  padding: 0 0 1em 0;
}
#main .policy h2, #main .alternatingRow h2 {
  margin-bottom: 0.25em;
}
#main .policy p, #main .policy a, #main .alternatingRow p, #main .alternatingRow a {
  margin-bottom: 1em;
}
#main .alternatingRow, #main article.post {
  display: inline-block;
  width: 100%;
  margin-bottom: 1em;
}
#main .alternatingRow h2, #main article.post h2 {
  margin-top: 0;
}
#main .alternatingRow div, #main article.post div {
  width: 100%;
}
#main .alternatingRow img, #main article.post img {
  object-fit: cover;
}
#main .alternatingRow img, #main .alternatingRow .acf-map, #main article.post img, #main article.post .acf-map {
  width: 100%;
}
#main .alternatingRow .acf-map, #main article.post .acf-map {
  height: 400px;
  border: #CCC solid 1px;
  display: none;
}
#main .alternatingRow div.acf-map div, #main article.post div.acf-map div {
  float: unset;
  width: unset;
}
#main article.post div {
  float: unset;
  width: auto;
}
#main article.post img {
  max-width: 100%;
  width: auto;
  height: auto;
}
#main #mapMarkerInfo {
  width: 150px;
  text-align: center;
}
#main #mapMarkerInfo p strong {
  color: #0D2F97;
  font-size: 1.5em;
}
#main .x404 div {
  display: inline-block;
  vertical-align: top;
}
#main .x404 h2 {
  font-size: 2em;
  margin: 0 0 0.5em 0;
}
#main .x404 p {
  margin: 1em 0;
}
#main .x404 img {
  width: 100%;
  float: right;
  margin-bottom: 1em;
}
#main .categories {
  background-color: #0699AD;
  padding: 5px;
  border-radius: 3px;
}
#main .categories .pill {
  display: inline-block;
  padding: 5px;
  margin: 0.1em 0;
  border-radius: 3px;
}
#main .categories .pill a {
  color: #FFF;
}
#main .categories .pill:hover {
  background-color: #0D2F97;
}
#main .categories .pill.active {
  background-color: #0D2F97;
}
#main .pagination {
  background-color: #0699AD;
  padding: 5px;
  border-radius: 3px;
}
#main .pagination span, #main .pagination a {
  display: inline-block;
  padding: 5px;
  margin: 3px;
  border-radius: 3px;
  color: #FFF;
}
#main .pagination a:hover, #main .pagination span:hover {
  background-color: #0D2F97;
}
#main .pagination .current {
  background-color: #0D2F97;
}

/* ===== Phone > 400px ===== */
@media only screen and (min-width: 400px) {
  header h1 {
    font-size: 1.75em;
  }

  .content {
    padding-bottom: 19em;
  }

  #main .contactProfile {
    width: 40%;
  }
}
/* ===== Tablet > 450px ===== */
@media only screen and (min-width: 450px) {
  header h1 {
    font-size: 2em;
    margin-top: 0.25em;
    margin-left: 2%;
  }

  #main .contactProfile, #main .blogPost {
    width: 41%;
  }
  #main .flip-card {
    height: 70px;
    perspective: 1000px;
  }
}
/* ===== Tablet > 550px ===== */
@media only screen and (min-width: 550px) {
  header h1 {
    font-size: 2em;
    margin-top: 1em;
  }

  #main #recentNews .slideshow-container .newsSlide .imgContainer {
    padding-bottom: 200px;
  }
  #main .contactProfile, #main .blogPost {
    width: 26%;
  }
  #main .flip-card {
    height: 87px;
    perspective: 1000px;
  }
}
/* ===== Tablet > 720px ===== */
@media only screen and (min-width: 720px) {
  .content {
    padding-bottom: 18em;
  }

  #main #fixturesTable th:nth-of-type(1), #main #fixturesTable td:nth-of-type(1),
#main #fixturesTable th:nth-of-type(2), #main #fixturesTable td:nth-of-type(2) {
    width: 35%;
  }
  #main #fixturesTable th:nth-of-type(3), #main #fixturesTable td:nth-of-type(3) {
    width: 25%;
  }
  #main #recentNews .slideshow-container .newsSlide .imgContainer {
    padding-bottom: 250px;
  }
  #main .home_tiles {
    width: 30.75%;
    border-bottom: none;
    border-right: 1px solid #CCC;
    margin-right: 0;
    padding: 0 2% 0 1%;
  }
  #main .home_tiles img {
    display: block;
    max-height: 90px;
  }
  #main .home_tiles h2 {
    margin-top: 1em;
  }
  #main .home_tiles:first-child {
    padding-left: 0;
  }
  #main .home_tiles:last-child {
    border-right: none;
    padding-right: 0;
  }
  #main .contactProfile, #main .blogPost {
    width: 19%;
  }
  #main .blogPost .imgContainer {
    padding-bottom: 70%;
    /* 1:0.7 ratio */
  }
  #main .flip-card {
    height: 115px;
    perspective: 1000px;
  }
  #main #contactModal {
    width: 400px;
    left: calc(50% - 200px);
  }
  #main .alternatingRow img, #main .alternatingRow .acf-map {
    width: calc(50% - 1em);
  }
  #main .alternatingRow .acf-map {
    display: block;
  }
  #main .alternatingRow .openMapLink {
    display: none;
  }
  #main .alternatingRow:nth-of-type(odd) > img {
    float: left;
    margin-right: 1em;
  }
  #main .alternatingRow:nth-of-type(even) > img {
    float: right;
    margin-left: 1em;
  }
  #main .alternatingRow:nth-of-type(odd) .acf-map {
    float: left;
    margin-right: calc(1em - 2px);
  }
  #main .alternatingRow:nth-of-type(even) .acf-map {
    float: right;
    margin-left: calc(1em - 2px);
  }
}
/* ===== Tablet > 800px ===== */
@media only screen and (min-width: 800px) {
  #main .x404 div {
    width: 48%;
  }
  #main .x404 div:nth-of-type(2) {
    margin-left: 1em;
  }
  #main .x404 h2 {
    font-size: 2em;
    margin: 0 0 0.5em 0;
  }
}
/* ===== Desktop > 1024px ===== */
@media only screen and (min-width: 1024px) {
  header {
    padding: 0.5em 1em;
  }

  .header-button {
    display: none;
  }

  #site-navigation {
    width: auto;
    position: static;
    visibility: visible;
    opacity: 1;
    transition: none;
    float: right;
    margin-top: 2em;
    padding: 0;
  }
  #site-navigation a {
    display: none;
  }
  #site-navigation .primary-menu {
    width: auto;
    float: right;
    -webkit-transform: none;
    transform: none;
    transition: none;
    min-height: inherit;
    background: none;
  }
  #site-navigation .primary-menu li {
    width: auto;
    padding: 0;
    margin: 0.3em;
    display: inline-block;
    border: none;
  }
  #site-navigation .primary-menu li a {
    color: #FFF;
    padding: 0.5em 1em;
    font-size: 1em;
    white-space: nowrap;
  }
  #site-navigation .primary-menu li a img {
    display: none;
  }
  #site-navigation .primary-menu li a:hover {
    color: #0D2F97;
  }
  #site-navigation .primary-menu li .sub-menu {
    display: none;
  }
  #site-navigation .primary-menu li:hover .sub-menu {
    width: auto;
    display: block;
    background-color: #328BD9;
    position: fixed;
    margin-left: 1em;
    padding: 0;
    border-radius: 5px;
    z-index: 1000;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.19), 0 1px 6px rgba(0, 0, 0, 0.23), 0 4px 4px -2px #000;
  }
  #site-navigation .primary-menu li:hover .sub-menu li {
    width: calc(100% - 0.5em);
    margin: 0;
    clear: both;
    padding: 0.25em;
  }
  #site-navigation .primary-menu li:last-child .sub-menu {
    right: 1em;
  }

  #primary #bannerLogo {
    width: 20% !important;
  }

  #main {
    margin-top: 110px;
  }
  #main #fixturesTable th:nth-of-type(1), #main #fixturesTable td:nth-of-type(1),
#main #fixturesTable th:nth-of-type(2), #main #fixturesTable td:nth-of-type(2) {
    width: 40%;
  }
  #main #fixturesTable th:nth-of-type(3), #main #fixturesTable td:nth-of-type(3) {
    width: 15%;
  }
  #main #recentNews .slideshow-container {
    height: 400px;
  }
  #main #recentNews .slideshow-container .newsSlide .imgContainer {
    width: 60%;
    padding-bottom: 400px;
  }
  #main #recentNews .slideshow-container .newsSlide .imgContainer {
    width: 60%;
    padding-bottom: 400px;
  }
  #main #recentNews .slideshow-container .newsSlide .postInfo {
    width: 36%;
  }
  #main #recentNews .slideshow-container .newsSlide .postInfo h3 {
    font-size: 3em;
  }
  #main .home_tiles img {
    max-height: 120px;
  }
  #main .home_tiles:hover img {
    opacity: 0.6;
  }
  #main .home_tiles:hover h2 {
    text-decoration: underline;
  }
  #main .contactProfile, #main .blogPost {
    width: 16%;
  }
  #main .blogPost .imgContainer {
    padding-bottom: 60%;
    /* 1:0.6 ratio */
  }
  #main .sponsor-tile {
    width: 15%;
    margin: 2%;
  }
  #main .sponsor-tile img {
    opacity: 1;
    display: block;
    transition: 0.5s ease;
    backface-visibility: hidden;
  }
  #main .flip-card {
    height: 97px;
    perspective: 1000px;
  }
  #main .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  #main .x404 div {
    width: 48%;
    display: inline-block;
    vertical-align: top;
  }
  #main .x404 div:nth-of-type(2) {
    margin-left: 2em;
  }
  #main .x404 h2 {
    font-size: 5em;
    margin: 0 0 0.5em 0;
  }
  #main .x404 h3 {
    font-size: 2em;
    margin-bottom: 1em;
  }
  #main .x404 p {
    margin: 1em 0;
  }
  #main .x404 img {
    width: 100%;
    float: right;
  }
}
/* ===== Desktop > 1280px ===== */
@media only screen and (min-width: 1280px) {
  #main .contactProfile, #main .blogPost {
    width: 16.5%;
  }
  #main .alternatingRow img, #main .alternatingRow .acf-map {
    max-height: 300px;
  }
  #main .home_tiles {
    width: 31%;
  }
  #main .home_tiles img {
    max-height: 150px;
  }
}
/* ===== Large Display > 1600px ===== */
@media only screen and (min-width: 1600px) {
  #main .home_tiles img {
    max-height: 190px;
  }
}
/* ===== Large Display > 1920px ===== */
@media only screen and (min-width: 1920px) {
  #main .contactProfile, #main .blogPost {
    width: 14.5%;
  }
  #main .sponsor-tile {
    width: 12%;
  }
  #main .flip-card {
    height: 144px;
    perspective: 1000px;
  }
  #main .home_tiles img {
    max-height: 225px;
  }
}

/*# sourceMappingURL=style.css.map */
