/* VarmeMining.css - Updated: Image size reduced ~30% on large screens, responsive scaling */

body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  color: #ffffff;
  background: #000;
  overflow-x: hidden;
}

.background {
  min-height: 100vh;
  background: linear-gradient(to bottom, #000, #111);
  position: relative;
}

.content {
  margin: 0 auto;
  width: 85%;
  max-width: 1200px;
  padding: 280px 40px 120px;
  text-align: center;
  box-sizing: border-box;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main title - matched to Index */
h1 {
  font-size: 44px;
  margin: 0 0 25px;
  color: #ff9900;
  font-family: "CyberDyne", Arial, sans-serif;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

/* Intro text */
h2:first-of-type {
  font-size: 22px;
  margin: 0 0 80px;
  line-height: 1.6;
  max-width: 900px;
  color: #ffffff;
}

/* Other headings */
h2:not(:first-of-type),
h3,
h4 {
  font-size: 32px;
  margin: 80px 0 40px;
  color: #ff9900;
  font-family: "Orbitron", Arial, sans-serif;
  font-weight: bold;
  text-shadow:
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

h4 {
  font-size: 28px;
  margin-top: 60px;
}

/* Image container - REDUCED SIZE on large screens */
.image-container {
  margin: 30px auto 80px;
  max-width: 1000px;               /* Default fallback */
  width: 90%;
  border: 4px solid #ff9900;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 153, 0, 0.4);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Calculator */
.calculator {
  width: 100%;
  max-width: 800px;
  margin: 60px auto 100px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #ff9900;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 153, 0, 0.3);
}

.calculator h3 {
  font-size: 32px;
  margin: 0 0 50px;
  color: #ffcc66;
}

.calculator label {
  display: block;
  font-size: 22px;
  margin: 30px 0 10px;
  text-align: left;
  color: #ffffff;
}

.calculator input[type="number"] {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  border: 2px solid #ff9900;
  border-radius: 12px;
  box-sizing: border-box;
  text-align: center;
}

.calculator input[type="number"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.calculate-button,
.project-button {
  margin-top: 40px;
  padding: 14px 28px;
  font-size: 18px;
  background: #ff9900;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
  font-weight: bold;
}

.calculate-button:hover,
.project-button:hover {
  transform: scale(1.05);
  background: #ffcc66;
}

/* Results & note */
#initial-result,
#future-results {
  margin-top: 50px;
  font-size: 22px;
  line-height: 1.6;
  color: #ffffff;
}

#initial-result span,
#future-results span {
  color: #ffcc66;
}

.note {
  font-size: 18px;
  color: #ffffff;
  font-style: italic;
  margin-top: 30px;
  opacity: 0.9;
}

/* ── RESPONSIVE BREAKPOINTS (same as Index.css) ──────────────────────────── */

/* Very small phones (≤ 480px) */
@media (max-width: 480px) {
  .content {
    width: 85%;
    padding: 140px 15px 80px;
  }

  h1 {
    font-size: 32px;
  }

  h2:first-of-type {
    font-size: 18px;
    margin: 0 0 50px;
  }

  h2:not(:first-of-type),
  h3,
  h4 {
    font-size: 26px;
    margin: 50px 0 30px;
  }

  .image-container {
    max-width: 100%;
    margin: 15px auto 50px;
  }

  .calculator {
    padding: 25px;
    margin: 40px auto 80px;
  }

  .calculator h3 {
    font-size: 26px;
  }

  .calculator label {
    font-size: 18px;
  }

  .calculator input[type="number"] {
    font-size: 18px;
  }

  .calculate-button,
  .project-button {
    font-size: 16px;
    padding: 12px 24px;
  }

  #initial-result,
  #future-results {
    font-size: 18px;
  }

  .note {
    font-size: 16px;
  }
}

/* Small phones & portrait tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .content {
    width: 90%;
    padding: 180px 20px 100px;
  }

  h1 {
    font-size: 38px;
  }

  .image-container {
    max-width: 95%;
  }
}

/* Tablets & small laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .content {
    width: 88%;
    padding: 220px 30px 100px;
  }

  h1 {
    font-size: 40px;
  }

  .image-container {
    max-width: 90%;
  }
}

/* Large laptops & desktops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  .content {
    max-width: 1100px;
    padding: 260px 40px 120px;
  }

  .image-container {
    max-width: 800px;            /* Reduced size */
  }
}

/* Full HD & larger (1441px+) - your 1920px default */
@media (min-width: 1441px) {
  .content {
    max-width: 1200px;
    padding: 300px -60px 140px;
  }

  .image-container {
    max-width: 700px;            /* ~30% smaller than before (was 1000px) */
  }
}

/* Ultra-wide / 4K (2560px+) */
@media (min-width: 2560px) {
  .content {
    max-width: 1400px;
    padding: 320px 80px 160px;
  }

  .image-container {
    max-width: 800px;            /* Slightly larger for extra space, but still reduced */
  }
}