html,
body {
    height: 100%;
}

/*Opera Fix*/
body:before {
    content: "";
    height: 100%;
    float: left;
    width: 0;
    margin-top: -32767px;/
}

#wrap {
    min-height: 100%;
}

#main {
    overflow: auto;
    padding-top: 15px;
    padding-bottom: 85px;
}

#footer {
    position: relative;
    margin-top: -70px;
    height: 70px;
    clear: both;
}

.background-image {
    /* Location of the image */
    background-image: url(../img/background.jpg);
    /* Background image is centered vertically and horizontally at all times */
    background-position: center center;
    /* Background image doesn't tile */
    background-repeat: no-repeat;
    /* Background image is fixed in the viewport so that it doesn't move when 
     the content's height is greater than the image's height */
    background-attachment: fixed;
    /* This is what makes the background image rescale based
     on the container's size */
    background-size: cover;
    /* Set a background color that will be displayed
     while the background image is loading */
    background-color: #464646;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'AdobeDevanagari-Bold' !important;
}

[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
    display: none !important;
}

td.compiler {
    width: 40%;
}

h1 {
    font-size: 36px;
}

h2,
h2>a {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 16px;
}

p,
small,
li,
a {
    font-size: 16px;
}

/* -------------------------------------

      Focus Outline & Link Underline

--------------------------------------*/

/* Ensure images inside links are block to ensure that the focus ring surrounds the image */
a img {
    display: block;
}

/* Default focus-visible for all elements: add a glowing box-shadow */
:focus-visible {
    box-shadow: rgba(255, 150, 0, 0.7) 0px 0px 10px 6px, rgb(255, 150, 0) 0px 0px 0px 2.5px;
    z-index: 9999;
    outline: none;
}

/* Enhanced focus-visible for links: scale up and add transition 
This makes it more visible when focusing on links that are images only */
a:focus-visible {
    box-shadow: rgba(255, 150, 0, 0.7) 0px 0px 10px 6px, rgb(255, 150, 0) 0px 0px 0px 2.5px !important;
    z-index: 9999;
    outline: none;
    transform: scale(1.05);
    /* Lifts the element up */
    transition: transform 0.2s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s;
}

/* Underline links with a bit of offset and thickness */
a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-underline-offset 0.2s cubic-bezier(.4, 0, .2, 1), text-decoration-thickness 0.2s, transform 0.2s cubic-bezier(.4, 0, .2, 1), box-shadow 0.2s;
}

/* Thicker underline on hover and focus-visible */
a:hover,
a:focus-visible {
    text-underline-offset: 1px;
    text-decoration-thickness: 2px;
    transition: text-underline-offset 0.2s cubic-bezier(.4, 0, .2, 1), text-decoration-thickness 0.2s;
}

/* Ensure parent containers allow overflow for focus-visible. 
This rule is necessary to prevent clipping of the focus ring. */
:has(a:focus-visible) {
    overflow: visible !important;
}

/* ----------------------

      New Tab Icon

------------------------*/
/* Ensure that links with icons (like external links) have some spacing between text and icon */
a {
    display: inline-flex;
    gap: 0.15em;
}
footer a {
    display: inline-flex !important;
    gap: 0.15em;
}
/* Indicate links that open in a new tab/window 
Adds an icon 'arrow-up-right-from-square' from font awesome to the end of the link
Adds text to indicate the link opens in a new tab and hides it (so that screen reader users know that it opens in a new tab) */
a[target="_blank"]::after {
    content: ' (opens in a new tab)';
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NDAgNjQwIj48IS0tIUZvbnQgQXdlc29tZSBGcmVlIHY3LjAuMSBieSBAZm9udGF3ZXNvbWUgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbSBMaWNlbnNlIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20vbGljZW5zZS9mcmVlIENvcHlyaWdodCAyMDI1IEZvbnRpY29ucywgSW5jLi0tPjxwYXRoIGZpbGw9IiMwMDAwMDAiIGQ9Ik0zODQgNjRDMzY2LjMgNjQgMzUyIDc4LjMgMzUyIDk2QzM1MiAxMTMuNyAzNjYuMyAxMjggMzg0I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bnRpY29ucywgSW5jLi0tPjxwYXRoIGZpbGw9IiMwMDAwMDAiIGQ9Ik0zODQgNjRDMzY2LjMgNjQgMzUyIDc4LjMgMzUyIDk2QzM1MiAxMTMuNyAzNjYuMyAxMjggMzg0IDEyOEw0NjYuNyAxMjhMMjY1LjMgMzI5LjRDMjUyLjggMzQxLjkgMjUyLjggMzYyLjIgMjY1LjMgMzc0LjdDMjc3LjggMzg3LjIgMjk4LjEgMzg3LjIgMzEwLjYgMzc0LjdMNTEyIDE3My4zTDUxMiAyNTZDNTEyIDI3My43IDUyNi4zIDI4OCA1NDQgMjg4QzU2MS43IDI4OCA1NzYgMjczLjcgNTc2IDI1Nkw1NzYgOTZDNTc2IDc4LjMgNTYxLjcgNjQgNTQ0IDY0TDM4NCA2NHpNMTQ0IDE2MEM5OS44IDE2MCA2NCAxOTUuOCA2NCAyNDBMNjQgNDk2QzY0IDU0MC4yIDk5LjggNTc2IDE0NCA1NzZMNDAwIDU3NkM0NDQuMiA1NzYgNDgwIDU0MC4yIDQ4MCA0OTZMNDgwIDQxNkM0ODAgMzk4LjMgNDY1LjcgMzg0IDQ0OCAzODRDNDMwLjMgMzg0IDQxNiAzOTguMyA0MTYgNDE2TDQxNiA0OTZDNDE2IDUwNC44IDQwOC44IDUxMiA0MDAgNTEyTDE0NCA1MTJDMTM1LjIgNTEyIDEyOCA1MDQuOCAxMjggNDk2TDEyOCAyNDBDMTI4IDIzMS4yIDEzNS4yIDIyNCAxNDQgMjI0TDIyNCAyMjRDMjQxLjcgMjI0IDI1NiAyMDkuNyAyNTYgMTkyQzI1NiAxNzQuMyAyNDEuNyAxNjAgMjI0IDE2MEwxNDQgMTYweiIvPjwvc3ZnPg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: middle;

    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    transform: translateY(3.5px);
}

.footer a[target="_blank"]:has(img)::after {
    transform: translateY(0px);
}

/* Slight icon lift on hover and focus-visible */
.footer a[target="_blank"]:hover[target="_blank"]::after,
.footer a[target="_blank"]:focus-visible[target="_blank"]::after {
    transform: translate(1px, -2px);
    transition: transform  0.2s cubic-bezier(.4, 0, .2, 1);
}

a:hover[target="_blank"]::after,
a:focus-visible[target="_blank"]::after {
    transform: translate(1px, 1.5px);
    transition: transform  0.2s cubic-bezier(.4, 0, .2, 1);
}

/* -----------------------------

      Screen Reader Only Text

------------------------------*/
.sr-only {
    position: absolute !important;
    clip-path: circle(0%);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    width: 1px;
    word-wrap: normal !important;
}

.sr-only:hover,
.sr-only:active,
.sr-only:focus {
    z-index: 100000;
    top: 5px;
    left: 5px;
    display: block;
    width: auto;
    height: auto;
    text-decoration: none;
    color: #00315F;
    border-radius: 3px;
    background-color: #fff;
    font-size: 12pt;
    font-weight: bold;
    line-height: normal;
    clip-path: unset;
    clip: unset;
    padding: 8px;
    text-wrap: nowrap;
}