.oxygen-light {
  font-family: "Oxygen", serif;
  font-weight: 300;
  font-style: normal;
}

.oxygen-regular {
  font-family: "Oxygen", serif;
  font-weight: 400;
  font-style: normal;
}

.oxygen-bold {
  font-family: "Oxygen", serif;
  font-weight: 700;
  font-style: normal;
}
/* 
body {
  font-family: "Oxygen", serif;
  font-weight: 300;
  font-style: normal;
} */
/* variables declared here - these are the colors for our pages, as well as the font stacks and sizes. */
:root {
  /* pseudo class weighted more than html and html has before and after */
  --black: #171321;
  --dkblue: #0d314b;
  --plum: #4b0d49;
  --hotmag: #ff17e4;
  --magenta: #e310cb;
  --aqua: #86fbfb;
  --white: #f7f8fa;
  --font-size: 1.3rem;
  --mono: "Oxygen mono", monospace;
  --sans: Oxygen, sans-serif;
}
/* border box model: https://css-tricks.com/box-sizing/ */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}
/* generic styles for the page */
body {
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  background-color: var(--black);
  color: var(--white);
  font-size: var(--font-size);
}
h1,
h2,
h3 {
  margin: 0;
}
a {
  color: var(--magenta);
}

a:hover {
  color: var(--hotmag);
  text-decoration: none;
}

img {
  width: 100%;
  /* small hack that scales image across the screen instead of native width */
}

/* intro styles */
#intro {
  padding: 4rem 4rem;
  padding-bottom: 10rem;
}

#intro p {
  font-size: 1rem;
  line-height: 1.5;
}

#intro .name {
  font-family: var(--mono);
  font-size: 1rem;
}

.name span {
  font-family: var(--sans);
  font-size: 4rem;
  color: var(--aqua);
  display: block;
  font-weight: 300;
}

#intro h2 {
  font-size: 4rem;
}

body {
  font-family: Arial, sans-serif;
}

.section-plum {
  background-color: var(--plum);
}

#contact {
  text-align: center;
  width: 400px;
  margin: 0 auto; /* first number is vertical top,bottom, second is left,right */
  /* whatever is left after 400px, divide in half, and equally */
  padding: 3rem 0;
  /* background-color: var(--plum); */
}

/* pseduo class last-child */
#contact p:last-child {
  margin-top: 3rem;
}

/* nav-bar css */
nav {
  font-family: var(--mono);
  font-size: 80%; /* 80% of the parent element */
  padding: 1rem 4rem;

}

/* to target h1 inside a , write from left to right css while writing, read from right to left */
nav h1 a {
  font-family: var(--sans);
}
 nav ul {
  list-style: none; /* removes the bullet points */
  margin: 0; /* by default, ul/ol have a padding/margin depending on browser */
  padding: 0;
  display: flex; /* put everything in one-direction */
  flex-flow: row wrap; /* row wrap, if there is not enough space, it will wrap to another line */
  justify-content: center;
  align-items: center; /** vertically center */
  gap: 2rem; /* gap between the elements */
}

nav li:first-child {
  /* flexbox - parent/children, all props on ul, li then takes diff properties; flex-basis can be used with flexbox, when flex-basis=25%,it can be 24,26,any, but width=25,only 25  */
  flex-basis: 100%; /* close to 100% of the width */
  /* flex: 0 1 100%; /* flex-grow, flex-shrink, flex-basis * */
  text-align: center;
  /* border: 1px solid red; /*for debugging why it worked/not*/ 
}
 
nav a {
  /* style all states, unvisited links, visited links, hover state(mouse over, no focus on mobile devices), focus state(tab thru web, box over selected), active state(moment b/w link click and next page loading) */
  color: var(--white);
  text-decoration: none; /* less imp that they are links/underline as they are in nav*/
  display: block; /* block level element, takes up the whole width, default a =inline=take as much as wide */
}

nav a:hover, nav [class*="fa-"]:hover {
  color: var(--magenta);
}

nav [class*="fa-"] { /* this is more specific nav a:hover, hence need nav fa*:hover*/
  /* * means any, fa- means any class that has fa- in it */
 font-size: 150%;
 color: var(--aqua);
}

nav h1 [class*="fa-"] {
  font-size: 100%;
  color: var(--aqua);
}

.button {
  color: var(--white);
  background-color: var(--magenta);
  padding: 0.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-family: var(--mono);
}

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

/* why 850, extensive testing shows this is correct breakpoint */
@media (min-width: 850px) {
  nav {
    max-width: 1200px; /* make it look good on very large monitors */
    margin: 0 auto; /* centers very nicely */
  }
  nav li:first-child {
    flex-basis: auto;
    text-align: left;
    margin-right: auto; /* push everything to the left,
     before margin, space divided by flexbox equally, now put that space after first child */
    
  }
}

.gradient {
  background: linear-gradient(90deg, rgba(255,23,228,1) 35%, rgba(134,251,251,1) 68%);
  height: 2px;
}

/* section styles */
.section-dkblue {
  background-color: var(--dkblue);
}

#projects {
  padding: 4rem 1rem;
}
#projects h2 {
  font-size: 2.5rem;
  margin-bottom: calc(2.5rem * 1.5);
}

#projects h3 {
  color: var(--aqua);
}
/* headings by default have some margin associated with them */
#projects h4 {
  font-size: 1rem;
  margin: 0;
}

.blackbox {
  background-color: var(--black);
  padding: 1rem;
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  line-height: 1.5;
}

/* To make list items not in bullets, vertical */
#projects ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 1rem;
}

#projects img {
  margin: 2rem 0 4rem 0;
  padding: 1rem;
  border-left: 1px solid var(--aqua);
  border-top: 1px solid var(--aqua);
  border-radius: 25px;
}

@media (min-width: 550px) {
  article {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1rem;
  }
  #projects {
    max-width: 1200px;
    margin: 0 auto;
  }
  #projects img {
    grid-column: 1/6; /* start with col-1 end before col-6 [1,5]*/
    grid-row: 1/2;
  }
  .text {
    order: 2;
    text-align: right;
    grid-column: 5/11;
    grid-row: 1/2;
  }
  #projects ul {
    justify-content: flex-end;
  }

  #projects .reverse .text {
    grid-column: 1/7;
    order: 2;
    text-align: left;
  }
  #projects .reverse img {
    grid-column: 6/11;
  }
  #projects .reverse ul {
    justify-content: flex-start;
  }
}

/* footer section */
footer {
  text-align: center;
  /*text align is a inherited property for all descendant elements*/
  padding: 4rem 0; /* top and bottom padding-4rem,  */
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  /* flex-direction: row; */
  flex-flow: row wrap;
  justify-content: center;
  gap: 3 rem; /* navigation on phone, want to have a big clickable area */
  font-size: 3 rem;
}