:root {
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --msger-bg: white;
  --msger-chat-bg: linear-gradient(180deg, #f5f7fa 0%, #efd9e5 100%);
  --border: 2px solid #dfd6dd;
  --border2: 2px solid #4bfafa;
  --left-msg-bg2: #eedfff;
  --left-msg-bg: rgb(224, 222, 222);
  --left-msg-bg3: #befdff;
  --left-msg-bg4: #d6ffe6;
  --left-msg-bg5: #fff1d6;
  --left-msg-bg6: #ffcfcf;
  --left-msg-bg7: #becfe2;
  --left-msg-bg8: #f9facf;
  --right-msg-bg: #579ffb;
  --right2-msg-bg: transparent;
}
@font-face {
  font-family: 'PyeongChangPeace-Light';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2206-02@1.0/PyeongChangPeace-Light.woff2') format('woff2');
  font-weight: 300;
  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;
}

.scroll-message {
  margin-top: 10px;
  text-align: center;
  display: none; /* 초기에는 숨김 */
}

.msger {
  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(--border);
  border-radius: 5px;
  background: var(--msger-bg);
  box-shadow: 0 15px 15px -5px rgba(126, 104, 123, 0.2);
}
.msger2 {
  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(--msger-bg);
  box-shadow: 0 25px 25px -5px rgb(93, 228, 255);
}

.msger-header {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--border);
  background: #cec5cc;
  color: #3a3a3a;
  font-family: "PyeongChangPeace-Light", serif;
}

.msger-bottom {
  display: flex;
  justify-content: center;
  padding: 16px;
  border-top: var(--border);
  background: #cec5cc;
  color: #3a3a3a;
  font-family: "PyeongChangPeace-Light", serif;
}

.msger-header2 {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-bottom: var(--border2);
  background: #6e6e6e;
  color: #4bfafa;
  font-family: "DungGeunMo", serif;
}

.msger-chat {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  padding-bottom: 50px;
  font-family: "Pretendard-Regular";
  font-size: 13pt;
  word-break: keep-all;
  background: var(--msger-chat-bg);
}
.msger-chat2 {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background-color: #666;
  padding-bottom: 50px;
  word-break: keep-all;
}
.msger-chat::-webkit-scrollbar {
  width: 6px;
}
.msger-chat::-webkit-scrollbar-track {
  background: #ddd;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #bdbdbd;
}
.msg {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}
.msg:last-of-type {
  margin: 0;
}
.msg-img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: #ddd;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}
.msg-img2 {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}
.msg-img3 {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  background:  transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
}
.msg-bubble0 {
  width: 100%;
  margin-top: 30px;
  margin-bottom: 30px;
  border-radius: 15px;
  font-family: "GowunBatang-Regular";
  font-weight: 300;
  font-size: 15pt;
}
.msg-bubble {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg);
}
.msg-bubble-img {
  width: 100%;
  padding: 7px;
  border-radius: 7px;
  background: var(--left-msg-bg3);
}
.msg-bubble2 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg2);
}
.msg-bubble3 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg4);
}
.msg-bubble4 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg5);
}
.msg-bubble5 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg6);
}
.msg-bubble6 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg7);
}
.msg-bubble7 {
  width: 65%;
  padding: 15px;
  border-radius: 15px;
  background: var(--left-msg-bg8);
}
.msg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.msg-info-name {
  margin-right: 10px;
  font-weight: bold;
}
.msg-info-time {
  font-size: 0.85em;
}

.left-msg .msg-bubble {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble2 {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble3 {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble4 {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble5 {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble6 {
  border-bottom-left-radius: 0;
}
.left-msg .msg-bubble7 {
  border-bottom-left-radius: 0;
}


.right-msg {
  flex-direction: row-reverse;
}
.right-msg .msg-bubble {
  background: var(--right-msg-bg);
  color: #fff;
  border-bottom-right-radius: 0;
  text-align: right;
}
.right-msg .msg-img {
  margin: 0 0 0 10px;
}

.right2-msg {
  flex-direction: row;
  display: flex;
  justify-content: center;
}
.right2-msg .msg-bubble0 {
  background: var(--right2-msg-bg);
  color: black;
  border-radius: 0;
  max-width: 80%;
  text-align: center;
}
.right2-msg .msg-img {
  margin: 0 0 0 10px;
}


.msger-inputarea {
  display: flex;
  padding: 10px;
  border-top: var(--border);
  background: #eee;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 1em;
}
.msger-input {
  flex: 1;
  background: #ddd;
}
.msger-send-btn {
  margin-left: 10px;
  background: rgb(0, 196, 65);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
}
.msger-send-btn:hover {
  background: rgb(0, 180, 50);
}

.msger-chat {
  background-color: #fcfcfe;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    font-family: "Pretendard-Regular";
    font-size: 12pt;
    padding: 30px;
    align-items: center; /* 세로 가운데 정렬 */
}
.modal2 {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  font-family: "Pretendard-Regular";
  font-size: 12pt;
  padding: 30px;
  align-items: center; /* 세로 가운데 정렬 */
}
.modal3 {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  font-family: "Pretendard-Regular";
  font-size: 12pt;
  padding: 30px;
  align-items: center; /* 세로 가운데 정렬 */
}
.teacherName {
  height: 30px;
  width: 80%;
  margin-top: 10px;
  margin-bottom: 5px;
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 95%;
    max-width: 400px;
    text-align: center;
}
.modal-content0 {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #888;
  width: 90%;
  text-align: center;
}
.modal-content2 {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #888;
  width: 95%;
  height: 300px;
  max-width: 400px;
  text-align: center;
}
.modal-content3 {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #888;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.close {
    color: black;
    float: right;
    font-size: 28px;
    z-index: 1;
    font-family: Arial, sans-serif;
}
.close2 {
  color: black;
  float: right;
  font-size: 28px;
  z-index: 1;
  font-family: Arial, sans-serif;
}
.close3 {
  color: black;
  float: right;
  font-size: 28px;
  z-index: 1;
  font-family: Arial, sans-serif;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.button {
  background-color:white;
  color: black;
  border:none;
  width: auto;
  height: 40px;
  border-radius: 30px;
  font-family: "Pretendard-Regular", serif;
  font-size: 12pt;
  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; /* 포커스 효과 제거 */
  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;
}

.msger-header-options {
  display: flex;
  justify-content: space-between; /* 오른쪽 정렬 */
  align-items: center;
}
.back-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: "PyeongChangPeace-Light", serif;
  color: #3a3a3a;
}
.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: "PyeongChangPeace-Light", serif;
  color: #3a3a3a;
}