@import url("https://rsms.me/inter/inter.css");
::-moz-selection{
    background: #ffff00
}

::selection{
    background: #ffff00      
}

html,body {
    font-family:  -apple-system,Inter, sans-serif;    
    background: #fafafc;
    line-height: 1.4;    
    width: 100%;
    height: 100%;
    margin: 0px;
}

h1,
h2,
h3,
h4{
  font-weight: bold;
}

h1 {
  margin-top: 0;
  margin-bottom: 16px;
}

h2 {
  margin-bottom: 0.5em;
}

h1 {
  font-size: 1.7em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.3em;
}

h4 {
  font-size: 1.1em;
}

p {
    margin-bottom: 1em;
    font-size: 1.0em;
    /* line-height: 28px; */
    /* padding: 0; */
    /* margin-top: 10px; */
    /* margin-bottom: 10px;     */
}
figure {
    margin-left: 0px;
    width:100%;
}
a {
    text-decoration: none;
    cursor: e-resize;    
    color: rgba(10, 132, 255, 1);
    background-color:none;
}

a.active {
    color: green;
}

a:hover {
  opacity: 0.5;
}
/* header의 처리 */
header {
    display: flex;
    align-items: center;
    background: #fff;
    border-bottom: 1px #432 solid;
}
header img{
    width:: 30px;
    height: 30px;
    padding-top: 10px;
    padding-left: 10px;
}
header h3{
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
header #logo{
    color: #595959;
    display: flex;
    direction: row;
    padding-left: 10px;
    cursor: pointer;
}
header span{
    color: #a11;
}
header #note{
    color: #89f;
}
header small{
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 100px;
    font-size: 0.6em;
}
.vertical_dotted_line
{
    border-left: 1px dashed green;
    margin-left: 130px;
    margin-right: 10px;    
    height: 30px;
}
/* d3 switch 버튼 */

header > label {
    gap: 0.5rem;
    /* margin-right: 5em; */
    cursor: pointer;    
    display: inline-flex;
    align-items: center;
}
header >label span{
    font-family: sans-serif;
    font-size: 1em;
    color:gray;
    border-bottom-style: dotted;

}
header > lable span .changed{
    color: green;
}

 #switch {
  appearance: none;
  position: relative;
  border: max(2px, 0.1em) solid gray;
  border-radius: 1.25em;
  width: 2.25em;
  height: 1.25em;
}

#switch::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  transform: scale(0.8);
  background-color: gray;
  transition: left 250ms linear;
}

#switch:checked {
  background-color: tomato;
  border-color: tomato;
}

#switch:checked::before {
  background-color: white;
  left: 1em;
}
#switch:hover {
    box-shadow: 0 0 0 max(4px, 0.2em) lightgray;
}


/* search */

header form {
    margin-left: 20px;
}
header form label{
    display: none;
}
/* #switch:disabled { */
/*     /\* border-color: lightgray; *\/ */
/*     border-color: red; */
/*   opacity: 0.7; */
/*   cursor: not-allowed; */
/* } */

/* #switch:disabled:before { */
/*     /\* background-color: lightgray; *\/ */
/*     background-color: red; */
/* } */

/* #switch:disabled + span { */
/*   opacity: 0.7; */
/*   cursor: not-allowed; */
/* } */

/* #switch:focus-visible { */
/*   outline-offset: max(2px, 0.1em); */
/*   outline: max(2px, 0.1em) solid tomato; */
/* } */


/* body의 처리 */
.container{
    width:100%;
    height: calc(100% - 51px);

    display: flex;
    direction: row;
    overflow-x: scroll;
}
/* search page */
.page.wide{
    width: 100%;
    line-height: 2em;
}
.page.newPage{
    width: 100%;
    /* align-items: center; */
    /* border-left:1px #eacc724f solid; */
    /* box-shadow: 3px 3px 2px 1px #eacc724f; */
    /* background-color: #efe; */
    /* overflow-y: auto; */
    transition: none;
}
.page.newPage .collapsed-title {
    display:none;
}

.page.newPage .content{
    width: 80%;
    margin-top: 30px;
    padding-left: 150px;
}

.page.newPage .bl-section{
    margin-top: 30px;
    /* padding-left: 150px; */
}
.page.opacity{
    display:none;
    opacity: 0;
}

.page{
    position:sticky;
    width: 620px;
    min-width: 600px;
    line-height: 1.58em;    

    border-left:1px #eacc724f solid;

    box-shadow: 3px 3px 2px 1px #eacc724f;
    background-color: #fff;
    overflow-y: auto;

    transition: min-width 0.3s ease-out;
    
    opacity: 0;
    animation-name: fade-in;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* verbatim의 처리, verbatim은 code tag로 변환된다. */
p code{
    font-family: monospace;
    background-color: rgba(221,221,221,.95);
    color:rgba(15,35,85,1.0);
    font-weight: 700;
    border-radius: 3px;
    padding: 4px 4px 4px 4px;
}


pre code{
    
}
.page .collapsed-title {
    display:none;
}

/* collapsing이 되면 수행되는 것들 */
.page.collapsed{
    width: 40px;
    min-width:40px;
}
.page.collapsed .collapsed-title {
    writing-mode: vertical-lr;
    display:block;
    height: 100%;
    background-color:#eefdff ;    
    font-size: 20px;
    margin-left: 0px;
    padding-top: 20px;
    line-height: 40px;
    white-space: nowrap;
    cursor: pointer;    
}
.page.collapsed .collapsed-title:hover {
    /* transition: background-color: #ccc 0.2s; */
}
.page.collapsed .content, .page.collapsed .bl-section {
    display: none;
}
.page:nth-child(1){
    left:0px;
}
.page:nth-child(2){
    left: 40px;
}
.page:nth-child(3){
    left:80px;
}
.page:nth-child(4){
    left:120px;
}
.page:nth-child(5){
    left:160px;
}
.page:nth-child(6){
    left:200px;
}
.page:nth-child(7){
    left:240px;
}
.page:nth-child(8){
    left:280px;
}
.page:nth-child(9){
    left:320px;
}
.page:nth-child(10){
    left:360px;
}
/* .page:last-child{ */
/*     margin-right: 80px; */
/* } */
.page > .content{
    padding:32px;
}
/* head level1 */
.page > .content h2{
    background-color: #cfc;
    width:95%;
    text-decoration: underline solid #8f9;
    text-underline-position: under;    
    text-underline-offset: 4px;
    text-decoration-thickness:5px;    
    padding-bottom: 10px;
    padding-top: 8px;
}
/* head level2 */
.page > .content h3{
    background-color: #fcc;
    width:95%;
    opacity: 0.8;
    text-decoration: underline dashed #f89;
    text-underline-position: under;
    text-underline-offset: 3px;
    text-decoration-thickness:3px;        
    padding-bottom: 5px;
    padding-top: 5px;        
}
/* head level3 */
.page > .content h4{
    width:95%;
    opacity: 0.7;
    text-decoration: underline dashed #ddd;
    text-underline-position: under;
    text-underline-offset: 2px;
    text-decoration-thickness:2px;        
    padding-bottom: 4px;
    padding-top: 4px;        
}
.page > .content h5{
    width:95%;
    opacity: 0.7;
    text-underline-position: under;
    text-underline-offset: 2px;
    text-decoration-thickness:2px;        
    padding-bottom: 4px;
    padding-top: 4px;
}

.container.d3{
    background-color: #242730;
}

/* d3 graph */
.node {
    fill: #ff665c;
    stroke: #fff;
    stroke-width: 2px;
}
.node.active {
    fill: purple;
}
.node.notselected{
    fill: #333;
}
.link {
    stroke: #999;
    stroke-opacity: 0.6;
}
.label {
    font-size: 12px;
    fill: white;
    pointer-events: none;
    display: block;
}
fieldset{
    background-color: ivory;
    border-radius: 10px;
    opacity: 80%;
    width:90%;
}
fieldset legend{
    font-weight: 600;
}
fieldset .li{
    margin:0px 0px 5px 0px;
}
fieldset strong{
    margin-right: 25px;
}
.bl-section h4{
    margin-top: 5px;
    margin-left: 30px;
    margin-bottom: 0px;
    text-decoration-color: #21f;
}
.bl-section .backlinks ul{
    margin-top: 5px;
}
table{
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
table thead tr{
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}
table th,table td {
    padding: 12px 15px;
}
table tbody tr {
    border-bottom: 1px solid #dddddd;
}

table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}
table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}
