/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

/* General */

/* :root {
  --primary-color: #;
  --accent-color: #;
} */

body {
  background-color: white;
  color: black;
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

h1, h2 {
  font-family: "Kosugi", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: 0px;
}

h1 {
  font-size: 24px;
}

h2 {
    font-size: 20px;
}

h3 {
  font-size: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  margin: 0px
}

p {
  font-size: 14px;
  line-height: 1.4;
}

a {
  text-decoration: none;
  color:rgb(229, 124, 141);
  border-bottom: 2px dashed rgb(229, 124, 141);
}

.art, .project, .footer {
  gap: 10px;
}

.main-vertical-container {
  margin: 0px 100px 40px 100px; /* top right bottom left  */
  display: flex;
  flex-direction: column;
  gap: 40px;
  /* width: 100%; */
  /* align-items: center; */
}

html {
  scroll-behavior: smooth;
}

/* Tab Menu */

.tab-menu {
  padding: 0% 5%;
  display: flex;
  flex-direction: row;
  margin-top: -85px;
  z-index: 2;
  gap: 5px;
}

.tab-item {
  width: 100%;
  padding: 10px;
  border: 4px dashed rgb(241, 152, 167);
  height: 100%;
  color: antiquewhite;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  
  font-family: "Kosugi", sans-serif;
  font-weight: 300;
  /* margin: 0px; */
  /* margin-right: -8px; */
  background-color: rgb(241, 152, 167);
  font-size: 20px;
  /* border-top: none; */
}

.tab-item.active {
  color: rgb(229, 124, 141);
  background-color: antiquewhite;
}

/* Pages starting css */

.research, .project, .art {
  display: none;
}

.research.active {
  display: flex;  /* research uses flex */
  flex-direction: column;
  gap: 30px;
  padding: 0% 5%;
}

.project.active, .art.active {
  display: flex;
  padding: 0% 5%;
  gap: 10px;
  flex-direction: column;
  gap: 30px;
}

.horizontal-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}

/* About */

.bio-card {
  height: 420px;
  clip-path: polygon(
    1% 3%, 
    95% 10%, 
    97% 97%, 
    4% 97%);
}

.bio-card-bg {
  position: relative;
  background-image: url('images/intro/intro-card-background.png');
  background-size: cover;
  width: 100%;
  height: 400px;
  animation: slide-in-right 0.5s ;
}

.bio-card-inner {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  margin: 70px;
  width: calc(100% - 160px);
  height: 70%;
  border: 4px dashed pink; 
  border-radius: 18px;
}

.bio-card-text {
  /* position: absolute; */
  z-index: 2;
  margin-top: 70px;
  margin-left: 250px;
  margin-right: 5%;
  /* max-height: 250px; */
}

.person-img {
  position: absolute;
  left: 150px;
  width: 250px;
  min-width: 200px;
  z-index: 2;
  animation: slide-in-left 0.5s;
}

.speech-bubble-intro {
  position: absolute;
  left: 410px;
  top: 60px;
  z-index: 3;
  background: pink;
  border-radius: 12px;
  /* border: 3px dashed pink; */
  padding: 20px;
  font-family: "Kosugi", sans-serif;
  font-weight: 300;
  color: rgb(191, 72, 92);
  font-size: 40px;
  font-weight: bold;
  animation: slide-in-left 0.5s;
}

.speech-bubble-intro:after {
	content: '';
	position: absolute;
	left: 0;
	top: 60%;
	width: 0;
	height: 0;
	border: 20px solid transparent;
	border-right-color: pink;
	border-left: 0;
	border-bottom: 0;
	margin-top: -10px;
	margin-left: -20px;
}

.contact {
  display: flex;
  flex-direction: row;
  margin: 15px 0px;
  gap: 20px;
  font-size: 14px;
}

/* carousel */

.carousel-container {
  position: relative;
}

.carousel {
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  /* hide scrollbar */
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE */
}
.carousel::-webkit-scrollbar {
  display: none;               /* Chrome/Safari */
}

.carousel-track {
  display: flex;
  gap: 16px;
  /* padding: 16px; */
  width: max-content;  /* lets track grow beyond container */
}

.carousel-btn {
  position: absolute;
  top: 50%; /* halfway through */
  border-radius: 45%;
  border: none;
  background-color: #D0D983;
  padding: 5px;
  box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.2);
  border: 3px dashed antiquewhite;
  /* mix-blend-mode:multiply; */
  z-index: 2;
}

#prev {
  left: -10px;
}

#next {
  right: -10px;
}

.carousel-image {
  height: 400px
}

.carousel-image img {
  height: 400px
}

.carousel-image.tall {
  height: 800px;
}

.carousel-image.tall img {
  height: 800px;
}

.carousel-image.tall .stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 800px;
}

.carousel-image.tall .stacked img {
  height: 396px; /* (800 - 8px gap) / 2 */
  width: auto;
}

.carousel-image.figure img {
  filter: blur(3px);
  overflow: hidden;
  transition: filter 0.3s ease;
}

.carousel-image.figure img:hover {
  filter: blur(0px);
}

/* intro card */

.intro-card {
  width: 150px;
  height: 110px;
  flex-shrink: 0;  /* prevents items from squishing */
  background: antiquewhite;
  border: 3px dashed pink;
  border-radius: 18px;
  color: #CC2784;
  font-size: 16px;
  line-height: 1.3;
  padding: 18px;
  transform: rotate(random(-3deg, -3deg));
}

/* Research  */

.research-item {
  display: flex;
  flex-direction: row;
  /* margin: 20px 0px; */
  gap: 20px;
}

.research-image {
  width: 50%;
  height: auto;
  position: relative;
}

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

.research-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  /* border: 2px dashed pink; */
  border-radius: 15px;
  padding: 10px;
  font-family: "Kosugi", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
  transform: rotate(-7deg);
  /* mix-blend-mode:multiply; */
}

.under-review {
  background: rgb(235, 174, 114);
}

.accepted {
  background: rgb(241, 152, 167);
}

.research-content {
  width: 90%
}

p.description {
  color: grey;
  font-weight: 200;
}

.research-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

button.research-link {
  border-radius: 17px;
  border: none;
  background-color: #D0D983;
  font-family: "Kosugi", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: #CC2784;
  padding: 10px;
  transition: background-color 0.3s ease, color 0.3s ease; 
  box-shadow: 2px 2px 4px 0px rgba(0, 0, 0, 0.2);
}

button.research-link.inactive {
  color: #767676;
  background-color: #ebebeb;
}

button.research-link.active:hover {
  color: #D0D983;
  background-color: #CC2784;
}

/* Art */

/* Project  */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.project-item {
  height: 350px;
}

.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* border-radius: 10px; */
}


/* Media queries */

@media (max-width: 900px) {
  .main-vertical-container {
    margin: 20px 40px 60px 40px;
  }

  .research-item {
    flex-direction: column;
  }

  .research-image {
    width: 100%;
  }

  .person-img {
    left: 140px;
    width: 250px;
  }

  .speech-bubble {
    left: 350px;
    font-size: 28px;
  }

  .intro-card {
    display: none;
  }

  .contact {
    display: none;
  }
}

@media (max-width: 600px) {
  .main-vertical-container {
    margin: 20px 20px 60px 20px;
  }

  .bio-card-text {
    display: none;
  }

  .tab-item {
    font-size: 16px;
  }
}

/* Animation */

@keyframes slide-in-left {
  from { transform: translateX(-60px);  }
  to   { transform: translateX(0);  }
}

@keyframes slide-in-right {
  from { transform: translateX(60px);  }
  to   { transform: translateX(0);  }
}


@keyframes slide-in-bottom {
  from { transform: translateY(60px);  }
  to   { transform: translateY(0);  }
}