/* Ensure page-content is always visible */
.page-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/*-----------------------------------*\
  #base.css
\*-----------------------------------*/

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
:root {
    /* colors - Ubuntu Terminal Theme */
    --bg-gradient-onyx: linear-gradient(to bottom right, #2c001e 3%, #300a24 97%);
    --bg-gradient-jet: linear-gradient(
            to bottom right,
            rgba(44, 0, 30, 0.251) 0%,
            rgba(48, 10, 36, 0) 100%
        ),
        #2c001e;
    --bg-gradient-yellow-1: linear-gradient(to bottom right, #e95420 0%, rgba(233, 84, 32, 0) 50%);
    --bg-gradient-yellow-2: linear-gradient(
            135deg,
            rgba(233, 84, 32, 0.251) 0%,
            rgba(233, 84, 32, 0) 59.86%
        ),
        #2c001e;
    --border-gradient-onyx: linear-gradient(to bottom right, #4c3840 0%, rgba(76, 56, 64, 0) 50%);
    --text-gradient-yellow: linear-gradient(to right, #e95420, #f4aa90);

    --jet: #300a24;
    --onyx: #2c001e;
    --eerie-black-1: #2c001e;
    --eerie-black-2: #300a24;
    --smoky-black: #1e1e1e;
    --white-1: #ffffff;
    --white-2: #f2f2f2;
    --orange-yellow-crayola: #e95420;
    --vegas-gold: #f4aa90;
    --light-gray: #aea79f;
    --light-gray-70: hsla(0, 0%, 84%, 0.7);
    --bittersweet-shimmer: hsl(0, 43%, 51%);

    /* typography */
    --ff-poppins: "Poppins", sans-serif;
    --fs-1: 24px;
    --fs-2: 18px;
    --fs-3: 17px;
    --fs-4: 16px;
    --fs-5: 15px;
    --fs-6: 14px;
    --fs-7: 13px;
    --fs-8: 11px;
    --fw-300: 300;
    --fw-400: 400;
    --fw-500: 500;
    --fw-600: 600;

    /* shadow */
    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
    --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
    --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);

    /* transition */
    --transition-1: 0.25s ease;
    --transition-2: 0.5s ease-in-out;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--orange-yellow-crayola);
}
a:hover {
    color: var(--vegas-gold);
}
li {
    list-style: none;
}
img,
ion-icon,
a,
button,
time,
span {
    display: block;
}
button {
    font: inherit;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}
input,
textarea {
    display: block;
    width: 100%;
    background: none;
    font: inherit;
}
::selection {
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
}
:focus {
    outline-color: var(--orange-yellow-crayola);
}
html {
    font-family: var(--ff-poppins);
}
body {
    /* background: #2c001e; */
    background-image: url("../images/pcb-background.svg");
    /* background-attachment: fixed; */
    color: #f2f2f2;
    font-family: "Ubuntu Mono", monospace;
    min-height: 100vh;
    position: relative;
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
    background: var(--eerie-black-2);
    border: 1px solid var(--jet);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-1);
    z-index: 1;
}
.separator {
    width: 100%;
    height: 1px;
    background: var(--jet);
    margin: 16px 0;
}
.icon-box {
    position: relative;
    background: var(--border-gradient-onyx);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--orange-yellow-crayola);
    box-shadow: var(--shadow-1);
    z-index: 1;
}
.icon-box::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--eerie-black-1);
    border-radius: inherit;
    z-index: -1;
}
.icon-box ion-icon {
    --ionicon-stroke-width: 35px;
}
article {
    display: none;
}
article.active {
    display: block;
    animation: fade 0.5s ease backwards;
}
@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.h2,
.h3,
.h4,
.h5 {
    color: var(--white-2);
    text-transform: capitalize;
}
.h2 {
    font-size: var(--fs-1);
}
.h3 {
    font-size: var(--fs-2);
}
.h4 {
    font-size: var(--fs-4);
}
.h5 {
    font-size: var(--fs-7);
    font-weight: var(--fw-500);
}
.article-title {
    position: relative;
    padding-bottom: 7px;
}
.article-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--text-gradient-yellow);
    border-radius: 3px;
}
.has-scrollbar::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.has-scrollbar::-webkit-scrollbar-track {
    background: var(--onyx);
    border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-thumb {
    background: var(--orange-yellow-crayola);
    border-radius: 5px;
}
.has-scrollbar::-webkit-scrollbar-button {
    width: 20px;
}
.content-card {
    position: relative;
    background: var(--border-gradient-onyx);
    padding: 15px;
    padding-top: 45px;
    border-radius: 14px;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    z-index: 1;
}
.content-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet);
    border-radius: inherit;
    z-index: -1;
}

.caption-text {
    font-size: var(--fs-7);
    color: var(--light-gray);
    text-align: center;
    margin-top: 8px;
}

.image-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

figure {
    text-align: center; /* centers inline-level children (img, figcaption text) */
}
figure img {
    display: inline-block; /* optional but avoids 100% width by default for some images */
    max-width: 100%;
    height: auto;
}
figcaption {
    margin-top: 0.5rem;
}

pre code {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    display: block;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap; /* Ensures long lines wrap */
}

a {
    display: inline;
}
