/*나눔스퀘어라운드 폰트*/
@import url('https://hangeul.pstatic.net/hangeul_static/css/nanum-square-round.css');

html{font-size: 17px; /*1 rem*/}

body{
    margin: 0;
    padding: 0;
    font-family: 'NanumSquareRound';
    background: white;
}

button {
    all: unset; /* 브라우저 기본 스타일 제거 */
    font-family: 'NanumSquareRound';
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
}

.navbar {
    position: fixed;
    top: 0;
    height: 5rem;
    width: 100%;
    background-color: white;
    z-index: 5;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    height: 3rem;
    position: relative;
    left: 15%;
} 

.logo-container a {
    display: flex;
    height: 3rem;
    align-items: center;
}

.logo-container img {
    height: 95%;
    object-fit: contain;
}

/* Navigation Links and Language Button Container */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 15%;
    gap: 1rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-right: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: black;
    cursor: pointer;
}

.SpeechBubble{
    position: fixed;
    top: 5.5rem;
    left: 15%;
    display: flex; 
    flex-direction: column; /* 텍스트 박스 위, 꼬리 아래 정렬 */
    align-items: flex-start; /* 중앙 정렬 */
    z-index: 1;
    white-space: nowrap;
}

.textbox {
    background: white;
    border: 1px solid black;
    border-radius: 30px;
    padding: 0 20px; /* 텍스트 좌우 여백 */
    height: 40px;
    line-height: 40px;
    font-size: 1rem;
    color: black;
    text-align: center;
    display: inline-block;
}

/* 말풍선 꼬리 */
.tail {
    position: relative;
    top: -1px;
    left: 2rem;
    width: 1.5rem;
    height: auto;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 1.25rem;
    right: 5%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.close-icon {
    width: 100%;
    height: auto;
}

/* 모바일 더보기 아이콘 숨김 디폴트 */
.more-btn,
.mobile-menu {
    display: none;
}

@media (max-width: 950px) {
    .logo-container{left:5%;}
    .SpeechBubble{left: 5%;}
    .logo-container img {height: 85%;}
    .SpeechBubble{top: 5rem;}

    .nav-links {
        display: none; /* 네비게이션 링크 숨김 */
    }

    .nav-container {
        display: flex;
        position: absolute;
        right: 0%;
        align-items: center;
    }

    .more-btn {
        display: block; /* 더보기 버튼 표시 */
        background: none;
        border: none;
        cursor: pointer;
        margin-right: 5%;
    }

    .more-icon {
        width: 1.5rem;
        height: auto;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: white;
        z-index: 15;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-logo {
        position: absolute;
        height: 2.55rem;
        top: 1.22rem;
        left: 5%;
    }

    .mobile-nav-links {
        list-style: none;
        margin: 0;
        margin-top: 5rem;
        padding: 0;
        width: 85vw;
        margin-left: 6%;
    }

    .mobile-nav-links li {
        margin: 0;
        padding: 1.2rem 0;
        border-bottom: 1.3px solid #E6E6E6;
    }

    .mobile-nav-links li:last-child {
        border-bottom: none; /* 마지막 항목은 선 제거 */
    }

    .mobile-nav-links a {
        text-decoration: none;
        color: #000000;
        font-size: 1rem;
        line-height: 1.8rem;
    }

    .textbox {
        padding: 0 0.9rem; /* 텍스트 좌우 여백 */
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}