﻿@media (prefers-color-scheme: dark) {
    img {
        filter: brightness(.8) contrast(1.2);
    }

    body, .usa-radio {
        background-color: #000;
    }

    body {
        color-scheme: dark;
    }

    body, .usa-logo a, .usa-radio__label, .usa-input, .usa-textarea, .usa-select, .usa-combo-box__input, .usa-combo-box__list-option {
        color: #ccc;
    }

    .usa-hint--required {
        color: #ff0c0c;
    }

    .usa-combo-box button {
        filter: invert(100%) sepia(100%) saturate(1%) hue-rotate(124deg) brightness(101%) contrast(101%)
    }

    .usa-input, .usa-textarea, .usa-select, .usa-combo-box__input, .usa-combo-box__list-option {
        background-color: #333;
    }

    .usa-select:enabled {
        background-image: url(../img/unfold_more-dark.svg),linear-gradient(transparent,transparent);
    }

    .usa-footer__return-to-top a:visited {
        color: #74b335;
    }
}

.skip-to-content-link {
    left: 50%;
    position: absolute;
    transform: translateY(-100%);
    transition: transform 0.3s;
}

    .skip-to-content-link:focus {
        transform: translateY(0%);
    }

.usa-footer__secondary-section {
    color: #bbb;
    background-color: #0a0a12;
}

@media (max-width:640px) {
    #foot {
        justify-content: center;
    }
}

.usa-footer__logo .grid-col-auto:first-of-type {
    display: flex;
    align-items: center;
}

.usa-footer__logo .agency {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    margin: -7px 0 0 0
}

    .usa-footer__logo .agency h1, .usa-footer__logo .agency h3 {
        color: #bbb;
        text-transform: uppercase
    }

    .usa-footer__logo .agency h1 {
        font-size: 3.9em;
        font-weight: 600;
        font-family: "Arial Black",sans-serif,Arial,Helvetica;
        text-shadow: 0 4px 3px rgba(0,0,0,0.4),0 8px 13px rgba(0,0,0,0.1),0 18px 23px rgba(0,0,0,0.1);
        margin: 1px 0 0;
        color: #fff
    }

    .usa-footer__logo .agency h3 {
        font-size: 1.6em;
        max-width: 10.1em;
        letter-spacing: 1px;
        font-weight: 300;
        line-height: 1.1em;
        margin: 4px 0 0 7px;
        text-shadow: 0 4px 3px rgba(0,0,0,0.4),0 8px 13px rgba(0,0,0,0.1),0 18px 23px rgba(0,0,0,0.1)
    }

.usa-footer__logo-heading {
    text-align: right;
    font-weight: normal;
}

.social-icons ul {
    list-style-type: none;
    padding: 0;
    margin: 0.5em 0 0;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.social-icons li:not(:last-of-type) {
    margin: 0 12px 0 0;
}

.social-icons svg {
    color: #337ab7;
    width: 30px;
    height: 30px;
    fill: #bbb;
}

.social-icons a :is(path, circle) {
    transition: fill .3s ease-in;
}

.social-icons a:hover .facebook-icon {
    fill: #4464a7;
}

.social-icons a:hover .twitter-icon {
    fill: #6cadde;
}

.social-icons a:hover .youtube-icon {
    fill: #d32f2f;
}

.social-icons a:hover .flickr-icon {
    fill: #ff0084;
}

.social-icons a:hover .linkedin-icon {
    fill: #0077b5;
}

.social-icons a:hover .instagram-icon {
    fill: #be0089;
}

abbr.usa-hint--required {
    text-decoration: none;
}

/* specific modifications */
@media (min-width:640px) {
    .usa-header .usa-navbar {
        width: 50%;
    }
}

#open-privacy-policy {
    display: none;
}

.usa-header img {
    object-fit: scale-down;
}

#delay-warning {
    font-weight: normal;
    margin-top: unset;
}

.val-error {
    color: #f00;
}

    .val-error::before {
        content: "\26A0  ";
    }

    .val-error:empty::before {
        content: unset;
    }

fieldset:is(.usa-fieldset,.dto) {
    margin-top: 1em;
}

.usa-logo__text a {
    display: flex;
    align-items: center;
}

.usa-logo__text a img {
    object-fit: scale-down;
    max-height: 3rem;
    margin-right: 1rem;
}

button[type="submit"] {
    margin-top: 1em;
}

.usa-label {
    font-weight: bold;
}

fieldset.dto {
    border: none;
    padding: 0;
}

fieldset.dto legend {
    margin-bottom: 0.251em;
}

div.dto {
    display: flex;
    flex-wrap: wrap;
}
    div.dto div.dto-section {
        display: flex;
        flex-direction: column;
    }

    div.dto div.dto-part {
        display: flex;
        flex-wrap: nowrap;
        align-content: center;
        align-items: center;
        margin-bottom: 0.5em;
        margin-right: 1em;
    }

div.dto-label {
    display: flex;
    flex-direction: column;
}

div.dto .usa-label {
    margin-top: unset;
    margin-right: 0.5em;
}

.dto .usa-input {
    width: 8em;
}

.dto-timezone label {
    margin-top: unset;
}

label[aria-disabled="true"], textarea[disabled] {
    filter: opacity(70%) brightness(80%);
}

label[aria-disabled="true"] .usa-hint--required {
    display: none;
}

#captcha {
    margin-top: 1em;
}