/* Apply Inter font to the entire body */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc; /* Light blue-gray background */
    color: #4b5563; /* gray-600 */
    font-size: 1.125rem; /* text-lg */
}
/* Custom scroll behavior for smooth navigation */
html {
    scroll-behavior: smooth;
}
/* Basic styling for sections for better visual separation */
section {
    padding: 4rem 1rem; /* Vertical padding for sections */
    margin-bottom: 2rem; /* Space between sections */
}

/* STYLES FOR IMAGES */
/* This is for the video aspect ratio on older browsers that don't support aspect-w/h classes */
.aspect-w-4 {
    position: relative;
    padding-bottom: 75%; /* 3/4 ratio */
}
.aspect-w-4 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Remove default iframe border */
}
/* Additional style to ensure images don't get squished in flex container on small screens */
.component-image {
    max-width: 100%; /* Ensure image is not wider than its container */
    width: auto; /* Let the width be determined by the height to keep aspect ratio */
}

/* CUSTOM STYLES FOR CODE */
/* inline */
code.code-inline {
    background-color: #f3f4f6; /* gray-100 */
    color: #7c3aed; /* purple-700 */
    font-family: 'Courier New', Courier, monospace; /* Monospace font */
    padding: 0.25rem 0.5rem; /* px-2 py-1 */
    border-radius: 0.375rem; /* rounded-md */
}
/* block */
pre.code-block {
    background-color: #1e293b; /* gray-800 */
    color: #e5e7eb; /* gray-200 */
    font-family: 'Courier New', Courier, monospace; /* Monospace font */
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    overflow-x: auto; /* horizontal scroll if needed */
}

/* CUSTOM STYLES FOR LISTS */
/* first-level list, (bullet points) */
ul.first-level {
    list-style-type: disc;
    list-style-position: inside;
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* gray-600 */
    margin-bottom: 1rem; /* mb-4 */
}
.first-level li {
    margin-bottom: 0.5rem; /* space-y-2 */
}
/* second-level list, (square points) */
ul.second-level {
    list-style-type: square;
    list-style-position: inside;
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* gray-600 */
    margin-top: 0.5rem; /* mt-2 */
    margin-bottom: 0.5rem; /* mb-2 */
    margin-left: 1.25rem; /* increased indentation */
}
.second-level li {
    margin-bottom: 0.4rem; /* space-y-1.8 */
}
/* numbered list */
ol.numbered-list {
    list-style-type: decimal;
    font-size: 1.125rem;     /* text-lg */
    color: #4b5563;          /* gray-600 */
    margin-bottom: 1rem;     /* mb-4 */
    padding-left: 1.5rem;    /* pl-6 */
}
ol.numbered-list li {
    margin-bottom: 0.5rem;   /* space-y-2 */
}

/* CUSTOM STYLES FOR PARAGRAPH */
/* normal text */
p.standard-text {
    margin-bottom: 1rem; /* mb-4 */
}
/* small text */
p.small-text {
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.5rem; /* mb-2 */
}
/* intro text */
p.page-intro {
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    margin-bottom: 2rem; /* mb-8 */
}

/* CUSTOM STYLES FOR TITLES */
/* page title */
h2.page-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: #1e293b; /* gray-800 */
    margin-bottom: 3rem; /* mb-12 */
    text-align: center; /* text-center */
}
/* section title */
h3.section-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #4338ca; /* indigo-700 */
    margin-bottom: 2rem; /* mb-8 */
}
/* section subtitle */
h4.section-subtitle {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;  /* font-semibold */
    color: #1f2937;    /* gray-800 */
    margin-bottom: 0.5rem; /* mb-2 */
}
/* element title */
h4.element-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #374151; /* gray-700 */
    margin-bottom: 0.75rem; /* mb-3 */
    text-align: center; /* text-center */
}

/* CUSTOM STYLES FOR HYPERLINKS */
/* standard link */
a.standard-link {
    color: #2563eb; /* blue-600 */
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
/* standard link on-mouse-hover */
a.standard-link:hover {
    color: #1d4ed8; /* blue-700 */
    text-decoration: underline;
}
/* top navigation bar */
a.nav-link {
    color: #374151; /* gray-700*/
    font-weight: 500; /* font-medium */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* top navigation bar on-mouse-hover */
a.nav-link:hover {
    color: #4338ca; /* indigo-700 */
    background-color: #e2e8f0; /* Lighter background on hover */
}
/* side navigation menu */
a.side-nav-link {
    display: block;
    color: #4b5563; /* gray-600 */
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.2s, color 0.2s;
}
/* side navigation menu on-mouse-hover */
a.side-nav-link:hover {
    color: #4338ca; /* indigo-700 */
    background-color: #e2e8f0; /* Lighter background on hover */
}
/* side navigation menu active link (when the user is on that section) */
a.side-nav-link.active-nav-link {
    background-color: #e0e7ff; /* indigo-100 */
    color: #3730a3; /* indigo-700 */
    font-weight: 600; /* font-semibold */
}

/* HORIZONTAL RULE */
hr.standard-hr {
    border-color: #d1d5db;/* border-gray-300 */
}

/* DIV STYLES */
/* Card style for hardware components */
div.hardware-card {
    background-color: #e0e7ff;      /* bg-gray-50 */
    padding: 1.5rem;                /* p-6 */
    border-radius: 0.75rem;         /* rounded-xl */
    box-shadow: 0 1px 2px 0 #0001;  /* shadow-sm */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;                    /* md:space-x-6 for row, use gap for both */
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    div.hardware-card {
        flex-direction: row;
    }
}

/* SECTION STYLES */
/* standard section style */
section.standard-section {
    margin-bottom: 4rem; /* mb-16 */
    scroll-margin-top: 6rem; /* scroll-mt-24 */
}