:root {
  --safety: #880808;
  --bfc-background: #003436;
  --nav-color: white;
  --nav-height: 48px;
  --nav-font-size: 1.25rem;
  --section-text-width: clamp(80vw, 86vw, 99vw);
  --section-font-size: clamp(
    1rem,
    1rem + (var(--section-text-width) / 160),
    2rem
  );
  --youtube-width: clamp(80vw, 86vw, 99vw);
  --youtube-height: calc(0.5625 * var(--youtube-width));
}

/* Global element based styles */
* {
  box-sizing: border-box;
} /* outline: 2px solid yellow; } */
body {
  font-family: "Times New Roman", Times, serif;
  padding: 0;
  margin: 0;
  border: none;
}

/* The navbar styling */
header {
  position: fixed;
  display: block;
  z-index: 1;
  top: 0;
  left: 0;
  height: var(--nav-height);
  width: 100%;
  background: var(--bfc-background);
  font-size: var(--nav-font-size);
}
header > * {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
header a {
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  white-space: pre;
  background: var(--bfc-background);
  color: var(--nav-color);
}
header :not(.right) a {
  width: 100%;
  border: 2px solid green;
}

header .hamburger {
  top: 4px;
  left: 4px;
}
header .icon {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: white;
}
header .right {
  top: 4px;
  right: 4px;
  flex-direction: row;
  gap: 8px;
}
header .left,
header .submenu {
  opacity: 0;
}
header .left {
  top: var(--nav-height);
  left: 4px;
  min-width: 12ch;
}
header .submenu {
  left: calc(4px + 12ch);
}
header .submenu.safety {
  top: calc(var(--nav-height) + 2rem);
}
header .submenu.costs {
  top: calc(var(--nav-height) + 5rem);
}

header a:hover {
  background-color: grey;
}
header:has(.hamburger:focus, .hamburger:active) .left {
  opacity: 1;
}
header:has(.sublink.safety:focus, .sublink.safety:active)
  :is(.submenu.safety, .left) {
  opacity: 1;
}
header:has(.sublink.costs:focus, .sublink.costs:active)
  :is(.submenu.costs, .left) {
  opacity: 1;
}

#contactDialog {
  margin: auto;
}
#contactDialog::backdrop {
  background: var(--bfc-background);
  opacity: 0.75;
}

/* Semantic element Styles */
main {
  position: relative;
  top: var(--nav-height);
  left: 0;
}
main,
main * {
  padding: 0;
  margin: 0;
  border: none;
}
section {
  background: white;
  color: var(--bfc-background);
  margin: var(--nav-height) auto;
}
section section {
  background: inherit;
  font-size: var(--section-font-size);
}
section .section-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
  margin: 6px 2px 0;
}
section .section-text p:not(:first-child) {
  padding-top: 0.3rem;
}
section .section-text {
  width: var(--section-text-width);
  font-size: var(--section-font-size);
}
section .youtube {
  display: flex;
  flex: 100%;
  flex-grow: 1;
  justify-content: center;
  margin-top: 4px;
  max-width: var(--youtube-width);
}
section .youtube iframe {
  loading: lazy;
  width: var(--youtube-width);
  height: var(--youtube-height);
}
section :is(h1, h2) {
  text-align: center;
  padding-top: var(--nav-height);
}
section h1 {
  font-size: calc(2 * var(--section-font-size));
}
section h2 {
  font-size: calc(1.8 * var(--section-font-size));
}

/* Class specific styling with responsive behavior */
.banner {
  background-color: var(--bfc-background);
}
.banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1280px;
  margin: auto;
}
.inproduction {
  background-color: darkgrey;
}

@media (width>1500px) {
  :root {
    --youtube-width: clamp(640px, 40vw, 1280px);
    --youtube-height: calc(var(--youtube-width) * 0.5625);
    --section-text-width: calc(95vw - var(--youtube-width));
    --section-font-size: clamp(
      1rem,
      1rem + (var(--section-text-width) / 140),
      2rem
    );
  }
  section .section-content {
    flex-direction: row;
    gap: 1rem;
    padding: 0.5rem;
  }
}

/*
#contactus input[type=text], input[type=email] {
    position:relative; padding:10px 15px; color:#686868; display:block;
    box-sizing:border-box; background:transparent; border:1px solid #e4e4e4;
    color:#686868; margin:0 0 20px 0; background-color:white }

#contactus input[type=submit] {float:right; cursor:pointer; margin:0; padding:11px 20px;}

#contactus textarea {
    background:transparent; border:1px solid #e4e4e4;
    color:#686868; margin:0 0 20px 0; background-color:white;
}
*/
