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%;
}

body {
    margin-bottom: 60px;
    background-color: white; /* Set background color */
    color: #545454; /* Set text color */
}

/* Default: show all four columns */
@media (max-width: 768px) {
    /* Hide second set of columns on small screens (mobile) */
    .desktop-only {
        display: none;
    }
}

@media (min-width: 769px) {
    /* Hide mobile-only columns on larger screens (desktop) */
    .mobile-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-visible td {
        display: block;
    }
}

.navbar-custom {
    background-color: #e4e2dd;
}

    .navbar-custom .navbar-brand,
    .navbar-custom .nav-link {
        color: #545454;
    }


/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Center both spinner and text */
    text-align: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    color: #545454; /* To match your desired text color for consistency */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nofloordected {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: block;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #e4e2dd;
    color: #545454;
    text-align: center;
    padding: 15px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none; /* Hide by default */
}

    .cookie-consent-banner p {
        margin: 0;
    }

    .cookie-consent-banner .btn {
        margin-left: 10px;
    }

.page-side-padding {
    padding-left: 150px;
    padding-right: 150px;
}

@media (min-width: 768px) {
    .logo-desktop {
        display: inline-block;
        width: 800px;
    }

    .logo-mobile {
        display: none;
    }
}

/* Show mobile logo on screens < 768px */
@media (max-width: 767.98px) {
    .logo-desktop {
        display: none;
    }

    .logo-mobile {
        display: inline-block;
        width: 100%; /* Make it fill the container width */
        height: auto; /* Preserve aspect ratio */
    }
}

/* Hide mobile banner on large screens, show on small screens */
@media (min-width: 768px) {
    .footer-banner-desktop {
        display: inline;
    }

    .footer-banner-mobile {
        display: none;
    }
}
/* Align images to the right in footer container */
footer .container {
    position: relative; /* Ensure positioning context */
}

footer img {
    position: absolute;
    right: 0;
    bottom: 0; /* optional, if you want it at bottom of footer */
    max-height: 80px; /* or your preferred size */
}

@media (max-width: 768px) { /* You can adjust max-width as needed for your definition of "mobile" */
    .hide-on-mobile {
        display: none;
    }
}


img {
    border: 2px solid transparent; /* reserve space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

    img:hover {
        border: 2px solid #db4a2b;
        box-shadow: 0 0 10px #db4a2b;
    }


.glow-effect {
    transition: box-shadow 0.3s ease, border 0.3s ease;
}

    .glow-effect:hover {
        border: 2px solid #db4a2b;
        box-shadow: 0 0 10px #db4a2b;
    }

.horizontally-centered-container {
    display: flex;
    justify-content: center;
}

    .horizontally-centered-container img {
        /* By default, maintain the image aspect ratio */
        max-width: 100%;
        height: auto;
    }

/* Media query to adjust image width for small screens */
@media (max-width: 700px) {
    .horizontally-centered-container img {
        width: 100%; /* Fit the image to the full width */
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: transparent;
}

.modal img {
    display: block;
    max-width: none; /* Display at original size */
    height: auto; /* Maintain aspect ratio */
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


.non-select {
    -webkit-touch-callout: none; /* iOS */
    user-select: none; /* Chrome, Firefox, Edge */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
}

button.icon-btn img {
    -webkit-touch-callout: none; /* iOS */
    user-select: none; /* Chrome, Firefox, Edge */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
}

body {
    touch-action: manipulation;
}

table {
    width: 100%; /* Or auto/max-content for some cases */
    max-width: 100%; /* Prevent table from exceeding view width */
    table-layout: auto; /* Let columns resize naturally */
    border-collapse: collapse; /* Or `separate` with spacing if needed */
}

td {
    max-width: 100%; /* Keep cell from overflowing */
    word-wrap: break-word; /* Wrap long words if necessary */
    overflow-wrap: break-word;
}
img {
    max-width: 100%; /* Prevent images from exceeding their container width */
    height: auto; /* Keep aspect ratio intact */
    display: block; /* Remove inline whitespace gaps, improve layout */
    box-sizing: border-box; /* Ensure borders/padding are included in size calculations */
}