:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --zsl-bg: white;
  --zsl-chat-bg: linear-gradient(180deg, #f5f7fa 0%, #efd9e5 100%);
  --border: 2px solid #0c0a69;
  --border2: 2px solid #4bfafa;
  --left-zs-bg2: #bbe9dd;
  --left-zs-bg: rgb(224, 222, 222);
  --left-zs-bg3: #befdff;
  --left-zs-bg4: #d6ffe6;
  --left-zs-bg5: #fff1d6;
  --left-zs-bg6: #ffcfcf;
  --left-zs-bg7: #becfe2;
  --left-zs-bg8: #f9facf;
  --right-zs-bg: #ffffff;
  --center-bg: transparent;
}

@font-face {
  font-family: 'DOSMyungjo';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_eight@1.0/DOSMyungjo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'OG_Renaissance_Secret-Rg';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/OG_Renaissance_Secret-Rg.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Pretendard-Regular';
  src: url('https://cdn.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-Regular.woff') format('woff');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'BookkMyungjo-Bd';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2302@1.0/BookkMyungjo-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: '국립박물관문화재단클래식B';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식B.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: '국립박물관문화재단클래식M';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_twelve@1.0/국립박물관문화재단클래식M.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'DungGeunMo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'GowunBatang-Regular';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/GowunBatang-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html {
  box-sizing: border-box;
}

pre {
  font-family: '국립박물관문화재단클래식M', serif;
  font-weight: 500;
  font-size: 16pt;
  width: 80%;
  color: rgb(78, 59, 88);
  white-space: pre-wrap;
  word-break: keep-all;
  margin: 0 auto;
  text-align: center;
  line-height: 160%;
}

*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: var(--body-bg);
  font-family: Helvetica, sans-serif;
  overflow: auto;
}


.container {
  display: inline-block;
  width: 300px;
  height: auto;
  position: relative;
  overflow: hidden;

  /* 이미지를 선명하게 보여주는 레이어 */
  -webkit-mask-image: none;
  mask-image: none;
}

.container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 300px;
  height: auto;
}

.scroll-message {
  margin-top: 10px;
  text-align: center;
  display: none;
  /* 초기에는 숨김 */
}

.zsl {
  position: fixed;
  /* 요소를 화면에 고정 */
  top: 0px;
  bottom: 0px;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 867px;
  padding: 5px;
  border: var(--border);
  border-radius: 5px;
  background: var(--zsl-bg);
  box-shadow: 0 15px 15px -5px rgba(126, 104, 123, 0.2);
  overflow: auto;
}

.zsl2 {
  position: fixed;
  /* 요소를 화면에 고정 */
  top: 0px;
  bottom: 0px;
  display: flex;
  flex-flow: column wrap;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 867px;
  margin: 0;
  border: var(--border2);
  border-radius: 5px;
  background: var(--zsl-bg);
  box-shadow: 0 25px 25px -5px rgb(93, 228, 255);
}

.zsl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: var(--border);
  color: #4bfafa;
  font-family: "DungGeunMo", serif;
  border: 1px inset #c0c0c0;
  background: 
  url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%222%22%20height%3D%222%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1%200H0v1h1v1h1V1H1V0z%22%20fill%3D%22navy%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%200H1v1H0v1h1V1h1V0z%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E'),
    linear-gradient(90deg, navy, #36a6f1); /* 그라데이션이 배경 이미지 위로 */
  }

.zsl-header2 {
  margin: 1px;
  border: 2px inset #0c0a69;
  background: 
  url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%222%22%20height%3D%222%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1%200H0v1h1v1h1V1H1V0z%22%20fill%3D%22silver%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%200H1v1H0v1h1V1h1V0z%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E'),
  #6e6e6e; /* 그라데이션이 배경 이미지 위로 */
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--border2);
  color: #14ecec;
  font-family: "DungGeunMo", serif;
  margin-bottom: 2px;
}

.zsl-bottom {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: var(--border);
  color: #e0fffc;
  font-family: "DungGeunMo", serif;
  border: 1px inset #0c0a69;
  background: 
  url('data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%222%22%20height%3D%222%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1%200H0v1h1v1h1V1H1V0z%22%20fill%3D%22navy%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%200H1v1H0v1h1V1h1V0z%22%20fill%3D%22transparent%22%2F%3E%3C%2Fsvg%3E'),
  black; /* 그라데이션이 배경 이미지 위로 */
}



.zsl-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  padding-bottom: 50px;
  font-family: "DOSMyungjo";
  font-size: 13pt;
  word-break: keep-all;
  background: var(--zsl-chat-bg);
  background-image: url('sea3.png');
}

.zsl-chat2 {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #666;
  padding-bottom: 50px;
  word-break: keep-all;
}

.zsl-chat::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #bdbdbd;
}

.zsl-chat::-webkit-scrollbar-thumb {
  
  background: #adadad;
}

.zs {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.zs:last-of-type {
  margin: 0;
}

.zs-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.zs-img2 {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.zs-img3 {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}

.zs-bubble0 {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 15px;
  font-family: "DungGeunMo";
  font-weight: 300;
  font-size: 14pt;
  color: white;
}

.zs-bubble {
  width: 80%;
  padding: 15px;
  background: var(--left-zs-bg);
  color: #000000;
  border-radius: 0;
  text-align: right;
  position: relative;
  box-shadow:
    1px 1px 0 0 #a6ffce,
    2px 2px 0 0 #8daeae,
    3px 3px 0 0 #a6ffce,
    4px 4px 0 0 #8daeae;
  /* 계단 모양 그림자 효과 */
}

.zs-bubble-img {
  width: 100%;
  padding: 7px;
  border-radius: 7px;
  background: var(--left-zs-bg3);
}

.zs-bubble2 {
  width: 80%;
  padding: 15px;
  border-radius: 0px;
  background: transparent;
  border: 1px solid #4bfafa;
  color: rgb(204, 255, 252);
  box-shadow: inset -1px -1px navy, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff;
}

.zs-bubble3 {
  width: 80%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-zs-bg4);
}

.zs-bubble4 {
  width: 80%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-zs-bg5);
}

.zs-bubble5 {
  width: 80%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-zs-bg6);
}

.zs-bubble6 {
  width: 80%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-zs-bg7);
}

.zs-bubble7 {
  width: 80%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-zs-bg8);
}

.zs-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.zs-info-name {
  margin-right: 10px;
  font-weight: bold;
}

.zs-info-time {
  font-size: 0.85em;
}

.left-zs .zs-bubble {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble2 {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble3 {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble4 {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble5 {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble6 {
  border-bottom-left-radius: 0;
}

.left-zs .zs-bubble7 {
  border-bottom-left-radius: 0;
}


.right-zs {
  flex-direction: row-reverse;
}

.right-zs .zs-bubble {
  background: var(--right-zs-bg);
  color: #000000;
  border-radius: 0;
  text-align: right;
  position: relative;
  box-shadow:
    1px 1px 0 0 #4bfafa,
    2px 2px 0 0 #8daeae,
    3px 3px 0 0 #4bfafa,
    4px 4px 0 0 #8daeae;
  /* 계단 모양 그림자 효과 */
  margin-right: 5px;
}

.right-zs .zs-img {
  margin: 0 0 0 10px;
}

.center {
  flex-direction: row;
  display: flex;
  justify-content: center;
}

.center .zs-bubble0 {
  background: var(--center-bg);
  color: white;
  border-radius: 0;
  max-width: 80%;
  text-align: center;
}

.center .zs-img {
  margin: 0 0 0 10px;
}


.zsl-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
  background: #eee;
}

.zsl-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}

.zsl-input {
  flex: 1;
  background: #ddd;
}

.zsl-send-btn {
  margin-left: 10px;
  background: rgb(0, 196, 65);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}

.zsl-send-btn:hover {
  background: rgb(0, 180, 50);
}

.zsl-chat {
  background-color: #fcfcfe;
}

.teacherName {
  height: 30px;
  width: 80%;
  margin-top: 10px;
  margin-bottom: 5px;
}

.button {
  background-color: rgb(230, 230, 230);
  color: navy;
  border: none;
  width: auto;
  height: 40px;
  font-family: "Pretendard-Regular", serif;
  font-weight: bold;
  font-size: 12pt;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  /* Center horizontally */
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px grey, inset 3px 3px #dfdfdf;
  -webkit-appearance: none;
  /* 사파리에서 기본 양식 제거 */
  appearance: none;
  /* 다른 브라우저에서 기본 양식 제거 */
  outline: none;
  /* 포커스 효과 제거 */
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0;
  padding-bottom: 0;
}

.button2 {
  background: rgba(255, 255, 255, 0.39);
  color: white;
  text-shadow: -1px 0 rgb(177, 111, 177), 0 1px rgb(177, 111, 177), 1px 0 rgb(177, 111, 177), 0 -1px rgb(177, 111, 177);
  border: none;
  width: auto;
  height: 60px;
  border-radius: 30px;
  font-family: "국립박물관문화재단클래식B", serif;
  font-size: 13pt;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  /* Center horizontally */
  display: flex;
  flex-direction: column;
  justify-content: center;

  -webkit-appearance: none;
  /* 사파리에서 기본 양식 제거 */
  appearance: none;
  /* 다른 브라우저에서 기본 양식 제거 */
  outline: none;
  /* 포커스 효과 제거 */
  margin-top: 20px;
  padding: 10px;
}

.button2:hover {
  transform: scale(1.1);
}

.button3 {
  background-color: rgb(235, 235, 235);
  color: black;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-family: "Pretendard-Regular", serif;
  text-align: center;
  align-items: center;
  margin: 0 auto;
  /* Center horizontally */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 5px;
  -webkit-appearance: none;
  /* 사파리에서 기본 양식 제거 */
  appearance: none;
  /* 다른 브라우저에서 기본 양식 제거 */
  outline: none;
  /* 포커스 효과 제거 */
  flex: 1;
  width: 80%;
  font-size: 12pt;
}

.button4 {
  width: 80%;
  padding: 15px;
  -webkit-appearance: none;
  /* 사파리에서 기본 양식 제거 */
  appearance: none;
  /* 다른 브라우저에서 기본 양식 제거 */
  outline: none;
  /* 포커스 효과 제거 */
  background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  text-align: center;
}

.button-container {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  /* 버튼을 세로로 정렬하기 위해 추가 */
  align-items: center;
}

.zsl-header-options {
  display: flex;
  justify-content: space-between;
  /* 오른쪽 정렬 */
  align-items: center;
}

.back-button {
  background-color: rgb(230, 230, 230);
  box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #0a0a0a, inset 2px 2px #fff, inset -3px -3px grey, inset 3px 3px #dfdfdf;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-family: "DungGeunMo", serif;
  color: #000000;
  width: auto;
  height: auto;
  padding: 10px;
  margin: 0%;
}

.back-button2 {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #4bfafa;
  font-family: "DungGeunMo", serif;
}

.inv-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: "DungGeunMo", serif;
  color: #3a3a3a;
}

#wrongMessage {
  display: none;
  color: red;
  text-align: center;
  /* 텍스트를 가운데 정렬 */
  width: 100%;
  /* 부모의 너비를 기준으로 설정 */
}

#hint {
  display: none;
  /* 기본적으로 숨김 */
  color: white;
  margin-top: 10px;
  text-align: center;
  /* 텍스트를 가운데 정렬 */
  width: 100%;
  /* 부모의 너비를 기준으로 설정 */
}

input[type="text"] {
  font-family: 'Pretendard-Regular', serif;
  font-size: 14pt;
  height: 30px;
  width: 60%;
  border: 0;
  outline: none;
  padding-left: 10px;
  background-color: white;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
}

.rotate-image {
  transform: rotate(90deg); /* 이미지를 시계 방향으로 45도 회전합니다. */
}

.hljs-name,
.hljs-tag {
  color: #00f;
}

select {
  background-color: #fff;
  box-shadow: inset -1px -1px #fff, inset 1px 1px grey, inset -2px -2px #dfdfdf, inset 2px 2px #0a0a0a;
  box-sizing: border-box;
  padding: 3px 4px;
  width: 70px;
  outline: none;
  appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='17' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 0H0v16h1V1h14V0z' fill='%23DFDFDF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 1H1v14h1V2h12V1H2z' fill='%23fff'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16 17H0v-1h15V0h1v17z' fill='%23000'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M15 1h-1v14H1v1h14V1z' fill='gray'/%3E%3Cpath fill='gray' d='M2 2h12v13H2z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11 6H4v1h1v1h1v1h1v1h1V9h1V8h1V7h1V6z' fill='%23000'/%3E%3C/svg%3E");
   
    background-position: top 2px right 2px;
    background-repeat: no-repeat;
    border-radius: 0;
    padding-right: 32px;
    position: relative;
}

.example-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
  gap: 10px;
}

