/*  My nav bar code follows */

body,
h1,
h2,
h3,
ul,
li,
a {
  /* 14AUG2025 - a is new */
  /*font-family: Cormorant, serif;*/
  margin: 0; /* I added this line */
  padding: 0; /* I added this line */
  border: 0; /* I added this line */
  outline: 0; /* I added this line */
  font-size: 100%; /* I added this line */
}

body {
  font-family: "Roboto", sans-serif;
  background-color: black;
}

/* ===  BEGIN CONTAINER  ======================= */

.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 16px;
}

/* 15AUG2025 - following used to put space between welcome title words */
/*  word-spacing did not work because it put space beteween the spanish welcome */
.space {
  margin: 0 10px;
}

/* ===  WELCOME CLASS ======================= */
.welcome-title h2 {
  /* font-family: "Roboto", sans-serif; */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 5px 0; /* top rt btm lft */
  /* word-spacing: 1rem; */
  font-size: 32px;
  font-weight: 100;
  /* font-style: thin 100; */
  color: white; /* 14AUG25 change this worked */
}

.welcome-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5px 0 10px 0; /* top rt btm lft */
  text-transform: uppercase;
  word-spacing: 1px;
  font-weight: 100;
  font-size: 15px;
  color: white; /* 14AUG25 change this worked */
}

/* ===  BEGIN NAVBAR ======================= */

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 64px 0;
  /*border: 1px solid red;*/
}

.navbar .left {
  font-size: 32px;
  /*border: 1px solid blue;*/
  color: white; /* 14AUG25 change this worked */
}

.navbar .right {
  width: 450px;
  /* border: 1px solid red; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px 0 10px;
}

.navbar .right a {
  text-decoration: none;
  color: white; /* 14AUG25 change this worked */
}

/*  14 AUG 2025  - my code follows ...*/
.navbar .right a.active {
  border-bottom: 1px solid rgb(236, 22, 7);
}

.navbar .right a:hover {
  border-bottom: 1px solid rgb(236, 22, 7);
}

.navbar .hamburger {
  height: 50px;
  width: 50px;
}

/*.navbar .bar1, .bar2, .bar3 { */
/*background-color: black;*/ /* this line was causing a 
      big blob over the H1 'PA' text */
.bar1,
.bar2,
.bar3 {
  background-color: white; /*  was black */
  height: 4px;
  width: 36px;
  margin: 3px;
  border-radius: 10px;
}

.navbar .hamburger {
  display: none;
}

/* following css turns cursor into a pointer */
.navbar .hamburger:hover {
  cursor: pointer;
}

/*   ==================================================== */
/*   ===  BEGIN MOBILE NAV BAR ========================== */

.mobileNav {
  width: 100px;
  background-color: black; /* was white ...*/
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2;
  top: 0;
  right: -160px;
  padding: 16px;
  transition: transform 0.3s; /* 0.7 seemed too slow */
}

/* following animates/opens the mobileNav when the 
    hamburger menu is clicked    */
.openDrawer {
  transform: translateX(-160px);
}

/* ===  FOLLOWING CSS STYLES THE LINKS  === */
.mobileNav a {
  text-decoration: none;
  color: white; /* 14AUG25 - was black ...*/
  margin: 16px 0; /* this puts space between links */
}

.mobileNav a:hover {
  /* text-decoration: underline; */
  border-bottom: 1px solid rgb(236, 22, 7);
}

/*  want to keep this style for now 
a.active {
  border-bottom: 1px solid black;
}
*/

/*  ======================================  */
/*  ===   BEGIN GRID  ====================   */

.project-grid {
  display: grid;
  grid-template-areas:
    "woodworking electronics"
    "flyfishing photography";
  /*row-gap: 16px;
  column-gap: 16px;*/
  gap: 16px;
  width: 100%; /*  was 100%  */
  /*max-width: 90%;*/ /* container is now 90% */
  margin: 0 auto; /* centers the grid in body */
  /* border: 1px solid red; */
}

#woodworking {
  grid-area: woodworking;
}

#electronics {
  grid-area: electronics;
}

#flyfishing {
  grid-area: flyfishing;
}

#photography {
  grid-area: photography;
}

.project {
  /*margin-top: 300px;*/ /* margin above images - not needed */
  /*width: 300px; */ /* was 300px */
  position: relative;
}

.project img {
  width: 100%; /* was 100% */
  object-fit: cover;
  height: 100%; /* was 100% */
  border: 4px solid #b0bec5;
}

/*   I added this CSS style to hide the link underline    */
.project img:hover {
  text-decoration: none;
}

.project .overlay {
  /*background-color: rgba(255, 255, 255, 0.5);*/
  background-color: rgba(32, 111, 230, 0.8);
  /*background-color: lightgreen;*/
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; /* was 100% */
  height: 100%; /* was 100% */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  opacity: 0;
  font-size: 25px; /*  was 36px  */
  color: #ffffff; /*  text color */
  transition: all 0.5s ease;
}

.project .overlay:hover {
  opacity: 1;
  cursor: pointer; /* hand finger pointer */
}

/* ========================================  */
/* ===   BEGIN FOOTER   ===================  */

.footer {
  text-align: center;
  padding: 30px 0 15px 0; /*   was 32px   */
  font-weight: 100;
  font-size: 15px;
  color: white;
}

/* ========================================  */
/* ===   MEDIA QUERIES BEGIN   ============  */

@media only screen and (max-width: 1100px) {
  .container {
    max-width: 100%;
  }
  .project-grid {
    max-width: 100%; /*  was 100%  */
    background: purple;
    grid-template-areas:
      "woodworking electronics"
      "flyfishing photography";
    /* "esp32-wroom-32 oled"; */
  }
}

@media only screen and (max-width: 768px) {
  .project-grid {
    margin-top: 100px;
  }

  .navbar {
    padding: 16px 24px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    background-color: black; /*  was white */
    width: 100%;
  }
  .navbar .left {
    /* font-size: 32px; */
    /*border: 1px solid blue;*/
    color: white; /*  was black 14AUG25 change this worked */
  }
  .navbar .right {
    display: none;
  }
  .navbar .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*border: 1px solid green;*/
  }
  .footer {
    font-size: 14px;
    padding: 32px;
  }
  .project-grid {
    /*max-width: 100%;*/
    background: orange;
    grid-template-areas:
      "woodworking woodworking"
      "electronics electronics"
      "flyfishing flyfishing"
      "photography photography";
  }
  .project .overlay {
    font-size: 24px;
  }
}

/* ===  BEGIN @keyframes ANIMATIONS  ================= */

.animateBar1 {
  animation: flipBar1 0.5s; /* was 1s  */
  animation-fill-mode: forwards;
}
.animateBar2 {
  animation: fadeBar2 0.5s; /* was 1s  */
  animation-fill-mode: forwards;
}
.animateBar3 {
  animation: flipBar3 0.5s; /* was 1s  */
  animation-fill-mode: forwards;
}

@keyframes flipBar1 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(45deg) translate(4px, 10px);
  }
}

@keyframes fadeBar2 {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes flipBar3 {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(-45deg) translate(4px, -10px);
  }
}

/*  ===   BEGIN JAVASCRIPT  ================== */

/*
.purple {
  background-color: purple;
  transform: scale(2);
}    */
