/* 모던 디자인 변수 호환 */
/* common-modern.css의 변수를 사용하여 다크모드 및 테마 호환성 확보 */

body {
  font-family: 'Arial', sans-serif;
  background-color: #fff;
  color: #000000;
  margin: 0;
}

h1 {
  text-align: center;
  color: #333;
  margin-top: 20px;
  margin-bottom: 20px;
}

section {
  display: flex;
  justify-content: center;
}

.memo-customizer {
  max-width: 490px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

#preview {
  width: 100%;
  display: flex;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 20px;
    flex-direction: column;
    align-items: center;
}

#memo-preview {
  width: 490px;
  height: 750px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.job-icons {
  position: absolute;
  top: 120px; /* 상단 고정 */
  left: 50%; /* 가로 중앙 정렬 */
  transform: translateX(-50%); /* 가로 중앙 정렬 유지 */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 10px;
  width: 380px;
  height: 560px; /* 주황선 길이만큼 높이를 제한 */
  overflow-y: scroll; /* 스크롤 가능하도록 설정 */
  justify-items: center;
  align-items: center;
  grid-auto-rows: 120px; /* 세로 간격 120px */
}

.job-icons div {
  text-align: center; /* 텍스트 중앙 정렬 */
}

.job-icons span {
  font-size: 12px; /* 글씨 크기 줄이기 */
}

.job-icons::-webkit-scrollbar {
  display: none; /* 웹킷 기반 브라우저에서 스크롤바 숨기기 */
}

.job-icon {
  width: 60px;
  height: 60px;
  cursor: pointer;
}

.spacer {
  visibility: hidden;
  grid-column: span 1;
  grid-row: span 1;
}


.job-icons .spacer {
  width: 50px;
  height: 50px;
  visibility: hidden;
}

.background-scroll {
  width:80%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  background: #333;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #666;
}

.background-scroll img {
  width: 150px;
  cursor: pointer;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  color: #fff;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
}

.skin-options {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.skin-options img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
}

.skin-options img:hover {
  border-color: #007bff;
}

.color-toggle-button {
  padding: 10px 15px;
  background-color: #007bff; /* 기본 배경색 */
  color: white; /* 글씨 색상 */
  border: none; /* 테두리 제거 */
  border-radius: 5px; /* 모서리 둥글게 */
  cursor: pointer; /* 커서 포인터로 변경 */
  transition: background-color 0.3s; /* 배경색 전환 효과 */
  margin-right: 10px; /* 버튼 간격 */
}

.color-toggle-button:hover {
  background-color: #0056b3; /* 호버 시 배경색 */
}

.button-container {
  display: flex;
  justify-content: center; /* 수평 중앙 정렬 */
  margin: 120px 0 40px 0; /* 위아래 여백 추가 */
}