/* Reset some default browser styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* General body styles */
body {
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #eee;
    padding: 20px;
    box-sizing: border-box; /* Ensure padding doesn't affect width calculations */
}

/* Link styles */
a {
    color: #007bff;
    text-decoration: none;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    padding: 10px 20px;
    color: white;
    position: fixed; /* Ensure the navbar stays at the top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Ensure the navbar stays above other elements */
    box-sizing: border-box;
    height: 10vh;
}

/* Logo styles */
.logo {
    font-family: 'Consolas', sans-serif;
    font-size: 24px;
    display: flex;
    align-items: center;
}

.logo-script {
    color: #fff;
}

.logo-blocks {
    font-family: 'Quicksand', monospace;
    color: lightcyan;
    margin-left: 5px;
}

/* Nav link styles */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    position: relative;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: lightcyan;
}

/* Divider styles */
.divider {
    width: 1px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 10px;
}

/* Ensure content below the navbar is not hidden */
body > *:not(.navbar) {
    padding-top: 60px; /* Adjust this value based on the height of the navbar */
}

/* Main section styles */
#title {
    font-size: 6vw; /* Adjust font-size to make the title visually cover 50% width */
    max-width: 50%; /* Restrict the width to 50% of the site */
    margin: 1.5em auto 0 auto; /* Center horizontally with a margin at the top */
    text-align: center;
}

#subtitle {
    font-size: 3.5vw; /* Adjust font-size to make the subtitle visually cover 60% width */
    max-width: 60%; /* Restrict the width to 60% of the site */
    margin: 0.5em auto 0 auto; /* Center horizontally, just below the title */
    text-align: center;
    color: lightgray;
    line-height: 1.2; /* Adjust line height to improve readability */
}

#desc {
    font-size: 1.5vw; /* Adjust font-size to make the subtitle visually cover 60% width */
    max-width: 80%; /* Restrict the width to 60% of the site */
    margin: 0.5em auto 0 auto; /* Center horizontally, just below the title */
    text-align: center;
    color: #eee;
    line-height: 1.2; /* Adjust line height to improve readability */
}

/* Ensure the code-block-split container takes up the full width */
.code-block-split {
    display: flex;
    flex-direction: row; /* Align child divs horizontally */
    width: 100%; /* Full width of the container */
    height: auto; /* Adjust height based on content */
    margin: 20px 0; /* Margin to space out from other content */
}

/* Style each code block */
.code-block {
    flex: 1; /* Each block takes up half the width */
    padding: 10px; /* Padding for internal spacing */
    box-sizing: border-box; /* Ensure padding is included in width calculation */
    display: flex;
    flex-direction: column; /* Stack content vertically */
}

/* Make sure both code blocks have the same height */
.code-block-pre {
    flex: 1; /* Make the pre element take up the remaining space */
    overflow: auto; /* Handle overflow if the content is too large */
}

/* Ensure consistent appearance for each code block */
pre {
    background-color: #333;
    border-radius: 0 0 1em 1em; /* Rounded corners at the bottom */
    padding: 15px;
    margin: 0; /* Remove default margin */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure pre takes up full height of its container */
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #444;
    border-radius: 8px 8px 0 0;
    padding: 5px 10px;
    color: #aaa;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    font-weight: bold;
}

.code-header .code-language {
    color: #fff;
}

.code-header .code-copy {
    cursor: pointer;
    color: #00bcd4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #00bcd4;
    border-radius: 4px;
    padding: 2px 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.code-header .code-copy:hover {
    background-color: #00bcd4;
    color: #333;
}

pre {
    margin: 0;
    overflow-x: auto;
    font-size: 16px;
    color: #f8f8f2; /* Base color for code */
}

code {
    display: block;
    padding: 10px;
    background-color: #ffffff00 !important;
}

/* Syntax highlighting */
.bash .bash-prompt {
    color: #f1c40f; /* Yellow dollar sign */
}

.bash .bash-command {
    color: #ffffff; /* White commands */
}

/* Split container to hold both sections */
split {
    display: flex;
    flex-direction: row; /* Align children vertically */
    width: 100%; /* Full width of the container */
    margin: 20px 0; /* Margin to space out from other content */
}

/* Each section takes up half the height of the split container */
.downloads-section, .documentation-section {
    flex: 1; /* Equal height for both sections */
    padding: 20px; /* Padding for internal spacing */
    box-sizing: border-box; /* Ensure padding is included in height calculation */
}

/* Ensure consistent styles for the section headers */
.downloads-section h2, .documentation-section h2 {
    margin-top: 0; /* Remove default margin at the top */
}

.btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
}

.btn-container > .btn {
    margin-bottom: 0.5em;
}