/*
 Theme Name:   Diffblog Theme
 Theme URI:    https://blog.diffbot.com
 Description:  Theme For Diffbot's Blog, Child of Wordpress Bootstrap Starter
 Author:       Merrill Cook
 Author URI:   https://diffbot.com
 Template:     wp-bootstrap-starter
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  wordpressBootstrapStarterChild
*/

:root {
  --main-dark: #273D5D;
}


/*Front Page Nav Area*/
#category-nav a.nav-link.active{
    font-weight:600;
    text-decoration:underline;
    color:var(--main-dark);
}

#category-nav .nav-link{
    padding:.3rem;
    padding-left:0px;
    color:var(--main-dark);
}
@media screen and (max-width:580px){
  .top-promo span.full-width{
     display:none;
 }
 #category-nav{
    display:none;
}
#cat-select{
 display:none;
}
}
.navbar-light .navbar-toggler{
    color:white!important;
}
@media screen and (max-width:1183px){
    a[title^='Free Two-Week Trial']{
        margin-left: 5px;
        max-width: fit-content;
    }
}

/*--------------------------------------------------------------
# Parent Theme Resets
--------------------------------------------------------------*/
.page-content, .entry-summary {
    margin: 0 0 0;
}

h1.entry-title {
    font-size: 2em;
    border: none;
}

h2.entry-title {
    border: none;
}


/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

body {
    font-size: 17px;
    background: #FCFCFD;
}

/*1rem = 16px;*/
html {
    scroll-behavior: smooth;
}

h1{
  font-size: 2em;
  letter-spacing: -0.02em;
}
h2{
  font-size:1.5em!important;
}
h3{
  font-size:1.3em!important;
}
h4{
  font-size:1em!important;
}
h5{
    font-size:.8em!important;
}
h6{
    font-size:.7em!important;
}
h1,h2,h3,h4,h5,h6{
    color:#363636;
}
h4{
    font-size:1rem;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover{
    color:#363636;
    text-decoration:none;
}

.fw-semibold {
    font-weight: 500;
}

div.entry-summary p {
    color: #6F7277;
}

figcaption {
   font-size: 80%;
   text-align: center;
}

a {
    /*color:#3261CA;*/
    color: #3261CA;
}

a.moretag:hover{
    text-decoration:none;
}
.weight-400{
  font-weight:400;
}
.weight-600{
  font-weight:600;
}

header#masthead{
  background-color:var(--main-dark);
}

[title^='Free Two-Week Trial'] {
    background: white;
    color:var(--main-dark);
    margin-left:20px;
}
a[title^='Free Two-Week Trial']{
  color:var(--main-dark)!important;
}
.badge.badge-secondary{
  background-color:#E0EAFF;
  color:#314C88;
  font-weight:semibold;
}
.nav-link{
   cursor:pointer;
}
#cat-select{
   color:#314C88;
   font-weight:600;
   margin-bottom:25px;
}

#category-nav{
   margin-left:-15px;
   margin-bottom:73px;
}
#category-nav li{
   margin-left:15px;
   margin-right:15px;
   font-weight:400;
}
#masthead .navbar-nav > li > a{
  color:#BFCBE9;
}
span.front-page-badge:first{
  margin-left:-15px!important;
}
span.front-page-badge{
  border-left:5px solid #324984;
  font-size:16px;
  padding:10px;
  font-weight:600;
}
span.front-page-cat {
  font-weight:400;
  padding:10px;
}
.author-meta{
  margin-bottom:1rem;
}
.author-in-results{
}

.avatar {
  border-radius: 50%;
}

.avatar.avatar-sm {
  width: 25px;
  height: 25px;
}

.avatar.avatar-md {
  width: 50px;
  height: 50px;
}

.avatar.avatar-lg {
  width: 100px;
  height: 100px;
}

.misha_loadmore .btn{
  color:white!important;
  background-color:var(--main-dark)!important;
}

/*--------------------------------------------------------------
# Posts - Single
--------------------------------------------------------------*/

/* Give in-text headers room to breathe */
.entry-content > h2, 
.entry-content > h3, 
.entry-content > h4, 
.entry-content > h5, 
.entry-content > h6 {
    margin-top: 3rem;
}

/* Give blocks of interest some room to breathe */
.entry-content .wp-block-image,
.entry-content .wp-block-code,
.entry-content .wp-block-verse  {
    margin: 2rem 0;
}

.entry-content figure.wp-block-image img {
    border-radius: 7px;
}

.entry-content pre.wp-block-verse {
    border-radius: 0.3em;
    padding: 1em;
    background: #eff3f6;
}

.entry-content [class^="wp-block-"].cap-height {
    overflow: auto;
    max-height: 277px;
    position: relative;
}

/* Optional scroll gradient for long verse blocks */
.entry-content pre.wp-block-verse.scroll-gradient {
  background: 
    linear-gradient(#eff3f6 33%, rgba(31,198,81, 0)),
    linear-gradient(rgba(31,198,81, 0), #eff3f6 66%) 0 100%,
    radial-gradient(farthest-side at 50% 0, rgba(34,34,34, 0.2), rgba(0,0,0,0)),
    radial-gradient(farthest-side at 50% 100%, rgba(34,34,34, 0.2), rgba(0,0,0,0)) 0 100%;
  background-color: #eff3f6;
  background-repeat: no-repeat;
  background-attachment: local, local, scroll, scroll;
  background-size: 100% 45px, 100% 45px, 100% 15px, 100% 15px;
}

.entry-content > ul {
    margin: 2rem 0;
}

ul li {
    margin-bottom: 0.5rem;
}

.toc {
    background: #FFF;
    border-radius: 7px;
    border: 1px solid #F3F3F8;
}

/*#toc-header {
    font-size:15px;
    font-weight:600;
    position:relative;
}

.toc {
    max-width: 50%;
    padding: 20px;
    float: right;
    background: white;
    border-radius: 3px;
}

.table-of-contents {
    margin-left:-20px;
}

.table-of-contents a:hover {
    text-decoration:none;
}*/

/* Sidebar */

.widget_social_links {
  position: sticky;
  top: 70px;
}

#secondary footer.entry-footer{
    margin-bottom: 4rem;
}

.light-cta{
  background-color:white;
  padding:50px;
  margin-bottom: 4rem;
}

.light-cta h5{
    color:#314C88;
    font-weight:600;
    font-size:20px;
    margin-bottom:21px;
}
.light-cta .btn-dark{
  background-color:var(--main-dark);
  font-size:20px;
  width:100%;
  text-align:center;
}

.badge-green{
    font-size:100%!important;
    color:white;
    background:#198754;
}
.badge-red{
    font-size:100%!important;
    color:white;
    background:#dc3545;
}
span#info-icon {
    cursor: pointer;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.crunchify-social{
  margin-top:-24px;
}
.crunchify-link {
    padding: 2px 8px 4px 8px !important;
    color: white;
    font-size: 12px;
    border-radius: 2px;
    margin-right: 2px;
    cursor: pointer;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
    -moz-box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
    -webkit-box-shadow: inset 0 -3px 0 rgba(0,0,0,.2);
    margin-top: 2px;
    display: inline-block;
    text-decoration: none;
}

.crunchify-link:hover,.crunchify-link:active {
    color: white;
}

.crunchify-twitter {
    background: #00aced;
}

.crunchify-twitter:hover,.crunchify-twitter:active {
    background: #0084b4;
}

.crunchify-facebook {
    background: #3B5997;
}

.crunchify-facebook:hover,.crunchify-facebook:active {
    background: #2d4372;
}

.crunchify-googleplus {
    background: #D64937;
}

.crunchify-googleplus:hover,.crunchify-googleplus:active {
    background: #b53525;
}

.crunchify-buffer {
    background: #444;
}

.crunchify-buffer:hover,.crunchify-buffer:active {
    background: #222;
}

.crunchify-pinterest {
    background: #bd081c;
}

.crunchify-pinterest:hover,.crunchify-pinterest:active {
    background: #bd081c;
}

.crunchify-linkedin {
    background: #0074A1;
}

.crunchify-linkedin:hover,.crunchify-linkedin:active {
    background: #006288;
}

.crunchify-social {
    margin: -20px 0px 25px 0px;
    -webkit-font-smoothing: antialiased;
    font-size: 15px;
    font-weight:600;
}


/* page json styles */

span.key{
    color: #dc3545;
}
span.string{
    color: #198754;

}
span.number{
    color: #fd7e14;
}


/*KG Glossary Page*/
nav.alphabet-navigation li {
    list-style: none;
    padding: 10px;

    background: white;
    color:var(--main-dark);
    text-align: center;
    width: auto;
    max-width: 35px;
    line-height:35px;
}
nav.alphabet-navigation li a:hover{
    color:white;
    text-decoration:none;
    background-color:var(--main-dark);
}
nav.alphabet-navigation li:hover{
    color:white!important;
    text-decoration:none;
    background-color:var(--main-dark);
}
nav.alphabet-navigation a{
 color:white!important;
 text-decoration:none!important;
}
nav.alphabet-navigation a{
    text-decoration:none;
}



.page-template-kg-glossary-page-php .card{
    position: relative;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 2px solid transparent;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    max-width: 31%;
    padding: 20px;
    margin-bottom: 40px;
    background-color: #fff;
    -webkit-box-shadow: 2px 3px 8px rgb(0 0 0 / 10%);
    box-shadow: 2px 3px 8px rgb(0 0 0 / 10%);
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-transition: all .5s ease 0s;
    -o-transition: all .5s ease 0s;
    transition: all .5s ease 0s;
    display: inline-block;
    min-height: 320px;
    border-width:0 0 2px 0;var(--main-dark)
}
.page-template-kg-glossary-page-php .card:hover, .page-template-kg-glossary-page-php a.card:hover {
    top: -10px;
    border-width: 0 0 2px 0;
    border-color: var(--main-dark);
}
.breadcrumb {
    padding: .75em 0em; 
}
@media screen and (max-width: 975px) {
    .page-template-kg-glossary-page-php .card{
        width:100%;
        max-width:100%;
        min-height:auto;
    }
}
/*FOOTER*/

footer.site-footer{
    background-color: var(--main-dark)!important;
    padding-top:2rem;
}

.bottom-cta{
    text-align:center;
    background-color: var(--main-dark);
    padding:80px;
    color:white;

}

.bottom-cta h3{
    color:#F1F5FE;
    font-size:32px;
    max-width: 469px;

}
.bottom-cta span{
    margin:10px;
}
.bottom-cta .btn{
    color:var(--main-dark);
    background-color:white;
    border:none;
    border-radius:3px;
    margin-top:10px;
}
.bottom-cta .btn:hover{
    color:var(--main-dark);
    background-color:white;
    border:none;

}