/*
 * Copyright (c)  Tessellaris Pty. Ltd. 2024.
 */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, input, select, option {
    margin: 0;
    padding: 0;
    border-color: #000;
    border-width: 1px;
    font: inherit;
    vertical-align: baseline;
    line-height: 1;
    font-family: Arial, SansSerif, serif;
    font-size: 16px;
}

@media only screen and (max-width: 921px) {
    html, body, div, span, applet, object, iframe,
    h1, h2, h3, h4, h5, h6, p, blockquote, pre,
    a, abbr, acronym, address, big, cite, code,
    del, dfn, em, img, ins, kbd, q, s, samp,
    small, strike, strong, sub, sup, tt, var,
    b, u, i, center,
    dl, dt, dd, ol, ul, li,
    fieldset, form, label, legend,
    table, caption, tbody, tfoot, thead, tr, th, td,
    article, aside, canvas, details, embed,
    figure, figcaption, footer, header, hgroup,
    menu, nav, output, ruby, section, summary,
    time, mark, audio, video, input, select, option {
        font-size: 14px;
    }
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}


html, body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body.wait, body.wait * {
    cursor: wait !important;
}

.body {
    /*flex: 1;*/
}

#footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px; /* Set desired footer height */
}

ul {
    list-style: circle;
}

ol {
    list-style: decimal;
}

em {
    font-style: italic;
}

u {
    text-decoration: underline;
    font-size: inherit;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h1 {
    font-size: 30px;
    margin-bottom: 5px;
    margin-top: 30px;
}

@media only screen and (max-width: 921px) {
    h1 {
        font-size: 20px;
        margin-bottom: 5px;
        margin-top: 10px;
    }
}


h2 {
    font-size: 20px;
    margin-bottom: 5px;
    margin-top: 25px;
}

h3 {
    font-size: 17px;
    margin-bottom: 4px;
    margin-top: 15px;
}

p {
    margin-bottom: 10px;
    margin-left: 5px;
    line-height: 1.3;
    font-size: 16px;
}

@media only screen and (max-width: 921px) {
    p {
        margin-bottom: 6px;
        margin-left: 3px;
        line-height: 1.0;
        font-size: 14px;
    }
}

button {
    margin-bottom: 5px;
    padding: 5px;
    line-height: 1.0;
    font-size: 16px;
    background-color: #ddd;
    border-radius: 5px;
    border-width: 2px;
    cursor: pointer;
}

@media only screen and (max-width: 921px) {
    button {
        margin-bottom: 3px;
        padding: 1px;
        line-height: 1.0;
        font-size: 12px;
        background-color: #ddd;
        border-radius: 5px;
        border-width: 2px;
        cursor: pointer;
    }
}

button:focus {
    border-width: 3px;
}

ol, ul {
    margin-top: 14px;
    margin-bottom: 14px;
    margin-left: 20px;
}

li {
    margin-bottom: 5px;
    margin-left: 20px;
}

@media only screen and (max-width: 921px) {
    li {
        margin-bottom: 3px;
        margin-left: 0;
    }
}

b {
    font-weight: bold;
}

code {
    white-space: nowrap;
    font-family: serif;
    font-size: 16px;
    background-color: white;
    border-style: solid;
    border-color: #888;
    border-width: 0;
    padding-left: 3px;
    padding-right: 3px;
}

math {
    font-size: 20px;
}

@media only screen and (max-width: 921px) {
    math {
        font-size: 18px;
    }
}


mi {
    padding-left: 5px;
}

mn {
    padding-left: 4px;
    padding-right: 4px;
}

mn.snuggle-right {
    padding-right: 0;
}

img.qr {
    height: 150px;
}

.body {
    width: 95%;
    background-color: #f8f8f8;
    margin: 0 auto;
    min-height: 90vh;
}

@media only screen and (max-width: 921px) {
    .body {
        width: 100%;
        background-color: #fff;
        margin: 0;
        min-height: 90%;
        padding: 0 3px 0 3px;
    }
}

@media only screen and (max-width: 921px) {
    #content {
        margin-left: 3px;
    }
}

.screen-small {
    display: none;
}

@media only screen and (max-width: 921px) {
    .screen-big {
        display: none;
    }

    .screen-small {
        display: block;
    }
}

/*noinspection CssUnusedSymbol*/
#footer {
    border-color: #888888;
    border-top-style: solid;
    border-width: 1px;
    background-color: #eee;
    padding: 5px;
}

#footer p {
    font-size: 10px;
}

#footer a {
    font-size: 15px;
    color: black;
    text-decoration: none;
    margin-left: 10px;
    margin-right: 10px;
}

#footer a:hover {
    text-decoration-line: underline;
}

/*noinspection CssUnusedSymbol*/
#footer-links {
    margin: auto;
    width: 100%;
}

@media only screen and (max-width: 921px) {
    #footer-links {
        margin: auto;
        width: 95%;
    }

    #footer a {
        font-size: 10px;
        margin-left: 2px;
        margin-right: 2px;
    }
}

#top-div1 {
    display: flex;
    margin-bottom: 10px;
}

@media only screen and (max-width: 921px) {
    #top-div1 {
        margin-bottom: 0;
    }

    #top-div2 {
        margin-bottom: 10px;
    }

    #top-div2 h1 {
        margin-top: 0;
    }
}

/*noinspection CssUnusedSymbol*/
#banner-img {
    width: 300px;
}

@media only screen and (max-width: 921px) {
    #banner-img {
        width: 150px;
    }
}

/*noinspection CssUnusedSymbol*/
#top-div1 h1 {
    margin-left: 20px;
}

/*noinspection CssUnusedSymbol*/
.large-banner #banner-img {
    width: 100%;
    margin-bottom: 10px;
}

/*noinspection CssUnusedSymbol*/
.form-fields-div {
    display: grid;
    grid-template-columns: auto 100fr;
    column-gap: 10px;
    row-gap: 10px;
}

/*noinspection CssUnusedSymbol*/
.form-readonly {
    background-color: #ddd;
}

/*noinspection CssUnusedSymbol*/
.form-label {
    padding: 3px;
    text-align: right;
}

/*noinspection CssUnusedSymbol*/
.form-input {
    display: inline;
    padding: 3px;
}

.form-submit-right {
    float: right;
}

input[type='checkbox'] {
    height: 16px;
    width: 16px;
}

label input {
    margin-right: 5px;
}

/*noinspection CssUnusedSymbol*/
.form-select {
    display: inline;
    padding: 3px;
}

/*noinspection CssUnusedSymbol*/
.form-button-div {
    margin-top: 5px;
    margin-left: 30px;
    grid-column: span 1/-1;
}

/*noinspection CssUnusedSymbol*/
.form-submit-button {
    margin-right: 10px;
}

.form-error {
    display: inline-block;
    color: red;
}

.page-warning {
    color: red;
}

.warning {
    background-color: yellow;
    color: red;
    font-size: 20px;
    width: fit-content;
    padding: 5px;
    border-radius: 10px;
}

.button-link {
    display: inline-block;
    font-size: 20px;
    text-decoration: none;
    background-color: #8f8;
    border-radius: 5px;
    margin-bottom: 10px;
    margin-left: 20px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
    padding: 5px;
}

.record-button-link {
    display: block;
    width: fit-content;
    font-size: 15px;
    text-decoration: none;
    background-color: lightgray;
    color: red;
    border-radius: 5px;
    margin: 3px;
    padding: 3px;
    border-style: solid;
    border-width: 1px;
    border-color: black;
}

@media only screen and (max-width: 921px) {
    .button-link {
        font-size: 13px;
        margin-bottom: 10px;
        margin-left: 3px;
        padding: 5px;
    }
}

.two-column-text-div {
    display: grid;
    grid-template-columns: 45% 45%;
    grid-column-gap: 10%;
}

@media only screen and (max-width: 921px) {
    .two-column-text-div {
        grid-template-columns: 50% 50%;
        grid-column-gap: 5px
    }
}

.explain-div {
    padding: 5px;
    background-color: #dbedfc;
    border-style: solid;
    border-radius: 5px;
    border-width: 1px;
    border-color: #448;
}

@media only screen and (max-width: 921px) {
    .explain-div {
        padding: 2px;
        font-size: 8px;
    }

    .explain-div p {
        font-size: 12px;
    }

    .explain-div li {
        font-size: 12px;
    }

    .explain-div a {
        font-size: 12px;
    }
}

th {
    font-size: 16px;
    font-weight: bold;
    padding: 6px;
    border-style: solid;
    border-color: black;
    border-width: 1px;
}

.sticky-table-div {
    max-height: 90vh;
    overflow: auto;
    border: 2px solid #888;
}

.sticky-table-div table {
    width: 100%;
}

.sticky-table-div th {
    position: sticky;
    top: 0;
    background: #eee;
    z-index: 2;
    vertical-align: bottom;
    padding: 8px;
}

/* Body Styling */
.sticky-table-div td {
    padding: 8px;
}

td {
    font-size: 14px;
    font-weight: normal;
    padding: 6px;
    border-style: solid;
    border-color: black;
    border-width: 1px;
}

table {
    border-style: none;
    border-color: black;
    border-width: 1px;
    margin-left: 20px;
}

table thead {
    background-color: #f0f0f0;
}

/*noinspection CssUnusedSymbol*/
table .table-empty-row {
    text-align: center;
}

.error-text {
    color: red;
}

.hide {
    display: none !important;
}

.right-helplet, .left-helplet {
    padding: 5px;
    min-height: 75px;
    width: 200px;
    background: #ffc850;
    position: absolute;
    cursor: pointer;
    border-radius: 10px;
    box-sizing: border-box;
}

.right-helplet {
    margin-left: 20px;
    border-top-left-radius: 0;
}

.left-helplet {
    margin-right: 20px;
    border-top-right-radius: 0;
}

/*noinspection CssReplaceWithShorthandSafely*/
.right-helplet:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 0;
    height: 0;
    border: 20px solid transparent;
    border-right-color: #ffc850;
    border-left: 0;
    border-top: 0;
    margin-top: -10px;
    margin-left: -20px;
}

.left-helplet:before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 0;
    height: 0;
    border: 0 solid transparent;
    border-bottom-width: 20px;
    border-left: 20px #ffc850;
    margin-top: -10px;
    margin-right: -20px;
}

.helplet-trigger {
    background-color: #ffc850;
    border: none;
    width: 10px;
    padding: 0;
    font-size: 13px;
}

.helplet-span {
    white-space: nowrap;
}

#blocker {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    content: ' ';
    background: rgba(0, 0, 0, .5);
}

.modal {
    position: absolute;
    z-index: 100;
}

button img, .button-img {
    height: 25px;
}

button.table-button {
    padding: 0;
}

tr:target {
    background-color: lightblue;
}

td:target {
    background-color: lightblue;
}

button#record-start {
    color: red;
    padding: 0;
    background-color: #FFFFFF00;
    border-style: none;
    font-size: 16px;
}

#record-stop, #record-rerun, #record-next, #record-complete {
    color: red;
    padding: 0;
    background-color: #FFFFFF00;
    border-style: none;
    font-size: 25px;
}

#record-oops {
    color: red;
    font-size: 40px;
}

#record-start-div {
    background-color: #FFC0C0;
    display: none;
    margin-right: 3px;
    padding: 3px;
    border-style: solid;
    border-color: red;
    border-width: 2px;
    border-radius: 3px;
    width: fit-content;
}

#record-start-div button {
    width: fit-content;
    margin-bottom: 0;
}

#record-name {
    width: 40em;
}

#record-div {
    background-color: white;
    border-color: gray;
    border-style: outset;
    border-width: 2px;
    margin-bottom: 2px;
}

#record-test-name {
    margin-left: 10px;
}

.lozenge {
    color: white;
    background-color: #347134;
    width: fit-content;
    padding: 3px;
    border-radius: 10px;
}

#tickets-needing-action-div {
    background-color: #cbe2fa;
    padding: 5px;
    border-radius: 10px;
    width: fit-content;
    border-style: solid;
    border-width: 2px;
    border-color: #349eea;
}

#tickets-needing-action-div h1 {
    margin-top: 0;
}

#tickets-needing-action-div table tbody td {
    border-style: none;
}
