﻿/* =====================================
   PDF表示エリア
   ===================================== */

.pdf-area {
  width: 100%;
  max-height: 80vh;
  border: 1px solid #ccc;
  overflow-y: auto;
  overflow-x: hidden;
  background: #e9e9e9;
  padding: 10px;
}


/* PDFの1ページ */

.pdf-page {
  position: relative;
  margin: 0 auto 20px auto;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,0.25);
  display: block;
}


/* PDF本体 */

.pdf-canvas {
  display: block;
  width: 100%;
  height: auto;
}


/* PDFの上に重ねる手書き用Canvas */

.draw-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}


/* スマホ */

@media (max-width: 767px) {

  .pdf-area {
    padding: 5px;
    max-height: 70vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

}


/* =====================================
   採点結果
   ===================================== */

.result {
  font-weight: bold;
  font-size: 1.1rem;
}


/* =====================================
   PDF読み込み中
   ===================================== */

#pdfLoading {
  text-align: center;
  padding: 40px 10px;
  color: #666;
}


/* =====================================
   印刷時
   ===================================== */

@media print {

  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

}


/* =====================================
   回答入力欄
   ===================================== */

.answer-input {
  font-size: 30px;
}