/*
 * Copyright (c) H2 Cognitive Designs LTD 2024.
 */
.asteriskField {
    display: none; /*honestly, this is an awful way to do this, but it works for now */
}

.no-animation {
    transition: none !important;
}

.hidden {
    display: none
}

.indicator img {
    margin-left: 5px;
    margin-right: 5px;
    height: 20px;
    aspect-ratio: 1;
}

.indicator.htmx-request ion-icon {
    display: none;
}

.indicator:not(.htmx-request) img {
    display: none;
}

.btn-square-left {
    border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0;
}

.btn-search-group {
    cursor: pointer;
}

.align-middle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav .nav-item button.active {
    background-color: transparent;
    color: var(--important-green) !important;
    font-weight: 600;
}

.nav .nav-item button {
    background-color: transparent;
    color: #000000 !important;
    border: none;
    position: relative;
    font-size: 1rem;

    transition: 0.5s;
}


.nav .nav-item button.active::after {
    content: "";
    border-right: 4px solid var(--important-green);
    height: 100%;
    position: absolute;
    right: -1px;
    top: 0;
    border-radius: 5px 0 0 5px;
}


main {
    flex-grow: 1;
    display: flex;
    flex-direction: column
}

.child_routines_container {
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.AGameFrame {
    height: 100%;
}

.footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1vh;
}

.main_body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}


/*.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {*/
/*    font-weight: 600;*/
/*    padding-bottom: 1rem;*/
/*}*/

.table-partial-success {
    background-image: repeating-linear-gradient(-45deg,
    #d1e7dd,
    #d1e7dd 9px,
    #ffffff 12px) !important;
}

.cookielink {
    font-size: 0.8rem;
    color: black;
    text-decoration: none !important;
    opacity: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 5px;
    bottom: 0;
    right: 0;
    padding: 5px;
}

.powered-by, .powered-by a {
    font-size: 0.8rem;
    color: black;
    text-decoration: none !important;
    opacity: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
    gap: 5px;
    bottom: 0;
    right: 0;
    padding: 5px;
}

.powered-by:hover, .powered-by a:hover {
    color: black;
    opacity: 1;
}

.powered-by img {
    height: 30px;
}


:root {
    --main-font: 'Noto Sans Display', sans-serif;
    --print-font: sans-serif;
    --main-color: #000000;
    --main-z-index: 10;
    --main-bg-color: rgba(211, 211, 211, 0.3);
    --important-green: #0f7576;
    --width: min(100vw, 1500px);
}

body {
    width: var(--width);
    margin: auto;
    height: 100vh;
}


@media print {
    body, .navbar-brand, footer, #outdated {
        font-family: var(--print-font);
    }
}

@media screen {
    body, .navbar-brand, footer, #outdated {
        font-family: var(--main-font);
    }
}

body, .navbar-brand, footer, #outdated {
    padding: calc(min(1px + 0.5vw, 5px));
    color: var(--main-color);

}


.navbar-brand img, .nav-image {
    max-height: calc(max(min(60px, 5.5vh), 30px));
    max-width: 280px;
}

.pad {
    padding-bottom: 10px;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}


.navbar-toggler, .navbar-collapse {
    z-index: var(--main-z-index);
}

.navbar > .container-fluid, .navbar-brand {
    flex-wrap: nowrap !important;
    flex-grow: 1;
}

.nav-item:hover {
    background-color: rgb(163, 213, 193);
    color: #FFFFFF;
    transition: 0.5s;
    border-radius: 5px;
}

.dropdown-item {
    text-align: end;
}

.lang {
    text-align: end;
}

.dropdown-menu {
    margin: 10px 0;
    border-radius: 0;
    border-color: rgba(0, 0, 0, 0.1);
}

#outdated {
    display: none;
    overflow: hidden;
    left: 0;
    position: fixed;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    width: 100%;
    z-index: 1500;
    padding: 0 24px 24px 0;
    background-color: #f25648;
    color: #ffffff;
}

#outdated #buttonUpdateBrowser {
    border: 2px solid #ffffff;
    color: #ffffff;
    cursor: pointer;
    display: block;
    margin: 30px auto 0;
    padding: 10px 20px;
    position: relative;
    text-decoration: none;
    width: 230px;
}

#outdated #buttonUpdateBrowser:hover {
    background-color: #ffffff;
    color: #f25648;
}

.reportChartContainer {
    width: 95%;
}

@media print {
    .reportChartContainer {
        width: 850px !important;
    }

    .pdf-hide {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .navbar-toggler-icon {
        background-size: calc(min(0.5rem + 2vw, 1.5rem)) calc(min(0.5rem + 2vw, 1.5rem));
    }

    .navbar-collapse {
        transition: transform 0.3s ease-out;
        transform: translateX(100%);
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        min-width: 40%;
        width: auto;
        backdrop-filter: blur(5px);
        max-width: 80%;
        overflow: hidden;
        background-color: var(--main-bg-color);
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    nav .navbar-nav, nav .nav-item, nav .dropdown-item, nav .lang {
        flex-direction: column-reverse;
        padding: 10px 10px;
        text-align: end;
    }
}

.progress, .progress-bar {
    height: 30px;
}

.progress {
    background-color: rgba(128, 128, 128, 0.08) !important;
}

.progress-bar,
.btn-primary {
    background-color: var(--important-green) !important;
    border-color: var(--important-green) !important;
    justify-content: space-evenly;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.366);
}

.btn-primary {
    color: #ffffff !important;
    font-weight: 600;
}

.btn-secondary {
    background-color: var(--important-green) !important;
    border-color: var(--important-green) !important;
}


.messagebox {
    z-index: 20;
    display: block;
    position: absolute;
    bottom: 0;
    width: var(--width);
    /* padding-top: 10px; */
    padding-left: 30px;
    padding-right: 30px;
}

.messagebox:hover {
    opacity: 0.9;
}

a .hash {
    display: none;
    color: inherit !important;
    text-decoration: none !important;
}

a .hider {
    color: inherit !important;
    text-decoration: none !important;
}

a:hover .hider {
    display: none;
    color: inherit !important;
    text-decoration: none !important;
}

a:hover .hash {
    display: inline;
    color: inherit !important;
    text-decoration: none !important;
}

.GameFrame, #ResultsFrame {
    width: 730px;
    height: 500px;
    display: block;
    transform-origin: center top;
}

.GameFrame_portrait {
    width: 500px !important;
    height: 550px;
    display: block;
    transform-origin: left top;
}

.RotateFrame, .RotateFrame_portrait {
    display: none;
    text-align: center;
    background-color: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    border: 0;
    width: 100vw;
    height: 100vh;
    font-style: normal;
    padding: 20px;
    margin: 0;
    font-size: 15px;
    position: absolute;
    z-index: 2;
}

.RotateFrame img, .RotateFrame_portrait img {
    height: 70px;
    margin-top: 20px;
    clear: both;
}

.pointer {
    cursor: pointer;
}


.loadingContainer {
    margin: auto;
    display: flex;
    align-content: center;
    height: 100px;
    width: fit-content;
}

.loading {
    margin: auto;
    flex: 1;
    align-content: center;
    background-color: #0f7576;
    width: 56px;
    height: 26.9px;
    background: radial-gradient(circle closest-side, rgba(17, 132, 134, 0.35) 90%, #0000) 0% 50%,
    radial-gradient(circle closest-side, rgba(17, 132, 134, 0.35) 90%, #0000) 50% 50%,
    radial-gradient(circle closest-side, rgba(17, 132, 134, 0.35) 90%, #0000) 100% 50%;
    background-size: calc(100% / 3) 13.4px;
    background-repeat: no-repeat;
    animation: dots-7ar3yq 1s infinite linear;
}

.loading-slim {
    margin: 10px;
}

.loading-slim:not(.htmx-request) {
    display: none;
}


.loading {
    margin: auto;
}

@keyframes dots-7ar3yq {
    20% {
        background-position: 0% 0%, 50% 50%, 100% 50%;
    }
    40% {
        background-position: 0% 100%, 50% 0%, 100% 50%;
    }
    60% {
        background-position: 0% 50%, 50% 100%, 100% 0%;
    }
    80% {
        background-position: 0% 50%, 50% 50%, 100% 100%;
    }
}

/* Callout */
.callout {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-left-width: .25rem;
    border-radius: .25rem;
}

.callout h4 {
    margin-top: 0;
    margin-bottom: .25rem;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout code {
    border-radius: .25rem;
}

.callout + .bs-callout {
    margin-top: -1rem;
}

.callout-primary {
    border-left-color: #007bff;
}

.callout-secondary {
    border-left-color: #6c757d;
}

.callout-success {
    border-left-color: #28a745;
}

.callout-danger {
    border-left-color: #dc3545;
}

.callout-warning {
    border-left-color: #ffc107;
}