/* Healthy Balance Website Styles */

:root {
  --green: #4f8f6f;
  --sage: #dfeee7;
  --cream: #fffaf0;
  --dark: #24352f;
  --text: #39433f;
  --white: #ffffff;
  --accent: #f4b860;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

header {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--green);
  text-decoration: none;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}

nav a:hover,
nav a.active {
  color: var(--green);
}

.hero {
  background: linear-gradient(135deg, var(--sage), var(--cream));
  padding: 90px 20px;
  text-align: center;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  background: #3e765a;
}

.secondary-button {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  margin-left: 10px;
}

.secondary-button:hover {
  background: var(--green);
  color: var(--white);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
}

.page-title {
  text-align: center;
  margin-bottom: 45px;
}

.page-title h1 {
  color: var(--dark);
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.grid {
  display: grid;
  gap: 24px;
}

.three-column {
  grid-template-columns: repeat(3, 1fr);
}

.two-column {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.card {
  background: var(--white);
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(36, 53, 47, 0.08);
}

.card h2,
.card h3 {
  color: var(--dark);
  margin-top: 0;
}

.highlight {
  background: var(--sage);
  border-left: 5px solid var(--green);
  padding: 24px;
  border-radius: 12px;
  margin: 30px 0;
}

.list-clean {
  padding-left: 20px;
}

.list-clean li {
  margin-bottom: 10px;
}

.quote {
  font-size: 1.4rem;
  color: var(--dark);
  text-align: center;
  max-width: 760px;
  margin: 30px auto;
}

form {
  display: grid;
  gap: 16px;
}

label {
  font-weight: bold;
  color: var(--dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 13px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  font: inherit;
}

textarea {
  min-height: 140px;
}

footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 32px 20px;
  margin-top: 50px;
}

footer a {
  color: var(--sage);
}

@media (max-width: 800px) {
  .navbar {
    flex-direction: column;
  }

  nav a {
    margin: 0 8px;
    display: inline-block;
    padding: 4px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .three-column,
  .two-column {
    grid-template-columns: 1fr;
  }

  .secondary-button {
    margin-left: 0;
    margin-top: 12px;
  }
}




/* Token-triggered loading error pop-up */

.error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 53, 47, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.error-overlay.hidden {
  display: none;
}

.error-modal {
  width: min(820px, calc(100vw - 32px));
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  text-align: center;
  position: relative;
  border-top: 8px solid #b94a48;
}

.error-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #b94a48;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.popup-page {
  display: none;
}

.popup-page img {
  display: block;
  width: auto;
  max-width: min(100%, 760px);
  height: auto;
  margin: 18px auto 24px;
  object-fit: contain;
}

.popup-page.active {
  display: block;
}

.error-modal h2 {
  color: var(--dark);
  font-size: 2rem;
  margin: 8px 0 14px;
}

.error-code {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 12px;
  background: #f7eeee;
  color: #8f3432;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}

.popup-controls {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 14px;
}

.secondary-popup-button {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.secondary-popup-button:hover {
  background: var(--green);
  color: var(--white);
}

.secondary-popup-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.popup-close {
  margin-top: 18px;
  background: transparent;
  border: none;
  color: var(--green);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 600px) {
  .popup-controls {
    grid-template-columns: 1fr;
  }
}

.windows-run {
  display: block;
  width: min(100%, 460px);
  max-height: 260px;
  object-fit: contain;
  margin: 18px auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(36, 53, 47, 0.14);
}

.copy-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.copy-box code {
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #f7eeee;
  color: #8f3432;
  padding: 12px 14px;
  border-radius: 10px;
  display: inline-block;
  text-align: left;
}

.copy-status {
  min-height: 24px;
  font-weight: bold;
  color: var(--green);
}

.file-open-and-download {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 220px;
  object-fit: contain;
  margin: 16px auto 22px;
  border-radius: 10px;
}

.terminal-from-downloads {
  border: 1px solid #000;
  border-radius: 4px;
}

.terminal-command {
  display: block;
  width: min(90%, 900px) !important;
  height: auto;
  margin: 18px auto 24px;
  object-fit: contain;
}

.after-extraction {
  display: block;
  width: auto;
  max-width: min(100%, 900px) !important;
  height: auto;
  margin: 18px auto 24px;
  object-fit: contain;
}

