@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700&family=DM+Sans:wght@400;500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Mooli&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");

/*
Class gets .
IDs get #
*/
/*
Color Palette
Mint Cream: #F0F7EE
Columbia Blue: C4D7F2
Non photo blue: AFDEDC
Ash gray: #516763

*/
:root {
  --bgl: #f0f7ee;
  --bgd: #121212;
  --mint: #98d9c2;
  --pblue: #afdedc;
  --tile-light: #516763;
  --tile-dark: #222222;
}
.mooli-regular {
  font-family: "Mooli", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-mono-p {
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 1;
  font-style: normal;
}
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
body {
  font-family: "DM Sans", sans-serif;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--bgl);
  overflow-x: clip;
}

#darkmode {
  position: fixed;
  top: 75px;
  right: 20px;
  background-color: #f0f7ee;
  border-radius: 8px;
  font-size: 25px;
  border-color: black;
  border-width: 3px;
  text-align: right;
}

section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
}
p {
  font-family: "Roboto Mono";
}
a:hover {
  color: #1a4d4a;
}

a:link {
  color: #2b7a78;
}
a:visited {
  color: #2b7a78;
}

.nav {
  font-family: "Roboto Mono";
  font-size: 1.5em;
  font-optical-sizing: auto;
}
.homeMainContent {
  width: 100%;
}
.navbar {
  position: fixed;
  width: 100%;
  text-align: center;
  margin-top: 2%;
  justify-content: center;
}
.navLinks {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20%;
}

.pichead {
  display: flex;
  justify-content: center;
  gap: 10%;
  margin-top: 2%;
}
.picText {
  display: flex;
  flex-direction: column;
  text-align: left;
  justify-content: center;
  gap: 5%;
}
.bolden {
  font-weight: 900;
}
#homepic {
  width: 20%;
  border-radius: 50%;
}
#logo {
  position: absolute;
  top: 2%;
  left: 2%;
  height: 50px;
}
.name {
  margin-top: 7%;
  text-align: center;
}
.blurb {
  display: flex;
  justify-content: center;
}
#homep {
  width: 50%;
  text-align: center;
}

h1 {
  text-align: right;
  font-size: 3em;
  font-family: "Syne", sans-serif;
  color: var(--bgd);
}

#contact {
  display: block;
  background-color: #f0f7ee;
  border-color: rgb(60, 50, 30);
  border-radius: 10px;
  margin: auto;
  bottom: 25px;
  color: #516763;
}
.bento {
  margin-top: 5%;

  display: flex;
  justify-content: center;
  flex: 1;
  gap: 2%;
  flex-direction: row;
}
#dunk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.bentoBox {
  display: flex;
  flex-direction: column;
  border-radius: 10%;
  display: flex;
  align-items: center;
  flex: 1;
  background-color: var(--tile-light);
}
.bentoBox p {
  color: var(--bgl);
}
.firstCol {
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}
.firstCol > p {
  position: relative;
  z-index: 2;
}
.secondCol {
  height: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 3%;
}
.thirdCol {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  gap: 3%;
}
#sports {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

#fl-map {
  width: 120px;
  height: auto;
  fill: var(--mint);
}
#gamer {
  width: 60px;
  height: auto;
}
#dumbbell {
  width: 60px;
  height: auto;
}
#muscle {
  width: 60px;
  height: auto;
}
#FL {
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}
#xbox {
  width: 60px;
  height: auto;
}
.football {
  margin-top: 5%;
  margin-left: 25%;
  display: flex;
  justify-content: start;
}
.soccer {
  margin-right: 25%;
  display: flex;
  justify-content: end;
}
/* two-icon boxes: diagonal, like Sports */
.pair img:nth-of-type(1) {
  margin-top: auto;
  margin-left: 25%;
}
.pair img:nth-of-type(2) {
  margin-bottom: auto;
  margin-right: 25%;
}

#football {
  width: 60px;
  height: auto;
}
#soccer {
  width: 60px;
  height: auto;
}
.aboutMainContent {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 5%;
  gap: 5%;
}
.aboutText {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  max-width: 30%;
  margin-left: 10%;
}
#openCurl {
  text-align: left;
}
#closeCurl {
  text-align: right;
}
.chip {
  position: sticky;
  width: 20%;
  stroke: #2b7a774b;
  fill: #1231312d;
  z-index: -200;
}
#homeChip {
  position: absolute;
  margin-top: -5%;
  right: -5%;
}
#aboutChip {
  position: absolute;
  margin-top: 10%;
  margin-left: -95%;
}
#portfolioChip1 {
  position: absolute;
  margin-top: -15%;
  margin-left: 50%;
  z-index: -999;
}
#portfolioChip2 {
  position: absolute;
  margin-bottom: -40%;
  margin-left: -5%;
}

.ghWindow {
  justify-content: center;
  align-content: center;
  flex-direction: column;
  position: relative;
  width: 100%;
}
#ghPic {
  width: 50%;
  margin-bottom: 5%;
  margin-left: auto;
  margin-right: auto;
  cursor: pointer;
}

#ghPic:hover {
  opacity: 0.5;
}
#ghPrompt {
  display: none;
  bottom: 40px;
  position: absolute;
  top: 60%;
  left: 40%;
  font-weight: 900;
}

.resume {
  width: 100%;
  margin-left: -10%;
  margin-top: -2%;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
#resumePic {
  width: 90%;
  height: 60vh;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 5%;
}

#resHelper {
  position: sticky;
  margin-top: -5%;
  font-size: 1em;
  color: black;
}
.profileMainContent {
  display: flex;
  flex-direction: row;
  height: 100%;
  margin-right: 10%;
}
.githubYap {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
}
.githubYap p {
  margin-left: auto;
  margin-right: auto;
  width: 70%;
}

/* Dark */
body.dark {
  background-color: var(--bgd);
}
body.dark .bentoBox {
  background-color: var(--tile-dark);
}
p.dark {
  color: var(--bgl);
}
h1.dark {
  color: var(--mint);
}
a.dark {
  color: var(--pblue);
}

body.dark #darkmode {
  background-color: #121212;
  border-radius: 8px;
  font-size: 25px;
  border-color: #f0f7ee;
  border-width: 3px;
  color: #f0f7ee;
}

/*  Mobile */
@media (max-width: 600px) {
  /* padding counts inside the width so nothing exceeds 100% */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-snap-type: none;
  }

  section {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 0 16px 40px;
    scroll-snap-align: none;
    /* clip, not hidden: hidden would force overflow-y to auto and make
       each section its own scroll container */
    overflow-x: clip;
  }

  img,
  svg {
    max-width: 100%;
  }

  /* ---- Nav ---- */
  #darkmode {
    color: #121212;
    top: 5px;
  }
  .navbar {
    text-align: center;
    position: relative;
    right: 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    border-bottom: 2px solid #516763;
    margin-bottom: 16px;
    align-items: center;
    padding: 10px 0;
  }
  .navLinks {
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
    padding: 0 68px 0 46px; /* clears the logo and the theme button */
  }
  .nav,
  .nav:link,
  .nav:link.dark {
    font-size: 0.95em;
    margin: 0;
    white-space: nowrap;
  }
  #logo {
    height: 30px;
    width: auto;
    top: 8px;
    left: 8px;
    transform: none;
  }

  /* ---- Home ---- */
  h1 {
    font-size: 1.9em;
    text-align: center;
  }
  .name {
    margin-top: 10px;
  }
  .pichead {
    width: 100%;
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
    transform: none;
    justify-content: center;
    margin: 16px 0;
  }
  #homepic {
    width: 45%;
    max-width: 150px;
  }
  .picText {
    text-align: center;
    gap: 4px;
  }
  .picText h1 {
    display: none; /* the { } braces don't read well stacked */
  }
  #homep,
  .githubYap p {
    width: 100%;
    font-size: 0.95em;
  }
  p {
    font-size: 0.95em;
    line-height: 1.5;
  }

  /* ---- About ---- */
  .aboutMainContent {
    flex-direction: column;
    width: 100%;
    margin-top: 0;
    gap: 24px;
  }
  .aboutText {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }

  /* real bento: 2 columns with a feature tile across the top */
  .bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 0;
    width: 100%;
  }
  .firstCol {
    grid-column: 1 / -1;
    height: 190px;
    justify-content: flex-start;
  }
  .secondCol,
  .thirdCol {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
  }
  .secondCol .bentoBox,
  .thirdCol .bentoBox {
    height: 130px;
    justify-content: flex-start;
    padding: 6px;
  }
  .bentoBox p {
    font-size: 0.85em;
    margin: 6px 0;
  }
  /* keep the diagonal icon look, scaled so nothing escapes the tile */
  .pair img:nth-of-type(1),
  .football {
    margin-left: 12%;
  }
  .pair img:nth-of-type(2),
  .soccer {
    margin-right: 12%;
  }
  .football {
    margin-top: 0;
  }
  #fl-map {
    width: 70px;
  }
  #gamer,
  #dumbbell,
  #muscle,
  #football,
  #soccer,
  #xbox {
    width: 40px;
  }

  /* ---- Portfolio ---- */
  .profileMainContent {
    flex-direction: column;
    width: 100%;
    margin-right: 0;
    gap: 24px;
  }
  .githubYap,
  .ghWindow {
    width: 100%;
  }
  #ghPic {
    width: 85%;
    margin-bottom: 16px;
  }
  .resume {
    width: 100%;
    margin-left: 0;
    margin-top: 0;
  }
  #resumePic {
    width: 100%;
    height: auto;
    padding-bottom: 8px;
  }
  #resHelper {
    margin-top: 0;
    font-size: 0.85em;
  }

  /* decorative circuit SVGs: bigger, and pulled back on-screen.
     section's overflow-x: hidden clips the bleed instead of scrolling. */
  .chip {
    width: 45%;
    height: auto;
  }
  #homeChip {
    margin-top: 0;
    right: -8%;
  }
  #aboutChip {
    margin-top: 0;
    margin-left: -8%;
  }
  #portfolioChip1 {
    margin-top: -8%;
    margin-left: 45%;
  }
  #portfolioChip2 {
    margin-bottom: -20%;
    margin-left: -8%;
  }
}
