﻿html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.main-container {
    flex: 1;
    padding-top: 87px !important; /* Adjust this value based on the height of your header */
}

.container-fluid {
    flex: 1;
    font-size: 0.825rem;
}

.fixed-top {
    top: 87px !important;
    z-index: 1000;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    color: black !important;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.main-menu {
    font-size: 1rem;
}

.nav-tabs .nav-link {
    color: lightgray;
}

    .nav-underline .nav-link:hover,
    .nav-tabs .nav-link:hover {
        text-decoration: none !important;
    }

    .nav-tabs .nav-link.active {
        color: black;
        background-color: #f8f9fa;
        border-color: transparent !important; /* Add this */
    }

.nav-link img {
    vertical-align: sub;
}

.small-font {
    font-size: 0.825rem;
}

.small-select {
    font-size: 0.825rem;
    height: 2rem;
}

.core-text {
    color: #0dcaf0 !important;
}

.dark-border {
    border-color: #343a40;
}

.dark-header {
    color: white;
    background-color: #343a40;
}

.progress-dark {
    color: white;
    background-color: #343a40;
}

a {
    color: #0d6efd; /* Default link color */
    text-decoration: none; /* Remove underline */
}

    a:hover {
        color: #0a58ca; /* Color on hover */
        text-decoration: underline;
        text-underline-position: under;
    }

    a:active {
        color: #004085; /* Color when active */
    }

.hover-dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.card-image-height {
    height: 13.5rem;
}

.card-fixed-height {
    height: 34rem;
    overflow-y: auto; /* Enable vertical scrolling for the table */
}

.card-fixed-width {
    table-layout: fixed;
    border-collapse: separate;
    min-width: 100%;
}

.hidden-height {
    height: 0 !important;
    overflow: hidden;
}

.ebay-image {
    max-width: 200px;
    max-height: 200px;
}

.ebay-image-small {
    max-width: 3.5rem;
    max-height: 4rem;
}

.mobile-icon {
    display: none;
}

.desktop-icon {
    display: inline;
}

.mobile-control {
    max-width: 500px;
}

.cell-length {
    max-width: 150px;
}

.cell-length-short {
    width: 80px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) { /* iPhone */
    footer {
        position: sticky;
        z-index: 1030; /* Ensure the footer is above other elements */
    }

    .mobile-nav {
        width: 100%;
    }

    .small-font {
        font-size: 0.7rem;
    }

    .card-image-height {
        height: 9.5rem;
    }

    .ebay-image {
        max-width: 140px;
        max-height: 140px;
    }

    .mobile-icon {
        display: inline;
    }

    .desktop-icon {
        display: none;
    }

    .mobile-control {
        max-width: 100px;
    }

    .cell-length {
        max-width: 75px;
    }
}

@media (min-width: 481px) and (max-width: 820px) { /* iPad Portrait and iPhone Landscape */

    .card-image-height {
        height: 9.5rem;
    }

    .small-font {
        font-size: 0.7rem;
    }

    .ebay-image {
        max-width: 140px;
        max-height: 140px;
    }

    .mobile-icon {
        display: none;
    }

    .desktop-icon {
        display: inline;
    }

    .mobile-control {
        max-width: 250px;
    }

    .cell-length {
        max-width: 75px;
    }
}

@media (min-width: 821px) and (max-width: 1180px) { /* iPad Landscape */

    .card-image-height {
        height: 9.5rem;
    }

    .ebay-image {
        max-width: 140px;
        max-height: 140px;
    }

    .mobile-icon {
        display: none;
    }

    .desktop-icon {
        display: inline;
    }

    .mobile-control {
        max-width: 350px;
    }


    .cell-length {
        max-width: 100px;
    }
}

