﻿html {
    font-size: 10px;
}

@media (min-width: 768px) {
    html {
        font-size: 11px;
    }
}

.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;
}

.btn-xs {
    padding: 0.1rem 0.4rem !important;
    font-size: 0.75rem !important;
}

html {
    position: relative;
    min-height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
}

.fontfortable {
    font-size: 12px !important;
}

.bordered-Color {
    border-color: black !important;
}


.underline {
    border-bottom: 2px black solid;
    font-weight: 700;
    color: #005C2C;
}

.myborder {
    border: 2px black solid;
    font-weight: 700;
    color: #005C2C;
}

.custom-placeholder::placeholder {
    color: #333 !important; /* Replace #333 with your preferred dark color */
    opacity: 1 !important; /* Ensures the color is fully opaque */
}

.form-control, .form-select {
    border-radius: 0 !important;
    border-color: darkblue;
}

.fontsmall {
    font-size: 12px !important;
    font-weight: bold !important;
}

.fontprint {
    font-size: 11px !important;
    color: black !important;
}

.fontExtraSmall {
    font-size: 8px !important;
    font-weight: bold !important;
}

.fontDashboard {
    font-size: 14px !important;
    font-weight: bold !important;
}

.fontWeightHigh {
    font-weight: 900;
}

.space table, tr, td {
    margin: 0px !important;
    padding: 1px !important;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9) url('../images/loader.gif') no-repeat center center;
    z-index: 10000;
    display: none; /* Hidden by default */
}

@media print {
    /* Ensure the page is formatted as A4 */
    @page {
        size: A4; /* A4 dimensions: 210mm x 297mm */
        margin: 0.5cm; /* Adjust margins as needed */
    }

    /* Fit all content within one page */
    body {
        margin: 0;
        padding: 0;
        transform-origin: top left;
        transform: scale(calc(1 / var(--scale-factor)));
    }

    /* Calculate scaling dynamically */
    :root {
        --scale-factor: calc(var(--content-height) / 297px);
    }
}


.justify-text {
    text-align: justify;
}

/* view button */
.view-question .btn-text {
    display: none;
    margin-left: 5px; /* spacing between icon and text */
    white-space: nowrap;
}

.view-question:hover .btn-text {
    display: inline;
}
/* edit button */
.edit-link .btn-text {
    display: none;
    margin-left: 5px; /* spacing between icon and text */
    white-space: nowrap;
}

.edit-link:hover .btn-text {
    display: inline;
}

table.dataTable {
    font-size: 10px !important; /* change to 12px or 11px if needed */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    will-change: transform;
}

/* NEW animation (no delay start) */
@keyframes scroll-left {
    from {
        transform: translateX(0); /* start visible */
    }

    to {
        transform: translateX(-50%);
    }
}

/* Pause on hover */
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}