.main_content_container {
  margin-top: 100px;
  margin-bottom: 60px;
  max-width: 1920px;
}

.impressum_data_protection_container {
  padding: 30px;
  background-color: rgb(148, 111, 1);
}

.canvas_container {
  position: relative;
}

.overlay_1 {
  position: absolute;
  inset: 0;
  background: url("assets/imgs/5_background/start-background.png");
  background-position: center;
  background-size: 101%;
  z-index: 5;
}

.overlay_1::before {
  content: "";
  position: absolute;
  inset: 0;
}

.overlay-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.menu-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  margin-top: 150px;
  width: 120px;
  height: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, filter 120ms ease;
}
.menu-btn:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
.menu-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.controls-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  background-color: rgba(0, 0, 0, 0.35);
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 8px;
}

.volume-block {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-family: var(--hud-font, "Rye", "Rockwell", serif);
  flex: 1 1 auto;
  min-width: 320px;
}

.volume-block > span:first-child {
  min-width: 70px;
  text-align: left;
}

#volume-slider {
  flex: 1 1 240px;
  min-width: 140px;
}

.hidden {
  display: none;
}

.settings-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 20px;
  line-height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

.settings-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.settings-btn:active {
  transform: scale(1.05);
  filter: brightness(0.95);
}

.settings-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.settings-inner {
  background-image: url("assets/imgs/extras/setting-background.png");
  min-width: 280px;
  padding: 16px 18px;
  background: rgba(116, 33, 0, 0.705);
  color: #e8c602;
  font-family: var(--hud-font, "Rye", "Rockwell", serif);
  display: grid;
  gap: 12px;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-link {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  text-align: center;
}
.menu-link.subtle {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
}
.menu-link:hover {
  filter: brightness(1.1);
}

.legal-links {
  display: flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
  color: #fff;
  font-family: var(--hud-font, "Rye", "Rockwell", serif);
}

.legal-links a {
  color: #ffffff;

  opacity: 0.9;
}

.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.settings-fab {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 25;
}

.settings-fab:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.settings-fab img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.overlay_settings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  z-index: 40;
}
.overlay_settings.hidden {
  display: none;
}

.settings-row {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.settings-row button:hover {
  transform: scale(1.05);
}

.settings-row1 button:hover {
  transform: scale(1.05);
}

.settings-row1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.settings-action {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(116, 33, 0, 0.705);
  color: #e8c602;
  cursor: pointer;
}
.hidden {
  display: none;
}

.overlay_result {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 999;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.25);
}

.overlay_result .result-inner {
  display: grid;
  place-items: center;
}

.overlay_result .result-inner img {
  width: 0;
  opacity: 0;
  transform: scale(0.6);
}

.overlay_result.show .result-inner img {
  width: 420px;
  max-width: 80vw;
  height: auto;
  animation: result-pop 320ms ease-out forwards;
}

@keyframes result-pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    opacity: 1;
    transform: scale(1.06);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
}

.mute-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.mute-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.mute-btn:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.mute-btn img {
  width: 24px;
  height: 24px;
  transform: scale(1.6);
  margin-right: 18px;
  transform-origin: center;
  pointer-events: none;
}

#volume-value {
  min-width: 40px;
  text-align: right;
}

#overlay-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
}

.buttons-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-left: 30px;
  gap: 40px;
  opacity: 0.5;
}

.buttons-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  padding-right: 48px;
  gap: 40px;
  opacity: 0.5;
}

.rotate-overlay {
  display: none;
}

@media (orientation: portrait) and (max-width: 1024px) {
  .rotate-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #000;
    color: #fff;
    z-index: 10000;
    text-align: center;
    font-family: var(--hud-font, "Rye", "Rockwell", serif);
    font-size: clamp(18px, 4vw, 28px);
  }
  .canvas_container {
    display: none !important;
  }
}

@media (orientation: landscape) and (max-width: 1024px) {
  html,
  body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    background: #000;
  }

  .canvas_container {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: #000;
  }

  #canvas {
    width: 100vw;
    height: 100vh;
    display: block;
    object-fit: fill;
  }

  .overlay_1 {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
  }

  .overlay-inner {
    transform-origin: center;
    transform: scaleX(calc(100dvw / 720)) scaleY(calc(100dvh / 480));
  }

  .overlay_settings,
  .overlay_result {
    position: absolute;
    inset: 0;
  }
}

#overlay-buttons button {
  touch-action: none;
  user-select: none;
}

.overlay_result.show {
  pointer-events: auto;
}

.result-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.result-actions .settings-action:hover {
  transform: scale(1.05);
}

.legal-inner {
  width: min(720px, 90vw);
}

.legal-body {
  max-height: 60vh;
  overflow: auto;
  text-align: left;
  line-height: 1.45;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
}
.legal-body a {
  color: #fff;
  text-decoration: underline;
}
