html {
  font-size: 28px;
}

body {
  word-break: keep-all;
}

.my-table,
.my-table th,
.my-table td {
  border: 1px solid #c8d9ff;
  border-collapse: collapse;
  padding: 4px 10px;
  text-align: center;
  min-width: 80px;
  font-size: 90%;
  vertical-align: middle;
}

.my-table th {
  font-weight: bold;
  color: #0b3d91;
}

.md-typeset {
  counter-reset: ex;
}

.md-typeset h2 {
  display: inline-block;           /* 글자 길이만큼만 */
  background: #eaf2ff;             /* 연한 배경 */
  color: #0b3d91;
  border: 1px solid #c8d9ff;       /* 배경보다 약간 더 진한 테두리 */

  padding: 0.15em 0.8em;
  border-radius: 24px;

  margin-top: 1rem;
  margin-bottom: 0.5rem;

  /*font-weight: 600;*/
}

/* Custom <note> tag styling */
.md-typeset note {
  display: inline;
  font-size: 0.85em;
  color: #555;
  margin-left: 0.3em;
}

/* 앞에 [주] 상첨자 붙이기 */
.md-typeset note::before {
  content: "[주]";
  font-size: 0.7em;
  vertical-align: super;
  margin-right: 0.2em;
  color: #888;
}

.md-typeset sm {
  font-size: 75%;
  vertical-align: 5%;
}

.md-typeset blank {
  padding: 0 32px;
  background: #eee;
  border-radius: 8px;
}

.md-main {
  margin-bottom: 2rem;
}

.md-typeset ex, .md-typeset hw {
  display: block;
  padding-left: 48px;
  text-indent: -36px;
}

.md-typeset ex::before, .md-typeset hw::before {
  content: "실습";
  font-weight: bold;
  /*font-size: small;*/
  color: white;
  background-color: #333;
  margin-right: 0.3em;
  padding: 0.1em 0.3em;
  border-radius: 5px;
}

.md-typeset ex {
  counter-increment: ex;
}

.md-typeset ex::before {
  content: "실습 " counter(ex);
}

.md-typeset ex::before {
  background-color: #333;
}

.md-typeset hw::before {
  content: "평가" attr(data-num);
  background-color: deeppink;
}

.md-typeset .hint, .md-typeset .tip, .md-typeset .example, .md-typeset .abstract, .md-typeset .note, .md-typeset .info {
  margin-left: 12px !important;
}

.hover-answer {
  position: relative;
  cursor: pointer;
}

.hover-answer .hover-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  left: 2.5em;
  top: 0;
  background: #333;
  color: white;
  width: 240px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: normal;
  transition: opacity 0.2s;
  z-index: 10;
}

.hover-answer:hover .hover-text {
  white-space: normal;
  visibility: visible;
  opacity: 1;
  font-size: 50%;
  text-indent: 0;
}
