.toggle-btn {
    background: none; /* Ensure no background interference */
    border: none;
    font-size: 1.5rem; /* Adjust as needed */
    color: rgb(240, 240, 240);
    cursor: pointer;
    outline: none;
    margin-top: 2px;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: #ff6600 !important; /* Change text color to orange when hovered */
}

.toggle-btn:focus {
    outline: none;
}

.navbar {
    width: 100%; /* Ensure the container takes up the full width */
    height: 80px;
    background-color: #081120;
    position: sticky; /* Make navbar sticky */
    top: 0; /* Stick it to the top of the viewport */
    z-index: 1000; /* Ensure navbar is on top of other content */
}

/* Make the collapse container expand without affecting the layout */
.navbar-collapse {
    background-color: #081120; /* Match the navbar's background color */
    width: 100%; /* Ensure the background takes the full width */
}

/* Remove padding and set margin for smooth alignment */
.navbar-collapse .navbar-nav {
    margin-left: 0;
    margin-right: 0;
}

.navbar-collapse .nav-item {
    margin-left: 10px;
}

.navbar-toggler:focus,
.navbar-toggler:active {
    outline: none; /* Remove the outline */
    box-shadow: none; /* Remove the default box shadow on focus */
    background-color: transparent; /* Keep the background transparent */
}

.fever-navbar .navbar-nav .nav-link {
    color: rgb(230, 230, 230) !important; /* Set the text color to white */
    font-weight: bold;
    transition: color 0.3s ease;
}

/* Change text color on hover */
.navbar .navbar-nav .nav-link:hover {
    color: #ff6600 !important; /* Change text color to orange when hovered */
}

/* Style for the active (selected) navbar item */
.navbar .navbar-nav .nav-item.active .nav-link {
    color: #683896 !important; /* Set the selected item color to purple */
}

.body{
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-area {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

.content-area.dark-mode {
    background-color: #081120;
    color: rgb(221, 220, 220);
}

.content-area.light-mode {
    background-color: rgb(248, 240, 222);
    color: rgb(0, 0, 0);
}

.content {
    max-width: 800px;
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.wide-body {
    margin: auto;
    width: 95%;
}

.write-area {
    min-height: 75vh;
}

.post-title{
    text-align: center;
    /* padding-bottom: 30px; */
}

.post-main{
    text-align: left;
}

/* AI chat form */
.chat-container #chat-form {
    display: flex;
    flex-direction: column;
    height: auto;
}

/* This ensures that the textarea takes up the available space */
.chat-container #chat-form .form-group {
    flex-grow: 1;
    margin-bottom: 4px; 
}

.chat-container #chat-form button {
    margin-top: 0;
}

.card {
    border-radius: 15px; /* Adjust the value as needed */
    overflow: hidden;    /* Ensures child elements don't overflow the rounded corners */
}

.card-body.dark-mode {
    background-color: rgb(50, 50, 55);
}

.card-body.light-mode {
    background-color: rgba(117, 117, 117, 0.7);
}

.card-footer{
    background-color: rgb(40, 40, 45);
}

.card-meta-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Add spacing between each meta item */
    margin-bottom: 10px;
}

.card-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ccc; /* Adjust color for better contrast */
}

.card-meta i {
    margin-right: 5px; /* Add spacing between icon and text */
    color: #f76300; /* Use a consistent color for icons */
}

footer{
    background-color: #081120;
    color: rgb(190, 190, 190);
    padding-bottom: 10px;
    z-index: 1000; /* Ensures the footer is above other elements */
}

footer .footer-nav {
    text-align: center; /* Centers text horizontally */
    background-color: rgb(75, 75, 75);
    padding-top: 20px;
    padding-bottom: 20px;
}

.base-footer{
    padding-top: 10px;
    align-items: center; /* Vertically centers the elements */
}

.base-footer p,
.base-footer a {
    margin: 0; /* Removes default margin to keep vertical alignment clean */
    text-align: center; /* Ensures text is centered inside its column */
}

.progress-container {
    background-color: #c9c9c9;
    height: 10px;
    width: 100%;
    position: fixed;
    top: 80px;
    left: 0;
    z-index: 999;
}

.progress-bar {
    background-color: #f76300;
    height: 100%;
    min-width: 0px;
    transition: width 0.2s ease-in-out;
}

/* Style all anchor tags to have white text */
a {
    color: rgb(236, 236, 236); /* Set link color to white */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth transition for hover effects */
}

/* Change color on hover */
a:hover {
    color: #ffffff; /* Bright color on hover */
    text-decoration: underline; /* Add underline on hover */
}

/* Custom style for quote section */
.post-quote {
    margin: 20px auto;
    padding: 4px 10px 4px 10px;
    background-color: #333333;
    border-left: 5px solid #ccc;
}

.post-quote blockquote p{
    color: rgb(238, 238, 238);
    font-style: italic;
    font-size: 14px;
}

/* Custom style for code blocks */
pre code {
    font-size: 14px;
    overflow-x: auto;
}

/* Custom style for math blocks */
.mathjax {
    overflow-x: auto;
}