html {
  overflow: auto;
}

:root {
  --io-top-clearance: 230px;
  --io-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(--io-top-clearance);
  bottom: var(--io-bottom-clearance);
  left: 0;
  right: 0;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#image-shell {
  width: fit-content;
  height: fit-content;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--io-top-clearance) - var(--io-bottom-clearance) - 24px);
  transform: translateY(-12px);
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.72);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

#io-box-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 44px);
  max-height: calc(100vh - var(--io-top-clearance) - var(--io-bottom-clearance) - 44px);
  object-fit: contain;
}

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 {
    --io-top-clearance: 230px;
    --io-bottom-clearance: 90px;
  }

  header {
    height: 150px;
    min-height: 150px;
  }

  #Logo {
    width: 110px;
    height: 110px;
  }

  #content {
    padding: 10px;
  }

  #image-shell {
    transform: translateY(-46px);
  }
}
