/* When in Desktop or tablet mode, by default hide the Mobile layout  */
#mobile {
    display: none;
}

body {
  /* Coloring */
  background-color: black;
  color: white;
  /* Keep the top -> down direction of the layout */
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
}

#topLayerDesktop {
    display: flex;
    justify-content: space-evenly;
}

#leftHandDesktop {
  margin: 5vh;
}

#rightHandDesktop {
  display: flex;
  flex-direction: column;
}

/* Ensures a natural gap between the buttons */
#buttonHolder {
  display: flex;
  gap: 2.5vw;
}

#logos {
  margin-top: 12.5vh;
  display: flex;
  justify-content: flex-end;
  gap: 1vw; /* Ensures a natural spacing based on vw */
}

/* Separating the two logos so that they can be scaled independently */
#linkedIn {
  margin-top: 0.5vh;
  max-width: 2vw;
  height: auto;
}

#gitHub {
  max-width: 2.1vw;
  height: auto;
}

/* Ensure a maximum size & automatic vertical centering */
#selfPortrait {
  max-width: 50vw;
  align-self: center;
  margin: auto 0;
}

#blurb {
  font-family: "Jaldi", sans-serif;
  font-size: 2rem;
  max-width: 40vw;
}

.mainButtons {
  /* Text styling */
  font-family: "Jura", sans-serif;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.5;
  /* Style the link to look like a button */
  border: 2px solid white;
  background-color: black;
  padding: 1vh 3vw;
  /* Remove the a tag styling & ensures the br tag will work */
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* Make it so our buttons will grow a bit when a cursor hovers them */
.mainButtons:hover {
  transform: scale(1.05);
}

/* Little larger scale % to make the tiny logos pop more */
#logos a:hover {
  transform: scale(1.2);
}

/* TODO: Consider more Media Queries for different tablet/desktop sizes. */
.fullName {
  /* Rather symbolic that this is a Khmer font */
  font-family: "Koulen", sans-serif;
  font-size: 7rem;
  /* Specific margins to make the names stay grouped */
  margin: 0;
  margin-top: 10vh;
  margin-bottom: -4vh;
  line-height: 15vh;
}

#aboutMeDesktop {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
}

#aboutMeDesktop p {
    font-family: "Jaldi", sans-serif;
    font-size: 1.6rem;
    margin: 0.5vh 0;
    margin-left: 15vw;
    max-width: 70vw;
}

#projectLayerDesktop {
    /* TODO: Debating a "Scroll Down for More" effect */
    margin-top: 8vh;
}

.titleSection {
    margin-left: 11vw;
    display: flex;
    gap: 2vw;
}

.titleSection h1 {
    font-family: "Koulen", sans-serif;
    font-size: 3rem;
    font-weight: 200;
    text-decoration: underline;
}

.titleSeparator {
    color: white;
    border-top: 0.4rem solid;
    width: 70vw;
    margin-top: 9vh;
}

#wcwptImage img {
    max-width: 35vw;
}

#airlineImage img {
    max-width: 35vw;
}

#wcwptTitleArea, #airlineTitleArea {
    display: flex;
    justify-content: space-between;
    /* max-width: 50vw; */
}

#wcwptTitleArea h2, #airlineTitleArea h2 {
    font-family: "Jaldi", sans-serif;
    font-size: 2.5rem;
    margin: 0;
}

#wcwptTop, #airlineTop {
    display: flex;
    justify-content: center;
    gap: 3vw; /* ensures a gap between the left & right sections */
}

#wcwptIcons, #airlineIcons {
    display: flex;
    align-items: center;
    gap:0.5vw;
}

#wcwptGithub, #wcwptLink, #airlineLink {
    max-width: 1.8vw;
    height: auto;
}

#wcwptBlurb, #airlineBlurb {
    font-family: "Jaldi", sans-serif;
    font-size: 2.2rem;
    max-width: 30vw;
}

#wcwptIcons a:hover {
    transform: scale(1.2); 
}

#airlineIcons a:hover {
    transform: scale(1.2); 
}

#wcwptBottom, #airlineBottom {
    margin-top: 2vh;
    display: flex;
    justify-content: center;
}

/* Apply specific font, sizing, and a thin margin to keep spacing closer. */
#wcwptBottom p, #airlineBottom p {
    font-family: "Jaldi", sans-serif;
    font-size: 1.5rem;
    margin: 0.75vh;
    max-width: 60vw;
}

/* keep the divider a lighter tone & spaced from its content, limit size. */
.projectDivider {
    margin: 5vh auto;
    max-width: 70vw;
    border-color: #797979;
}

#csumbInfo, #cabrilloInfo {
    margin-left: 2vw;
}

#csumbImage img, #cabrilloImage img {
    max-width: 20vw;
    border-radius: 20%;
}

#csumbSection, #cabrilloSection {
    display: flex;
    justify-content: space-evenly;
}

/* Title of Colleges itself */
#csumbSection h2, #cabrilloSection h2 {
    font-family: "Jaldi", sans-serif;
    font-size: 3rem;
}

#csumbLeft p, #cabrilloLeft p {
    font-family: "Jaldi", sans-serif;
    font-size: 2rem;
    margin: 0.75vh;
    max-width: 30vw;
}

footer {
    margin-top: 15vh;
    text-align: center;
    font-family: "Jaldi", sans-serif;
    color: #797979;
}

/* ================= MOBILE BELOW ================= */

/* Line specifically to apply these rules to the Mobile portrait site */
@media all and (max-width: 500px) {
  /* Disable the Desktop layout in favor of our mobile one */
  #desktop {
    display: none;
  }

  #mobile {
    display: flex; /* B/c there's a entirely new HTML layout on mobile. */
    flex-direction: column;
    justify-content: space-evenly;
  }

  /* Ensures our content will be vertically centered & spaced out on mobile. */
  body {
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: space-evenly;
  }

  #nameWLogos {
    margin-top: 5vh;
    display: flex;
    justify-content: space-between;
  }

  /* Make sure name isn't too big */
  .fullName {
    font-size: 4rem;
    line-height: 10vh;
    margin-top: 0;
  }

  #logos {
    margin-top: 1vh;
    gap: 2vw;
  }

  #gitHub {
    max-width: 7.5vw;
    height: auto;
  }

  #linkedIn {
    max-width: 7.5vw;
    height: auto;
  }

  #blurb {
    font-size: 1.4rem;
    max-width: 85vw;
  }

  #selfPortrait {
    max-width: 85vw;
    margin-top: 7vh;
  }

  #buttonHolder {
    justify-content: space-evenly;
  }

  #wcwptMobileGitHub, #wcwptMobileLink {
    max-width: 7vw;
  }

  .projectTitleMobile {
    display: flex;
    /* justify-content: space-between; */
    gap: 2vw;
  }

  .projectTitleMobile h2 {
    display: flex;
    font-family: "Jaldi", sans-serif;
    margin: 0 auto;
    font-size: 1.75rem;
  }

  .projectLinksMobile {
    display: flex;
    align-items: center;
    gap: 1.5vw;
  }

  .projectDividerMobile {
    font-family: "Koulen", sans-serif;
    font-size: 1.5rem;
    text-decoration: underline;
    display: flex;
    justify-content: space-between;
    margin: 1.5vh auto;
  }

  .projectDividerMobile h1 {
    margin: 0;
  }

  #wcwptMobile, #airlineMobile {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projectBlurbMobile {
    font-family: "Jaldi", sans-serif;
    font-size: 1.5rem;
    max-width: 80vw;
    margin: 0; /* keep a small left alignment gap */
    margin-left: 3vw;
  }

  .projectImgMobile {
    max-width: 80vw;
  }

  .projectTechMobile {
    font-family: "Jaldi", sans-serif;
    font-size: 1.15rem;
    max-width: 80vw;
  }

  .dividerLineMobile {
    color: white;
    border-top: 0.3rem solid;
    width: 40vw;
    margin-top: 5vh; /* meant to "center" the line as it's just border top */
  }

  .mobileDivider {
    border-color: #797979;
    max-width: 75vw;
  }

  #airlineMobileLink {
    max-width: 6vw;
  }

  .collegeBodyMobile {
      margin-left: 4vw;
  }

  .collegeTitleMobile {
      font-family: "Jaldi", sans-serif;
      font-weight: bolder;
      font-size: 1.6rem;
      margin: 0;
  }

  .collegeLocationMobile {
      font-weight: bolder;
    }
    
  .collegeBodyMobile p {
        font-family: "Jaldi", sans-serif;
        font-size: 1.3rem;
        max-width: 80vw;
        margin: 0;
  }

  .collegeImgMobile {
    max-width: 80vw;
    border-radius: clamp(1rem, 3vmin, 5rem); /* keep radius' dynamic */
    margin: 1vh 0;
  }

  #aboutMeMobile p {
    font-family: "Jaldi", sans-serif;
    font-size: 1.1rem;
    max-width: 85vw;
    margin: 0.75vh 0;
  }

  footer {
      text-align: center;
      margin-top: 5vh;
      max-width: 80vw;
      font-family: "Jaldi", sans-serif;
      color: #797979;
  }

  footer p {
    margin: 0 auto;
  }
}
