@charset "UTF-8";
/* CSS Document */


:root { 
	--border-10: 1px solid rgba(0,0,0,0.1);
	--color-bg-5: rgba(0,0,0,0.05);	
	--color-bg-10: rgba(0,0,0,0.1);	
	--color-primary: rgb(255,150,200);
	--color-primary-hover: rgba(255, 100, 100, 1);
    --color-onprimary: rgba(0, 0, 0, 1);
	--color-primary-hover: rgba(44, 44, 44, 1);
    --color-code: blue;
    --border-table:1px solid #e6e6e6;
    --colog-bookbg: rgba(0, 0, 0, 1);
}

html, body {
    font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Helvetica,Arial,sans-serif;
	font-weight: 400;
    font-size: 100%;
	line-height: 1.4;
    letter-spacing: 0.02em;
    background:#fff;
    border-color:rgb(0,0,150);
}
.serif{
    font-family:Georgia, sans-serif;
}

a,a:hover,a:visited{
    cursor:pointer;
    color:inherit;
    text-decoration: none;
}

h1,h2,h3{
	font-size:1rem;
	font-weight: inherit;
    font-weight: 400;
    //font-family:Georgia,"Times New Roman", sans-serif;
}
h2,h3{
    font-weight: 450;   
}

/* header */

header{
    z-index: 100;
    mix-blend-mode: difference;
    color:white;
}
header nav a{
    padding:8px 0px;
    margin:0px 8px;
}
header nav a.on{
    border-bottom:2px solid white;
}
header nav a:hover{
    border-bottom:2px solid white;
}
.burger{
    position: fixed;
    width:40px;
    height:40px;
    background: white;
    border-radius: 20px;
    right:12px;
    top:12px;
    display: none;
    cursor:pointer;
    mix-blend-mode: difference;
    z-index: 1000;
}

footer .inner{
    border-top:2px solid black;
    padding:1rem 0;
    margin:4rem 0;
}
/* hero */

.hero .maintitle{
	pointer-events: none;
	color:white;
}
.hero .maintitle h1{
    font-size:16vw;
    line-height: 1;    
}
.hero .maintitle p{
    text-align: center;
}

/* layout */

#content, #footer{
	position:relative;
	max-width:1300px;
	padding:0 264px;
	margin:0 auto;
}
.container{
    max-width:1200px;
    padding:0px 24px;
    margin:0px auto;
}
			


#book1{
    background:var(--colog-bookbg);
}

/* content styles */

#content{
    z-index: 50;
}
#content h1, #content h2, #content h3, #content h4{
    //font-weight: 800;
}
#content > h1{
   	font-size:4rem; 
	line-height: 1;
   	margin:3rem 0 3rem 0;
    padding-top:3rem;
}
#content > h2{
    font-size:2.5rem;
	line-height: 2rem;
    margin:4rem 0 1.5rem 0;
}
#content > h3{
    font-size:1.5rem;
    margin:0 0 1.5rem 0;
}
#content > h4{
    font-weight: 400;
    font-size:1em;
    margin:0 0 0.5rem 0;
}
#content > p{
	margin:0 2rem 1.5rem 0;
}
#content b{
	font-weight: 700;
}

#content ul{
	margin:0;
	padding-left:1.1rem;
	margin-bottom:1.0rem;
    list-style: disclosure-closed;
}
#content li{
    position: relative;
	margin:0;
    padding-left:0rem;
	padding-bottom:0.25rem;
	text-indent:0;
}

#content mark{
	color:#30a6ff;
	color:rgba(120,0,255,1);
	background:none;
	font-family: Menlo, Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size:14px;
}


#content > table{
	width:100%;
	border-collapse:collapse;
    border-spacing: 0;
	margin:0 0 1.5rem 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
	table-layout: fixed;
	border-radius:4px;
}
#content > table td{
	border-bottom:var(--border-table);
	padding:0.5rem 0.5rem 0.5rem 0;
	vertical-align:top;
}

#content > table td:last-child{
	border-right:0;
}
#content > table  th{
	border-bottom:var(--border-table);
	padding:0.5rem 0.5rem 0.5rem 0;
	vertical-align:top;
	text-align:left;
	font-weight:inherit; 
}
#content > table  th:first-child{
	border-top-left-radius:4px;
}
#content > table th:last-child{
	border-right:0;
	border-top-right-radius:4px;
}

#content > .html{
	margin:0 0 1.5rem 0;
	color:#000;
	padding:1rem;
    border-radius:4px;
	background-color:rgba(0,0,0,0.06);
}
#content > .html h1{
	font-size:2rem;
}
#content > .html h2{
	font-size:1.5rem;
}
#content > .html mark{
	color:black;
	background:yellow;
}

#content pre, #content code{
	white-space: break-spaces;
}
#content p code, #content ul code, #content table code{
	display: inline-block;
	background:var(--color-bg-10);
	font-size:0.8rem;
	padding:1px 0.25rem;
	border-radius:2px;
	vertical-align: baseline;
}
#content ul{
	overflow: visible;
}
#content li.pro, #content li.con{
	position: relative;
	list-style: none;
	overflow: visible;
	padding-left:4px;
}
#content li.pro:after, #content li.con:after{
	position: absolute;
	top:0px;
	left:-24px;
	width:24px;
	height:24px;
	background:url(../img/icon_pro.svg) no-repeat center;
	background-size:24px;
	content:'';
}
#content li.con:after{
	background-image:url(../img/icon_con.svg);
}

#content .button{
	display: inline-block;
	padding:1rem 2rem;
	background: linear-gradient(180deg, rgba(255,150,200,0.8) 0%, rgba(255,150,200,1) 100%);

    color:var(--color-onprimary);
	transition: all 0.2s;
	border-radius:2rem;
}
#content .button:hover{
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.3);
}
#content .deftable{
    font-size:1rem;
}
#content .deftable td:nth-child(4){
    color:rgba(0,0,0,0.33);
}
#content .deftable td:nth-child(3){
    color:rgba(0,0,0,0.33);
}



/*
.code-toolbar{
	//border:3px solid black;
	margin-bottom:1.5rem;
	background:#f0f0f0;
}
*/

.mobileonly{
    display: none;
}

@media screen and (max-width: 1300px) {
    #content, #footer{
        max-width: 848px;
        padding:0 24px 0 24px;
    }
    .isnav #content{
        max-width: 1060px;
        padding:0 24px 0 264px;
    }
}
@media screen and (max-width: 1024px) {
    #content, #footer{
        max-width: 880px;
        padding:0 40px;
    }
}
@media screen and (max-width: 600px) {
    #content > h1{
        font-size: 2.5rem;
        margin:3rem 0 1rem;
       
    }
    #content > h2{
        font-size: 1.5rem;
        margin:2rem 0 1rem;
    }
    #content, #footer{
        max-width: 880px;
        padding:0 12px;
    }
    nav, .github{
        display: none;
    }
    .vbook .vb-book{
        height:100vw !important;
    }
   
}	
			
			
/* demo ------------------------------------------------ */

.controls{
    position: fixed;
    top:0px;
    left:0px;
    width:100%;
    padding:24px;
    z-index: 200;
}

/* mobile ------------------------------------------------ */

@media (max-width: 600px) {
  html, body{
      font-size:90%;      
  }
  .mobileonly{
      display: block;
  }
  .deftable,
  .deftable thead,
  .deftable tbody,
  .deftable tr,
  .deftable td,
  .deftable th {
    display: block;
    width: 100%;
  }
    .container{
        padding:0px 16px;
    }
    .vbook .vb-book{
        margin-top:-2rem;
    }
    .hero .maintitle h1{
        font-size:22vw !important;
        margin-top:-2rem;
    }
    .hero .maintitle p{
        display: none;
    }
    header{
        mix-blend-mode: normal;
        color:black;
    }
    .burger{
        display:block;
    }
    .mainnav.navon{
        display: block;
        position:fixed;
        top:60px;
        right:12px;
        background: black;
        color:white;
        border-radius:20px;
        padding: 1.5rem;
    }
    .mainnav.navon a{
        display: block;
        margin: 0rem;
        font-size:1.5rem;
        line-height: 2rem;
        padding:0;
        border-bottom:0px !important;
    }
    #content > p{
        margin-right:0px;
    }
    .deftable tr {
        display: flex;
        flex-wrap: wrap;
        border-top:var(--border-table);
    }
    .deftable td {
         border:none !important; 
    }
    .deftable td:nth-child(1),
    .deftable td:nth-child(3),
    .deftable td:nth-child(4) {
        order: 1;
        box-sizing: border-box;
       
    }
    .deftable td:nth-child(1) {
         width: 50%;
    }
    .deftable td:nth-child(3),
    .deftable td:nth-child(4) {
        display: block; 
        width: auto;
        padding-right:2px !important;
        padding-left:2px !important;
    }
    .deftable td:nth-child(4) p{
        display: inline-block !important;
        margin:0 !important;
        margin-left: -0.25em;
    }
    .deftable td:nth-child(4):before {
        display: inline-block;
        content:'=';
        padding-right:4px !important;
    }
    .deftable td:nth-child(2) {
        order: 2;
        width: 100%;
        box-sizing: border-box;
        padding-top:0px !important;
    }
    .deftable thead {
        display: none;
    }
}


