/* ==== import font ===== */
@import url("https://fonts.googleapis.com/css2?family=Yomogi&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Gaegu:wght@300;700&display=swap");

#topButton {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  color: rgb(106, 84, 62);
  font-family: "Gaegu";
  font-weight: bold;
  font-size: 1.1em;
  border: 1px dashed rgb(106, 84, 62);
}

#topButton:hover {
  border: 1px solid;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

* {
  font-family: "Gaegu";
  font-size: 1.03em;
}

.cross-bg-pattern {
  /* Decorative, custom grey crossed lines grid bg pattern */
  background-color: white;
  background-image: linear-gradient(to right, #f2f2f2 1px, transparent 1px),
    linear-gradient(to bottom, #f2f2f2 1px, transparent 1px);
  background-size: 25px 25px;
}

p {
  margin: 0;
  padding: 0;
}

.new-section {
  margin-top: 2%;
  margin-bottom: 2%;
  font-size: 1.2em;
  font-weight: bolder;
}

#home-title {
  text-align: center;
  font-weight: bolder;
  font-size: 1.2em;
  margin-top: 30px;
}

.about-body,
.projects-body {
  width: 75%;
  margin: auto;
}

.home-body,
.main-body-text {
  text-align: center;
}

.main-body-text svg {
  display: block;
  margin: auto;
  margin-bottom: 3%;
  margin-top: 3%;
}

.home-body p,
.about-body p,
.main-body-text p,
.projects-body p {
  margin-bottom: 8%;
  font-size: 17px;
}

.project-box p {
  margin-bottom: 3%;
  font-size: 17px;
}

.outer-card {
  width: 80%;
  margin: auto;
  padding: 3%;
  text-align: center;
  animation: fadeIn 2s;
  margin-bottom: 75px;
  margin-top: 30px;
}

.home-card {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  padding: 2%;
  margin-bottom: 65px;
  margin-top: 35px;
  transition: 0.5s ease;
  backface-visibility: hidden;
}

.home-card,
.about-card,
.projects-wrapper-card {
  border-radius: 15px;
}

.main-home-card {
  display: flex;
  flex-direction: column;
}

body {
  background-color: rgba(224, 216, 210, 0.2);
}

.subheader {
  margin-top: 25px;
  margin-bottom: 25px;
}

.left-col {
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-col {
  margin-bottom: 50px;
}

.custom-hr {
  height: 3px;
  width: 80%;
  margin: auto;
}

.home-body {
  width: 80%;
  margin: auto;
}

#home-header .custom-hr,
#about-header .custom-hr,
#skills-header .custom-hr,
#projects-header .custom-hr {
  width: 10%;
  display: inline-block;
}

#home-card-bottom {
  margin-bottom: 20px;
}

nav,
footer,
#topButton,
.close-btn,
.modal-header,
.custom-hr {
  /* gingham effect */
  font-size: 20px;
  background-color: white;
  background-image: repeating-linear-gradient(
      0deg,
      rgba(196, 164, 132, 0.25) 0px 8px,
      transparent 8px 16px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(196, 164, 132, 0.25) 0px 8px,
      transparent 8px 16px
    );
}

#nav-btn-container,
.nav-item {
  padding-left: 5%;
}

.nav-item,
p a,
.modal-header {
  color: rgb(106, 84, 62);
}

.nav-item {
  text-align: left;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-link,
#nav-icon-btn {
  color: rgb(106, 84, 62, 0.8);
  border-bottom: 1px solid transparent;
}

.close-btn {
  color: rgb(106, 84, 62);
  font-weight: bold;
  border: 1px dashed rgb(106, 84, 62);
}

.close-btn:hover {
  border: 1px solid rgb(106, 84, 62);
  color: rgb(106, 84, 62);
  transition: ease 0.3s;
}

.nav-link:hover {
  text-decoration: none;
  border-color: rgba(106, 84, 62, 1);
  color: rgba(106, 84, 62, 1);
  background-color: rgba(255, 255, 255, 0.8);
  transition: ease 0.3s;
}

footer a:hover,
.project-title a:hover {
  color: rgba(106, 84, 62, 1);
  border-bottom: 0;
}

nav a,
.nav-item a {
  font-weight: bold;
  padding: 2%;
  margin-right: 5%;
}

#nav-icon-btn:focus,
#nav-icon-btn:active {
  outline: none !important;
  box-shadow: none;
}

.projects-container {
  margin-top: 2%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.project-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 3%;
  margin-top: 3%;
}

.project-title a {
  text-decoration: none;
}

.demo-text {
  font-weight: bold;
  color: black;
  border-radius: 15px;
  border:  1px black solid;
  background-color: transparent;
}

.demo-text:hover {
  color: white;
  background-color: black;
  transition: ease 0.3s;
}

.img-btn {
  border: none;
  background-color: transparent;
  margin-top: 10%;
  margin-bottom: 10%;
}

.img-btn img {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.img-btn img:hover {
  opacity: 0.5;
}

.project-text-wrapper {
  position: absolute;
  bottom: 5%;
  padding: 8%;
}

.modal-title {
  font-weight: bold;
}

.tech-used-text {
  position: absolute;
  bottom: 3%;
  left: auto;
}

.tech-badge {
  width: auto;
  border-radius: 12px;
  border: 1px solid;
  padding: 5px;
  border-color: rgba(106, 84, 62, 1);
}

.profile-img {
  border-radius: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10%;
  margin-bottom: 10%;
  width: 60%; /* mobile-first, small views <= 540px */
  backface-visibility: hidden;
  transition: filter 0.5s ease;
  filter: grayscale() brightness(120%);
}

.profile-img:hover {
  filter: grayscale(0%) brightness(100%);
}

.about-parent-flex {
  display: flex;
  flex-direction: column;
}

.about-svg-flex {
  margin-top: 5%;
  margin-bottom: 5%;
}

.project-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3%;
  margin: 3%;
  height: 725px;
  width: 350px;
}

.icon-tag svg:hover {
  fill: rgb(106, 84, 62, 0.8);
}

.project-box:hover {
  border-color: rgb(106, 84, 62, 0.6);
  border-width: 1px;
  box-shadow: 5px 5px 15px rgb(219, 218, 218);
  transition: box-shadow 0.3s ease;
}

footer {
  color: rgb(106, 84, 62, 0.8);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50px;
  padding: 10px;
  font-weight: bolder;
}

footer a,
.project-title a,
nav a {
  color: rgb(106, 84, 62, 0.8);
}

.left-footer {
  float: left;
}

.right-footer {
  float: right;
  margin-left: 4%;
}

.carousel {
  margin: auto;
}

.gallery {
  width: 100%;
  margin: auto;
}

.gallery-arrow {
  width: 75%;
}

.carousel-item {
  position: relative;
  width: 100%;
  margin: auto;
}

.selected-img {
  object-fit: contain;
  width: 100%;
}

.carousel,
.selected-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 250px;
  height: 335px;
}

.carousel-caption {
  height: auto;
  width: auto;
  color: black;
  font-size: medium;
  position: absolute;
  bottom: -30px;
  display: block;
}

/* * * * * RESPONSIVE MEDIA QUERIES * * * * */

@media all and (min-width: 300px) {
  /* mobile, x-small, small */
  .custom-left-arrow {
    margin-left: -50px;
  }

  .custom-right-arrow {
    margin-left: 30px;
  }

  .resized-img {
    padding: 15%;
  }

  .right-col {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .right-col span {
    border-radius: 15px;
    border: 1px solid rgb(106, 84, 62);
    padding: 5px;
    height: auto;
    width: auto;
    margin: auto;
    background-color: white;
    flex-grow: 1;
  }
}

@media all and (min-width: 400px) {
  .carousel,
  .selected-img {
    width: 350px;
    height: 335px;
  }
}

@media all and (min-width: 720px) {
  /* medium */
  .custom-left-arrow {
    margin-left: -90px;
  }

  .custom-right-arrow {
    margin-left: 50px;
  }

  .nav-item {
    padding-left: 0%;
    margin-left: 10%;
  }

  .nav-link {
    padding: 10%;
  }

  .profile-img {
    width: 50%;
    margin-top: 5%;
    margin-bottom: 5%;
  }

  .about-body,
  .projects-body {
    width: 85%;
    margin: auto;
  }

  .about-body .custom-hr {
    display: none;
  }

  .about-body .custom-hr:first-of-type {
    display: block;
  }

  .about-parent-flex {
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    margin-bottom: 2%;
  }

  .about-svg-flex {
    margin: 0%;
    width: 25%;
    display: flex;
    flex-direction: column;
    height: 120px;
  }

  .about-parent-flex svg {
    flex-grow: 1;
  }

  .about-text-flex {
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .about-text-flex p {
    padding: 5%;
    padding-bottom: 0%;
  }

  .home-body p,
  .about-body p,
  .main-body-text p,
  .projects-body p {
    margin-bottom: 5%;
    font-size: 18.5px;
  }

  .project-box p {
    margin-bottom: 2%;
    font-size: 18px;
  }

  /* About Page: grid (2-column) */
  #about-grid {
    display: grid;
    grid-template-rows: repeat(4, 1fr); /* 3 equal rows */
  }

  .subheader {
    grid-template-columns: repeat(2, 1fr); /* two equal columns */
  }

  .left-col {
    text-align: left;
    margin-bottom: 0;
  }

  #langs-row {
    grid-area: 1 / span 2;
    display: grid;
    grid-template-areas: "langs-label langs";
  }

  #frameworks-row {
    grid-area: 2 / span 2;
    display: grid;
    grid-template-areas: "frameworks-label frameworks";
  }

  #data-skills-row {
    grid-area: 3 / span 2;
    display: grid;
    grid-template-areas: "data-label data";
  }

  #dev-tools-row {
    grid-area: 4 / span 2;
    display: grid;
    grid-template-areas: "tools-label tools";
  }

  #langs-left {
    grid-area: langs-label;
  }

  #langs-right {
    grid-area: langs;
  }
}

@media all and (min-width: 768px) {
  /* medium */
  .carousel,
  .selected-img {
    width: 400px;
    height: 400px;
  }

  .resized-img {
    padding: 15%;
  }

  .right-col {
    align-items: center;
    height: 100%;
  }

  .gallery-arrow {
    width: 80%;
  }

  .project-box {
    margin: 0%; /* Reset mobile-small margins */
    margin-left: 1%;
    margin-bottom: 3%;
  }
}

@media all and (min-width: 960px) {
  /* large */
  .outer-card {
    width: 90%;
    padding: 5%;
  }

  .main-home-card {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .home-body {
    width: 55%;
  }

  .profile-img {
    width: 20%;
    height: 100%;
  }

  .about-svg-flex {
    margin: auto;
    width: 10%;
  }

  .about-text-flex {
    margin: auto;
    width: 85%;
  }
}
