:root {
  --vc-css-version: "7.905";
}

#AttendanceNumbers {
  background: #e9ecef;
  display: none;
  text-align: left;
}

.avatar-emoji {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  /* ほんのりグレーでLINE風 */
  display: inline-flex;
  /* inline-flexで行内に収まる */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  /* 絵文字サイズ微調整 */
  line-height: 1;
  margin-right: 6px;
  /* 名前との間隔 */
  flex-shrink: 0;
  /* つぶれ防止（重要） */
}

#avatarList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 6px;
}

.avatar-option {
  font-size: 28px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
  border-radius: 6px;
}

.avatar-option:hover {
  background: #eef;
}

/*Line風
/* 共通（吹き出し本体） */
.teacher_msg,
.student_msg {
  padding: 10px 14px;
  border-radius: 12px;
  line-height: 1.5;
  display: block;
  margin-top: 6px;
  max-width: 80%;
}

/* 教師（左寄せ・LINE風幅は70%） */
.teacher_msg {
  max-width: 70%;
  margin-right: auto;
  margin-left: 0px;
  background: #f1f1f1;
  border: 1px solid #e3e3e3;
}

/* 生徒（右寄せ・幅は100%） */
.student_msg {
  /* ← 方針B */
  margin-left: auto;
  /* 右寄せ */
  margin-right: 0px;
  background: #dcf8c6;
  border: 1px solid #c5e7b7;
}

/* ラベル（任意） */
.teacher_label {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  margin: 10px 0 2px 5px;
}

.student_label {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  text-align: right;
  justify-content: flex-end;
  margin: 8px 10px 2px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  /* 絵文字と名前の間の隙間 */
}

#btnSelectAvatar.input-group-text {
  padding: 0 12px;
  display: flex;
  align-items: center;
  /* 高さを input と揃える */
}

#currentAvatar {
  font-size: 26px;
  line-height: 1;
}

#MainVC {
  background: #ffbcff;
  /* ← これだけで余白が外に漏れない */
}

/*共通*/
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.input-group .btn,
#QuestionSetBox .btn {
  border-radius: 0 !important;
}

#WhiteboardCanvas.draw-mode {
  cursor: crosshair !important;
}

#WhiteboardCanvas.scroll-mode {
  cursor: grab !important;
}

#WhiteboardCanvas.scroll-mode.dragging {
  cursor: grabbing !important;
}

#WhiteboardCanvas.eraser-cursor {
  cursor: none;
  /* デフォルトの矢印を隠す */
}


/* スクロールモード：キャンバスは「触れない」＝指イベントを通す */
#WhiteboardCanvas.scroll-mode {
  touch-action: auto !important;
  pointer-events: none !important;
}

/* 描画モード：キャンバスは「触れる」＝描画できる */
#WhiteboardCanvas.draw-mode {
  touch-action: none !important;
  pointer-events: auto !important;
}



#WhiteboardToolbar {
  position: fixed;
  /* 常に画面上部に固定 */
  top: 10px;
  /* 好きな高さに調整可能 */
  left: 0;
  width: 100%;
  height: 50px;
  /*  background: #f0f0f0; */
  background: white;
  border-bottom: 1px solid #ccc;
  z-index: 1000;

  display: flex;
  justify-content: center;
  /* ★中央寄せ */
  align-items: center;
  /* 垂直方向中央揃え */
  gap: 3px;
  /* ボタン間の隙間 */
  padding: 5px 10px;
}

#WhiteboardContainer {
  width: 100%;
  height: calc(100vh - 50px);
  /* toolbar の分を引く */
  background: #fff;
  display: none;
  touch-action: auto;
}

#toolGroup {
  display: flex;
  align-items: center;
  /* ← 縦方向中央揃え */
  gap: 12px;
  /* ← スライダーとボタンの間隔 */

  padding: 6px 8px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #f8f9fa;
}

#WhiteboardCanvas {
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
}

#WhiteboardContainer::-webkit-scrollbar {
  width: 30px;
  /* ← 太さ */
}

#WhiteboardContainer::-webkit-scrollbar-track {
  background: #eee;
  /* 溝 */
  border-radius: 10px;
}

#WhiteboardContainer::-webkit-scrollbar-thumb {
  background: #aaa;
  /* つまみ */
  border-radius: 10px;
  border: 4px solid #eee;
  /* ← つまみを太く見せる */
}

#WhiteboardContainer::-webkit-scrollbar-thumb:hover {
  background: #888;
}

.console {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  padding: 4px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 199999;
  display: block;
  /* ← 初期表示のため block にする（後で none に戻す）*/
}

.animate-pulse {
  animation: pulse 0.6s ease;
}


input,
select {
  /* 入力欄にフォーカスが当たっても拡大しない */
  font-size: 17px;
}

ul {
  padding-left: 0;
}

li:nth-child(even) {
  list-style: none;
  background-color: #d6d6ff;
}

li:nth-child(odd) {
  list-style: none;
  background-color: #ffffd6;
}


.btnSpecial {
  -webkit-appearance: none;
  display: inline-block;
  padding: 0.5em 1em;
  text-decoration: none;
  border-radius: 4px;
  color: #ffffff;
  background-image: linear-gradient(#6795fd 0%, #67ceff 100%);
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.29);
  border-bottom: solid 3px #5e7fca;
}

#divCommandPanel {
  display: flow-root;
  text-align: center;
  font-size: 14px;
  background: #fff7ef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

::placeholder {
  color: #bbb !important;
  opacity: 1 !important;
}

::-webkit-input-placeholder {
  color: #bbb;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #bbb;
  opacity: 1;
}

.card-body {
  background-color: grey !important;
}

h1 {
  font-size: 20px;
  font-weight: bold;
  padding: 0.5em;
  /*文字周りの余白*/
  color: #010101;
  /*文字色*/
  background: #eaf3ff;
  /*背景色*/
  border-bottom: solid 3px #516ab6;
  /*下線*/
}

@media (min-width: 350px) {
  #container {
    width: 350px;
    height: 100vh;
  }


  label {
    font-size: 10px;
  }


  #btnSaveAnswerText {
    height: 51px;
    width: 51px;
    margin: 2px;
    font-size: 12px;
  }

  #btnAskQuestion {
    width: 60px;
    height: 35px;
    margin: 2px;
    position: relative;
    top: -3px;
  }

  #randStart,
  #randStop {
    height: 51px;
    width: 80px;
    margin: 2px;
    font-size: 12px;
  }

  #divButtons1 button {
    width: 51px;
    height: 50px;
    font-size: 11px;
    margin: 2px;
  }

  #divButtons2 button {
    width: 140px;
    height: 50px;
    margin: 2px;
    font-size: 11px;
  }

  #AnswerForm2 button {
    width: 100px;
    height: 50px;
    margin: 2px;
    font-size: 20px;
  }

  #AnswerForm3 button {
    width: 100px;
    height: 50px;
    margin: 2px;
    font-size: 20px;
  }

  #AnswerForm4 button {
    width: 80px;
    height: 50px;
    margin: 2px;
    font-size: 20px;
  }

  #AnswerForm5 button {
    width: 80px;
    height: 50px;
    margin: 2px;
    font-size: 20px;
  }

  #spnRoomNumber {
    width: 100%;
  }


  #handlenameContainer {
    display: flex;
    width: 100%;
  }



  #divCommandPanelTeacher {
    position: relative;
    text-align: center;
    font-size: 20px;
    background: #ffe8d1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  }

  /*  #AnswerFormText {
    width: 100%;
    text-align: left;
    height: 100px;
  }
*/
}

@media (min-width: 600px) {
  .Chart {
    height: 1000px;
    max-width: 400px;
  }

  #container {
    width: 600px;
    height: 100%;
  }

  #randStart,
  #randStop,
  #btnCloseRoom,
  #btnSaveAnswerText,
  #btnAskQuestion {
    width: 60px;
    height: 35px;
    margin: 2px;
    position: relative;
    top: -3px;
  }

  #divButtons1 button {
    width: 60px;
    height: 40px;
    margin: 2px;
  }

  #divButtons2 button {
    width: 100px;
    height: 40px;
    margin: 2px;
  }

  #AnswerForm2 button {
    width: 100px;
    height: 60px;
    margin: 2px;
    font-size: 23px;
  }

  #AnswerForm3 button {
    width: 100px;
    height: 60px;
    margin: 2px;
    font-size: 23px;
  }

  #AnswerForm4 button {
    width: 80px;
    height: 60px;
    margin: 2px;
    font-size: 23px;
  }

  #AnswerForm5 button {
    width: 80px;
    height: 60px;
    margin: 2px;
    font-size: 23px;
  }

  #spnRoomNumber {
    width: 100%;
  }



  #RoomNumber,
  #handlename,
  #AttendanceNumber,
  #Password {
    /*   width: 240px;*/
    height: 40px;
    font-size: 25px;
    text-align: center;
  }

  #TeacherQuestion {
    width: 100%;
    height: 30px;
  }


}

.divGroup1,
.AnswerForm {
  display: none;
  margin: 10px;
  text-align: center;
}

.shukei {
  position: relative;
  list-style-type: none !important;
  /*ポチ消す*/
  /* padding: 0.5em 0.5em 0.5em 0.5em;*/
  margin: 5px auto;
  line-height: 1.5;
  vertical-align: middle;
  color: #505050;
  /* border-radius: 15px 15px 15px 15px;*/
  max-width: 800px;
  text-align: left;
}

#tblCreateRoom {
  width: 95%;
  margin: 0 auto;
  padding: 0px;
}

#tblEnterRoom {
  width: 95%;
  margin: 0 auto;
  padding: 0px;
}

.tblshukei {
  width: 100%;
  border: 1px solid;
  border-collapse: collapse;
  margin: auto;
}

.tblshukei td {
  text-align: center;
  border: 1px solid;
  padding: 5px;
}

#message_list {
  width: 100%;
}

#teacher_message_list {
  width: 100%;
}

#container {
  margin: 0px auto;
  position: static;
}


img {
  max-width: 100%;
  height: auto;
}


#QuestionTarget {
  display: none;
  position: relative;
  text-align: left;
  background: #ffbcff;
}

#Answer {
  display: none;
  position: relative;
  background: white;
  box-shadow: 0px 0px 0px 5px #dfefff;
  border: dashed 2px white;
  padding: 0.2em 0.5em;
  color: #454545;
  text-align: left;
}

h3 {
  position: relative;
  background: #dfefff;
  box-shadow: 0px 0px 0px 5px #dfefff;
  border: dashed 2px white;
  padding: 0.2em 0.5em;
  color: #454545;
  font-size: 16px;
}


.blink {
  animation: blinkAnime 1s infinite alternate;
}

@keyframes blinkAnime {
  0% {
    color: #ffff00
  }

  100% {
    color: #0000ff
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

/*
.student_msg {
  position: relative;
  background: #fff9d9;
  border: 1px solid #f0e2a3;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 80%;
  margin-left: auto;
  margin-top: 6px;
}
*/
/* ▼必ず表示されるテスト用三角（赤色で確認） */