/**
* Theme Name: gds-holmes-website
* Theme URI: https://www.holmeswebsite.co.uk
* Description: A theme designed with accessibility in mind
* Author: David Holmes
* Author URI: https://www.holmeswebsite.co.uk
* Version: 4.3
* Text Domain: gds-holmes-website
*
* HolmesWebsite License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this theme and associated documentation files (the "Theme"), to use, copy,
* modify, and merge the Theme, subject to the following conditions:
*
* 1. The Theme may only be used for personal or commercial projects. Redistribution
*    or resale of the Theme, in whole or in part, is strictly prohibited.
*
* 2. Redistributions of source code must retain the above copyright notice, this
*    list of conditions, and the following disclaimer.
*
* 3. The name of the author may not be used to endorse or promote products derived
*    from this Theme without specific prior written permission.
*
* THIS THEME IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
* OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS THEME, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
* @package gds-holmes-website
*/

.error-messages,
.java-error-message {
  position: relative;
  z-index: 1000;
  background-color: #fff;
  color: red;
}

.error-message {
  color: red;
  top: 0;
  padding: 10px;
}

.java-error-message {
  padding: 10px;
}

.alignright,
a img.alignright {
  float: right;
}

.arrow-link,
p {
  font-weight: 400;
  line-height: 1.25;
}

#footer-sidebar-container .widget:nth-child(n + 5),
#scrollTop {
  display: none;
}

.author,
.hwSlides q,
blockquote {
  font-style: italic;
}

.credits,
.dot-container,
.footer-copyright,
.header-bottom,
.hwSlides,
.wp-caption {
  text-align: center;
}

.clickable-box {
  border: 1px solid #ccc;
  position: relative;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.clickable-box a {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: inherit;
  text-decoration: none;
}

.clickable-box a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 0.05);
  z-index: -1;
  transition: background-color 0.3s;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  font-size: 24px;
}

.form-submit input[type="submit"],
.holmes-button,
.submit {
  font-size: 16px;
  font-family: arial, sans-serif;
  cursor: pointer;
}

.comment-form label,
.error-message,
.gallery-caption,
.submit {
  font-weight: 700;
}

.arrow-link::before {
  content: "→";
  font-size: 20px;
  color: #000;
  text-decoration: none !important;
  position: relative;
  display: inline-block;
  background-color: #adadad;
  border-radius: 50%;
  padding: 8px;
  margin-right: 8px;
}

td,
th {
  border: 1px solid;
  text-align: left;
}

.box-mainlink {
  border: 1px solid #ccc;
}

.box-mainlink p {
  margin-left: 5px;
  color: #000;
  font-size: 1.25rem;
  -webkit-text-decoration-skip-ink: none;
  text-decoration-skip-ink: none;
  text-underline-offset: 0.1578em;
}

.form-submit input[type="submit"],
.holmes-button {
  border: 3px solid;
  padding: 10px 20px;
  font-weight: 700;
}

.search-field {
  padding: 10px;
  border: 3px solid #2c3e50;
  width: 200px;
  margin-right: 2px;
}

.submit {
  border: 3px solid;
  padding: 4px 8px;
  transition: background-color 0.3s;
}

.search-form {
  display: inline-flex;
  margin-bottom: 2px;
}

.wp-block-column img {
  width: 100%;
  height: auto;
  display: block;
}

blockquote {
  border-left: 4px solid #ccc;
}

.img {
  max-width: max-content;
  max-height: auto;
  padding: 5px;
}

.alignnone,
.wp-caption.alignleft,
.wp-caption.alignnone,
a img.alignnone {
  margin: 5px 20px 20px 0;
}

.wp-caption.alignright,
a img.alignright {
  margin: 5px 0 20px 20px;
}

.alignright {
  margin: 0 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto;
}

.wp-caption img,
blockquote,
body,
button,
dl,
fieldset,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
input,
ol,
p,
pre,
textarea,
ul {
  margin: 0;
  padding: 0;
}

a img.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  background: #fff;
  border: 1px solid #f0f0f0;
  max-width: 96%;
  padding: 5px 3px 10px;
}

.sticky,
tr:nth-child(2n) {
  background-color: #f9f9f9;
}

.wp-caption img {
  border: 0;
  height: auto;
  max-width: 98.5%;
  width: auto;
}

.wp-caption p.wp-caption-text {
  font-size: 11px;
  line-height: 17px;
  margin: 0;
  padding: 0 4px 5px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.image-border {
  border: 3px solid #000;
}

.sticky {
  border: 1px solid #ddd;
  padding: 10px;
}

.bypostauthor {
  background-color: #f0f0f0;
  padding: 10px;
  margin-bottom: 20px;
}

li::marker {
  font-weight: bolder;
}

.label:focus-visible,
.orderby:focus-visible,
.orderby:hover,
.products a:hover {
  outline: 0;
  background-color: #fff;
}

.entry-header .entry-title,
p {
  display: block;
  margin-bottom: 10px;
}

p {
  color: #0b0c0c;
  font-family: arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1rem;
  margin-top: 0;
}

body,
html {
  width: 100%;
  font-family: arial, sans-serif;
  background-color: #f7f6f6;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

td,
th {
  padding: 8px;
}

*,
:after,
:before {
  box-sizing: inherit;
}

.label,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: arial, sans-serif;
  max-width: max-content;
}

ol,
ul {
  margin: 0;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 19px;
}

.entry-footer a,
.skip-link,
.slogan,
.tagline,
h6 {
  font-size: 18px;
}

ul {
  list-style-type: disc;
}

ol,
ul {
  max-width: fit-content;
}

ol {
  list-style-type: decimal;
}

li {
  margin-bottom: 5px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #f2f2f2;
}

tr:hover {
  background-color: #e6e6e6;
}

@media screen and (max-width: 600px) {
  table,
  tbody,
  td,
  th,
  thead,
  tr {
    display: block;
  }

  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    margin: 0 0 1rem;
  }

  tr:nth-child(odd) {
    background: #f8f8f8;
  }

  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  td:before {
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
    font-weight: 700;
  }
}

.skip-link {
  position: absolute;
  margin-top: 20px;
  padding: 5px;
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 3px;
  text-decoration: none;
}

.header-bottom,
.header-top {
  padding: 5px 5% 0;
  max-width: 100%;
  display: flex;
}

.skip-link:hover {
  background-color: #ddd;
}

.skip-link:focus {
  top: 0s;
  padding: 5px;
  background-color: #fff;
  color: #000;
}

.header-wrapper {
  max-width: 100%;
}

.header-top {
  flex-direction: column;
  align-items: center;
}

.header-search-bar {
  display: flex;
  align-items: center;
}

.header-bottom {
  justify-content: space-between;
}

.slogan-container {
  font-size: 18px;
  color: #333;
}

.logo,
.site-name,
.slogan,
.tagline {
  color: #005ea5;
  font-weight: 700;
}

.logo {
  font-family: arial, sans-serif;
}

.search-icon {
  width: 22px;
  height: auto;
}

.logo img {
  width: 180px;
  height: auto;
}

.site-name {
  top: 20px;
  font-size: 24px;
}

@media screen and (max-width: 400px) {
  .header-wrapper {
    width: 100%;
    background-color: #f3f3f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
  }

  .header-bottom,
  .header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .header-search-bar {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .logo img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
  }

  .site-name,
  .slogan,
  .slogan-container,
  .tagline {
    font-size: 14px;
    text-align: center;
  }
}

.policy-links,
.widget {
  background-color: #ffffff7e;
  border-radius: 5px;
  padding: 10px;
}

.widget ul {
  padding: 0;
}

.widget li {
  margin-left: 12px;
  list-style: none;
}

.page-content,
.search-content-area,
.widget {
  margin: 10px;
}

.wc-block-product-categories-list li,
.wp-block-categories li,
.wp-block-latest-posts__list li {
  list-style: circle;
}

.wp-calendar-table {
  max-width: 100%;
  box-sizing: border-box;
}

.site-main {
  justify-content: space-around;
  margin-left: 20px;
}

.entry-header {
  margin-top: 5px;
  box-sizing: border-box;
}

.entry-content {
  margin-top: 10px;
  margin-bottom: 1px;
}

.back_button,
.back_button_search,
.comment-reply-link,
.entry-content a,
.footer-content a,
.footer-widgets a {
  text-decoration: underline;
  text-decoration-thickness: max(1px, 0.0625rem);
  text-underline-offset: 0.1578em;
  font-weight: 700;
  font-family: arial, sans-serif;
  border: none;
  background: 0 0;
  padding-left: 5px;
}

.back_button_search {
  margin-right: auto;
}

.back_button:hover,
.back_button_search:hover,
.comment-reply-link:hover,
.entry-content a:hover,
.footer-content a:hover,
.footer-widgets a:hover {
  cursor: pointer;
}

.post {
  flex: 1;
  bottom: auto;
}

.post-filter-form select#filter-category {
  width: fit-content;
  padding: 8px;
  font-size: 14px;
  border: 2px solid;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}

.entry-date {
  margin-left: 30px;
  font-weight: 700;
}

.content-area {
  flex: 1;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.entry-footer {
  position: relative;
  padding: 10px;
}

.entry-footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35%;
  height: 6px;
}

.entry-footer a {
  font-weight: bolder;
}

.site-main {
  align-items: center;
}

.form-submit {
  margin-top: auto;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-body {
  border: 1px dotted;
  padding: 5px;
}

.comment-form textarea {
  border: 2px solid;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  flex-direction: column;
  width: 80%;
}

.comment-form input[type="email"],
.comment-form input[type="text"],
.comment-form input[type="url"] {
  height: 25px;
  border: 2px solid;
  box-sizing: border-box;
  padding: 5px;
  display: flex;
  flex-direction: column;
  width: 70%;
}

#scrollTop,
.contactus-button input[type="button"] {
  border: 3px solid;
  transition: background-color 0.3s;
  font-size: 16px;
  font-family: arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.footer-text {
  font-weight: 700;
  font-size: 16px;
}

.first-line {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 18px;
}

.policy-links li {
  list-style: none;
  margin-right: 10px;
}

.contactus-button input[type="button"] {
  padding: 10px 20px;
}

.credits {
  font-size: 10px;
}

.social-links-right img {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out;
  background-repeat: no-repeat;
}

.social-links-right img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 10px #fff);
}

#scrollTop {
  position: fixed;
  bottom: 200px;
  right: 10px;
  z-index: 101;
  padding: 10px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
}

.bottom_container {
  position: relative;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 5px;
}

.footer-copyright {
  position: relative;
  font-weight: 700;
}

@media screen and (min-width: 1000px) {
  .footer-widgets {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    margin: 0 auto;
  }

  #footer-sidebar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .widget {
    position: relative;
    display: flex;
    width: calc(25% - 20px);
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
  }

  #footer {
    position: relative;
    bottom: 0;
    padding-top: 10px;
    margin: 0 auto;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .business-address,
  .contactus-button,
  .terms-conditions {
    flex: 1;
    max-width: max-content;
    margin: 10px 50px;
  }

  .terms-conditions {
    text-align: center;
  }

  .policy-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
  }

  .policy-links li::before {
    position: absolute;
    color: #000;
    font-size: 1.2em;
    margin-left: -7px;
  }

  .policy-links li:first-child {
    grid-column: 1 / span 2;
  }
}

@media screen and (max-width: 1000px) {
  .footer-widgets {
    column-count: 1;
    column-gap: 10px;
    padding: 3px;
    align-items: center;
    height: 100%;
    margin: 0 auto;
  }

  #footer-sidebar-container {
    display: flex;
    flex-direction: column;
  }

  .widget {
    max-width: 100%;
    break-inside: avoid-column;
    margin: 5px;
  }

  #footer,
  .footer-content {
    justify-content: center;
    width: 100%;
  }

  #footer {
    position: relative;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    z-index: 100;
  }

  .footer-content {
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .business-address,
  .contactus-button,
  .policy-links,
  .terms-conditions {
    margin-top: 5px;
    bottom: auto;
    text-align: center;
  }

  .policy-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 20px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 15px;
  }

  h5 {
    font-size: 13px;
  }

  h6 {
    font-size: 12px;
  }
}

.slideshow-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  overflow: hidden;
  padding: 5px;
}

.hwSlides {
  display: none;
  padding: 20px;
}

.dot,
.hwSlides img {
  display: inline-block;
}

.hwSlides img {
  max-height: 90%;
  max-width: 90% !important;
}

.hwSlides q {
  font-size: 1.5em;
  color: #4118d3;
  border-left: 4px solid #ccc;
  display: block;
  margin-bottom: 10px;
}

.author {
  margin-top: 10px;
  color: #000;
}

/* search next/prev */

.pagination-wrapper {
  text-align: center;
  margin-top: 2em;
}

.page-numbers {
  display: inline-block;
  margin: 10px 5px;
  padding: 8px 12px;
  border-radius: 4px;
}

.page-numbers a {
  text-decoration: bold;
}

.prev,
.next {
  cursor: pointer;
  padding: 5px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  text-decoration: none !important;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: #acabb1;
}

.dot-container {
  position: absolute;
  bottom: 15px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 25px;
  width: 25px;
  margin: 0 2px;
  background-color: #fff;
  border: 4px solid #000;
  border-radius: 50%;
  transition: background-color 0.6s;
}

.dot.active {
  border: 0 solid #000;
}
