/* Global */

:root {
    --main: #000000;
    --background: #ffffff;
    --metallic-gold: #bd9c33;
    --creme: #f0e4d5;
    --off-white: #f8f8f8;
    --grey: #7b7b7b;
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Quicksand', sans-serif;
    --sidebar-width: 284px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --main: #ffffff;
        --background: #000000;
        --grey: #c7c7c7;
    }
}

.sidebar {
    background: var(--background);
    font-family: var(--body-font);
    width: var(--sidebar-width);
}

.sidebar-toggle-button>span {
    background-color: var(--main) !important;
}

body.close .sidebar-toggle {
    background-color: transparent;
}

.sidebar-toggle {
    background-color: transparent;
}

@media screen and (max-width: 768px) {
    body.close .content {
        transform: translateX(250px);
    }
    
}
.sidebar-toggle,
.sidebar-toggle:focus,
.sidebar-toggle:hover,
.sidebar-toggle:active {
  opacity: 1 !important;
}

.sidebar-toggle .sidebar-toggle-button,
.sidebar-toggle .sidebar-toggle-button span {
  opacity: 1 !important;
  filter: none !important;
  transition: none !important; /* optional: remove fade */
}

/* Optional: remove the mobile tap highlight */
.sidebar-toggle {
  -webkit-tap-highlight-color: transparent;
}
.sidebar ul li a,
li {
    color: var(--main);
}

/* .sidebar ul li.active */
.sidebar ul li.active>a,
.sidebar li.is-page-active>a {
    background-color: var(--main);
    color: var(--background);
}

.sidebar-nav>ul {
    margin: 0;
    padding-left: 8px;
}

.sidebar-nav>ul>li {
    padding: 6px 0 0 6px;
}

.sidebar ul {
    margin: 0;
}

.sidebar ul li.active>a {
    border: none !important;
}

.sidebar-nav>ul>li {
    text-transform: uppercase;
    font-weight: 600;
    margin: 10px 0 16px;
    font-family: var(--heading-font);
}

.sidebar-nav>ul>li p {
    font-size: 1.1rem;
}

.sidebar-nav>ul>li>ul {
    text-transform: none;
    font-weight: normal;
    margin-top: 4px;
}

.sidebar-nav>ul>li>ul a {
    padding: 0 8px;
}

.sidebar-nav>a {
    padding: 0 0 0 15px;
}

tr,
.markdown-section td,
.markdown-section th {
    background-color: var(--main);
    color: var(--background);
}

table>tbody>tr>td strong {
    color: var(--background) !important;
}

::selection {
    background: var(--main);
    color: var(--background);
}

body {
    position: relative;
    background: var(--background);
    animation: fadeIn 1500ms ease-in;
    font-family: var(--body-font);
}

#logo h3 {
    margin: 0;
    color: var(--grey);
}

#intro-subtitle,
#countdown,
.markdown-section h1,
.markdown-section h2,
.markdown-section h3,
.markdown-section h4,
.markdown-section p,
.markdown-section table,
.markdown-section ul,
.markdown-section ol,
.gallery,
.flag,
#container,
.docsify-pagination-container {
    animation: fadeIn 1500ms ease-in;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1500ms ease-out;
}

body.fade-transition::after {
    opacity: 1;
    transition-duration: 300ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#container {
    max-width: 1200px;
    margin: 0 auto;
}

.sidebar-toggle span {
    width: 30px;
    height: 4px;
    border-radius: 3px;
}

main {
    margin: 0 auto;
    display: flex;
    align-items: start;
    gap: 20px;
    max-width: 1200px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
    color: var(--main) !important;
    text-align: center;
}

.docsify-pagination-container {
    font-family: var(--heading-font);
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.05em;
    color: var(--main) !important;
}

/* 
.markdown-section strong {
    color: var(--main);
} */

.anchor span {
    color: var(--main);
}

.markdown-section figure,
.markdown-section p {
    margin: 2em 0;
}

p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--main);
    /* text-align: center; */
}

.markdown-section a {
    color: var(--main);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.3s ease;
}

.markdown-section p a {
    text-decoration: underline;
    display: inline-block;
    transition: all 0.15s ease-in-out;
}

.markdown-section p a:hover {
    transform: scale(1.02);
}

.markdown-section p a:active {
    transform: scale(0.98);
}

button {
    height: fit-content;
}

aside {
    width: 250px;
}

.content {
    flex-grow: 1;
}

@media screen and (min-width: 767px) {
    body.close .sidebar {
        transition: all .2s ease-out;
        opacity: 0;
    }
}

aside.sidebar {
    position: fixed;
}

/* Main Content */
section.content {
    padding-top: 0px;
}

section.markdown-section {
    padding-top: 0px;
}

.markdown-section>:first-child {
    margin-top: 60px !important;
}

#main-title {
    font-size: 5rem;
}

.markdown-section h1 {
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: 0.1em;
    margin: 100px 0 40px 0;
}

.markdown-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 80px 0 20px 0;
}

.markdown-section h3 {
    font-size: 1.2rem;
    line-height: 1.2;
    margin: 60px 0 20px 0;
}

.markdown-section p.experience-duration,
.markdown-section p.experience-company {
    font-size: 0.8em;
    margin: 0;
    color: var(--grey);
}

h1#intro-title {
    padding-top: 30px;
}

.markdown-section hr {
    margin: 5rem;
}

.signature {
    font-weight: 300;
    letter-spacing: 0.05em;
}

.markdown-section p:has(img) {
    text-align: center;
}

.markdown-section>table {
    display: table;
    width: auto;
    /* shrink to content */
    margin: 0 auto;
    /* center the table itself */
}

.markdown-section em {
    color: inherit;
}

.gallery {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    cursor: grab;
    border-radius: 16px;
    padding: 10px 30px 10px 0;
}

.gallery-track {
    display: flex;
    gap: 12px;
}

.gallery img {
    height: auto;
    max-height: 600px;
    max-width: 90%;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
    transform: scale(1.02);
}

.medium-zoom-overlay {
    background-color: var(--background) !important;
}

/* .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('../img/global/background.svg') center center / cover no-repeat;
    background-color: var(--main);
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.1s linear;
} */
/* 
#warning {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin: 100px 0 0 0;
    height: 36vh;
    text-align: center;
    width: 100%;
} */

/* #warning-content {
    min-height: 6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    width: 100%;
}

#warning-content h2 {
    margin: inherit;
} */

.sidebar>h1.app-name {
    padding: 16px;
}


@media screen and (min-width: 767px) {
    #warning {
        height: 25vh;
    }
}

@media screen and (max-width: 650px) {
    :root {
        --sidebar-width: 240px;
    }

    #main-title {
        font-size: 3rem;
    }

    .markdown-section h1 {
        margin: 60px 0 30px 0;
        font-size: 2rem;
    }

    .markdown-section h2 {
        font-size: 1.4rem;
    }

    aside.sidebar {
        padding: 0 !important;
    }

    .markdown-section {
        max-width: 84%;
    }

    div#bmc-wbtn {
        scale: 0.8 !important;
        transform-origin: bottom right !important;
        right: 10px !important;
    }
}