html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


.custom-welcome-text {
    font-size: 1rem; /* Match the font size of other nav items */
    line-height: 1.5; /* Adjust line height to align vertically */
    display: inline-block; /* Ensure it behaves like other inline elements */
    vertical-align: middle; /* Align it vertically with other nav items */
    color: white;
}
.card {
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}
.card:hover {
        transform: scale(1.05);
    }
.card-title {
    font-weight: bold;
}
.nav-link.practice-api {
    color: white !important;
    background-color: #007bff; /* Bootstrap primary color */
    font-weight: bold;
    border-radius: 5px;
    padding: 5px 15px;
    transition: background-color 0.3s ease;
}

    .nav-link.practice-api:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }
.countdown-timer {
    font-size: 1.5rem; /* Increase font size for better visibility */
    font-weight: bold; /* Make the text bold */
    color: #007bff; /* Use Bootstrap's primary color */
    background-color: #f8f9fa; /* Light background for contrast */
    padding: 5px 10px; /* Add padding for spacing */
    border: 2px solid #007bff; /* Add a border matching the text color */
    border-radius: 5px; /* Rounded corners */
    display: inline-block; /* Ensure proper alignment */
    text-align: center; /* Center the text */
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transition for hover effects */
}

    .countdown-timer:hover {
        color: #ffffff; /* Change text color on hover */
        background-color: #0056b3; /* Darker blue background on hover */
    }
/* Custom styles for the navigation bar */
.navbar {
    background-color: #343a40; /* Dark background */
    border-bottom: 2px solid #007bff; /* Add a blue border */
}
.navbar-brand {
    color: #fff !important;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0 auto;
    white-space: nowrap;
}

.nav-link {
    color: #ffffff !important; /* White text for links */
    margin-right: 10px; /* Add spacing between links */
    transition: color 0.3s ease; /* Smooth hover effect */
}

    .nav-link:hover {
        color: #0066cc !important; /* Blue text on hover */
    }

.navbar-toggler {
    border-color: #ffffff; /* White border for the toggler */
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
#coursesContainer .btn {
    color: white !important; /* Ensure text is white */
    border-color: white; /* Optional: White border for outline buttons */
    background-color: transparent; /* Optional: Transparent background */
}

    #coursesContainer .btn:hover {
        color: white !important; /* Keep text white on hover */
        background-color: #0066cc; /* Set hover background color to #0066cc */
    }
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
     

body {
    display: flex;
    flex-direction: column;
    margin: 0; /* Remove default margin */

}

.footer {
    position: fixed !important;
    bottom: 0;
    width: 100%;
    background-color: #343a40;
    color: white;
    z-index: 10;
    height: 76px; /* Fixed height: 60px line-height + padding */
    line-height: 60px; /* Ensure text is vertically aligned */
    padding: 0; /* Remove additional padding */
}

.main-padding {
    padding-bottom: 85px !important; /* Match the footer height */
}


/* Alternate row colors for accordion items */
.accordion-item:nth-child(odd) {
    background-color: #f9f9f9; /* Light gray for odd rows */
}

.accordion-item:nth-child(even) {
    background-color: #ffffff; /* White for even rows */
}

.accordion-item {
    border: 1px solid #ddd; /* Add a border for better separation */
    border-radius: 5px; /* Slightly rounded corners */
    margin-bottom: 10px; /* Add spacing between items */
}
#questionsAccordion .accordion-item:nth-child(odd) {
    background-color: #f9f9f9;
}

#questionsAccordion .accordion-item:nth-child(even) {
    background-color: #ffffff;
}

/* Hover effect for accordion buttons */
.accordion-button:hover {
    background-color: #e9ecef; /* Light blue-gray on hover */
    color: #0056b3; /* Change text color to blue */
}

/* Highlight expanded accordion item */
.accordion-collapse.show {
    background-color: #e9f7ef; /* Light green for expanded items */
}
.infinity-loader-container {
    position: relative;
    width: 480px; /* Increased from 120px */
    height: 240px; /* Increased from 60px */
    margin-left:15px; 
    display: block;
}

.infinity-circle {
    position: absolute;
    width: 36px; /* Increased from 18px */
    height: 36px; /* Increased from 18px */
    border-radius: 50%;
    background-color: #343a40;
}

.infinity-moving-circle {
    position: absolute;
    width: 36px; /* Increased from 18px */
    height: 36px; /* Increased from 18px */
    border-radius: 50%;
    background-color: #0066CC;
}
#questionsLoading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px; /* or whatever height you want */
    width: 100%;
}
/* Header styles */
.custom-header {
    background: #212529;
    color: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
    gap: 0;
   width: 100%;
}
.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1 1 0;
    text-align: center;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
    gap: 0.5rem;
}
    .custom-header .navbar-brand {
        color: #fff !important;
        font-weight: bold;
        font-size: 1.3rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        white-space: nowrap;
    }

    .custom-header .btn-menu {
        color: #fff;
        border: none;
        background: transparent;
        font-size: 1.7rem;
        margin-left: 1rem;
        margin-right: 0.5rem;
    }

        .custom-header .btn-menu:focus {
            outline: none;
            box-shadow: none;
        }

    .custom-header .login-link {
        color: #fff !important;
        margin-right: 1.5rem;
    }

    .custom-header .logout-btn {
        margin-right: 1.5rem;
        margin-bottom: 0; /* Ensure no bottom margin */
        margin-top: 0; /* Ensure no top margin */
        align-self: center; /* Ensure vertical alignment in flex */
    }

/* Search box styles */
.search-form-header {
    display: flex;
    align-items: center;
    margin: 0 1rem 0 0;
}

.search-input-transition {
    width: 140px;
    min-width: 0;
    transition: box-shadow 0.2s, width 0.3s;
    box-shadow: none;
    background: #fff;
    color: #212529;
}

    .search-input-transition:focus,
    .search-input-transition.expanded {
        width: 320px;
        box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
        background: #fff;
        color: #212529;
        z-index: 10;
    }

@media (max-width: 576px) {
    .search-form-header {
        max-width: 180px;
    }

    .search-input-transition,
    .search-input-transition:focus,
    .search-input-transition.expanded {
        width: 100px;
        max-width: 180px;
    }
}
.offcanvas.bg-dark {
    background-color: #212529 !important;
    color: #fff;
}

.offcanvas .list-group-item {
    background-color: #212529 !important;
    color: #fff !important;
    border: none;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    /* Optionally, reduce left/right padding as well: */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    margin-bottom: 0; /* Remove any extra margin if present */
}

    .offcanvas .list-group-item a {
        color: #fff !important;
        text-decoration: none;
    }

        .offcanvas .list-group-item a:hover {
            text-decoration: underline;
            color: #0d6efd !important; /* Optional: blue on hover */
        }

.offcanvas .offcanvas-title,
.offcanvas .btn-close {
    color: #fff;
}

/* Custom width for the left offcanvas sidebar */
.offcanvas.offcanvas-start {
    width: 240px !important;   /* Adjust this value as needed */
    max-width: 80vw;           /* Responsive max width */
}
.page-content-wide {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.page-side-padding {
    padding-left: 2rem;
    padding-right: 2rem;
    /* Optional: add max-width for readability */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 576px) {
    .page-side-padding {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}