
html{
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    font-family: 'Montserrat', 'Noto Sans KR',  sans-serif !important;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

div.nav-content{
    padding: 15px 7%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav a{
    font-weight: bold;
    text-decoration: none;
    color: #000;
    margin-left: 15px;
}

div.logo{
    font-weight: bold;
    font-size: 25px;
}

div.logo img{
    width: 35px;
}


div.wrapper{
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    padding-left: 130px;
    position: relative;
    overflow: hidden;
}

div.side-bar{
    writing-mode: tb-rl;
    height: 100%;
    font-size: 39px;
    color: #000;
    letter-spacing: .6rem;
    padding: 20px;
    white-space: nowrap;
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    font-weight: bold;
    background-color: #dedede;
}

div.main-text{
    margin-bottom: 25px;
    flex: none;
}

.desc{
    font-size: 3.3vw;
    font-weight: 600;
    line-height: 1.18;
}

.desc span{
    color: #9D4EDD;
}

div.robot{
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

div.robot img{
    width: 450px;
    position: absolute;
    right:0;
    bottom:-10%;
}

/* 
    애니메이션 1: 위아래 바운스(floating)
    - 로봇을 감싸는 컨테이너에 적용하여 로봇 자체가 위아래로 움직이게 함
*/
@keyframes float-animation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); } /* 위로 25px 이동 */
    100% { transform: translateY(0px); }
}

.robot-container {
    animation: float-animation 6s ease-in-out infinite;
}

/* 말풍선 기본 스타일 */
.speech-bubble {
    display: inline-block; /* 내용만큼 크기 차지 */
    position: relative; /* 꼬리 부분 위치 조정을 위함 */
    background: #9D4EDD; /* 말풍선 배경색 */
    border-radius: .4em; /* 모서리 둥글게 */
    padding: 15px 15px; /* 내부 여백 */
    cursor: pointer;
    margin-top: 25px;
}

/* 말풍선 꼬리 만들기 */
.speech-bubble:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 0px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #9D4EDD;
}

/* 점들을 담을 컨테이너 */
.dot-container {
    display: flex;
    align-items: center;
}

/* 통통 튀는 점 스타일 */
.dot {
    width: 10px;
    height: 10px;
    background-color: #fff; /* 점 색상 */
    border-radius: 50%; /* 원 모양으로 만들기 */
    margin: 0 4px; /* 점 사이의 간격 */
    /* 애니메이션 적용 */
    animation: bounce 1.4s infinite ease-in-out both;
}

/* 각 점에 애니메이션 지연 시간 설정 */
.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

/* 통통 튀는 효과를 위한 @keyframes */
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1.0);
  }
}

/* 오버레이 배경 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
}

/* 팝업 창 */
.popup {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    transform-origin: center center;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.3s ease, opacity 0.3s ease; 
}

.popup.show {
    opacity: 1;
    transform: scale(1);
}

/* 닫기 버튼 */
.close-btn {
    color: #fff;
    top: 20px;
    right: 40px;
    border: none;
    cursor: pointer;
    z-index: 999;
    position: absolute;
    font-size: 27px;
    background:none;
}

div.chat-wrap{
    background-color: #1e1e1e87 !important;
}

div.chat-wrap div.chat-form div.chat{
    background-color: #1e1e1e !important;
    border-radius: 20px !important;
}

.chat p {
    margin-bottom: 0;
}