:root {
  --body-bg: linear-gradient(180deg, #4c9774 0%, #2e5c46 20%, #153124 40%, #060606 80%);
  --msger-bg: rgb(0, 0, 0);
  --msger-chat-bg: linear-gradient(270deg, #000000 0%, #000000 100%);
  --border: 2px solid #84ffc6;
  --border2: 2px solid #4bfafa;
  --left-msg-bg2: #e8d8fa;
  --left-msg-bg: rgb(236, 235, 235);
  --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: #9dfdd0;
  --right2-msg-bg: transparent;
}

@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;
}
@font-face {
  font-family: 'HBIOS-SYS';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2207-01@1.0/HBIOS-SYS.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

html {
  box-sizing: border-box;
}

pre {
  font-family: 'HBIOS-SYS', serif;
  font-weight: 500;
  font-size: 18pt;
  width: 80%;
  color: white;
  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;
}

.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: 10px;
  border-bottom: var(--border);
  background: #000000;
  color: #ffffff;
  font-family: "DungGeunMo", serif;
}

.msger-header2 {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  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: #84ffc6;
}
.msger-chat::-webkit-scrollbar-thumb {
  background: #23905d;
}
.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: "HBIOS-SYS";
  font-weight: 300;
  font-size: 15pt;
  line-height: 1.5;
}
.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);
  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: white;
  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; /* 세로 가운데 정렬 */
}
.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;
}
.close {
    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-image: linear-gradient(-45deg, #33f1ff 0%, #86eea3 100%);
    color:black;
  border:none;
  width: auto;
  height: 60px;
  border-radius: 30px;
  font-family: "HBIOS-SYS", serif;
  font-weight: 300;
  font-size: 15pt;
  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: 20px;
}
.button2:hover {
  background-image: linear-gradient(-45deg, #86eea3 0%, #33f1ff 100%);
  transform: scale(1.2);
}
.button3 {
  background-color:rgb(235, 235, 235);
  color: black;
  border:none;
  padding: 15px;
  border-radius: 10px;
  font-family: "Pretendard-Regular";
  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;
  font-family: "국립박물관문화재단클래식M", serif;
  color: #3a3a3a;
}
.back-button {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: "DungGeunMo", serif;
  color: white;
}
.back-button span {
  color: #3a3a3a;
  font-size: 16px; /* 화살표 크기 조절 *//* 화살표 방향을 왼쪽으로 변경 */
  margin-right: 5px; /* 화살표와 텍스트 사이의 간격 조절 */
  font-family: "DungGeunMo", serif;
}