/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Navigation Bar Styling */
nav {
    background-color: #333;
    color: #fff;
    padding: 10px;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

nav ul li {
    float: left;
    margin-right: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    display: block;
}

nav ul li a:hover {
    background-color: #111;
}

/* Container Styling */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0px;
}

/* Code Block Styling */
.code-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.code-block {
    width: 100%;
    overflow-wrap: break-word; /* Ensure long lines wrap */
}

pre[class*=language-], code[class*=language-] {
    color: #ccc;
    background: #2d2d2d;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 1em;
    text-align: left;
    white-space: pre-wrap; /* Allow text to wrap */
    word-break: break-all; /* Break words if necessary */
    overflow-wrap: break-word; /* Ensure long lines wrap */
    line-height: 1.5;
    tab-size: 4;
    hyphens: none;
}

pre[class*=language-] {
    padding: 1em;
    margin: .5em 0;
    overflow: auto; /* Ensure scroll if needed */
    background: #2d2d2d;
}


/* Output Table Styling to Match Code Block */
.output-table {
    background-color: #2d2d2d;
    color: #fff;
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.output-table th, .output-table td {
    border: 1px solid #444;
    padding: 8px;
    text-align: left;
    color: #fff;
}

.output-table th {
    background-color: #333;
    color: #fff;
}

.output-table tr:nth-child(even) {
    background-color: #3b3b3b;
}

.output-table tr:hover {
    background-color: #444;
}

/* Navigation Styling */
.navigation {
    text-align: center;
    margin-top: 20px;
}

.navigation a {
    margin: 0 10px;
    text-decoration: none;
    color: #007bff;
}

.navigation a:hover {
    text-decoration: underline;
}
/* Other styles remain unchanged */

/* Layout for YouTube Thumbnail and Comment Section */
.youtube-and-comment {
    display: flex;
    flex-direction: row;  /* Arrange items in a row */
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 20px;
}

.youtube-thumbnail {
    flex: 1;
    max-width: 48%;
}

.youtube-thumbnail img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.comment-section {
    flex: 1;
    max-width: 48%;
    text-align: left;
}

.comment-box {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 10px;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #0056b3;
}

.explanation-block {
    margin-top: 20px;
    padding: 15px;
    background-color: #2d2d2d;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.explanation-block h3 {
    margin-bottom: 10px;
    color: #ccc;
}

.explanation-block p {
    margin: 0;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    color: #fff;
    line-height: 1.5;
}

/* Style for the search container */
.search-container {
    position: absolute;
    top: 150px;
    left: 10px;
    display: flex;
    align-items: center;
}

.search-container label {
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.search-container input[type="number"] {
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100px;
}

.search-container button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #0056b3;
}

/* Sidenav styling */
/* The sidenav */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

/* The close button inside the sidenav */
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

/* Change color on hover */
.sidenav a:hover {
    color: #f1f1f1;
}

/* Styles for the Syntax and Related headers in the sidenav */
.sidenav h3 {
    color: #f1f1f1; /* Light color for the headers */
    font-size: 20px; /* Adjust font size as needed */
    font-weight: bold;
    padding-left: 32px; /* Align with the links */
    margin-bottom: 10px;
}

/* Styles for the links in the Syntax and Related sections */
.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px; /* Adjust font size as needed */
    color: #818181; /* Default link color */
    display: block;
    transition: 0.3s;
}


/* Position the open button */
.openNav {
    position: fixed;
    right: 0;
    top: 50%;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    background-color: #111;
    color: white;
    border-radius: 5px;
    z-index: 1;
    transition: 0.3s;
}

.openNav:hover {
    background-color: #575757;
}

/* styles.css */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    padding: 10px;
}

.navbar-logo img {
    height: 50px; /* Adjust the height as needed */
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu li {
    margin: 0 15px;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar-menu a:hover {
    text-decoration: underline;
}

.content {
    padding: 20px;
}

/* Slider styles */ 
.slider {
    position: relative;
    width: 100%;
    height: 650px; /* Adjust as needed */
    overflow: hidden;
    background-color: #000;
}
.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slider img.active {
    opacity: 1;
}
.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.dax-button-container {
    text-align: right;
    margin-bottom: 15px;
}

.dax-button {
    background-color: #007ACC;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.dax-button:hover {
    background-color: #005a99;
}

/* Light Mode (default) */
body {
    background-color: #ffffff;
    color: #000000;
}

.code-block {
    background-color: #f5f5f5;
    color: #333333;
}

/* Dark Mode */
body.night-mode {
    background-color: #1e1e1e;
    color: #ffffff;
}

.code-block.night-mode {
    background-color: #333333;
    color: #f5f5f5;
}

.night-mode-toggle {
    position: fixed;
    top: 85px;
    right: 10px;
    background-color: #007ACC;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}

.night-mode-toggle:hover {
    background-color: #005a99;
}


.paypal-button {
    background-color: #FFDD00;
    border: none;
    color: #333;
    font-size: 20px;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.paypal-button:hover {
    background-color: #FFCC00;
}
