@charset "utf-8";
.kor_music .footer { position: absolute; bottom: 28px; left: 0; right: 0; width: 100%; height: 60px; }
.kor_music .footer img { position: absolute; bottom: 35px; right: 20px; height: 40px; width: auto; }
.kor_music#section { }
.kor_music .kor_music_wrap { position: absolute; top: 180px; left: 46%; transform: translateX(-50%); width: 1600px; display: flex; /*margin: auto;*/ /*flex-direction: row;*/ flex-wrap: nowrap; align-content: center; justify-content: center; /*gap: 30px;*/ }
.kor_music .kor_music_box { border-radius: 60px; width: 430px; display: flex; flex-direction: column; flex-wrap: nowrap; align-content: center; justify-content: flex-start; align-items: center; /*padding: 20px 15px 30px 15px;*/ cursor: default; position: relative; }
/* 악기 이미지만 흔들림 (구음 버튼은 흔들리지 않음) */
.kor_music .kor_music_box.active .box_img_wrap {
    border: none;
    box-shadow: none;
    animation: shake linear 0.35s infinite;
}
.kor_music .box_img_wrap { width: 200px; height: 200px; display: flex; /*flex-direction: column; justify-content: center;*/ align-items: center; /*margin: 0 auto; border-radius: 40px; border: 4px solid #8c9eb3; background: #fff; overflow: hidden; box-shadow: 0px 5px 10px 0px #dddddd;*/ padding: 75px 0; pointer-events: none; }
.kor_music .box_img { display: block; margin: auto; height: 80%; pointer-events: none; }
.kor_music .box_txt { font-family: 'NanumSquareNeo-cBd'; font-size: 39px; font-weight: 700; width: 100%; text-align: center; margin-bottom: 10px; order: -1; }
/* hover 시 확대 효과 제거 */
/* @media (hover: hover) { .kor_music_box:hover { -webkit-transform: scale(1.01); -moz-transform: scale(1.01); transform: scale(1.01); } } */
@keyframes shake { 0% { transform: rotate(0deg); } 25% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } 75% { transform: rotate(-1deg); } 100% { transform: rotate(0deg); } }
/* 구음 버튼 스타일 - 기본으로 표시 */
.kor_music .gueum_wrap { display: flex; justify-content: center; gap: 10px; margin-top: 15px; position: relative; z-index: 10; }
.kor_music .gueum_wrap.on { display: flex; }
.kor_music .gueum_btn {
    font-family: 'NanumSquareNeo-dEb';
    font-size: 34px;
    color: #333;
    cursor: pointer;
    text-align: center;
    background-color: #fff;
    border: 4px solid #dddedd;
    border-radius: 15px;
    box-shadow : 0 0 21px 3px rgba(0, 0, 0, 0.15);
    width: 90px;
    height: 90px;
    line-height: 90px;
    position: relative;
    z-index: 10;
    font-weight: 700;
    /* 즉각적인 렌더링을 위한 최적화 */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* transition 완전 제거 - 즉시 반응 */
}
.kor_music .gueum_btn:hover, .kor_music .gueum_btn.hover {
    background-color: #f0f4f8;
    transform: scale(1.05) translateZ(0);
}
.kor_music .gueum_btn:active, .kor_music .gueum_btn.active {
    background-color: #ffd89b !important;
    border-color: #d4a574 !important;
    transform: scale(0.95) translateZ(0) !important;
}

/* 키보드 래퍼 스타일 */
.kor_music .kb_wrap { display: none; justify-content: center; gap: 50px; margin-top: 10px; }
.kor_music .kb_wrap.on { display: flex; }
/* 사물장구 키보드 - 구음 버튼과 정렬 */
#kor_music_box5 .kb_wrap { justify-content: flex-start; gap: 0; width: 400px; }
#kor_music_box5 .kb:nth-child(1) { margin-right: 41px; }
#kor_music_box5 .kb:nth-child(2) { margin-right: 55px; }
#kor_music_box5 .kb:nth-child(3) { margin-right: 53px; }

/* 북 키보드 - 구음 버튼과 정렬 */
#kor_music_box4 .kb_wrap { justify-content: flex-start; gap: 0; width: 400px; }
#kor_music_box4 .kb:nth-child(1) { margin-right: 53px; }
#kor_music_box4 .kb:nth-child(2) { margin-right: 51px; }
.kor_music .kb {
    color: #3f52ff;
    font-family: "KoPubWorld Dotum Bold";
    font-size: 28px;
    background-color: #ffffff;
    border: 2px solid #3f52ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 100;
    /* 즉각적인 렌더링을 위한 최적화 */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* transition 완전 제거 - 즉시 반응 */
}
.kor_music .kb:hover, .kor_music .kb.hover {
    background-color: #f0f4f8;
    transform: scale(1.05) translateZ(0);
}
.kor_music .kb:active, .kor_music .kb.active {
    transform: scale(0.95) translateZ(0) !important;
}
.kor_music .kb .space_txt { font-size: 17px; line-height: 1.2; }
.kor_music .kb.space_bar { border-radius: 25px; width: 80px; }
/* 구음 클릭 시 배경색 제거 */
/* .kor_music .kor_music_box.active .box_img_wrap {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
} */
.kor_music #kor_music_box3 .box_img { height: 189px; }
.kor_music #kor_music_box7 .box_img { height: 227px; margin-top: 9px; }
.kor_music #kor_music_box10 .box_img { height: 170px; transform: rotate(-15deg); margin-top: 48px; }
#kor_music_box6 .box_img { height: 65%; margin-top: 43px; }
#kor_music_box5 .box_img { height: 63%; }

/* 사물장구 궁(쿵) 버튼 - 라운드 네모 안에 동그란 검정 border */
/* #kor_music_box5 .gueum_btn_gung {
    padding: 8px;
} */
#kor_music_box5 .gueum_btn_gung .gung_circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: auto;
    margin-top: 16px;
    pointer-events: none;
    /* GPU 가속 */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}
#kor_music_box9 .box_img { height: 48%; margin-top: 72px; }
#kor_music_box1 .box_img { height: 63%; }

/* 설명 박스 스타일 */
.kor_music .desc_wrap {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 25px;
    padding: 15px 14px;
    background-color: #fff;
    border: 3px solid #dddedd;
    border-radius: 15px;
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.1);
    width: 260px;
}
.kor_music .desc_wrap.on { display: flex; }
.kor_music .desc_wrap p {
    font-family: 'NanumSquareNeo-cBd';
    font-size: 24px;
    color: #333;
    line-height: 1.5;
    text-align: left;
    display: flex;
    align-items: center;
    /* gap: 5px; */
}

/* 설명 내 궁 동그라미 표시 */
.kor_music .gung_desc_circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 1;
}
