/* @font-face {
  font-family: 'DungGeunMo';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff')
    format('woff');
  font-weight: normal;
  font-style: normal;
} */
@font-face {
  font-family: 'SDSamliphopangche_Outline';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts-20-12@1.0/SDSamliphopangche_Outline.woff')
    format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'yg-jalnan';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_four@1.2/JalnanOTF00.woff')
    format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background-color: #334e70;
  /* background-color: #4981af; */
  /* font-family: 'DungGeunMo', monospace; */
  font-family: 'yg-jalnan', monospace;
  color: white;
  height: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #334e70;
  padding: 10px 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
}

.navbar .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  padding: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 35px;
  font-weight: bold;
}

.nav ul li a:hover {
  color: #2a415c;
  transform: translateY(-2px);
}
.logo a:hover {
  color: #2a415c;
  transform: translateY(-2px);
}

/* .nav ul li a.active {
  font-size: 40px;
  color: #0056b3;
  font-weight: 700;
  border-bottom: 2px solid #0056b3;
} */

.nav i {
  margin-right: 8px;
}
/* 태블릿: 767px 이하 */
@media (max-width: 767px) {
  .nav ul {
    gap: 20px; /* 간격 줄임 */
  }

  .nav li a {
    font-size: 20px; /* 글자 크기 줄임 */
  }
}

/* 모바일: 480px 이하 */
@media (max-width: 480px) {
  .nav ul {
    gap: 10px; /* 더 좁은 간격 */
  }

  .nav li a {
    font-size: 16px; /* 더 작은 글자 크기 */
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav ul {
    flex-direction: row; /* 가로 유지 */
    flex-wrap: wrap; /* 줄바꿈 허용 */
  }
}

.logo a {
  color: white;
  text-decoration: none;
  font-size: 35px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  margin-right: 8px;
  font-size: 25px;
  vertical-align: middle;
  color: white;
}

/* Main Section */
#main .container {
  margin-top: 100px;
  margin-left: 230px;
  margin-right: 230px;
  height: 100%;
}

#main h1 {
  padding: 200px 0 100px 50px; /*위/오/아래/왼 여백*/
  float: left;
  font-size: 50px;
  color: #eee7e0;
  font-weight: 900;
  text-shadow: 1px 1px 0px white;
}

.mySlides {
  display: none;
}

#main img {
  vertical-align: middle;
}

.big-slideshow-container {
  position: relative;
  top: 2%;
  float: right;
  margin-top: 90px;
}

.slideshow-container img {
  width: 560px;
  height: 540px;
}

.fade {
  animation-name: fade;
  animation-duration: 1s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.big-dot {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 20px;
  width: 20px;
  margin: 0 8px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.activition {
  background-color: #717171;
}

@media screen and (max-width: 768px) {
  #main .container {
    flex-direction: column;
    margin: 50px 20px;
    align-items: center;
  }

  #main h1 {
    width: 100%;
    font-size: 32px;
    padding: 50px 0;
    text-align: center;
  }

  .big-slideshow-container {
    width: 100%;
    margin-top: 20px;
  }

  .slideshow-container img {
    width: 100%;
    height: auto;
  }
}

/* Footer */
footer {
  background-color: #334e70;
  color: white;
  text-align: center;
  padding: 3px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
}

footer p {
  font-size: 20px;
}

/* Self-Introduce */

.selfintroduce {
  padding: 110px 0px;
  display: flex;
  justify-content: center;
  /*background-color: rgb(203, 188, 166);*/
}

.selfintroduce-box {
  max-width: 1100px;
  width: 100%;
  /* background-color: rgb(203, 188, 166);*/

  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(34, 24, 24, 0);
  /*color: #272525;
  */
  color: rgb(255, 255, 255);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.mbti-box {
  padding-top: 10px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.mbti-list {
  list-style: none;
  padding: 0;
  display: inline-block;
  /* width: 300px; */
}

.mbti-list li {
  margin-bottom: 15px;
}

.mbti-list strong {
  display: inline-block;
  width: 20px;
}

.bar-container {
  display: inline-block;
  vertical-align: middle;
  width: 250px;
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  margin-left: 10px;
}

.bar {
  height: 100%;
  background-color: #5084c4;
  border-radius: 10px 0 0 10px;
  width: 0; /* 초기 너비 0으로 설정 */
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

.percent-text {
  width: 40px; /* 텍스트 공간 확보 */
  text-align: left;
  font-weight: bold;
  color: #333;
  margin-left: 10px;
}

/* 애니메이션 정의 */
@keyframes grow {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

.selfintroduce .selfintroduce-box .about-box .profile-img {
  width: 200px;
  height: 200px;
  overflow: hidden;
  border-radius: 50%;
  margin: 0 auto;
}

.selfintroduce .selfintroduce-box .about-box .profile-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.profile-info {
  text-align: center;
  margin-top: 0;
}

.profile-info h1 {
  /* font-family: 'Nanum Pen Script'; */
  /* font-family: 'Nanum Gothic Coding', monospace; */
  font-weight: 900;
  font-size: 90px;
  color: #588dce;
  margin: 0 0 15px 0px;
  position: relative;
  white-space: pre;
  display: inline-block;
}

.profile-info h1::after {
  content: '🌟';
  position: absolute;
  right: -130px;
  animation: blink 0.8s infinite;
  color: #588dce;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

.profile-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-info ul li {
  /* font-family: 'Nanum Gothic Coding', monospace; */
  font-size: 25px;
  line-height: 2.5;
  margin-bottom: 5px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.profile-info ul li.active {
  transform: translateY(0);
  opacity: 1;
}

.typing-text {
  text-align: center;
}

#more-info {
  display: none;
  font-size: 20px;
  font-family: 'yg-jalnan', monospace;
}

/* Project */
.task-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  background-color: #efefef;
  border: 4px solid transparent;
  font-size: 18px;
  font-family: 'yg-jalnan', monospace;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-radius: 10px;
  margin-bottom: 5px;
}

.task-toggle:hover {
  background-color: #e0e0e0;
  border-color: #a1c8fc;
}

.task-content {
  display: none;
  padding: 10px 20px;
  background-color: #fff;
  border-left: 4px solid #999;
  color: #333;
  border-radius: 4px;
  margin-bottom: 15px;
  margin-top: 0;
}

/* .arrow {
  font-weight: bold;
  user-select: none;
} */

.task-images {
  text-align: center;
  margin-top: 10px;
}

.task-images img {
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

.slide-image {
  display: none;
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  max-width: 400px;
  margin: 0 auto;
}

.slide-image.active {
  display: block;
}

.slide-buttons {
  margin-top: 10px;
  text-align: center;
}

.slide-buttons button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 20px;
  margin: 0 10px;
  font-size: 16px;
  border-radius: 4px;
  transition: background color 0.3s ease;
}

slide-buttons button:hover {
  background-color: #45a049;
}

/*team*/
.team-img {
  text-align: center;
}
.team-img img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.team-page .selfintroduce-box {
  height: 565px;
}

/*#typing-name-container.profile-box {
  width: 320px;
  height: 200px;
  margin: 30px auto 100px;
  border: 2px solid #333;
  border-radius: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

#typing-name {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  z-index: 2;
  position: absolute;
  text-align: center;
}
/*
#member-info {
  position: absolute;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 20px;
  font-size: 0.95rem;
  color: #444;
  z-index: 1;
  line-height: 1.6;
}*/

/*.profile-details {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  width: 280px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  color: #222;
  font-size: 16px;
  line-height: 1.5;
  z-index: 1000;
  text-align: center;
}
.profile-box.show-details .profile-details {
  display: block;
}
.profile-box.show-details #typing-name {
  display: none;
}*/

.team-section {
  padding: 60px 20px;
  text-align: center;
  position: relative;
  margin-bottom: 60px;
}

.team-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.team-container {
  display: flex;

  flex-wrap: nowrap;
  justify-content: center;
  padding-bottom: 10px;
  gap: 40px;
}

.member-card {
  background-color: white;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s ease;
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.member-card h3 {
  margin: 15px 0 5px;
  font-size: 20px;
  opacity: 1;
  visibility: visible;
  color: #333;
}

.role {
  color: #777;
  font-size: 14px;
  margin-bottom: 10px;
}

.intro {
  font-size: 15px;
  margin-bottom: 15px;
}

.links a {
  margin: 0 10px;
  color: #333;
  font-size: 20px;
  transition: color 0.3s ease;
}

.links a:hover {
  color: #0077cc;
}

@media (max-width: 768px) {
  .team-container {
    flex-wrap: wrap; /* ✅ 줄바꿈 허용 */
    justify-content: center;
    overflow-x: hidden; /* ✅ 가로 스크롤 없애기 */
    padding: 0 10px; /* ✅ 살짝 여백 */
  }

  .team-track {
    flex-direction: column; /* ✅ 세로 쌓기 */
    gap: 20px;
  }

  .member-card {
    width: 100%; /* ✅ 화면 너비만큼 */
    max-width: 400px; /* ✅ 너무 커지지 않게 제한 */
    margin: 0 auto; /* ✅ 가운데 정렬 */
  }
}

@media (max-width: 1024px) {
  .team-container {
    overflow-x: hidden; /* 가로 스크롤 제거 */
    flex-wrap: wrap; /* 줄바꿈되게 */
    justify-content: center;
  }

  .member-card {
    width: 45%; /* 두 개씩 배치 */
    margin: 10px;
  }

  .team-track {
    gap: 20px;
  }
}
