/*﻿html {
    overflow-y: scroll;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}*/

/* Set padding to keep content from hitting the edges */
/*.body-content {
    padding-left: 15px;
    padding-right: 15px;
}*/

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
/*.dl-horizontal dt {
    white-space: normal;
}

footer {
    text-align: center;
}*/



.tools-license {
    color: #00f;
}
.pro-license {
    color: #f60;
}

.pro-ocr-license {
    color: #217c02;
}


a.sample {
    color: #303030;
}

a.sample:hover, a.sample:focus {
    color: #303060;
    text-decoration: none;
}
a.sample:hover .well, a.sample:focus .well {
    border-color: #808080;
    background-color: #f1f1f1;
}
/*a.sample:hover h4 {
    color: #303090;
    text-decoration: underline;
}*/

.row.flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .col-md-4 {
        flex-grow: 1;
        flex-basis: 60%;
    }
}

.sample-group {
    margin-bottom: 40px;
}

.sample-group .row {
    margin-top: 20px;
}

.sample-group .show-samples {
    display: none;
}

.js .sample-group .show-samples {
    display: inline-block;
    padding: 10px;
    min-width: 200px;
    border-radius: 10px;
    border: 1px solid gray;
    cursor: pointer;
    background-color: #f1f1f1;
}

.js .sample-group .row {
    display: none;
}
.sample-group .row.js-flex {
    display: flex;
}

.js .sample-group .show-samples:hover {
    background-color: #e3e3e3;
}

.tooltip-toast {
    position: absolute;
    font-weight: bold;
    opacity: 0;
    z-index: 1000;
    padding: 5px;
    border: 2px solid gray;
    border-radius: 5px;
    /*box-shadow: 3px 3px 10px 1px gray;*/
    background: rgb(230, 230, 230);
    background: linear-gradient(to bottom, rgb(230, 230, 230), rgb(250, 250, 250));
}

.code-tabs a {
	box-shadow: none !important;
}

.tooltip-toast {
	font-size: 10pt;
}

.code-tabs, .tooltip-toast {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a.anchor {
	display: block;
	position: relative;
	top: -60px; // offset for the menu
	visibility: hidden;
}


.code-block .keyword {
    color: #0000ff;
}

.code-block .comment {
    color: #008000;
}

.code-block .string {
    color: #a31515;
}

.code-block .type {
    color: #2b91af;
}

.code-block .directive {
    color: gray;
}


/* stacked tab system */
.tab-system {
	display: flex; 
	border-radius: 10px; 
	border: 2px solid gray!important;
	box-sizing: border-box; 
	margin: 20px 10px; 
	background: rgb(230, 230, 230); /* default color for browsers that don't support gradients */
	background: linear-gradient(to bottom, rgb(230, 230, 230), rgb(180, 180, 180));
	box-shadow: 3px 3px 10px 2px gray; 
    line-height: initial;
}

.tab-system * {
    box-sizing: content-box;
}

.tab-list {
	list-style-type: none;
	/* max-width: 20%; */
	padding: 5px;
	margin: 0;
	flex-basis: 20%;
}
.tab-list li {
	padding: 5px;
	border-radius: 5px;
	cursor: pointer;
	margin-bottom: 5px; 
}
.tab-list li:hover {
	text-decoration: underline; 
}
.tab-list li.active {
	text-decoration: none;
	background: white; 
	border-radius: 4px; 
	padding-left: 7px; 
	padding-right: 1px;
	border: 1px solid gray;
	box-shadow: 1px 1px 9px 0px grey inset; 
}

.tab-list li.active, .tab-list li.active a {
	outline: none !important;
}

.tab-page {
	display: none;
	flex-wrap: wrap;
	border-left: 2px solid gray;
	border-radius: 5px;
	width: 100%;
	background: white;
	box-shadow: 0 0 15px 0 rgb(180, 180, 180) inset;
}
.tab-page.active {
	display: flex;
	justify-content: space-around;
	align-items: center;
	align-content: center;
}
.tab-page .sample {
	display: flex;
	max-width: 45%;
	margin: 10px; 
}
@media only screen and (max-width: 650px) {
	.tab-page .sample {
		max-width: 100%;
	}
}
.tab-page .sample .img {
	flex-basis: 32px; 
}
.tab-page .sample .text {
	flex-basis: 0; 
	flex-grow: 1; 
}
.tab-page .sample span {
	text-decoration: none;
	display: inline-block;
	color: black;
}

.tab-system.horizontal {
	flex-direction: column;
	background: linear-gradient(to left, rgb(230, 230, 230), rgb(180, 180, 180));
}

.tab-system.horizontal .tab-list-item {
	display: inline-block;
	padding-right: 5px;
}

.tab-system.horizontal .tab-page {
	border-top: 2px solid gray;
}

.tab-system.horizontal .tab-list li, .tab-system.horizontal .tab-list li.active {
    cursor: initial;
    padding: 0 !important;
}

.tab-system.horizontal .tab-list li a {
    display: block;
    color: initial;
	padding: 5px 15px; 
}

.tab-system.horizontal .tab-list li.active a {
	padding: 3px 13px; 
}

.tab-system.horizontal .tab-list li.active a:hover,
.tab-system.horizontal .tab-list li.active a:focus {
	text-decoration: none;
}


/* code blocks */

.code-block {
	overflow: hidden;
	position: relative;
	font-family:'courier new', courier !important; 
}

.code-block span {
	font-family: 'consolas', 'courier new', courier !important; 
	font-size: 10pt;
}

.code-block .gutter {
	/*position: absolute;
	left: 0;
	top: 0;*/
	width: 1px;
    opacity: 0;
	text-align: right;
	padding: 5px 5px;
	border-right: 1px solid gray;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
	background: linear-gradient(to left, rgb(230, 230, 230), rgb(180, 180, 180));
	color: rgb(64, 64, 64);
}

.code-block .code.gutter-shadow {
	box-shadow: 15px 0px 15px -15px rgba(0, 0, 0, 0.4) inset;
}

.js .code-block .gutter {
    width: 40px;
    opacity: initial;
}

.code-block .code {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: scroll;
	margin-left: 5px;
	padding-left: 15px;
	padding-top: 5px;
	padding-bottom: 5px;
}

.js .code-block .code {
	margin-left: 51px;
}

.code-block .line {
	display: block;
	white-space: pre;
}

.code-block .line-number {
	display: block;
}


/* code mockup */

.code-tabs .tab-list {
	padding-left: 20px;
}

.code-tabs .tab-page {
	margin: 3px;
    width: auto;
    border: 2px solid gray;
}

.code-tabs .tab-list li {
	font-size: medium;
	font-weight: bold;
}

.code-tabs .tab-page.active {
	display: block;
}

.code-tabs .code-block {
	/* margin: 1px 1px 2px 2px; */
	max-height: 600px;
}


li.tab-list-item.active {
    border: 2px solid gray;
    border-radius: 16px;
    padding: 3px 13px !important;
}


.code-tabs .code-tab-buttons {
    float: right;
    padding: 5px 5px;
    display: none;
}

.js .code-tabs .code-tab-buttons {
    display: block;
}

.code-tabs .code-tab-buttons span {
    margin: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    line-height: 28px;
}

.code-tabs .code-tab-buttons span:hover {
    text-decoration: underline;
}


.language-list {
	list-style-type: none;
	/* max-width: 20%; */
	padding: 5px;
	margin: 0;
}
.language-list li {
	padding: 5px;
	border-radius: 5px;
	cursor: pointer;
	margin-bottom: 5px; 
	display: inline-block;
}
.language-list li:hover {
	text-decoration: underline; 
}
.language-list li.active {
	font-weight: bold;
	text-decoration: none;
	background: white; 
	border-radius: 4px; 
	padding-left: 7px; 
	padding-right: 7px;
	border: 1px solid gray;
	box-shadow: 1px 1px 9px 0px grey inset; 
}

.language-list li.active, .language-list li.active a {
	outline: none !important;
}
    