/* ---- global reset ---- */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* remove horizontal scrollbar */
  min-height: 100%;
  font: normal 75% Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* ---- reset for canvas ---- */
canvas {
  display: block;
}

/* ---- overlay content ---- */
.content-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: #fff;
  z-index: 1;
  background-image: url("./png/logo.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.content-wrapper::before {
  content: "";
  position: absolute;
  inset: 0; /* füllt den Container */
  background-color: rgba(0, 0, 0, 0.45); /* 40% Abdunkelung */
  z-index: 0;
}

.content-wrapper > * {
  position: relative;
  z-index: 1; /* Inhalt über Overlay */
}

.content-wrapper h1 {
  margin: 0 0 0.5em;
  font-weight: bold;
}
.content-wrapper p {
  max-width: 600px;
  line-height: 1.4;
}

/* ---- responsive typography ---- */
/* iPhone / small devices */
@media (max-width: 768px) {
  .content-wrapper h1 {
    font-size: 1.5rem;
  }
  .content-wrapper p {
    font-size: 1rem;
  }
}

/* laptops / mid-size */
@media (min-width: 769px) and (max-width: 1200px) {
  .content-wrapper h1 {
    font-size: 2.5rem;
  }
  .content-wrapper p {
    font-size: 1.25rem;
  }
}

/* large desktops */
@media (min-width: 1201px) {
  .content-wrapper h1 {
    font-size: 3rem;
  }
  .content-wrapper p {
    font-size: 1.5rem;
  }
}

/* ---- stats.js ---- */
#stats,
.count-particles {
  -webkit-user-select: none;
  user-select: none;
  margin-top: 5px;
  margin-left: 5px;
  z-index: 2;                 /* above both layers */
}

#stats {
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.count-particles {
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  border-radius: 0 0 3px 3px;
}
.js-count-particles {
  font-size: 1.1em;
}

.lang-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.lang-btn .lang-menu {
  display: none;
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  background: #222;
  border-radius: 4px;
}
.lang-btn:hover .lang-menu {
  display: block;
}
.lang-btn .lang-menu li {
  padding: 6px 10px;
  cursor: pointer;
}
.lang-btn .lang-menu li:hover {
  background: #444;
}
