@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@100..900&display=swap');

html, body {
    padding: 0;
    margin: 0;
    background-color: #666;
    min-width: 320px;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.1em;
}

img {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.wrap {
    padding: 0;
    margin: 0 auto;
}

.wrap > img {
	width: 100%;
}

/* 전체 컨테이너 */
.kakao-container {
    height: 0;
    position: sticky;
    bottom: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.kakao-container ul {
    padding: 0 8px 8px 0;
    margin: 0;
    list-style: none;
    transform: translateY(-100%);
}

.kakao-container ul li {
    margin: 5px 0;
    position: relative;
}

.kakao-container ul li:hover .chat-bubble {
    animation: shakeLeftRight 2s ease-in-out infinite;
}

/* 말풍선 스타일 */
.chat-bubble {
    position: absolute;
    right: 64px;
    top: 0;
    bottom: 0;
    height: 20px;
    margin: auto;
    background-color: #fee500;
    color: #3c1e1e;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    max-width: 200px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    box-sizing: content-box;
}

/* 꼬리: 오른쪽 상단 */
.bubble-tail {
    position: absolute;
    top: 16px;
    right: -6px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    /* border-left: 8px solid #fee500; */
}

/* 버튼 스타일 */
.kakao-button {
    color: white;
    border-radius: 50%;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-decoration: none;
}

.kakao-button span {
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

footer {
    display: block;
    padding: 0;
    margin: 0;
    text-align: center;
    background-image: url('../images/footer.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-color: black;
}

footer img {
    display: block;
    padding: 0;
    margin: 0 auto;
}

/* 좌우 흔들리는 애니메이션 */
@keyframes shakeLeftRight {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

@media screen and (min-width: 1200px) {
    .desktop {
        display: block;
    }
    .mobile {
        display: none;
    }

    .kakao-button {
        width: 105px;
        height: 105px;
    }

    .kakao-button img {
        width: 36px;
        height: 36px;
    }
}

@media screen and (max-width: 1199px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }

    .kakao-button {
        width: 48px;
        height: 48px;
    }

    .kakao-button img {
        width: 28px;
        height: 28px;
    }
}