/*
 * @Author: Conghao Wong
 * @Date: 2025-04-09 10:06:30
 * @LastEditors: Conghao Wong
 * @LastEditTime: 2025-04-09 15:13:44
 * @Github: https://cocoon2wong.github.io
 * Copyright 2025 Conghao Wong, All Rights Reserved.
 */

/* --- Variables--- */

:root {
    --navbar-float-col: #EAEAEA80;

    --body-font: "SF Pro Text","Myriad Set Pro","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
    --header-font: "SF Pro Text","Myriad Set Pro","SF Pro Icons","Helvetica Neue","Helvetica","Arial",sans-serif;
}

/* --- General--- */

h2 {
    color: #0085A1;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;  
}

/* --- Navbar--- */

.navbar-custom {
    border-bottom: none;
    transition: none;
}

.navbar-custom,
.navbar-custom.top-nav-short,
.navbar-custom.top-nav-short-permanent {
    padding-left: 1em;
    padding-right: 1em;
}

.navbar-custom .navbar-nav .nav-link {
    padding-top: 0;
    padding-bottom: 0;
}

/* --- Footer --- */

footer {
    margin-top: 0;
}

/* --- Post and page headers --- */

.intro-header.big-img {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .intro-header.big-img {
        margin-top: 0;
    }
}

/* --- Code blocks --- */

.highlighter-rouge {
    padding: 10px 14px;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.02);
    transition: background-color 0.2s ease-in-out;
}

.dark-mode .highlighter-rouge {
    background-color: rgba(255,255,255,0.12);
}

div.highlight {
    display: flex;
    position: relative;
}

div.highlight > pre {
    background-image: none;
    background-position-y: 0;
    padding: 0;
    border: none;
    border-radius: 6px;
}

div.highlight > .codebox-title {
    opacity: 0;
    position: absolute;
    top: 0;
    right: -4px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 99;
    transition: opacity 0.2s ease-in-out;
}

div.highlight:hover > .codebox-title {
    opacity: 1;
}

.codebox-title > a.btn-colorful {
    padding: 3px 6px 3px 6px;
    height: 30px;
}
