html {
  overflow: auto;
}

:root {
  --resources-top-clearance: 230px;
  --resources-bottom-clearance: 95px;
}

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  font-family: sans-serif, Helvetica;
  background: linear-gradient(180deg, #0f1620 0%, #10161d 40%, #121f2d 100%);
}

header {
  z-index: 9998;
  width: 100%;
  height: 150px;
  min-height: 150px;
  text-align: center;
  color: white;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
  border: 0;
  font-family: 'helvetica', arial black;
  font-size: 3em;
  background-size: cover;
  background-image: url('../images/MarineHeader.jpg');
  background-color: white;
  position: fixed;
  top: 0;
  left: 0;
}

#Logo {
  width: 110px;
  height: 110px;
  border: 0;
  position: absolute;
  top: 11px;
  left: 11px;
  background-image: url('../images/MarineLogo.jpg');
  background-size: cover;
  background-position: bottom right;
  z-index: 9999;
}

#content {
  position: fixed;
  top: var(--resources-top-clearance);
  bottom: var(--resources-bottom-clearance);
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#settings-table-shell {
  width: min(96vw, 1300px);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.75);
  overflow-x: auto;
  transform: translateY(-22px);
}

#settings-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background-color: transparent;
  color: white;
  table-layout: auto;
}

#settings-table caption {
  caption-side: top;
  padding: 12px;
  font-size: 24px;
  font-weight: bold;
  font-family: 'helvetica', arial black;
  color: white;
  background-color: rgba(255, 255, 255, 0.08);
  text-align: center;
}

#settings-table th,
#settings-table td {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 15px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

#settings-table th {
  font-weight: bold;
  font-family: 'helvetica', arial black;
  background-color: rgba(255, 255, 255, 0.08);
}

#settings-table td:first-child,
#settings-table th:first-child {
  width: 70px;
}

html#USEFUL-OFFSETS #settings-table-shell {
  width: min(92vw, 1100px);
}

html#USEFUL-OFFSETS #settings-table th:last-child,
html#USEFUL-OFFSETS #settings-table td:last-child {
  width: 170px;
}

html#USEFUL-OFFSETS #settings-table th:first-child,
html#USEFUL-OFFSETS #settings-table td:first-child {
  width: auto;
}

html#TECH-TIPS #settings-table-shell {
  width: min(92vw, 1200px);
}

html#TECH-TIPS #settings-table th:nth-child(2),
html#TECH-TIPS #settings-table td:nth-child(2) {
  width: 150px;
}

html#TECH-TIPS #settings-table th:nth-child(3),
html#TECH-TIPS #settings-table td:nth-child(3) {
  width: 90px;
}

html#TECH-TIPS #settings-table th:nth-child(4),
html#TECH-TIPS #settings-table td:nth-child(4) {
  width: 120px;
}

html#TECH-TIPS #settings-table td:nth-child(3) a,
html#TECH-TIPS #settings-table td:nth-child(4) a {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: white;
}

html#TECH-TIPS #settings-table td:nth-child(3) a:hover,
html#TECH-TIPS #settings-table td:nth-child(4) a:hover {
  color: #8ec5ff;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 79px;
  text-align: center;
  border: 0;
  font-family: 'helvetica', arial black;
  font-size: 1em;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 9999;
  background-size: cover;
  background-image: url('../images/Footer.png');
  background-position: bottom right;
}

#LocationTag,
#ContactTag {
  width: auto;
  text-align: center;
  color: white;
  font-family: 'helvetica', arial white;
  font-size: 1em;
  line-height: 1.6;
  position: static;
  margin: 0;
}

#TrmbLogo {
  width: 500px;
  height: 140px;
  transform: scale(0.35);
  border: 0;
  position: fixed;
  bottom: -32.5px;
  right: -150px;
  background-image: url('../images/TrmbLogo.jpg?v=20260830');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 9999;
}

@media (max-width: 900px) {
  :root {
    --resources-top-clearance: 230px;
    --resources-bottom-clearance: 90px;
  }

  header {
    height: 150px;
    min-height: 150px;
  }

  #Logo {
    width: 110px;
    height: 110px;
  }

  #content {
    padding: 10px;
  }

  #settings-table-shell {
    width: 98vw;
    font-size: 13px;
    transform: translateY(-46px);
  }

  #settings-table caption {
    font-size: 18px;
  }

  #settings-table th,
  #settings-table td {
    padding: 8px;
    font-size: 12px;
  }
}
