/* Colors */

:root {
  --color-primary: #e8c96a;
  --color-primary-hover: #d4b145;
  --color-primary-dark: #c8a227;
  --color-primary-light: #fdf7e3;

  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --color-text-faint: #aaa;

  --color-border: #f0f0f0;

  --bmi-severely-under: #85B7EB;
  --bmi-under: #378ADD;
  --bmi-normal: #97C459;
  --bmi-over: #EF9F27;
  --bmi-obese-1: #E24B4A;
  --bmi-obese-2: #c0392b;
  --bmi-obese-3: #7B241C;
}

/* Basic */

* {
    color: var(--color-text);
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding:0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: white;
}

/* Templates */

main {
    margin-inline: 5rem;
}

section {
    padding-block: 4rem;
}

.heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subheading {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
}

.paragraph {
    color: var(--color-text-muted);
    line-height: 2rem;
    max-width: 80ch;
    
}

button {
    background: none;
    border: 1px solid var(--color-text);
    border-radius: 10px;
    font-weight: 700;
    margin-top: 1rem;
    padding: 0.8rem;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: var(--color-text);
    color: white;
}

.sectionHeader {
    background-color: var(--color-primary);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    padding: 1rem 2rem;
}

.sectionHeader h1 {
    font-size: 1.5rem;
}

/* Navbar */

header {
    align-items: center;
    background-color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.headerTitle {
    color: var(--color-text);
    font-weight: 700;
    user-select: none;
}

.headerMadeBy {
    font-size: 0.6rem;
    color: var(--color-text);
}

/* Hero */

.hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60svh;
}

.hero .subheading {
    margin-bottom: 3rem;
    text-align: center;
}

.calculator {
    display: flex;
    flex-direction: column;
}

.calculator label {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.calculator input {
    background-color: #f8f7f7;
    border: 0px solid var(--color-text);
    border-radius: 10px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: 0.3s ease;
    min-width: 20rem;
}

.calculator input:focus {
    background-color: #efeded;
}

/* Results */

.bmiHeader {
    color: var(--color-text);
    font-size: 2rem;
    text-align: center;
}

.bmiSubheader {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}

.bmiRange {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.ranges-list { 
    margin-block: 2rem; 
}

.range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 30rem;
  padding: 8px 0;
  border-bottom: 0.5px solid #f0f0f0;
  font-size: 13px;
}
.range-row:last-child { 
    border-bottom: none;
}

.range-row .name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.range-row .num {
    color: #888; 
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Footer */

footer {
    padding: 3rem;
    width: 100%;
}