﻿html {
    padding: 0;
    display: table;
    margin: auto;
}

header {
    font-size: 1.5em;
    font-weight: bold;
    padding-bottom: 10px;
    text-align: center;
    margin: auto;
}

    header a {
        color: black;
        text-decoration: none;
        width: 100%;
        align-content: center;
    }

body {
    background-image: url("../images/courthouse_background.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
    font-size: 1.0rem;
    font-family: "Calibri", Verdana, Helvetica, Sans-Serif;
    vertical-align: middle;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px;
    }
}

label {
    float: left;
    width: 12rem;
}

hr {
    width: 100%;
    color: blue;
}

.label_large {
    float: left;
    width: 20rem;
}

#layout {
    display: flex;
    flex-direction: column;
}

#content {
    min-height: 500px;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

#right_pad {
    width: 200px;
}

.nav {
    font-size: 1.2em;
    min-width: 220px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
}

    .nav ul {
        padding: 0px;
    }

        .nav ul li {
            list-style: none;
            text-align: left;
            margin: 0;
        }

            .nav ul li a {
                display: block;
                text-decoration: none;
                color: red;
            }

                .nav ul li a:hover {
                    text-shadow: 1px 1px 0 #000;
                }

#instructions {
    margin: auto;
    width: 100%;
}

#courthouse {
    float: right;
    width: 128px;
}

.data_data {
    font-weight: bold;
    display: flex;
}

table {
    border-style: solid;
    border-width: 1px;
    border-color: black;
    width: 800px;
    background-color: lightgray;
}

.float_right {
    float: right;
}

.question_label {
    float: left;
    width: 170px;
}

.button {
    background-color: #2563EB;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    height: 4rem;
    min-width: 44px;
}

input[type=submit] {
    background-color: #2563EB;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    height: 4rem;
    min-width: 44px;
}

    input[type=submit]:disabled {
        background-color: lightgray !important;
        color: black;
    }

input[type=text], input[type=date], input[type=tel], input[type=email], textarea, input[type=number] {
    border-color: #2563EB;
    border-radius: 5px;
    width: 20rem;
    height: 2rem;
}

input[type=checkbox] {
    min-width: 2rem;
    min-height: 2rem;
}

input[type=radio] {
    min-width: 1.25rem;
    min-height: 1.25rem;
}

#questionaire_div {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    #questionaire_div div {
        margin: auto;
    }

.flex {
    display: flex;
}

.question_yes_no {
    min-width: 470px;
}

.compensation_item {
    min-width: 600px;
    max-width: 600px !important;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
    float: right;
}

.input_small {
    max-width: 52px;
    margin-right: 260px;
}

.input_grid {
    max-width: 100px;
}

td, th {
    text-align: center;
    max-width: 110px;
}

select {
    height: 3em;
    border-radius: 4px;
}

.bold {
    font-weight: bold;
}

.center_section {
    justify-content: center;
    align-content: center;
}

.left_offset {
    float: right;
    margin-right: 10px;
    display: flex;
    width: 100%;
    flex-direction: row-reverse;
    justify-content: flex-end;
    vertical-align: top;
}

.dashed_line {
    width: 80%;
    border-top-color: black;
    border-top-style: dashed;
    border-top-width: 1px;
}

#error_message {
    font-size: 1.5em;
    font-weight: bold;
    color: red;
    text-align: center;
    width: 100%;
}

#powered_by {
    font-size: 0.8em;
    color: #767676;
}

#excusal_div {
    display: flex;
    flex-direction: column;
}

    #excusal_div div {
        margin: auto;
    }

#juror_info_div {
    display: flex;
    flex-direction: column;
}

    #juror_info_div div {
        margin: auto;
    }

input[type="file"] {
    opacity: 0;
    -moz-opacity: 0;
    /* IE 5-7 */
    filter: alpha(Opacity=0);
    /* Safari  */
    -khtml-opacity: 0;
    /* IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

.input-file {
    background-color: #2563EB;
    padding-top: 1rem;
    padding-left: 4rem;
    padding-right: 4rem;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    text-decoration: none;
    margin: 1rem;
    box-shadow: lightgray -3px -3px inset;
}

.summons_info {
    color: #cc0000;
    font-size: large;
    max-width: 350px;
}

.compensation_donation_option {
    min-width: 1rem !important;
    min-height: 1rem !important;
}

#available_dates {
    display: flex;
    flex-direction: column;
    margin-left: 2em;
}

    #available_dates div {
        display: flex;
    }

        #available_dates div span {
            padding-top: 10px;
            font-size: 1.5em;
            display: flex;
        }

#questionnaire_content div {
    margin: auto;
    max-width: 700px;
}

.custom-border {
    border: 1px solid black /* Adjust the border color as needed */
}

.wider-table {
    width: 70%;
    table-layout: fixed;
}

.center-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =============================================
   ADA / WCAG 2.1 Additions
   ============================================= */

/* Skip navigation link - visually hidden until focused */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    background: #2563EB;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 6px 0;
    font-weight: bold;
    font-size: 1rem;
    z-index: 9999;
    text-decoration: none;
}

    .skip-nav:focus {
        top: 0;
    }

/* Visible focus ring for keyboard navigation */
:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 2px;
}

/* Header h1 reset - inherits header's existing size/weight */
header h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
    padding: 0;
    display: inline;
}

/* High contrast mode - remove background image */
@media (prefers-contrast: more) {
    body {
        background-image: none;
        background-color: white;
    }
}

/* Reduced motion - pause any animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
