html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}
::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root {
  --dark-blue: #162b61;
  --light-blue: #cdeffb;
}
body {
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
img {
  max-width: 100%;
  height: auto;
}
header .row {
  display: grid;
  grid-template-columns: 1fr 2fr 0.1fr;
}
header .logoball {
  padding-top: 1em;
}
header .logoball a {
  display: flex;
}
header .logoball img {
  width: 100%;
}
header .logotype {
  padding: 1em;
}
address span {
  font-size: 1.25em;
}

h1, h2 {
  font-weight: 400;
  font-size: clamp(18px, 3.2vw, 34px);
  color: var(--dark-blue);
  margin-bottom: 1em;
}
h4 {
  color: var(--dark-blue);
}
p {
  font-weight: 300;
  font-size: 1.05em;
}
.slogan {
  font-size: clamp(15px, 2.2vw, 24px);
  font-weight: 300;
  font-style: italic;
  text-wrap: balance;
}
.subhead {
  font-weight: 300;
  font-size: clamp(16px, 2.2vw, 26px);
  font-style: italic;
  width: 80%;
  margin: 0 auto;
  margin-top: -1em;
  text-wrap: balance;
}
nav {
  background: var(--dark-blue);
}
nav a {
  color: white;
  display: inline-block;
  text-decoration: none;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
}
nav a:hover {
  color: var(--light-blue);
}
.current {
  border-bottom: 2px solid white;
}
section:not(:first-of-type) {
  margin: 5vw 0;
}
.banner {
  background-image: linear-gradient(to bottom, var(--dark-blue) 25%, var(--light-blue) 25% 85%, white 85%);
}
.banner .container-fluid {
  max-width: 85%;
}
.bannerposter {
  filter: drop-shadow( 0px 10px 8px rgba(0, 0, 0, 0.5));
}
.bannerposter span {
  clip-path: polygon(0% 0%, 100% 0%, 100% 56%, 50% 100%, 0% 56%);
  display: block;
}
.services-info ul {
  display: inline-block;
  margin: 0 auto;
  & li {
    text-align: left;
  }
}
.contact-items img {
  margin-bottom: 15px;
  max-width: 80px;
  height: auto;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5em;
  margin: 1.5em 0;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  padding: 1em 1.25em;
  background: #f5f7fa;
  border-radius: 8px;
  border-left: 3px solid var(--dark-blue);
  text-align: left;
  font-size: 0.95em;
  line-height: 1.5;
}
.contact-card svg {
  flex-shrink: 0;
  color: var(--dark-blue);
  margin-top: 2px;
}
.contact-card strong {
  color: var(--dark-blue);
  font-weight: 500;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-card a {
  color: inherit;
  text-decoration: none;
}
.contact-card a:hover {
  color: var(--dark-blue);
  text-decoration: underline;
}
.contact-items a {
  color: inherit; 
}
.contact-form .contact-box {
  background: #d5d5d5;
  border-radius: 15px;
}
form {
  padding: 10px;
}
.form-label {
  text-align: start;
  font-weight: 300;
  font-style: italic;
  display: block;
}
.sent-message, .customer-message, .file-message, .edit-message, .upload-message {
  font-weight: 800;
  color: #0baa00;
  visibility: hidden;
}
.login-message {
  font-weight: 500;
  color: red;
  visibility: hidden;
}
footer {
  background-color: var(--dark-blue);
  color: white;
  padding: 2vw;
}
footer .logotype {
  align-content: center;
}
footer .logos {
  align-content: center;
}
.logo-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  & img {
    max-width: 200px;
    align-self: center;
    margin-bottom: 1em;
  }
}
address {
  font-size: 1em;
  text-align: center;
}
footer a {
  color: white;
  text-decoration: none;
}
.byline {
  font-size: 10px;
  display: block;
}
.contactbox {
  position: relative;
}
#waiting {
  visibility: hidden;
  background: rgba(0, 0, 0, 0.3);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  & div {
    animation: 1s linear infinite rotatearrows;
  }
}
#waiting-add, #waiting-upload, #waiting-edit {
  visibility: hidden;
  display: inline-block;
  display: flex;
  align-items: center;
  justify-content: center;
  & svg {
    animation: 1s linear infinite rotatearrows;
  }
}
@keyframes rotatearrows {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ======= ADMIN PAGE ======== */
.adminbox {
  background: #eae8e8;
}
.boxheader {
  font-size: 24px;
  background: #162b61;
  color: white;
  padding: 10px 10px 10px 24px;
}
.boxbody {
  padding: 24px;
}
.pdfdoc {
  position: relative;
  padding-left: 14px;
}
.pdfdoc::before {
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3e%3cpath d='M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z' fill='red'/%3e%3c/svg%3e");
  width: 24px;
  height: 24px;
  position: absolute;
  left: -6px;
  top: 1px;
  padding-right: 10px;
}
td > span {
    cursor: pointer;
}
.password-container {
  position: relative;
  width: 300px;
}

.password-container input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  font-size: 16px;
  box-sizing: border-box;
}

.eye-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 22px;
  height: 22px;
  fill: #666;
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.eye-icon.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.eye-icon.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}
.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}
.invisible {
  visibility: hidden;
}
.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) {
  header .row {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 1.6fr) 1fr;
  }
  header .logoball img {
    width: 70%;
  }
  nav {
    padding: 10px 0px;
  }
  nav a {
    font-size: 1.1em;
  }
  .logo-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    & img {
      max-width: 200px;
      margin-bottom: 1em;
    }
  }
  .project {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
     & img {
      aspect-ratio: 1.65 / 1;
     }
  }
  .project .acqua {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    & img {
      aspect-ratio: 1 / 2;
    }
  }
  .project .court img {
    aspect-ratio: 1 / 2;
  }
}

/* Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  header .logotype {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  h4 {
    text-align: left;
    color: var(--dark-blue);
  }
  p {
    text-align: left;
    font-size: 1.15em;
  }
  p.subhead {
    text-align: center;
  }
  address p {
    text-align: center;
  }
  .services-info {
    columns: 2;
    ul {
      font-size: 1.2em;
      text-align: left;
      display: block;
    }
  }
  .project {
    display: grid;
    grid-template-columns: 1fr repeat(2, 2fr) 1fr;
    gap: 15px;
    & figure {
      width: 100%;
      & img {
        width: 100%;
        aspect-ratio: 1.65 / 1;
      }
    }
  }
  .project .acqua {
    grid-row: 1 / 3;
    grid-column: 4 / 5;
    align-self: center;
    & img {
      aspect-ratio: 1 / 2;
    }
  }
  .project .court {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    align-self: center;
    & img {
      aspect-ratio: 1 / 2;
    }
  }
  footer .logotype {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1em;
    & img {
      max-width: 100%;
    }
  }
  footer nav a {
    font-size: 1.1em;
  }
}
/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  address {
    padding-left: 1em;
    border-left: 2px solid white;
    & p {
      text-align: left;
    }
  }
}
/* X-Large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {

}
/* XX-Large devices (larger desktops, 1400px and up) */
@media only screen and (min-width: 1400px) {
  header .logoball {
    padding-top: 2em;
  }
  header .logoball img {
    align-self: self-end;
  }
  header .logotype {
    padding: 2em 0;
  }
}

@media only screen and (min-width: 35em) {

}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
}

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
