@font-face {
  font-family: 'GmarketSansMedium';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'GmarketSansBold';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');
body {
  box-sizing: border-box;
  margin: 0;
  color: #444;
  line-height: 1.6;
}
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1em;
}

.button2{
  background-color: #ffffff;
  padding:9px 15px 9px 15px;    
  height: auto;
  min-width: 100px;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 12px;
  color:#969696;
  font-weight: 700;
}
.button3{
  background-color: #ffffff;
  padding:9px 15px 9px 15px;    
  height: auto;
  width: 700px;
  box-sizing: border-box;
  border-radius: 5px;
  font-size: 12px;
  color:#969696;
  font-weight: 700;
}
.popup-link {
  display: block;
  margin-top: 10px;
  text-decoration: underline;
  color: #007BFF;
  cursor: pointer;
}

.popup-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.popup-list li {
  flex: 0 1 calc(50% - 20px);
  box-sizing: border-box;
}

.popup-list a {
  display: block;
  padding: 15px;
  background-color: #ffffff; /* 박스 내부 하얀색 설정 */
  border: 1px solid #444; /* 진한 테두리 */
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.popup-list a:hover {
  background-color: #444; /* 배경색 변경 */
  color: #fff; /* 텍스트 색상 변경 */
}

.popup-back {
  position: absolute;
  top: 10px; /* 본문과의 거리 조정 */
  right: 20px;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  padding: 5px 10px; /* 크기 조정 */
  border-radius: 5px;
  font-size: 12px; /* 글자 크기 축소 */
  cursor: pointer;
}

.popup-close-btn {
  display: inline-block;
  margin: 20px auto 0;
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
  max-height: 90%;
  text-align: center;
}

.popup-content h3 {
  margin-top: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2em;
  cursor: pointer;
  color: #333;
}

h1 {
  font-size: 1.8em;
}
h2 {
  margin: 4em 0 1.5em;
  padding: 0.5em 0;
  border-top: 1px solid #4394f0;
  border-bottom: 1px solid #ddd;
  font-size: 1.2em;
}
h3 {
  margin-top: 2.5em;
  font-size: 1.025em;
}
ol ul {
  margin-bottom: 1em;
}
ol.terms {
  margin-top: -0.6em;
}
ol.terms li {
  margin-bottom: 0.3em;
}
ul.style-none,
ul.dashed {
  list-style-type: none;
}
ul.style-none,
ul.dashed > li {
  margin-left: -1em;
}
ul.dashed > li:before {
  content: '- ';
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  table-layout:fixed;
}
thead {
  background-color: #fafafa;
}
th,
td {
  border: 1px solid #ddd;
  padding: 0.5em 1em;
}
a {
  text-decoration: none;
  color: #336699;
}
.bg-lightgray {
  background-color: #fafafa;
} 
.bg-lightblue {
  background-color: #F3F8FF;
} 
.mt-4 {
  margin-top: 4em !important;
}
.mt-5 {
  margin-top: 5em !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}
.text-center {
  text-align: center !important;
}
.text-bold {
  font-weight: 600 !important;
}
.release-info {
  width: 100%;
  padding: 0.5em 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #ddd;
  font-size: 80%;
  color: #777;
}
.release-info a {
  float: right;
}
@media (min-width: 768px) {
  .container {
    width: 720px;
    padding: 2em 1em;
  }
}

/* letter */

section.letter-content {
  padding-bottom: 4em;
}
.release-info.letter {
  color: #0C65E5;
  border-color: #0C65E5;
  font-weight: 600;
}
.letter-title {
  font-family: 'GmarketSansBold', sans-serif;
  color: #0C65E5;
  margin-top: 2em;
}
.letter-title span {
  font-family: 'GmarketSansMedium', sans-serif;
  font-size: 1.4em;
}
.letter-info {
  color: #0C65E5;
  font-size: 0.8em;
}
h2.letter-subtitle {
  margin: 4em 0 2em;
  font-family: 'Poppins', sans-serif;
  color: #0C65E5;
  border-color: #0C65E5;
}
h3.letter-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3em;
  color: #0C65E5;
}
.gap td {
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  padding: 0.6em 2em !important;
}
.img-letter {
  display: block;
  margin: 0 auto;
  width: 120px;
}
.img-signature {
  margin-top: 1em;
  height: 36px;
}

.terms_index ul{
   list-style:none;
   }

.terms_index_box {
    display: flex;
    font-size: 0.85em;
}

.terms_label ul {
    display: flex;
    flex-wrap: wrap; /* 아이템이 너무 많아 한 줄에 다 표시될 수 없을 때 다음 줄로 넘어갈 수 있도록 설정 */
    justify-content: space-between; /* 아이템들 사이에 동일한 간격 부여 */
    list-style-type: none; /* 기본적인 리스트 스타일 제거 */
    padding: 0; /* 기본 패딩 제거 */
    margin: 0; /* 기본 마진 제거 */
}

.terms_label li {
    display: flex;
    flex-direction: column; /* 세로로 아이템 나열 */
    align-items: center; /* 중앙 정렬 */
    width: 16%; /* 6개의 아이템이므로 대략 16% 정도의 너비를 갖도록 설정. 필요에 따라 조절 가능 */
    margin-bottom: 20px; /* 아이템들 사이의 수직 간격 설정 */
    font-size: 0.85em;
}

/* Media Query: 화면 너비가 768px 미만일 경우 (대부분의 태블릿 및 모바일 화면) */
@media only screen and (max-width: 768px) {
    .terms_label li {
        width: 33%;  /* 좁은 화면에서는 한 줄에 3개 아이콘 표시 */
    }
}

.terms_label img {
    height: 80px; /* 예시 높이입니다. 실제 원하는 높이로 조절하세요. */
    width: auto; /* 원본 이미지 비율 유지 */
    margin-bottom: 10px; /* 이미지와 텍스트 사이의 간격 */
}

.terms_label span {
    text-align: center; /* 텍스트 중앙 정렬 */
}

.icon {
    display: inline-block;
    width: 30px;  /* 아이콘의 너비 */
    height: 30px; /* 아이콘의 높이 */
    margin-left: 5px; /* 제목과의 간격 */
    background-size: cover;
    vertical-align: middle;
}

.icon01 { background-image: url('img/terms_label01s.png'); }
.icon02 { background-image: url('img/terms_label02s.png'); }
.icon03 { background-image: url('img/terms_label03s.png'); }
.icon04 { background-image: url('img/terms_label04s.png'); }
.icon05 { background-image: url('img/terms_label05s.png'); }
.icon06 { background-image: url('img/terms_label06s.png'); }
.icon07 { background-image: url('img/terms_label07s.png'); }
.icon08 { background-image: url('img/terms_label08s.png'); }
.icon09 { background-image: url('img/terms_label09s.png'); }
.icon10 { background-image: url('img/terms_label10s.png'); }
.icon11 { background-image: url('img/terms_label11s.png'); }
.icon12 { background-image: url('img/terms_label12s.png'); }
.icon13 { background-image: url('img/terms_label13s.png'); }
.icon14 { background-image: url('img/terms_label14s.png'); }
.icon15 { background-image: url('img/terms_label15s.png'); }
.icon16 { background-image: url('img/terms_label16s.png'); }