@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/pretendardvariable.css');

body {
  background-color: aliceblue;
  font-family: 'Pretendard Variable', sans-serif;
}

.all {
  background-color: rgb(3, 21, 65);
}

.mouse-memoirs-regular {
  font-family: 'Mouse Memoirs', sans-serif;
  font-weight: 400;
  font-style: normal;
}

#logo {
  display: flex;
  margin-left: 50px;
}

.special-gothic-condensed-one-regular,
.special-gothic-condensed-one-regular-2 {
  font-family: 'Freesentation-9Black';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2')
    format('woff2');
  font-weight: 900;
  font-style: normal;
  color: rgb(244, 254, 255);
  text-decoration: none;
}

.special-gothic-condensed-one-regular {
  font-size: 25px;
}

.special-gothic-condensed-one-regular-2 {
  font-size: 20px;
}

.menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

.menu .text {
  list-style: none;
  display: flex;
  margin-right: 50px;
  padding: 0;
}

.menu .text li {
  list-style: none;
  position: relative;
}

.menu .text li a {
  display: block;
  padding: 0 30px;
  background: rgb(3, 21, 65);
  height: 40px;
  line-height: 40px;
  color: #fff;
}

.menu .text li .submenu {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: rgb(3, 21, 65);
  padding: 0;
  text-align: center;
}

.menu .text li .submenu li {
  margin: 0;
}

.menu .text li .submenu li a {
  display: block;
  padding: 10px 0;
  color: #fff;
  background: rgb(3, 21, 65);
  font-size: 18px;
  border-bottom: 1px solid rgb(3, 21, 65);
  text-decoration: none;
}

.menu .text li .submenu li:last-child a {
  border-bottom: none;
}

.menu .text li:hover .submenu {
  max-height: 800px;
  opacity: 1;
}

.menu .text li:hover a {
  transform: scale(1.08);
  color: rgb(251, 255, 202);
}

.menu .text .submenu li a:hover {
  transform: scale(1.08);
  color: rgb(255, 235, 133);
}

#check {
  color: rgb(141, 227, 255);
  text-decoration: underline;
}

/*여기서 부터 DevOps Story*/
.plan-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.plan-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.code-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.code-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.build-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.build-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.test-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.test-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.release-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.release-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.deploy-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.deploy-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.operate-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.operate-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.monitor-container {
  padding: 100px 10%;
  background-color: #f1f7ff;
  text-align: center;
  font-family: 'Pretendard Variable', sans-serif;
}

.monitor-container .title {
  font-size: 42px;
  color: #102c57;
  font-weight: 800;
  margin-bottom: 60px;
}

.character-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.char-img {
  max-width: 850px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.desc {
  font-size: 19px;
  color: #333;
  line-height: 1.8;
  max-width: 850px;
  font-family: 'Pretendard Variable', sans-serif;
  margin: 0 auto;
}

.bubble {
  position: absolute;
  background: hsl(182, 100%, 93%);
  border: none; /* 테두리 제거 */
  border-radius: 20px;
  padding: 10px 15px;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* 살짝 그림자 */
  font-family: 'Pretendard Variable', sans-serif;
  z-index: 10;
}

.bubble::after {
  content: '';
  position: absolute;
  top: 100%; /* 말풍선 아래 붙임 */
  left: 20px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top: 8px solid hsl(182, 100%, 93%); /* 말풍선 배경색과 같게 */
  filter: drop-shadow(
    0px 1px 1px rgba(0, 0, 0, 0.1)
  ); /* 삼각형에 약한 그림자 */
}

.plan-container .bubble.envy {
  top: 20px;
  left: 60px;
}

.plan-container .bubble.anger {
  top: 20px;
  left: 290px;
}

.plan-container .bubble.disgust {
  top: 20px;
  left: 520px;
}

.code-container .bubble.envy {
  top: 35px;
  left: 25px;
}

.code-container .bubble.anger {
  top: 50px;
  left: 290px;
}

.code-container .bubble.disgust {
  top: 35px;
  left: 550px;
}

.build-container .bubble.envy {
  top: 20px;
  left: 40px;
}

.build-container .bubble.anger {
  top: 20px;
  left: 290px;
}

.build-container .bubble.disgust {
  top: 40px;
  left: 520px;
}

.test-container .bubble.envy {
  top: 50px;
  left: 25px;
}

.test-container .bubble.anger {
  top: 50px;
  left: 350px;
}

.test-container .bubble.disgust {
  top: 35px;
  left: 550px;
}

.release-container .bubble.envy {
  top: 35px;
  left: 25px;
}

.release-container .bubble.anger {
  top: 40px;
  left: 290px;
}

.release-container .bubble.disgust {
  top: 35px;
  left: 550px;
}

.deploy-container .bubble.envy {
  top: 35px;
  left: 25px;
}

.deploy-container .bubble.anger {
  top: 40px;
  left: 290px;
}

.deploy-container .bubble.disgust {
  top: 35px;
  left: 530px;
}

.operate-container .bubble.envy {
  top: 50px;
  left: 25px;
}

.operate-container .bubble.anger {
  top: 40px;
  left: 290px;
}

.operate-container .bubble.disgust {
  top: 35px;
  left: 550px;
}

.monitor-container .bubble.envy {
  top: 60px;
  left: 25px;
}

.monitor-container .bubble.anger {
  top: 40px;
  left: 300px;
}

.monitor-container .bubble.disgust {
  top: 45px;
  left: 550px;
}

.speech-wrapper {
  position: relative;
  width: fit-content;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #102c57;
  color: white;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1b3a7c;
}

.all {
  background-color: rgb(3, 21, 65);
  position: relative; /* 또는 fixed, sticky 가능 */
  z-index: 100;
}

.speaker-label {
  display: none;
  font-weight: bold;
  color: #4b4b4b;
  margin-top: 6px;
  margin-bottom: -4px;
  font-size: 13px;
  text-align: center;
}

/* ###################### 캐릭터 및 슬라이더 스타일 ###################### */


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

.mt-4 {
  margin-top: 1rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.link-btn {
  display: block;
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  text-align: center;
  margin-top: 10px; /* 캐릭터창 아래 여백 */
  font-size: 14px;
}

.link-btn:hover {
  background-color: #2563eb;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
}

.slider {
  display: flex;
  transform: translateX(-100%);
  transition: transform 0.5s ease-in-out;
}

.slider .image-wrapper {
  width: 100%;
  flex: 0 0 100%;
  position: relative;
}

.slider img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.select-btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(59, 130, 246, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.image-wrapper:hover .select-btn {
  display: block;
}

.input-container {
  margin-top: 20px;
  text-align: center;
}

.input-field {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
}

.confirm-btn {
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin-left: 0.5rem;
}

.confirm-btn:hover {
  background-color: #059669;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(59, 130, 246, 0.8);
  color: white;
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.arrow-btn:hover {
  background-color: rgba(59, 130, 246, 1);
}

#prevBtn {
  left: 10px;
}

#nextBtn {
  right: 10px;
}

.character-display {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 120px;
  z-index: 1100;
}

.character-display img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.character-display p {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.character-display .score {
  font-size: 0.75rem;
  color: #4b5563;
  margin: 0;
}

.complete-btn {
  position: fixed;
  bottom: 10px;
  left: 10px;
  background-color: #10b981;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  z-index: 1200;
}

.complete-btn:hover {
  background-color: #059669;
}

@media screen and (max-width: 600px) {
  #logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px auto;
    width: 100%;
  }

  .menu {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .menu .text {
    flex-direction: column;
    align-items: center;
    margin-right: 0;
  }

  .menu .text li {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .menu .text li a {
    padding: 0 18px;
    font-size: 18px;
    text-align: center;
    border-radius: 0;
    width: 100%;
  }

  .menu .text li .submenu {
    display: none;
    position: static !important;
    width: 100%;
    box-shadow: none;
    text-align: center;
    color: rgb(255, 235, 133);
    opacity: 1 !important;
    max-height: none !important;
    transition: none !important;
  }

  .menu .text li:hover .submenu,
  .menu .text li:focus-within .submenu {
    color: rgb(255, 235, 133);
    display: block;
  }

  .menu .text li .submenu li a {
    color: rgb(255, 235, 133);
    font-size: 15px;
    padding-left: 0;
    width: 100%;
    text-align: center;
  }

  .char-img {
    max-width: 100%;
    height: auto;
  }

  .character-section {
    gap: 20px;
  }

  .desc {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 10px;
    word-break: keep-all;
  }

  .bubble {
    position: static;
    display: inline-block;
    font-size: 13px;
    padding: 6px 10px;
    margin: 6px 5px;
    max-width: 85%;
    white-space: normal;
  }

  .plan-container .title,
  .code-container .title,
  .build-container .title,
  .test-container .title,
  .release-container .title,
  .deploy-container .title,
  .operate-container .title,
  .monitor-container .title {
    font-size: 22px;
    line-height: 1.3;
    word-break: keep-all;
    text-align: center;
    margin-bottom: 24px;
  }

  .plan-container .bubble,
  .code-container .bubble,
  .build-container .bubble,
  .test-container .bubble,
  .release-container .bubble,
  .deploy-container .bubble,
  .operate-container .bubble,
  .monitor-container .bubble {
    position: static;
    display: block;
    margin: 6px auto;
    font-size: 13px;
    padding: 6px 10px;
    max-width: 85%;
    white-space: normal;
  }

  .bubble::after {
    display: none;
  }

  .speech-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
    width: 90%;
    max-width: 300px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .speaker-label {
    display: block;
  }

  .character-display {
    bottom: 10px;
    right: 10px;
    width: 100px;
    padding: 8px;
  }

  .character-display img {
    width: 48px;
    height: 48px;
  }

  .character-display p {
    font-size: 0.9rem;
  }

  .character-display .score {
    font-size: 0.8rem;
  }

  .complete-btn {
    bottom: 5px;
    left: 5px;
    padding: 0.4rem 0.8rem;
  }

  .link-btn {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.all-title{
  font-size: 60px;
  margin-top: -60px;
}