@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;  /* Variable font weight range */
  font-style: normal;
  font-stretch: normal;
}

* {
  box-sizing: border-box;
  font-family: 'Inter'!important;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
}

.topnav {
  padding: 0 18px;
  position: sticky;
  background: #f2f2f2;
  z-index: 88;
  top: 0;
  width: 100vw;
  z-index: 80;
}
.topnav + hr {
  margin: 0;
}

a img {
  vertical-align: top;
}

#side-nav {
  width: 0;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f2f2f2;
  overflow-x: hidden;
  transition: 0.1s ease-out;
  z-index: 99;
  text-align: center;
}
#side-nav ul {
  margin: 48px auto 16px auto;
}
#side-nav a {
  text-decoration: none;
  padding: 16px 0;
}
#side-nav.active {
  width: 100vw;
}
#side-nav-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: 0;
}
#side-nav-close svg { color: #000 }

#menu-btn-navbar { display: none; }

@media only screen and (max-width: 1014px) {
  .hide-on-phone { display: none; }
  #menu-btn-navbar { display: block; }
}

.nav-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  color: currentColor;  /* Uses text color */
  stroke: none;
}

/* Light mode (default) */
/* Light mode */
.first-aid-icon {
  color: #2D6A4F;
}

.donate-icon {
  color: #C44536;
}

.hospital-icon {
  color: #2C7DA0;
}

.envelope-icon {
  color: #5E5B8B;
}

.home-impact-section {
  background-color: var(--pico-contrast-background);
}

/* Dark mode - Pico dark theme */
@media (prefers-color-scheme: dark) {
  .first-aid-icon {
    color: #74A98B;
  }

  .donate-icon {
    color: #E28A7A;
  }

  .hospital-icon {
    color: #6CB4D4;
  }

  .envelope-icon {
    color: #A8A5CE;
  }

  .topnav {
    background: #223;
  }
  
  #side-nav-close svg { color: #fff }
  #side-nav { background: #222233fe }

  .home-impact-section {
    background-color: #1F3C88;
  }
}
