/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;
  
  /* Colors */
  --sat: 63%;
  --first-color: rgb(0,0,162);
  --first-color-alt: black;
  --title-color: black;
  --text-color: black;
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;
  
  /* Font and typography */
  --body-font: "Open Sans", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
  --tiny-font-size: 0.625rem;
  
  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== BOTTOM NAVIGATION BAR ===============*/
.nav__menu {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: var(--container-color);
  box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
  width: 100%;
  height: 4rem;
  padding: 0 1rem;
  display: grid;
  align-content: center;
  border-radius: 1.25rem 1.25rem 0 0;
  transition: 0.4s;
  z-index: 9999; /* Ensures it's above other elements */
}

.nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__icon {
  font-size: 1.5rem;
}

/* Active link styling */
.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3s;
}

.nav__name {
  font-size: var(--tiny-font-size);
  text-decoration: none !important;
}

.active-link::before {
  content: "";
  position: absolute;
  bottom: -0.75rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
}

/* Hide bottom navigation on desktops (screens 1024px and wider) */
@media screen and (min-width: 1024px) {
  .nav__menu {
    display: none;
  }
}