:root {
  --moorlocks-light: #F1F1F1;
  --moorlocks-dark: #121212;
  --moorlocks-blue: #09598A;
  --moorlocks-lightblue: #20ABFB;
  --moorlocks-error: #FFBC33;
  --border-radius: 5px;
  --transition-duration: 250ms;
}

p {
  margin: 2rem auto;
  text-align: center;
  width: 90%;
}

.design-padlock-button {
  display: inline-block;
  background: var(--moorlocks-blue);
  color: var(--moorlocks-light);
  font-weight: bolder;
  border-radius: 4px;
  padding: 0.75rem 0.5rem;
  font-size: 18px;
  user-select: none;
  cursor: pointer;
  transition: box-shadow var(--transition-duration) ease;
  width: 30%;
}

.design-padlock-button:hover {
  background: var(--moorlocks-lightblue);
  box-shadow: 0 0 24px var(--moorlocks-blue);
}

.design-padlock-button:active {
  opacity: 50%;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.usp-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1rem;
  padding: 5rem 0.5rem 5rem 0.5rem;
  margin: 0.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.usp-card svg {
  fill: var(--moorlocks-light);
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
}

.usp-card h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.25rem;
}

.usp-card p {
  margin: 0 auto;
}

.customise-points {
  display: inline-block;
  width: 33.3%;
  vertical-align: top;
}

.customise-points img {
  width: 30%;
  margin-bottom: 1rem;
}

.customise-message {
  border-top: 2px dotted var(--moorlocks-light);
  padding-top: 1rem;
}

.customise-points h3 {
  margin: 0rem auto;
  font-size: 1.25rem;
}

.customise-points p {
  font-size: 0.9rem;
  margin: 0.25rem auto;
}

html {
  overflow-y: scroll;
}

html, body {
  height: 100%;
}

input[type=checkbox] + label {
  font-size: 12px;
  width: calc(67% - 2rem);
}

h2 span {
  user-select: none;
  background: var(--moorlocks-light);
  color: var(--moorlocks-dark);
  border-radius: 50%;
  height: 30px;
  width: 30px;
  display: inline-block;
  margin-right: 1rem;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: rgb(51,80,103);
  background: linear-gradient(135deg, rgba(51,80,103,1) 0%, rgba(14,14,14,1) 50%);
  background-attachment: fixed;
  background-size: cover;
  text-align: center;
  font-size: 16px;
}

body, input[type=number], input[type=text], input[type=email], textarea, input[type=submit] {
  font-family: "Montserrat", "Avenir",  "sans-serif";
  color: var(--moorlocks-light);
}

footer {
  background-color: var(--moorlocks-blue);
  color: var(--moorlocks-light);
  text-align: left;
  font-size: 1rem;
}

footer .container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

footer .flex-column {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  box-sizing: border-box;
}

footer a svg { text-decoration: none; }

footer a svg:hover,
footer a svg:active {
  opacity: 70%;
}

footer p {
  text-align: left;
  margin: 0.5rem 0 0.5rem 0;
}

footer ul a {
  text-decoration: underline;
  color: var(--moorlocks-light);
}

footer ul a:hover,
footer ul a:focus {
  opacity: 75%;
}

footer ul a:active,
footer a:active svg {
  opacity: 50%;
  text-shadow: none;
}

footer h2 {
  font-size: 1rem;
  text-align: left;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

footer ul {
  display: block;
  list-style: none;
  text-align: left;
  padding: 0 0 1rem 0;
  margin: 0.5rem 0 0.5rem 0;
}

.narrow-page-container {
  flex: 1 0 auto;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

#page-container {
  flex: 1 0 auto;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

a {
  color: var(--moorlocks-lightblue);
  text-decoration: none;
  transition: text-shadow var(--transition-duration) ease;
}

a:hover {
  text-decoration: underline;
}

a:active {
  text-shadow: 0px 0px 8px var(--moorlocks-lightblue);
}

.page-element {
  margin: 3rem 0px;
  padding: 0;
}

.last-page-element {
  margin-bottom: 3rem;
}

.homepage-element {
  margin: 4rem 0;
  margin-bottom: 6rem;
  padding: 0;
  box-sizing: border-box;
}

.first-page-element {
  margin-top: 3rem;
}

.banner {
  border-radius: 10px;
  width: 100%;
  margin: 0;
}

.homepage-gallery {
  width: 25%;
  /*box-shadow: 0 0 24px #0E151B;*/
  box-sizing: border-box;
  vertical-align: top;
}

.homepage-gallery:hover {
  opacity: 80%;
}

/*
 * Navigation bar.
 */
.full-span {
  /*position: fixed;*/
  background-color: var(--moorlocks-blue);
  /*top: 0px;
  left: 0px;*/
  width: 100%;
  z-index: 2;
  font-size: 16px;
}

.full-span img {
  max-width: 300px;
  margin: 6px auto;
}

#navigation-bar-buttons {
  max-width: 960px;
  margin: auto;
}

#navigation-bar-buttons a {
  padding: 5px 0;
  max-width: 250px;
  width: 30%;
  display: inline-block;
  box-sizing: border-box;
  border-bottom: 3px solid var(--moorlocks-blue);
  text-decoration: none;
  color: var(--moorlocks-light);
  transition: text-shadow var(--transition-duration) ease, border var(--transition-duration) ease;
}

#navigation-bar-buttons a:hover {
  border-bottom: 3px solid var(--moorlocks-lightblue);
  text-shadow: 0 0 8px var(--moorlocks-light);
}

#navigation-bar-buttons a:active {
  text-shadow: 0 0 8px var(--moorlocks-dark);
}

.selected-menu-option {
  border-bottom: 3px solid var(--moorlocks-lightblue) !important;
  cursor: default;
}

.selected-menu-option:hover {
  text-shadow: none !important;
}
.selected-menu-option:active {
  text-shadow: none !important;
}

/*
 * Contact form
 */
input[type=text], input[type=email], textarea, input[type=number] {
  width: 90%;
  padding: 0.5rem;
  margin: 0.5rem 0;
  display: inline-block;
  border: none;
  box-sizing: border-box;
  outline: none;
  background-color: var(--moorlocks-light);
  color: var(--moorlocks-dark);
  border-radius: var(--border-radius);
  font-size: 16px;
}

.form-error-field {
  display: none;
  width: 67%;
  text-align: left;
  margin-bottom: 1rem;
  color: var(--moorlocks-error);
  font-size: 12px;
}

.colour-selection {
  width: 90%;
  margin: 1rem auto;
  padding: 1rem;
}

label {
  display: inline-block;
  width: 90%;
  text-align: left;
}

label span.required {
  float: right;
}

label span.slider {
  font-weight: bold;
  float: right;
}

label span.required:before {
  font-size: 12px;
  opacity: 65%;
  content: "(required)";
}

input[type=range].slider {
  -webkit-appearance: none;
  opacity: 80%;
  background: var(--moorlocks-light);
  height: 2px;
  width: 90%;
  margin: 20px auto;
  border-radius: 2px;
}

input[type=range].slider::-moz-range-thumb {
  cursor: pointer;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid var(--moorlocks-light);
  background-color: var(--moorlocks-blue);
}

input[type=range].slider:hover {
  opacity: 100%;
}

#statistics {
  border: 3px solid var(--moorlocks-blue);
  border-radius: 4px;
  padding: 1rem;
  width: 90%;
}

.page-element div {
  margin: auto;
  box-sizing: border-box;
}

button.plus, button.minus {
  border: none;
  box-sizing: border-box;
  border-radius: 4px;
  background-color: var(--moorlocks-blue);
  height: 37px;
  width: 37px;
  position: relative;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: box-shadow var(--transition-duration) ease;
}

button.plus:hover, button.minus:hover {
  background-color: var(--moorlocks-lightblue);
}

button.plus:active, button.minus:active {
  opacity: 50%;
  box-shadow: 0 0 8px var(--moorlocks-dark);
  font-size: 16px;
}

button.plus:after, button.minus:after {
  content: "";
  height: 2px;
  width: 18px;
  background-color: var(--moorlocks-light);
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 0.5*18px);
  border-radius: 2px;
}

button.plus:before {
  content: "";
  height: 18px;
  width: 2px;
  background-color: var(--moorlocks-light);
  position: absolute;
  top: calc(50% - 0.5*18px);
  left: calc(50% - 1px);
  border-radius: 2px;
}


textarea {
  resize: vertical;
  min-height: 100px;
}

input[type=text]:focus, input[type=email]:focus, input[type=number]:focus, textarea:focus {
  outline: 5px solid var(--moorlocks-blue);
}

input[type="submit"] {
  width: 50%;
  background-color: var(--moorlocks-blue);
  padding: 0.5rem;
  margin: 1rem 0;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-duration) ease;
  border-radius: 4px;
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: var(--moorlocks-lightblue);
}

input[type="submit"]:active {
  background-color: var(--moorlocks-blue);
}

.upload-info {
  font-size: 12px;
  text-align: left;
  margin-bottom: 1.5rem;
  margin-top: 0;
  width: 90%;
}


#quantity {
  width: calc(90% - 2*(37px + 0.5rem + 3px));
}

/*
 * Custom file upload.
 */
.hidden-element {
  display: none;
}

.input-text-like {
  display: inline-block;
  width: calc(80% - 0.5rem);
  height: 100%;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: var(--moorlocks-light);
  padding: 8px;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--moorlocks-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.file-upload-wrapper {
  cursor: pointer;
}

.button-like {
  display: inline-block;
  background-color: var(--moorlocks-blue);
  width: 20%;
  border-radius: 4px;
  padding: 8px;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}

.button-like:hover {
  background: var(--moorlocks-lightblue);
}

.button-like:active {
  opacity: 50%;
}

/*
 * Colour choice checkboxes.
 */
.colour-choice {
  display: inline-block;
  position: relative;
  margin: 0.25rem;
  cursor: pointer;
  user-select: none;
  font-size: 0;
  height: 60px;
  width: 60px;
}

.colour-choice input {
  display: none;
}

.colour-choice span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  box-sizing: border-box;
  border: 3px solid var(--moorlocks-light);
}

.colour-choice input:checked + span {
  border: 3px solid var(--moorlocks-blue);
}

.colour-choice span:after {
  content: "";
  position: absolute;
  display: none;
}

.colour-choice input:checked + span:after {
  display: block;
  left: 15px;
  top: 5px;
  width: 15px;
  height: 30px;
  border: solid var(--moorlocks-light);
  border-width: 0 8px 8px 0px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  opacity: 90%;
}

.colour-choice span:hover {
  border-color: var(--moorlocks-lightblue);
}

/*
.colour-choice input:checked ~ span:after {
  display: block;
}

.colour-choice span:after {
  left: 13px;
  top: 7px;
  width: 10px;
  height: 20px;
  border: solid var(--moorlocks-light);
  border-width: 0 5px 5px 0px;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  opacity: 80%;
}
*/

/*
 * Symbol/background toggle.
 */
input[type="radio"].toggle {
  display: none;
}

input[type="radio"].toggle + label {
  cursor: pointer;
  user-select: none;
}

input[type="radio"].toggle + label:hover {
}

input[type="radio"].toggle:checked + label {
  background-color: var(--moorlocks-blue);
}
input[type="radio"].toggle:checked:hover + label {
  background-color: var(--moorlocks-lightblue);
  border-color: var(--moorlocks-lightblue);
}


.toggle-option {
  border: 3px solid var(--moorlocks-blue);
  display: inline-block;
  padding: 0.5rem;
  position: relative;
  text-align: center;
  width: 120px;
}

.toggle-option.lhs {
  border-right: 0;
  border-radius: 4px 0 0 4px;
}

.toggle-option.rhs {
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

/*
 * Padlock schematic.
 */
#padlock-schematic-outer {
  margin: 1rem auto;
  margin-top: 2rem;
}

#padlock-schematic {
  height: auto;
  margin: 0 auto;
  padding: 0;
}

.endcap-button, .dial-button {
  display: inline-block;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0 2px;
  cursor: pointer;
}

svg.endcap {
  width: 51px;
  height: 143px;
  padding: 0;
  margin: 0;
}

svg.dial {
  width: 38px;
  height: 143px;
  padding: 0;
  margin: 0;
}

polygon.endcap {
  stroke-width: 2px;
}

polygon.endcap-arrow {
  stroke-width: 2px;
}

#dial-schematic {
  display: inline-block;
  margin: 0;
  padding: 0;
}

polygon.dial {
  stroke-width: 2px;
}

path.shackle {
  stroke: var(--moorlocks-light);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
}

svg#shackle {
  height: 94px;
  margin: 0;
  padding: 0;
}

text.dial-outline {
  font: bold 36px sans-serif;
  stroke-width: 2px;
  font-family: "Avenir", "Avenir", "Verdana", "sans-serif";
}

/*
 * Hidden text boxes for the dials.
 */
.hidden-dial-text {
  display: none;
}

ol {
  list-style: decimal outside none;
  counter-reset: steps;
  text-align: left;
  font-size: 18px;
}

ol li {
  counter-increment: steps;
  margin: 1rem 0;
}

ol li.g::before {
  content: counter(steps);
  margin-right: 0.5rem;
  background: var(--moorlocks-light);
  color: var(--moorlocks-dark);
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  line-height: 1.2rem;
}





/*
 * https://loading.io/css/
 */
.lds-dual-ring {
  display: block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6px solid var(--moorlocks-lightblue);
  border-color: var(--moorlocks-lightblue) transparent var(--moorlocks-lightblue) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.glow-header {
  font-size: 38px;
}

/*
 * Frequently asked questions.
 */
details {
  background: var(--moorlocks-light);
  color: var(--moorlocks-dark);
  border-radius: var(--border-radius);
  box-sizing: border-box;
  margin: 0.5rem auto;
  text-align: left;
  width: 75%;
}

details summary {
  cursor: pointer;
  position: relative;
  padding: 0.75rem 0;
  margin: 0 0.5rem;
  font-weight: bolder;
  box-sizing: border-box;
  list-style: none;
  user-select: none;
}

details summary:before, details summary:after {
  content: "";
  right: 0;
  top: calc(50% - 1px);
  position: absolute;
  width: 1rem;
  height: 2px;
  background: var(--moorlocks-dark);
}

details:not([open]) summary:after {
  transform: rotate(90deg);
}

details[open] summary {
  border-bottom: 2px dotted var(--moorlocks-dark);
}

details summary:hover {
  text-decoration: underline;
}

details p {
  padding: 0.75rem 0.5rem;
  margin: 0;
  text-align: left;
  width: calc(100% - 1rem);
}


/*
 * Tablet specific style.
 */
@media only screen and (max-width: 960px) {
  .banner {border-radius: 0;}
  .first-page-element {margin-top: 0;}
}

@media only screen and (max-width: 700px) {
  details {width: 98%;} /* FAQs */
  footer .single-flex-column-mobile {
    flex: 100%;
  }
  footer .move-to-bottom-mobile {
    order: 99;
  }
  .usp-card {
    flex: 40%;
    padding: 1rem 0 1rem 0;
  }
}

/*
 * Smart phone specific style.
 */
@media only screen and (max-width: 500px) {
  input[type="submit"] {width: 90%;}
  .design-padlock-button {width: 75%}
  .homepage-element {margin: 3rem auto}
  .homepage-gallery {width: 33.3%;}
  .first-page-element {margin-top: 0;}
  .page-element {margin: 1.5rem auto;}
  .last-page-element {margin-bottom: 1.5rem}
  p {font-size: 14px; margin: 1rem auto}
  h1 {font-size: 24px}
  .glow-header {font-size: 28px}
  .input-text-like {width: 100%}
  .button-like {width: 100%; margin-bottom:0.5rem}
  .toggle-option {font-size: 14px; padding:0.25rem}
  .customise-points img {margin-bottom: 0.5rem;}
}

.checkbox-label {
  width: calc(90% - 21px - 1rem);
}
