/* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face for help with font face */
@font-face {
  font-family: "Andimante Personal Use";
  src: url("fonts/AndimantePersonalUse-Regular.woff");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: "Saans";
  src: url("fonts/Saans-TRIAL-Regular.woff");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "Saans";
  src: url("fonts/Saans-TRIAL-SemiBold.woff");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "SaansSemiMono";
  src: url("fonts/SaansSemiMono-TRIAL-Light.woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "SaansSemiMono";
  src: url("fonts/SaansSemiMono-TRIAL-Medium.woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/*For General elements*/
* {
  box-sizing: border-box;
}

h1 {
  font-family: "Andimante Personal Use", Helvetica, sans-serif;
  font-size: 7rem;
  font-weight: 400;
  line-height: 100%;
}

h2 {
  font-family: "Andimante Personal Use", Arial, Helvetica, sans-serif;
  font-weight: 400;
}

h3 {
  font-family: "Andimante Personal Use", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 3rem;
}

h4 {
  font-family: "Saans", "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: 2rem;
  margin: 0;
}

h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  font-family: "Saans", "Times New Roman", Times, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 150%;
}

a {
  text-decoration: none;
  color: #444444;
}

.blue_text {
  color: #5172f7;
}

.body-text {
  padding: 2rem;
}

html {
  background-color: #f8f3e9;
}

nav {
  position: relative;
}
/*For the Nav bar*/

.flex-nav {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  align-content: center;
}

.flex-nav-inner {
  display: flex;
  justify-content: end;
  gap: 4rem;
}

.nav-item {
  font-family: "Saans";
  font-weight: 500;
  text-decoration: none;
  color: #5172f7;
  border-bottom: 0.2rem solid #5172f7;
  padding-bottom: 0.8rem;
}

.logo {
  font-family: "Andimante Personal Use";
  font-weight: 400;
  font-size: 1.8rem;
  color: #f95355;
  text-decoration: none;
  border-bottom: 0.2rem solid #f95355;
  padding-bottom: 0.8rem;
  padding: 1rem;
}

.nav-item:hover,
.nav-item:focus {
  color: #444444;
  border-bottom: 0.2rem solid #444444;
  padding-bottom: 0.8rem;
}

.logo:hover,
.logo:focus {
  color: #444444;
  /* https://www.shecodes.io/athena/5273-create-straight-and-horizontal-lines-with-css for learning what border bottom is */
  border-bottom: 0.2rem solid #444444;
  padding-bottom: 0.8rem;
  padding: 1rem;
}

/* For homepage */
.flexbox-title {
  display: flex;
  flex-direction: column;
  padding-top: 7rem;
}
.flexbox-title h1 {
  order: 2;
  margin: 0;
  /* padding-top: 1.5rem; */
}

.flexbox-title h2 {
  order: 1;
}

.body-text-home {
  max-width: 49%;
  padding-bottom: 1.8rem;
}

.button-one {
  font-family: "SaansSemiMono";
  font-weight: 300;
  background-color: #5172f7;
  padding: 0.7rem 4.5rem;
  border-radius: 1rem;
  color: white;
  border-color: #5172f7;
  border-style: solid;
  margin-right: 0.5rem;
}

.button-two {
  font-family: "SaansSemiMono";
  font-weight: 300;
  color: #f95355;
  border-style: solid;
  padding: 0.7rem 4.5rem;
  border-radius: 1rem;
  border-width: 0.22rem;
  margin-left: 0.5rem;
}

.button-one:hover,
.button-two:hover,
.button-one:focus,
.button-two:focus {
  background-color: #444444;
  color: #ffffff;
  transition: 0.3s;
  border-color: #444444;
}

.buttons-flex {
  display: flex;
  flex-wrap: wrap;
}

.homeTitle-and-arrow {
  display: flex;
  flex-wrap: wrap;
}

.blue_arrow {
  order: 2;
  width: 3rem;
  margin-left: 2rem;
}

/* project section of the home page */
#projects {
  padding-top: 15rem;
}

#projects h3 {
  border-style: solid;
  border-top: #444444;
  border-inline: initial;
  padding-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-group img {
  border-radius: 1rem;
  height: auto;
  max-width: 97%;
}

.tags {
  font-family: "SaansSemiMono";
  font-weight: 300;
  color: #444444;
}

.flex-project-titles {
  display: flex;
  flex-direction: column-reverse;
}

.project-group {
  padding-bottom: 6rem;
}

.projects-grid p {
  padding-bottom: 1rem;
}

/*for hamburger menu*/
/*following from http://127.0.0.1:5500/public_html/index.html*/
/*Hamburger menu starts here & for help https://christiantietze.de/posts/2025/01/responsive-scalable-hamburger-menu-accessible-css/*/
/*define the variables in css that you can resuse*/
:root {
  --hamburger-slice-color: black;
  --size: clamp(1rem, 10vmin, 2rem);
  --size: 2.5rem;
}

#menu {
  display: none;
  /* visibility: hidden; */
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
}

#menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 10rem;
  width: fit-content;
  height: auto;

  transform-origin: top right;
  /* transform: rotateY(-90deg); */
  /* opacity: 0.3; */
  /* transition: 150ms all 100ms ease-out; */
  /* border-right: 1px solid rgb(0, 0, 0); */
}

#menu a {
  font-family: "Saans";
  font-weight: 400;
}

ul {
  list-style-type: none;
}

#hamburger-toggle {
  opacity: 0;
  cursor: pointer;
  position: absolute;
}

#hamburger {
  display: none;
  padding: 0.5rem;
  cursor: pointer;
  width: var(--size);
  height: var(--size);
  box-sizing: content-box;
  transition: transform 0.2s ease;
  background-color: transparent;
  border: none;
}

#hamburger .slice {
  --slice-height: 0.15rem;
  display: block;
  position: relative;
  width: 100%;
  height: var(--slice-height, 0.15rem);
  border-radius: var(--slice-height);
  transition: all 0.2s ease;
  background-color: var(--hamburger-slice-color);
  opacity: 90%;
}

#hamburger .slice {
  margin-top: 22%; /* Fallback to produce something hamburger-ish if calc is not available */
  margin-top: calc(33% - var(--slice-height));
  top: calc((33% - var(--slice-height)) / -2);
}

#hamburger-toggle:checked ~ #menu {
  visibility: visible;
  transform: rotateX(0deg);
  opacity: 1;
}

#hamburger-toggle:checked ~ #hamburger .slice:nth-child(1) {
  top: calc(50% - 33% + var(--slice-height) / 2);
  transform: rotate(45deg);
}
#hamburger-toggle:checked ~ #hamburger .slice:nth-child(2) {
  opacity: 0;
}
#hamburger-toggle:checked ~ #hamburger .slice:nth-child(3) {
  top: calc(-50% + var(--slice-height) / 2);
  transform: rotate(-45deg);
}

#menu.hidden {
  display: none;
}

/*For resizing iframes*/
iframe {
  width: 100%;
  min-height: 30rem;
  margin-bottom: 4rem;
  /* resize: both;
  overflow: auto; */
}

/*For Roasters roost page*/
.flex-project-info {
  display: flex;
  flex-direction: row;
}

.flex-vertical-info {
  display: flex;
  flex-direction: column;
}

.project-body {
  /* text-align: justify; */
  /* width: 86.25rem; */
  margin: 4rem 10rem 10rem 10rem;
  padding-top: 2rem;
}

/*https://stackoverflow.com/questions/37745051/fill-the-remaining-height-or-width-in-a-flex-container for helping with flex grow so the content wouldnt move to the next line.*/
.left-item {
  flex: 1;
}
/* .everything-but-img {
  margin-left: 16rem;
}

.project-body a img {
  display: block;
  margin-left: auto;
  margin-right: auto;
} */

.bodyTextProject {
  max-width: 75%;
}

.change-flex-order {
  display: flex;
  flex-direction: column-reverse;
}

.change-flex-order-two {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: flex-end;
  gap: 2rem;
}

.tags.project-description {
  color: #444444;
  font-size: 1rem;
  padding-top: 5rem;
}

.project-title {
  margin: 0;
  padding-top: 2rem;
  color: #5172f7;
  font-size: 4rem;
  border-bottom: 0.2rem solid #444444;
  max-width: 40%;
}

.flex-for-top-items {
  display: flex;
  /* flex-wrap: wrap; */
}

.flex-vertical-info {
  padding-left: 2rem;
  padding-right: 2rem;
}

.flex-vertical-info h4 {
  font-family: "SaansSemiMono";
  font-weight: 500;
  font-size: 1.2rem;
}

.flex-vertical-info p {
  margin: 0;
  padding-top: 0.5rem;
  font-family: "Saans";
  font-weight: 400;
  color: #444444;
}

.left-item p {
  max-width: 90%;
}

.left-item h3 {
  color: #444444;
  font-size: 2.5rem;
  margin: 0;
  padding-top: 4rem;
}

.section-header {
  color: #5172f7;
  font-size: 3rem;
  border-bottom: 0.2rem solid #444444;
  padding-bottom: 2rem;
  max-width: 40rem;
}

.flex-for-images-project {
  display: flex;
  /* flex-wrap: wrap; */
}

.img-flex {
  display: flex;
  flex-wrap: wrap;
  padding-bottom: 3rem;
  padding-top: 1rem;
}

.img-item {
  display: flex;
  flex: 1;
  padding: 0.3rem;
}

.extra-spacing {
  padding: 0.3rem;
}

.text-project {
  max-width: 60rem;
}

.link-header {
  font-family: "SaansSemiMono";
  font-weight: 300;
  font-size: 1.2rem;
  padding-bottom: 1rem;
  padding-top: 3rem;
  color: #444444;
}

.link-styling {
  color: #f95355;
  text-decoration: underline;
  font-family: "Saans";
  font-weight: 400;
  max-width: 10rem;
}

.link-styling:hover,
.link-styling:focus {
  color: #444444;
}

.link-at-bottom {
  padding-bottom: 2rem;
}

.top-image {
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
  border-radius: 1.4rem;
}

.fix-top-a {
  display: block;
}

.project-body img {
  display: block;
}

figcaption {
  font-family: "Saans";
  padding-top: 0.5rem;
  font-size: 0.8rem;
}

.project-order {
  color: #444444;
}

.text-project {
  display: flex;
  flex-direction: column;
}

.flex-for-explore {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 11rem;
  gap: 4rem;
}

.img-roaster {
  max-width: 100%;
  height: auto;
  border-radius: 1.4rem;
}

figure {
  margin: 5rem 0 5rem 0;
}

.bodyTextProject.second-para {
  margin-left: auto;
  margin-bottom: 5rem;
}

.bodyTextProject.flex-end-alignment {
  align-self: flex-end;
}

.bodyTextProject.result-para {
  max-width: 45rem;
}

/*For contact page*/
.contact-header {
  color: #5172f7;
  position: relative;
  padding-left: 15rem;
  padding-top: 8rem;
  margin: 0;
  margin-top: 5rem;
  line-height: 0;
}

.red-arrow {
  position: absolute;
  top: 18rem;
  left: 48rem;
}

.get-in-contact {
  color: #444444;
  padding-left: 15.5rem;
  padding-top: 1rem;
}

.contact-info {
  padding-top: 1rem;
  padding-left: 15.5rem;
}

.bolder-para {
  font-weight: 600;
}

.linkedin-logo {
  height: auto;
  max-width: 5rem;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-bottom: 0.2rem solid #5172f7;
}

a .linkedin-logo:hover,
a .linkedin-logo:focus {
  border-bottom: 0.2rem solid #444444;
}

/* .flex-contact-arrow {
  display: flex;
} */

/*for the about page*/
.flex-for-about {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  justify-content: center;
  padding-top: 5rem;
}

.right-text {
  padding-left: 3rem;
}

.illustrations p {
  color: #5172f7;
}

.right-text p {
  max-width: 30rem;
  font-size: 1.1rem;
}

.left-img img {
  height: auto;
  max-width: 36rem;
}

.about-me-title {
  color: #5172f7;
  font-size: 3.5rem;
  max-width: 17rem;
  line-height: 140%;
  margin-top: 0;
}

.red-arrow-about {
  height: auto;
  max-width: 2rem;
  padding-top: 5.4rem;
  margin-left: 1rem;
}

.desc-with-border {
  padding-bottom: 2rem;
  border-bottom: 0.2rem solid #444444;
}

.about-sub-header {
  color: #444444;
  font-size: 1.8rem;
  padding-bottom: 1rem;
}

.button-one.about {
  margin-left: 1.5rem;
  font-size: 1rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  margin-right: 0;
}

.button-two.about {
  padding-left: 3rem;
  padding-right: 3rem;
  font-size: 1rem;
  margin-left: 0;
}

.buttons {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.flex-for-int-ill {
  display: flex;
}

.flex-for-int-ill h3 {
  font-family: "SaansSemiMono";
  font-weight: 300;
  color: #444444;
  font-size: 1rem;
  padding-bottom: 1rem;
}

.flex-for-int-ill p {
  font-size: 0.9rem;
  font-family: "Saans";
  line-height: 100%;
}

.interests {
  padding-right: 2rem;
}

.illustrations p {
  text-decoration: underline;
}

.illustrations p:hover,
.illustrations p:focus {
  color: #444444;
  transition: 0.1s;
}

.title-and-arrow {
  display: flex;
}

/*for footer*/
.my-footer {
  background-color: transparent;
  border-style: solid;
  border-color: #444444;
  border-width: 0.5rem;
  margin-top: 2rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  padding: 3rem 4rem;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: baseline;
}

.footer-item a {
  display: flex;
  color: #5172f7;
  font-family: "Saans";
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.15rem solid #5172f7;
}

.footer-item a:hover,
.footer-item a:focus {
  color: #444444;
  border-bottom: 0.15rem solid #444444;
}

.my-footer .email-link {
  line-height: 120%;
}

.my-footer h2 {
  font-size: 2rem;
  line-height: 100%;
  color: black;
}

.my-footer p {
  color: #444444;
}

/*illustration page*/
.illustrations-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  gap: 1rem;
}

.img-ill img {
  height: auto;
  width: 100%;
}

.illustrations-title {
  color: #5172f7;
  font-size: 3.5rem;
  margin-left: 4rem;
  padding-top: 5rem;
}

.flex-arrow-ill {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.ill-arrow {
  max-width: 2rem;
  margin-bottom: 2rem;
}

/*For flex grids on images for camp page*/
.grid-images-camp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* all media queries*/
@media (width < 106.75rem) {
  .top-image {
    max-width: 100%;
    height: auto;
  }
}

@media (width < 95.3125rem) {
  .flex-for-top-items {
    flex-direction: column;
  }

  .top-image {
    /* max-width: 70rem; */
    height: auto;
  }

  .middle_line {
    display: none;
  }

  .right-item {
    padding-top: 2rem;
  }

  .resize-gifs {
    max-width: 60rem;
    height: auto;
  }
}

@media (width < 87.5625rem) {
  .top-image {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .flex-for-images-project {
    flex-wrap: wrap;
  }

  .project-body {
    margin-left: 10rem;
    margin-right: 10rem;
  }

  .img-flex {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .resize {
    height: auto;
    max-width: 16rem;
    object-fit: contain;
  }

  .flex-for-top-items {
    flex-direction: column;
  }

  .left-item p {
    max-width: 50rem;
  }

  .project-body p {
    max-width: 40rem;
  }

  .flex-for-explore {
    flex-wrap: wrap;
  }
}

@media (width < 87.4625rem) {
}

@media (width < 77.6875rem) {
  .img-flex {
    flex-direction: column;
  }
}

@media (width < 74rem) {
  .left-img img {
    height: auto;
    max-width: 50rem;
  }

  .right-text {
    padding-right: 19rem;
    padding-top: 3rem;
  }

  .flex-for-about {
    padding-top: 2rem;
  }

  .blue_arrow {
    width: 3rem;
    margin-left: 0;
  }

  .grid-images-camp {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (width < 71.6875rem) {
  .contact-info,
  .get-in-contact,
  .contact-header {
    padding-left: 5rem;
  }

  .red-arrow {
    left: 37rem;
  }

  .blue_arrow {
    width: 3rem;
  }
}

@media (width < 63.4375rem) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .blue_arrow {
    width: 3rem;
  }

  .img-item {
    flex-wrap: wrap;
  }

  .flex-project-info {
    flex-wrap: wrap;
  }

  .flex-vertical-info {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .project-body {
    margin: 5rem;
  }
}

@media (width < 56.5rem) {
  .button-one.about {
    margin-left: 0;
    margin-right: 0;
    height: fit-content;
  }

  .button-two.about {
    margin-bottom: 2rem;
  }

  .buttons {
    display: flex;
    flex-wrap: wrap;
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 1rem;
  }

  .right-text {
    padding-left: 1rem;
  }

  .blue_arrow {
    width: 3rem;
  }
}

@media (width < 46.0625rem) {
  .left-img img {
    height: auto;
    max-width: 28rem;
  }

  .right-text {
    padding-right: 0;
  }

  .blue_arrow {
    width: 3rem;
  }

  .project-body {
    margin: 0;
  }

  .section-header {
    line-height: 150%;
  }

  .project-body {
    padding-top: 8rem;
    margin: 0.8rem;
  }

  .project-title {
    font-size: 3rem;
  }

  .left-item h3 {
    font-size: 2rem;
  }

  iframe {
    min-height: 0;
  }
}

@media (width < 44.4375rem) {
  .contact-info,
  .get-in-contact,
  .contact-header {
    padding-left: 0;
  }

  .red-arrow {
    left: 32rem;
  }
  .blue_arrow {
    width: 3rem;
  }

  .illustrations-flex {
    grid-template-columns: 1fr;
  }

  .img-ill img {
    width: 100%;
  }

  .illustrations-title {
    margin-left: 1rem;
    font-size: 3rem;
  }
}

@media (width < 39.0625rem) {
  .body-text-home {
    max-width: 90%;
  }

  .blue_arrow {
    width: 3rem;
  }
}

@media (width < 35.8125rem) {
  .flexbox-title h1 {
    font-size: 5rem;
  }

  .flexbox-title {
    padding-top: 7rem;
  }

  .body-text-home {
    max-width: 80%;
  }

  .button-one {
    margin-bottom: 2rem;
  }

  .button-two {
    margin-left: 0;
  }

  .blue_arrow {
    width: 2rem;
  }

  #menu {
    display: block;
  }

  #hamburger {
    display: block;
  }

  .flex-nav-inner {
    display: none;
  }

  .flex-nav {
    padding-bottom: 0.5rem;
    align-items: center;
  }

  li {
    padding-bottom: 1rem;
    /* border-style: solid;
    border-width: 0.1rem;
    border-inline: initial;
    border-left: #444444; */
  }

  li a:hover,
  li a:focus {
    /* padding-bottom: 0.8rem;
    border-style: solid;
    border-width: 0.1rem;
    border-inline: initial;
    border-left: #5172F7; */
    color: #5172f7;
  }

  .contact-header {
    font-size: 3.3rem;
  }

  .red-arrow {
    max-width: 1.5rem;
    left: 15rem;
    top: 17rem;
  }

  .about-me-title {
    font-size: 2.8rem;
    max-width: 15rem;
  }

  .red-arrow-about {
    padding-top: 4rem;
    margin-left: 0;
  }

  .right-text p {
    max-width: 22rem;
  }
}

@media (width < 35.7rem) {
  .red-arrow {
    top: 19.5rem;
    left: 16rem;
  }

  .blue_arrow {
    width: 3rem;
  }
}

@media (width < 28.1875rem) {
  .my-name-is {
    line-height: 100%;
    font-size: 1.5rem;
  }

  .flexbox-title h1 {
    font-size: 2.8rem;
  }

  .body-text {
    padding: 0.8rem;
  }

  .flex-nav {
    padding: 0.8rem;
  }

  .left-img img {
    max-width: 100%;
  }

  .body-text {
    padding: 1rem;
  }

  .right-text {
    padding: 1rem;
    padding-top: 2rem;
  }

  .flex-nav {
    padding: 1rem;
  }

  .button-one.about {
    width: 100%;
    text-align: center;
  }

  .button-two.about {
    width: 100%;
    text-align: center;
  }

  .blue_arrow {
    width: 2rem;
  }
}

@media (width< 28.125rem) {
  .section-header,
  .project-order {
    font-size: 2.4rem;
  }

  .red-arrow {
    top: 17.2rem;
    left: 15.6rem;
  }

  .flex-for-int-ill {
    flex-wrap: wrap;
  }

  .buttons {
    padding-bottom: 1rem;
    max-width: 100%;
  }

  .body-text-home {
    max-width: 100%;
  }

  .homepage-title {
    max-width: 100%;
  }

  .my-name-is {
    max-width: 100%;
  }

  .button-one {
    margin-right: 0;
  }

  .link-styling {
    font-size: 0.8rem;
  }

  /* .top-image {
    width: 100%;
  } */

  .project-body {
    margin: 0;
  }
}

@media (width < 20rem) {
  .interests {
    padding: 0;
  }

  .button-one.home {
    width: 100%;
    text-align: center;
  }

  .button-two.home {
    width: 100%;
    text-align: center;
  }

  .section-header,
  .project-order {
    font-size: 2.4rem;
  }

  .change-flex-order-two {
    gap: 0.5rem;
  }
}
