/* LIGHT MODE */
:root {
  --background-color: white;
  --text-color: black;
  --border-color: #333;
  --navBar-background-color: #333;
  --navBarA-color: #f2f2f2;
  --grayscale: grayscale(0%);
  /* --dark-mode-button-background-color: rgba(67, 4, 126, 0.562); */
  --dark-mode-button-background-color: rgba(190, 141, 236, 0.562);
}
/* DARK MODE */
[theme='dark'] {
  --background-color: #333;
  --text-color: #f2f2f2;
  --border-color: black;
  --navBar-background-color: black;
  --navBarA-color: white;
  --grayscale: grayscale(30%);
  --dark-mode-button-background-color: rgba(230, 205, 174, 0.5);
}
.aboutText img,
.screenshot {
  filter: var(--grayscale);
}

/* Guide line */
/* * { */
/* border: 1px solid black; */
/* background-color: black;
    color: blanchedalmond; */
/* } */

html {
  display: flex;
  justify-content: center;
  font-size: calc(16px + (20 - 16) * ((100vw - 360px) / (1100 - 360)));
}

body {
  width: clamp(360px, 90%, 1100px);
  background-color: var(--background-color);
  color: var(--text-color);
  border: 0.3125rem solid var(--border-color);
  margin: 0.3125rem;
}

h3,
.navBarLinks a {
  font-weight: bold;
}

footer span {
  font-style: italic;
  font-weight: bold;
}

.content,
.about,
.aboutText,
.projects,
.project,
.resume,
.resumeText,
.contact,
.contactText {
  margin: 0.625rem;
  padding: 0.3125rem;
}

.title {
  padding: 1.875rem;
  margin: 0.625rem;
}

/*  */
/* Typing Animation */
/*  */
/* .typing {
    width: 6ch;
    animation: typing 2s steps(6), blink 0.5s step-end infinite alternate;
    -webkit-animation: typing 2s steps(6), blink 0.5s step-end infinite alternate;
    -o-animation: typing 2s steps(6), blink 0.5s step-end infinite alternate;
    -moz-animation: typing 2s steps(6), blink 0.5s step-end infinite alternate;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid;
    font-family: monospace;
    font-size: 32px;
  }
  
  @keyframes typing {
    from {
      width: 0;
    }
  }
  @-webkit-keyframes typing {
    from {
      width: 0;
    }
  }
  @-o-keyframes typing {
    from {
      width: 0;
    }
  }
  @-moz-keyframes typing {
    from {
      width: 0;
    }
  }
  
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  } */
/*  */
/*  */
/*  */
.title h1,
.title h2,
.title h4 {
  font-family: 'Press Start 2P', cursive;
  line-height: 1.6;
}

/* .location {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
} */

/* .location h4 {
    text-align: center;
} */

/* #locationPin {
    justify-content: center;
} */

.navBar,
.content,
footer {
  font-family: 'Source Code Pro', monospace;
}

/* .navBarLinks {
  margin-left: 1.875rem;
  margin-right: 0rem;
  padding-left: 0rem;
} */
/* .darkmodeButton {
  margin-left: 0.3125rem;
  margin-right: 1.875rem;
  padding-top: 0.3125rem;
} */

.navBar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: var(--navBar-background-color);
  margin: 0rem;
  padding: 0.4375rem 0.3125rem 0.625rem 0.3125rem;
  z-index: 100;
}

.navBarLinks a {
  color: var(--navBarA-color);
  text-align: center;
  margin: 0;
  padding-left: 0.3125rem;
  padding-right: 0.3125rem;
  padding-top: 1.375rem;
  padding-bottom: 1.4375rem;
  text-decoration: none;
  font-size: calc(12px + (16 - 12) * ((100vw - 360px) / (1100 - 360)));
}

.navBarLinks a:hover {
  background-color: #ddd;
  color: black;
}

.navBarLinks a:active {
  background-color: #04aa6d;
  color: white;
}

.navBarDarkModeIcon {
  display: flex;
  justify-content: center;
  align-items: center;
}

h3 {
  text-align: center;
  font-size: calc(22px + (26 - 22) * ((100vw - 360px) / (1100 - 360)));
  margin-top: 2.8125rem;
  margin-bottom: 2.8125rem;
}

.aboutText img {
  border: 0.125rem solid var(--border-color);
  border-radius: 10%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.125rem;
}

.aboutText span,
.projects span {
  -webkit-text-stroke: 0.125rem var(--text-color);
  -webkit-text-fill-color: transparent;
  /* font-weight: bold; */
  font-size: larger;
  font-style: italic;
}

.projectsTitleDiv h3 {
  padding-top: 4.375rem;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.project h3 {
  text-align: center;
  font-size: calc(22px + (26 - 22) * ((100vw - 360px) / (1100 - 360)));
  margin-top: 0.9375rem;
  margin-bottom: 2.8125rem;
}

.screenshot {
  border: 0.125rem solid var(--border-color);
  border-radius: 3%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.screenshot:hover {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* .screenshot:hover {
  -moz-box-shadow: 20px 20px 30px #ccc;
  -webkit-box-shadow: 20px 20px 30px #ccc;
  box-shadow: 20px 20px 30px #ccc;  
} */

.gitRepo,
.item1,
.item3,
.item5,
.item7 {
  display: block;
  margin: 1.875rem auto;
  -webkit-transform: rotate(0) scale(1);
  transform: rotate(0) scale(1);
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

.gitRepo:hover,
.item1:hover,
.item3:hover,
.item5:hover,
.item7:hover {
  -webkit-transform: rotate(15deg) scale(1.3);
  transform: rotate(15deg) scale(1.3);
}

/* .contactText {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
} */

.contactText a {
  text-decoration: none;
  font-size: calc(24px + (28 - 24) * ((100vw - 360px) / (1100 - 360)));
  color: var(--text-color);
}

.contactText a:hover {
  font-size: calc(30px + (30 - 26) * ((100vw - 360px) / (1100 - 360)));
  color: chocolate;
  transition: 500ms;
}

.footerMessage {
  text-align: center;
  margin: 0.625rem;
  padding: 0.3125rem;
  color: var(--navBarA-color);
  background-color: var(--navBar-background-color);
  margin: 0rem;
}

.navBarDarkModeIcon {
  /* position: -webkit-sticky;
    position: sticky;
    bottom: 1.5625rem;
    display: flex;
    justify-content: flex-end;
    z-index: 99; */

  /* position: fixed;
    bottom: 1.875rem;
    right: 0.625rem; */

  /* background-color: rgb(230, 205, 174, 0.5); */
  background-color: var(--dark-mode-button-background-color);
  border-radius: 25%;
}

#switch {
  background-color: transparent;
  /* background-color: rgb(51,51,51,0.3); */
  border: none;
  cursor: pointer;
}

@media (max-width: 549px) {
  #linkedinLinkText,
  #githubLinkText,
  #emailLinkText,
  #twitterLinkText {
    display: none;
  }
  .contactText {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  .contactTitle {
    grid-column: 1 / span 2;
    grid-row: 1 / span 1;
  }
  .item1 {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
  }
  .item3 {
    grid-column: 2 / span 1;
    grid-row: 2 / span 1;
  }
  .item5 {
    grid-column: 1 / span 1;
    grid-row: 3 / span 1;
  }
  .item7 {
    grid-column: 2 / span 1;
    grid-row: 3 / span 1;
  }
  .item1,
  .item3,
  .item5,
  .item7 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (min-width: 550px) {
  body {
    border: 0.625rem solid var(--border-color);
    margin: 1.25rem;
  }
  .title {
    padding: 3.4375rem;
    margin: 1.875rem;
  }
  .typing {
    font-size: calc(20px + (60 - 20) * ((100vw - 360px) / (1100 - 360)));
  }
  h1 {
    font-size: calc(20px + (60 - 20) * ((100vw - 360px) / (1100 - 360)));
  }
  h2 {
    text-align: right;
    margin-top: calc(20px + (35 - 20) * ((100vw - 360px) / (1100 - 360)));
    font-size: calc(20px + (35 - 20) * ((100vw - 360px) / (1100 - 360)));
  }

  /* .location h4 {
    text-align: right;
    font-size: 35px;
  } */
  /* .location img {
    width: 60px;
    height: auto;
  } */
  /* .location {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
  } */

  /* .navBar {
    display: flex;
    justify-content: center;
    padding-top: 4px;
    padding-bottom: 5px;
  } */
  .navBarLinks a {
    font-size: calc(16px + (24 - 16) * ((100vw - 360px) / (1100 - 360)));
    /* padding-left: 27px;
    padding-right: 27px;
    padding-top: 22px;
    padding-bottom: 22px; */
  }
  h3 {
    text-align: left;
    font-size: calc(16px + (30 - 16) * ((100vw - 360px) / (1100 - 360)));
  }
  .skills li,
  .skills h4 {
    font-size: calc(16px + (24 - 16) * ((100vw - 360px) / (1100 - 360)));
  }
  .aboutText img {
    border: 0.25rem solid var(--border-color);
    width: 350px;
    height: 350px;
  }
  .aboutText span,
  .projects span {
    font-weight: bold;
  }
  .projectsTitleDiv h3 {
    padding-top: 6.875rem;
    padding-left: 0.9375rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }
  .project h3 {
    text-align: left;
    font-size: calc(16px + (30 - 16) * ((100vw - 360px) / (1100 - 360)));
    margin-top: 2.8125rem;
    margin-bottom: 2.8125rem;
  }
  .screenshot {
    border: 0.25rem solid var(--border-color);
    border-radius: 1%;
    width: 90%;
    height: auto;
  }
  .gitRepo {
    width: 3.4375rem;
    height: 3.4375rem;
  }
  .resumeText h3 {
    padding-top: 3.75rem;
  }
  .contactText {
    display: grid;
    grid-template-columns: 3fr 20fr 0.5fr;
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr;
  }
  .contactTitle {
    grid-column: 1 / span 2;
  }
  .item1 {
    grid-row: 2 / span 1;
    grid-column: 1 / span 1;
  }
  .item2 {
    grid-row: 2 / span 1;
    grid-column: 2 / span 1;
  }
  .item3 {
    grid-row: 3 / span 1;
    grid-column: 1 / span 1;
  }
  .item4 {
    grid-row: 3 / span 1;
    grid-column: 2 / span 1;
  }
  .item5 {
    grid-row: 4 / span 1;
    grid-column: 1 / span 1;
  }
  .item6 {
    grid-row: 4 / span 1;
    grid-column: 2 / span 1;
  }
  .item7 {
    grid-row: 5 / span 1;
    grid-column: 1 / span 1;
  }
  .item8 {
    grid-row: 5 / span 1;
    grid-column: 2 / span 1;
  }
  .item1,
  .item3,
  .item5,
  .item7 {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .item2,
  .item4,
  .item6,
  .item8 {
    display: flex;
    /* justify-content: center; */
    align-items: center;
  }
  p {
    font-size: calc(16px + (24 - 16) * ((100vw - 360px) / (1100 - 360)));
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
  .skills li {
    margin-left: 1.25rem;
  }
  .navBarDarkModeIcon img {
    width: 3.75rem;
    height: auto;
  }
  .navBarDarkModeIcon {
    bottom: 3.4375rem;
    right: 2.3125rem;
  }
  .navBarDarkModeIcon {
    border-radius: 50%;
  }
}
