:root {
    --primary: #f4f4f4;
    --dark-background: #262122;
    --radius: 1vh;
    --contact-link: #79A8D9;
    --beige: #F5F5DC;
    --beige-25: hsl(from var(--beige) h s l / .25);
    --beige-50: hsl(from var(--beige) h s l / .5);
    --beige-75: hsl(from var(--beige) h s l / .75);
    --orange-25: hsl(from orange h s l / .25);
    --orange-50: hsl(from orange h s l / .5);
    --orange-75: hsl(from orange h s l / .75);
}

html {
    font-size: clamp(14px, 4vw, 18px);
}

html,
body {
    position: relative;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--primary);
    height: 100%;
    height: 100dvh;
    width: 100%;
    width: 100dvw;
    background-image: linear-gradient(to top, #262122, #574C4E);
    background-position: fixed;
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

body {
    font-size: 1rem;
    background: transparent; /* allow the background image to be visible while allowing the body::after logo to be visible */
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url("../img/odva-seal-dark.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: .10;
    z-index: -1;
}

a {
    color: var(--primary);
    text-decoration: none;
    &:hover {
        text-decoration: underline;
    }
}

button {
    padding: 10px 20px;
    background-color: var(--dark-background);
    color: var(--orange-75);
    border: solid var(--orange-25) 1px;
    border-radius:  2vh;
    cursor: pointer;
    font-weight: 600;
    &:hover {
        background-color: var(--orange-50);
        color: var(--dark-background);
    }
}

input, select {
    padding: 10px;
    font-size: 1.25rem;
    margin-bottom: 20px;
    width: 100%;
    border-radius: var(--radius);
    box-sizing: border-box;
    min-width: 0;
}

input {
    border-radius: 1vh;
}

.container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-rows: 40px 1fr 40px;  /* header,content, footer */
    box-sizing: border-box;
}

.content {
    position: relative;
    padding: 0 20px 0 20px;
}

.county-lookup {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 10px;
    cursor: pointer;
    color: var(--contact-link);
    border: solid var(--contact-link) 1px;
    padding: 10px 20px;
    border-radius: 4vh;
    font-weight: 600;
    &:hover {
        background-color: var(--contact-link);
        color: var(--dark-background);
    }
    display: none;
}

.county-list {
    display: grid;
    grid-template-rows: repeat(auto-fill, minmax(40px, auto));
    gap: 10px;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    align-content: start;
    & p {
        padding-left: 10px;
        font-size: 1.2rem;
    }
}

header, footer {
    position: relative;
    padding: 10px;
}

header, footer {
    align-content: center;
    text-align: center;
}

header {
    color: var(--beige-50);
    font-size: 1rem;
    font-weight: bold;
    display: grid;
}

footer {
    font-size: 0.85rem;
    display: grid;
    place-content: center;
}

footer a {
    color: var(--orange-50);
}

.label {
    font-weight: normal;
    padding: 2px;
}

.title {
    font-weight: bold;
    color: var(--beige-50);
    margin-top: 2px;
    margin-bottom: 10px;
    font-size: 1rem !important;
}

.service-contact,
.odva-contact {
    background-color: hsl(from #262122 h s l / .90);
    border-radius: var(--radius);
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    padding: 18px;
    box-shadow: 2px 2px 5px rgb(0, 0, 0);
    color: var(--beige);
    box-sizing: border-box;
    & a {
        color: var(--contact-link);
    }
    & table {
        position: relative;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        box-sizing: border-box;
        table-layout: fixed;
    }
    & td {
        padding: 14px;
        border: dotted hsl(from #3d3d3d h s l / .75) 1px;
        word-wrap: break-word;
    }
    & tr td:first-child:not([colspan="2"]) {
        font-size: .90rem;
        vertical-align: top;
        text-align: right;
        width: 50px;
    }
    & td[colspan="2"] {
        text-align: center;
        color: var(--beige-50);
        font-size: 1rem;
    }
    tr:last-child td:last-child {
        border-bottom-right-radius: 10px;
    }
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: orange;
    border-bottom: var(--orange-25) 1px dotted;
    padding-bottom: 5px;
}

.error {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: hsl(from var(--dark-background) h s l / .75);
    display: flex;
    justify-content: center;
    align-items: center;
    &::after {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        content: '';
        background-image: url("../img/odva-seal-dark.svg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        opacity: .05;
        z-index: -1;
    }
}

.error__message {
    background-color: var(--dark-background);
    border-radius: var(--radius) 0;
    padding: 20px;
    width: 75%;
    min-width: 400px;
    border: 1px solid var(--orange-25);
    box-shadow: 2px 2px 10px rgb(0, 0, 0);
    & b {
        color: orange;
    }
}

.error-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--orange-75);
}

.error-message {
    font-size: 1rem;
    padding: 20px;  
}

.error-close {
    text-align: center;
    margin-top: 10px;
}


.zip-dialog {
    position: fixed;
    border: solid hsl(from var(--dark-background) h s l / .25) 1px;
    border-radius: var(--radius) 0;
    padding: 20px;
    background-color: var(--beige);
    box-shadow: 2px 2px 10px rgb(0, 0, 0);
    & .dialog-buttons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }
    & button {
        width: 100px;
        background-color: var(--beige);
        border-color: hsl(from var(--dark-background) h s l / .25);
        color: var(--dark-background);
        &:hover {
            background-color: var(--dark-background);
            color: var(--beige);
        }
    }
    & input {
        text-align: center;
        border: solid hsl(from var(--dark-background) h s l / .25) 1px;
    }
}