*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

:root {
  --background-light: #fff;
  --background-color: #fafafa;
  --heading-color: #16191c;
  --text-color: #424443;
  --shadow: 5px 5px 15px rgba(0, 0, 0, 0.08);
}

.dark-mode {
  --background-light: #2b3743;
  --background-color: #212e37;
  --heading-color: #fff;
  --text-color: #eefaff;
}

html {
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  font-family: 'Rubik', sans-serif;
}

main {
  background-color: var(--background-color);
  min-height: 92vh;
  padding: 0 1.5rem;
  padding-top: 2rem;
}

header {
  background-color: var(--background-light);
  height: 8vh;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.1);
  /* the box shadow won't show unless i make it a z-index more than the main element */
  position: relative;
  z-index: 2;
}

header h2 {
  color: var(--heading-color);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--heading-color);
  cursor: pointer;
}

svg {
  height: 18px;
  width: 18px;
  fill: none;
  stroke: var(--heading-color);
}

.dark-mode svg {
  fill: var(--heading-color);
}

@media only screen and (min-width: 600px) {
  main {
    padding: 2rem 2rem 0 2rem;
  }

  header h2 {
    font-size: 22px;
  }
}

@media only screen and (min-width: 900px) {
  main {
    padding: 2rem 3rem 0 3rem;
  }
}

@media only screen and (min-width: 1150px) {
  main {
    padding: 2rem 5rem 0 5rem;
  }
}
