

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/Fonts/JetBrains_Mono/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/Fonts/JetBrains_Mono/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/Fonts/JetBrains_Mono/JetBrainsMono-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/Fonts/JetBrains_Mono/JetBrainsMono-BoldItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}
*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root
{
  /* Tokyo Night Inspired Color Pallete */
  --darkbg0: #1f2335; 
  --darkbg1: #24283b; /* darkbg variant 1 */
  --darkbg2: #292e42; /* dakbg variant 2 */

  --lightbg0: #c0caf5;

  --darkfg0: #737aa2; /*foreground1 (Headers) when dark */
  --darkfg1: #a9b1d6; /*foreground2 (Text) when dark */
  --darkfg2: #565f89; /* aside text when dark */

  --lightfg0: #414868; /*foreground1 (Headers) when light*/
  --lightfg1: #3b4261; /* aside text when light */ 
  --lightfg2: #545c7e; /*foreground2 (Text) when light */

  --light-blue: #3d59a1;
  --dark-blue: #394b70;
  --light-cyan: #7dcfff;
  --dark-cyan: #7aa2f7;
  --light-green: #b4f9f8;
  --dark-green: #c3e88d;   /* Ok */
  --light-purple: #bb9af7;
  --dark-purple: #9d7cd8;
  --dark-orange: #ff9e64;
  --light-orange: #ffc777; /* Warnings */
  --light-tean: #4fd6be;
  --dark-tean: #41a6b5;
  --light-red: #ff757f;
  --dark-red: #c53b53; /* Alerts */
  --red-neon: #ff007c;
}

body
{
  background-color: var(--darkbg2);
  background-image: url(/assets/asfalt-dark.png);
  /* to do with DOM later
  background-color: var(--lightbg0);
  background-image: url(assets/asfalt-light.png);
   */
font-family: 'JetBrains Mono', monospace;
font-size: 16px;
font-style: normal;
font-weight: normal;
height: 100vw;
width: 100vw;
box-sizing: border-box;
overflow: hidden;
margin: 0;
}

a
{
  text-decoration: none;
  color: inherit;
}


/************************ Header / Navbar Common Styling **********************/
header, nav
{
  background-color: var(--darkbg0);
  background-image: url("/assets/asfalt-dark.png");
}


/********************************* Header *************************************/

header
{
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100vw;
  height: 6em;
  display: flex;
  flex-direction: row;
  color: var(--darkfg0);
  border: var(--darkbg0) 2px solid;
}

.header-left
{
  height: 6em;
  width: 12em; /*same of the navbar*/
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
}
.header-left > img
{
  height: 6em;
  width: 6em;
  margin-left: 3em;
  border-radius: 50%;
  flex-shrink: 1;
}
.mid-header
{
  width: calc(100vw - 24em);
  height: 6em;
  justify-content: center;
  align-items: center;
  display: flex;
}
.header-right
{
  height: 6em;
  width: 12em;
  justify-content: center;
  align-items: center;
  display: flex;
}
.header-right h2
{
  font-size: 1rem;
}

/******************************** Left Navbar *********************************/
.nav-bar
{
  height: 100vh;
  width: 12em;
  position: fixed;
  z-index: 100;
}

/* psul - Left navbar pseudo ul */
.psul
{
  margin-top: 6em;
  display: flex;
  flex-direction: column;
}

/* psli - Left Navbar pseudo li */
.psli
{
  padding-left: 1em;
  width: 100%;
  height: 3em;
  display: flex;
  align-items: center;
  color: var(--darkfg0);
  font-weight: bold;
  justify-content: space-between;
}
.psli:hover
{
  background-color: var(--darkbg2);
  color: var(--lightfg2);
}
.psli svg
{
  width: 24px;
  height: 24px;
  fill: var(--darkfg0);
}
.psli > span
{
  text-align: left;
  min-width: 6em;
}
.psli div
{
  width: 24px;
  height: 24px;
}

/* psnav - pseudo navbar dropmenu container*/
.psnav
{
  color: var(--darkfg0);
  height:100vh;
  width: 24em;
  position: fixed;
  left: -12em;
  z-index: 1;
}
#psnav.open
{
  left: 12em;
  transition: 0.8s ease-in;
}
/* psul-sub - pseudo ul dropmenu*/
.psul-sub
{
  margin-top: 1em;
  display: flex;
  flex-direction: column;
}
/* psli-sub - pseudo li dropmenu elements*/
.psli-sub
{
  padding-left: 2em;
  width: 100%;
  height: 3em;
  display: flex;
  align-items: center;
}
.psli-sub svg
{
  width: 24px;
  height: 24px;
  fill: var(--darkfg0);
}
.psli-sub:hover
{
  background-color: var(--darkbg2);
  color: var(--lightfg2);
}
.psli-sub > span
{
  padding-left: 1em;
}

/* Buttons and States */
.active
{
  background-color: var(--darkbg2);
  color: var(--dark-cyan);
  svg
  {
    fill: var(--dark-green);
  }
}

.dropdown-btn
{
  padding-left: 1.5em;
  margin-left: 1.5em;
  transition: 0.8s ease-in-out;
  justify-content: flex-end;
}
#dropdown-btn.rotate
{
  rotate: 1080deg;
  transition: 0.8s ease-in-out;
}

/********************************* Main Content Container *******************/
main
{
  width: 100vw;
  padding-left: 12em;
  padding-top: 0.5em;
  height: calc(100vh - 6em);
  position: fixed;
  color: var(--darkfg0);
  overflow: scroll;
}

/* Projects Articles */
.pj-header
{
  padding-top: 2.5em;
  padding-right: 12em;
  color: var(--dark-tean);
  font-weight: bold;
  font-size: 24;
  text-align: center;
}
.pj-article p
{
  font-weight: 600;
  font-size: 1.2em;
  padding: 1em;
  text-indent: 2em;
  text-align: left;
}

.libft-funcs-group{
  display: flex;
  flex-direction: column;
}
.libft-funcs-group dt
{
  font-weight: bold;
  padding: 0 4em 0 4em;
  color: var(--lightbg0);
}
.libft-funcs-group dd
{
  padding: 0 2em;
  color: var(--darkfg1);
}
.libft-funcs-group h4
{
  padding: 1em;
  padding-right: 12em;
  justify-content: center;
  align-self: center;
  color: var(--dark-cyan);
}
.libft-funcs-group h3
{
  padding: 1em;
  padding-right: 12em;
  justify-content: center;
  align-self: center;
  color: var(--light-cyan);
}
.libft-funcs-grid{
  padding: 1em 3em;
  display: grid;
  grid-template-columns: 12em 1fr 12em 1fr;
}

.pj-link
{
  font-weight: 600;
  font-size: 24;
  padding-right: 12em;
  text-align: center;
  color:  var(--dark-cyan);
}
.printf-ex
{
  width: 50vw;
  height: 500px;
  margin: 0 auto;
  padding-right: 12em;
  justify-content: center;
  align-self: center;
  padding-top: 3em;

}
.printf-ex img
{
  background-color: white;
  max-width: 100%;
}
.shell-ex
{
  width: 40vw;
  margin: auto;
  padding-top: 3em;
}

.videoContainer
{
  width: 80vw;
  height: 50vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin: auto;
}
.videoContainer video
{
  width: 50vw;
  height: 50vh;
}
.intro-img
{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
}
.intro-img>img
{
  width: 40vw;
  height: 40vh;
}


/************************** Responsiveness ************************************/

@media screen and (max-width: 1320px) and (min-width: 0px)
{
  body
  {
    height: 100vh;
    width: 100vw;
  }
  header
  {
    height: 4em;
    border-radius: 16px;
    margin: 4px auto 0 auto;
  }
  .header-left
  {
    height: 4em;
    width: 25vw;
  }
  .header-left > img
  {
    height: 4em;
    width: 4em;
    margin: auto;
  }
  .mid-header
  {
    height: 4em;
    margin: auto;
    width: 50vw;
  }
  .mid-header h1
  {
    font-size: 16px;
  }
  .header-right
  {
    height: 4em;
    width: 25vw;
  }


  /**************** bottom navigation bar *********************/
  .nav-bar
  {
    height: 3em;
    width: 100vw;
    position: fixed;
    bottom: 0;
    z-index: 10;
  }
  #dropdown-btn
  {
    rotate: 270deg;
  }
  #dropdown-btn.rotate
  {
    rotate: 990deg;
  }
  .psnav
  {
    width: 100vw;
    height: calc(100vh - 5em);
    z-index: 5;
    bottom: -100vh;
    left: 0;
  }
  #psnav.open
  {
    bottom: 3em;
    left: 0;
  }
  .psul
  {
    margin: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .psul-sub
  {
    margin-top: 6em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  .psli
  {
    justify-content: center;
  }
  .psli span
  {
    display: none;
  }
  .psli-sub
  {
  }

  main
  {
    height: calc(100vh - 10em);
    width: 100vw;
    position: fixed;
    bottom: 4em;
    padding: 0;
  }
  .videoContainer
  {
    width: 80vw;
    height: 20vh;
    overflow: hidden;
  }
  .videoContainer video
  {
    width: 80vw;
    height: 20vh;
  }

  .pj-header, .pj-link
  {
    padding: 0;
  }
  .pj-article p
  {
    font-size: 1em;
    font-weight: 500;
    text-indent: 1em;
  }

  .printf-ex
  {
    margin-top: 3em;
    padding: 0;
    width: 100vw;
    height: 150px; 
  }
  .printf-ex img
  {
    height: 100%;
    width: 100%;
  }

  .libft-funcs-grid
  {
    padding: 0em;
    display: flex;
    flex-direction: column;
    dt
    {
      padding-left: 0.5em;
    }
    dd 
    {
      padding-bottom: 1em;
      padding-left: 2em;
      font-size: 0.8em;
    }
  }

  .libft-funcs-group h4, .libft-funcs-group h3
  {
    padding: 1em;
    justify-content: center;
    justify-self: center;
    text-align: center;
  }

}
