:root {
  --primary-color: #80a1ba; /* Blue */
  --secondary-color: #91c4c3; /* Gray */
  --accent-color: #b4debd; /* Green */
  --accent-color-2: #fff7dd; /* Yellow */
  --text-color-dark: #343a40; /* Dark gray */
  --text-color-light: #f8f9fa; /* Light gray */

  --main-white: #f0f0f0;
  --main-red: #be3144;
  --main-blue: #45567d;
  --main-gray: #303841;
}

/*A guy on stackoverflow said this helps with better box sizing
HAVE TO UNDERSTAND LATER*/
*,
::before,
::after {
  box-sizing: inherit;
}

/*Setting box sizing model, font and fint size*/
html {
  box-sizing: border-box;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  /* Set font size for easy rem calculations
   * default document font size = 16px, 1rem = 16px, 100% = 16px
   * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
  */
  font-size: 62.5%;
}

/*set min height so it always ocupies the entire viewport,
also use the dvh that takes into account mobile devices*/
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Poppins", sans-serif; /*Chose different font later in the project*/
  background-color: var(--primary-color);
}

/*this is to keep the max width of the content
use in the main content too, is good for reponsive containers*/
.container {
  max-width: min(90%, 1440px);
  margin: 0 auto;
}

/*You can also use this for bigger contents*/

.container--narrow {
  max-width: min(92%, 1140px);
}

.container--wide {
  max-width: min(90%, 1600px);
}

/*screen reader only class for accesibility */
.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(100%);
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  white-space: nowrap;
}

/*NAVIGATION STYLES*/
/*top of the page, just regular stuff here*/
.masthead {
  background-color: var(--accent-color-2);
  padding: 3rem 3rem;
  position: sticky; /* makes it stick */
  top: 0; /* stick at the very top */
  z-index: 1000;
  border-bottom: 4px solid var(--main-red);
}

/*this will align the items accordingly, making space between
the 2 child elements*/
.primary-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*left side of the nav, logo and title*/
.left-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.left-nav > h1 {
  font-size: 3rem;
  color: var(--text-color-dark);
  margin: 0;
}

/*make them flex too, and reset the list style*/
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

/*margin to keep the links away from each other*/
.nav-links li {
  margin-left: 2rem;
}
/*so the first link doesnt have a margin on the left*/
.nav-links li:first-child {
  margin-left: 0;
}

/*link styles*/
/*put the different link styles here*/
.nav-link {
  text-decoration: none;
  color: var(--text-color-dark);
  font-size: 2.2rem;
}

/*Create effect for link states, hover, active, etc*/
.nav-link:hover {
  color: var(--main-blue);
}


/*Footer styles*/
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 2px;
}

.footer-section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: var(--accent-color-1);
  text-align: center;
  padding: 2rem;
  font-size: 1.4rem;
  border-top: 4px solid var(--main-red);
  color: var(--text-color-dark);
}

.footer-section > p {
  margin: 2rem;
  font-size: 2rem;
}
