html {
  overflow: auto;
}

:root {
  --scale-top-clearance: 230px;
  --scale-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(--scale-top-clearance);
  bottom: var(--scale-bottom-clearance);
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

#scale-shell {
  width: min(96vw, 1100px);
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.scale-panel {
  flex: 1 1 0;
  min-width: 0;
  background-color: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 24px;
  box-sizing: border-box;
  color: white;
  font-family: 'helvetica', arial black;
}

#scale-title {
  margin: 0 0 4px;
  font-size: 24px;
}

#scale-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

#scale-form .form-field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#scale-form label {
  font-size: 14px;
}

#scale-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 15px;
}

#scale-message {
  margin-top: 12px;
  font-size: 14px;
  min-height: 1.2em;
}

#scale-message.error {
  color: #ff8080;
}

#scale-preview-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#scale-preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

#scale-preview-image.hidden,
#scale-preview-fallback.hidden {
  display: none;
}

#scale-preview-fallback {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  #scale-shell {
    flex-direction: column;
  }

  #scale-preview-panel {
    min-height: 220px;
  }
}

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: -46px;
  right: -168px;
  z-index: 9999;
  background-size: cover;
}
