/* Generic styles */


body,html {
    overscroll-behavior-y: none;
}
html {
    font-size: 65%;
}
body {
    font-style: normal;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: "liga" on;
}
body::before {
    content: none;
}
body > .container {
    flex: 1;
    min-height: unset !important;
}
body .container {
    max-width: 1200px;
}
h1,h2,h3,h4 {
    font-weight: 700;
    color:var(--bs-black);
    line-height: 7rem;
}
h1 {
    font-size: 4rem;
}
h2 {
    font-size: 3.5rem;
}
h3 {
    font-size: 2.5rem;
}
h4,h5,h6 {
    font-size: 2.5rem;
}
pre {
    border:none;
    margin:0;
    padding:0;
}
pre:has(>code),figure,p > img {
    margin: 30px 5px 30px 5px;
    text-align: center;
}
figcaption {
    text-align: center;
    padding: 5px;
    font-style: italic;
}
figcaption::before{
    content: '[Fig.] ';
}
code.hljs {
    background: var(--bs-light-bg-subtle);
}
code {
    background-color: rgba(208, 232, 255, 0.75);
    border: none;
    text-align: left;
}
a {
    text-decoration: none;
}

@font-face {
    font-family: Chango;
    src: url(../fonts/Chango-Regular.ttf);
}




/* Specific styles */


.navbar.bg-primary {
    background-color: var(--bg-primary-color) !important;
    background-image: none;
}

.navbar {
    min-height: 73px;
    position: initial;
    position: relative;
    display: block;
}


body.index .navbar,
body.blog .navbar {
     min-height: 490px;
}

body.index .navbar .site-header-content,
body.blog .navbar .site-header-content {
     display: flex;
}

.navbar .site-header-content figure {
    margin: 0;
}

.navbar .navbar-collapse {
    align-items: start;
}

.navbar .nav {
    line-height: 24px;
    font-size: 1.5rem;
    margin-left: 15px;
}
.navbar.fixed-top {
    position: relative;
    padding-top: 20px;
    z-index: 0;
}

.navbar .container {
  align-items: flex-start;
  height: 40px;
  font-size: 1.2rem;
  z-index: 3;
}

.navbar .navbar-brand {
  letter-spacing: normal;
  font-size: 2em;
  font-weight: 400;
  font-family: Chango,cursive;
  color: #fcebdc !important;
  padding-bottom: 6px;
}

.navbar #search-form {
     width:200px;
     position: relative;
     margin-top: -20px;
}

.fa-search {
    position: relative;
    top: 27px;
    left: 10px;
}

.navbar #mkdocs-search-query {
    color: #333;
    border: 0;
    border-radius: 10px;
    padding: 3px;
    padding-left: 3px;
    padding-left: 10px;
    background-color: #ddd;
    outline:none;
    width:100%;
    padding-left: 30px;
    transition: border-radius 0.2s linear;
}

.navbar #mkdocs-search-results {
    position: sticky;
    z-index: 5;
    background: #3a3939;
    width:500px;
    overflow: scroll;
    color: white;
    text-align: justify;
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 15px;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    transition: visibility 0s, max-height 1s, opacity 0.5s linear;
    box-shadow: 0 5px 10px rgba(34, 34, 34, 0.5);
    border-radius: 0 0 10px 10px;
}
.navbar #mkdocs-search-results > p {
    background-color: #3a3939;
}
.navbar #mkdocs-search-results.open {
    visibility: visible;
    opacity: 1;
    max-height: 70vh;
}

.navbar #mkdocs-search-results h3 {
    text-overflow: ellipsis;
    line-height: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.navbar #mkdocs-search-results p {
    line-height: 1.2em;
    color: var(--bs-secondary-color);
}

.navbar #mkdocs-search-results p::after {
    content: '...'
}

.btn-close {
    filter: none !important;
    display: none;
    position: absolute;
    top: 29px;
    margin-right: 21px;
    padding-right: 10px;
    right: -18px;
}

.navbar #mkdocs-search-query:focus {
    border-radius: 10px 10px 0 0;
}

.navbar #mkdocs-search-query:focus ~ .btn-close {
    display: inline-block;
}

.site-header-content {
    flex-direction: row;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 1200px;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    display: none;
}


.site-header-content .site-title {
  font-size: 30px;
  white-space: nowrap;
  font-weight: 400;
  font-family: Chango,cursive;
  color: #fcebdc;
}

.site-header-content .site-description {
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: .5px;
  opacity: .8;
  font-size: 1.3em;
}

.site-header-content .figure-content > figure {
    background-image:url('../images/header.svg?v=d4cab9eb5a');
    height: 100%;
    width: 100%;
    background-position-x: 60%;
    background-position-y: 50%;
    background-repeat: no-repeat;
    mix-blend-mode: luminosity;
    opacity: .19;
}

.site-section-button {
  margin-top: 100px;
  margin-bottom: 100px;
  position: relative;
  width: 75vw;
  max-width: 800px;
  line-height: 50px;
  background-color: var(--bs-primary);
  cursor: pointer;
  display: block;
  color: var(--bs-white);
  font-size: 1.6em;
  text-decoration: none;
}

.blog-listing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows:auto 1fr;
    grid-row-gap: 20px;
    grid-column-gap: 20px;
}


.blog-listing .post {
    min-height: 300px;
    border-radius: 1px solid var(--md-primary-bg-color--light);
    margin: 0;
    background-color: var(--md-primary-bg-color--light);
    background-size: cover;
    border-radius: 5px;
    box-shadow: 8px 14px 38px rgba(22, 25, 27, 0.06),1px 3px 8px rgba(18, 20, 22, 0.03);
    transition: all .5s ease;
}

.blog-listing .post h2 {
    line-height: 4rem;
    margin-bottom: 10px;
}

.blog-listing .post h3 {
    line-height: 3rem;
}

.blog-listing .post main {
    padding: 15px;
}

.blog-listing .post:hover {
  box-shadow: 0 0 1px rgba(39,44,49,.1),0 3px 16px rgba(39,44,49,.07);
  transition: all .3s ease;
  transform: translate3D(0,-1px,0);
}

.blog-listing .post .hero-image {
  width: 100%;
  padding-bottom: 200px;
  overflow: hidden;
  position: relative;
}

.blog-listing .post .hero-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-listing .post a {
    text-decoration: none;
}

.blog-listing .post a:hover {
    text-decoration: none;
    color:inherit;
}

.tag {
   color: var(--bs-secondary-text-emphasis);
   text-transform: uppercase;
   font-weight: bold;
   font-size: 2rem;
}

.home-slogan {
    font-size: 0.7rem;
    margin-top: 12rem;
    margin-bottom: 12rem;
}

.home-slogan h1 {
    font-size: 5rem;
    text-align: center;
}

.home-slogan h2 {
    margin-top:20px;
    font-size: 2.2rem;
    text-align: center;
    line-height: 3.5rem;
}

.site-footer {
  padding: 15px;
  color: #fff;
  background: #000;
}

.main-content div[role='main'] > h1 {
    margin-bottom: 60px;
    text-align: center;
}

.main-content div[role='main'] > h1 .headerlink {
    display: none;
}

.main-content .page-info {
    margin-top: 60px;
    text-align: center;
}

.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
    margin-top: 10px;
    margin-bottom: 10px;
}

.main-content .headerlink {
    color: var(--bs-link-color-rgb);
    margin-right: 10px;
    opacity: 0.4;
    display: inline-block;
}

.main-content .headerlink:hover {
    opacity: 1;
    color: var(--bs-link-hover-color);
}
