/* ==============================
   ROOT VARIABLES (THEME COLORS)
   ============================== */
:root {
  --color-bg: #F4EAE1;

  /* Primary accent */
  --color-primary: #BA8F6D;
  --color-primary-2: #D9B497;
  --color-primary-dark: #795548;

  /* Secondary / highlights */
  --color-accent: #4E79E3;

  /* Others */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-box-shadow: rgba(0, 0, 0, 0.5); /* 50% opacity */
  --icon-filter: brightness(0); /* black icons by default */

}

/* ==============================
   MISC.
   ============================== */
@media (max-width:820px){
  /* Used to showcase programming languages, frameworks, and technologies as shown in the about and projects pages. */
  .skills-icon-wrapper{
      display: flex;
      flex-direction: row;
      background-color: var(--color-black);
      border-radius: 0.5rem;
      color: var(--color-white);
      padding-left: 0.5rem;
      gap: 0.5rem;
      width: 10rem;
      align-items: center;
  }
}
/* Used for titles in pages such as about and projects. */
.primary-title{
  text-align: center;
  border-top: solid var(--color-primary-dark);
  border-bottom: solid var(--color-primary-dark);
  font-size: 2rem;
  width: 11rem;
}
.skills-icon-wrapper{
    display: flex;
    flex-direction: row;
    background-color: var(--color-black);
    border-radius: 0.5rem;
    color: var(--color-white);
    padding-left: 0.5rem;
    gap: 0.5rem;
    width: 10rem;
    height: 3rem;
    align-items: center;
    
}

/* ==============================
   HEADER
   ============================== */
@media (max-width:1200px){
  header{
    display: none;
  }

  .sub-header {
    display:flex;
    justify-content: space-between;
    width: 90%;
    padding-left: 5%;
    padding-top: 3%
  }
}

header {
  display: flex;
  justify-content: center;
  background-color: var(--color-primary);
  border-bottom: solid var(--color-primary-dark);
  color: var(--color-white);
}

header a {
  text-decoration: none;
  color: var(--color-white);
}

header p{
  font-size: 1.3rem;
}

.header-hyperlinks{
  display: flex;
  gap: 8rem;
}

.header-hyperlinks p {
  border-bottom: 2px solid transparent; /* invisible line by default */
  transition: border-color 0.3s ease;   /* smooth hover effect */
}

.header-hyperlinks p:hover {
  border-bottom: 2px solid var(--color-white);
}


/* The styling for the  the dark mode and hamburger menu (on mobile). */
.sub-header{
    position: sticky;
    top: 0;
    padding-top: 0.5%;
    padding-left: 2%;
    align-content: center;
}

#header-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Mobile navigation menu that displays on mobile devices. */
.mobile-menu{
  display: none;
}

/* ==============================
   BODY STYLES
   ============================== */
body {
  font-family: 'Roboto', sans-serif; /* Applies Roboto to the entire body, with a sans-serif fallback */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  color: var(--color-black);
  margin: 0;
}

/* ==============================
   MAIN
   ============================== */

/* Make the main content area grow to take available space so footer sits at bottom */
.content {
  flex: 1 0 auto;
  display: block;
  align-content: center;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background-color: var(--color-primary-dark);
  width: 100%;
  padding: 1rem 0;
  display: flex;
  justify-content: center; 
}

footer a {
  display: flex;
  align-items: center; /* center icon and text vertically */
  gap: 0.5rem; /* space between icon and text */
  text-decoration: none;
  color: var(--color-white);
}


#footer{
  display:flex;
  flex-direction: column;
  justify-content: center;
  gap: 1em;
}

.footer-social-icon{
    height: 3rem;
    width: 3rem;
    filter: var(--icon-filter);
}

.my-footer-socials{
  display: flex;
  gap: 1rem;
  padding: 1rem;
}
.my-footer-socials img:hover {
  border-radius: 50%; 
  transition: 0.3s;
}

/* When dark mode is active, invert to make icons white */
body.darkmode {
  --icon-filter: brightness(0) invert(1); /* white */
}

/* ==============================
   MISC.
   ============================== */
@media (max-width:1200px){
  /* removes header for larger mobile devices such as ipads. */
  header{
    display: none;
  }

  /* Fixes to sub header for larger mobile devices such as ipads. */
  .sub-header {
    display:flex;
    justify-content: space-between;
    width: 90%;
    padding-left: 5%;
    padding-top: 3%
  }
}

@media (max-width: 820px) and (min-width: 769px) {
  /* Adjusts social icon for the footer on larger mobile devices such as ipads */
  .footer-social-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media (max-width: 768px) {
  /* phones */
  .footer-social-icon {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width:820px){ /*was previously 768*/
  footer{
      width:100%;  
      left: 0;
      bottom: 0;
  }
}