/* ================================
   RESET
================================ */
html {
  touch-action: manipulation;
}


* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f2f3f7;
  font-family: Arial, sans-serif;
}

/* 전체 배너는 화면에 fixed + full width */
.header-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;              /* 항상 전체 화면 가로폭 */
  z-index: 9999;
  /* box-shadow: 0 2px 4px rgba(0,0,0,0.15); */
}

/* 내부 컨테이너 (가운데 정렬) */
.header-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 10px 0px;
  background: #2f5bff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}
.tones {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 12px;
}
/* 텍스트 */
.header-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* 캐릭터 */
.header-char {
  height: 80px;
  /* margin-left: 10px; */
}


/* 본문이 헤더 뒤로 숨지 않도록 top padding 추가 */
body {
  padding-top: 101px;     /* 헤더 높이(약 100px)만큼 내려줌 */
}

.header-text {
  font-size: 20px;
  font-weight: 700;
}

.header-char {
  height: 80px;
  width: auto;
}


.chord-box {
  position: relative;   /* 숫자 위치 제어를 위해 필요 */
}

.chord-index {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;

  background: #fff;       
  color: #000;             /* 숫자 검정 */
  border-radius: 50%;      /* 원형 */
  
  display: flex;
  align-items: center;
  justify-content: center;
  border:1px solid #ddd;
  font-weight: 700;
  font-size: 14px;

  z-index: 10;
}


/* 모바일에서 글자/이미지 조금 줄이기 */
@media (max-width: 767px) {
  .header-inner{
    padding: 0px 5px;
  }
  .header-text {
    font-size: 19px;
  }
  .header-char {
    height: 50px;
  }
}

/* ================================
   CONTAINER (3단 유지)
================================ */
.container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  height: 100vh;
  display: flex;               /* 모바일에서도 3단 유지 */
  flex-direction: row;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* ================================
   PANELS
================================ */
.left-panel {
  width: 90px;                 /* 모바일에서 좁게 */
  border-right: 1px solid #ddd;
  padding: 8px;
  overflow-y: auto;
}

.middle-panel {
  width: 120px;                /* 모바일에서 좁게 */
  border-right: 1px solid #ddd;
  padding: 8px;
  overflow-y: auto;
}

.right-panel {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  text-align: center;
    padding-bottom: 101px;
}

.chord-box {
  position: relative;
}

.chord-star {
  position: absolute;
  top: -14px;
  right: -8px;
  font-size: 20px;
  color: gold;
  z-index: 20;
  text-shadow: 0 0 3px rgba(0,0,0,0.2);
}



/* ================================
   BUTTON STYLE
================================ */
.key-btn, .type-btn {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  margin-bottom: 6px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
}

.key-btn.active, .type-btn.active {
  background: #4460ff;
  color: #fff; 
  border-color: #4460ff; 
}

.key-btn:hover, .type-btn:hover {
  /* background: #eef2ff; */
}

/* ================================
   CHORD VIEW
================================ */
.chord-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.chord-box {
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  cursor: pointer;
}

.chord-box:hover {
  background: #eef2ff;
}

.chord-canvas {
  width: 140px;
  height: 200px;
  display: block;
  margin: auto;
}

/* ================================
   FULL VIEW MODAL
================================ */
#fullViewModal.full-view-hidden {
  display: none !important;
}

#fullViewModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#fullViewCanvas {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  width: 300px;
  height: 400px;
}

/* ================================
   MOBILE (특수 튜닝)
================================ */
@media (max-width: 767px) {

  /* 3단 유지하지만 폭 줄임 */
  .left-panel { width: 70px; }
  .middle-panel { width: 100px; }

  /* 버튼 더 작게 */
  .key-btn, .type-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  #fullViewCanvas {
    width: 260px;
    height: 350px;
  }
  body {
    padding-top: 51px;    
    }

}
