:root {
  --overlay: rgba(20, 20, 20, .80);
}

/* Fluid base font size for all text */
html {
  font-size: clamp(15px, 0.7vw + 0.35rem, 20px);
}

/* Background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../src/struktura_compress.png') center/cover no-repeat;
  will-change: transform;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
}

/* Overlay glass */
.overlay {
  background-color: rgba(20, 20, 20, 0.80);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 768px) {
  body::before {
    position: absolute;
  }
  .content {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Headline */
h1 {
  font-size: clamp(2rem, 2vw + 1rem, 4rem);
  margin-bottom: 1.5rem;
  color: #f0f0f0;
}

/* Content block */
.content {
  /*background: rgba(30, 30, 30, 0.9);*/
  padding: clamp(1.6rem, 2vw, 3rem);
  /*border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);*/
  line-height: 1.6;
  font-size: clamp(0.9rem, 0.55vw + 0.45rem, 1.1rem);
  width: min(90%, 850px);
  max-width: 850px;
}

/* Expand slightly only on 4K+ */
@media (min-width: 2560px) {
  .content {
    max-width: 1600px;
    font-size: clamp(1.1rem, 0.9vw + 0.5rem, 1.6rem);
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Button */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: clamp(0.8rem, 1vw, 1.2rem) clamp(1.6rem, 2vw, 2.5rem);
  border-radius: 30px;
  background: linear-gradient(145deg, #656565, #222);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: clamp(0.5rem, 0.8vw + 0.5rem, 0.7rem);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(145deg, #666, #333);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.8), 0 0 8px rgba(180, 180, 255, 0.5);
}

/* Footer */
.footer {
  position: fixed;
  right: 15px;
  bottom: 10px;
  font-size: clamp(0.8rem, 0.6vw + 0.5rem, 1rem);
  color: #aaa;
  font-style: italic;
}

.footer:hover {
  color: #fff;
}

/* ↓ Scale down sizes on up to 1440p */
@media (max-width: 1440px) {
  html {
    font-size: clamp(14px, 0.65vw + 0.3rem, 18px);
  }

  .content {
    font-size: clamp(0.85rem, 0.5vw + 0.4rem, 1.05rem);
    width: min(90%, 800px);
    max-width: 800px;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ↑ Make content wider and text slightly larger on >1440p */
@media (min-width: 1441px) {
  .content {
    width: min(80%, 1000px);
    max-width: 1000px;
    font-size: clamp(0.95rem, 0.6vw + 0.45rem, 1.2rem);
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Extra bump for true 4K+ */
@media (min-width: 2560px) {
  .content {
    width: min(80%, 1300px);
    max-width: 1300px;
    font-size: clamp(1rem, 0.7vw + 0.5rem, 1.3rem);
    padding-left: 40px;
    padding-right: 40px;
  }
}