* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Courier New', Courier, monospace;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

a {
    color: #000
}

form,
#success,
#problem {
    width: 28rem;
    max-width: 90vw;
    align-self: center;
    padding: 3rem 2rem;
    border: 2px solid grey;
    font-weight: 300;
}

fieldset {
    padding: 0.5em 0;
    border: none;
    display: block;
    position: relative;
}

label {
    display: block;
    font-size: 110%;
}

label:after {
    content: ": "
}

input,
textarea {
    box-sizing: border-box;
    outline: none;
    background-color: #eee;
    width: 100%;
    font-family: 'Roboto', Arial;
    font-size: 130%;
    padding: 0.5rem 0.1rem;
    border: none;
    border-bottom: 2px solid grey
}

input[type=submit] {
    float: right;
    width: auto;
    padding-left: 1em;
    padding-right: 1em;
    cursor: pointer
}

input[type=submit]:active {
    border-top: 2px solid #bbb;
    border-bottom: none
}

.g-recaptcha {
    max-width: 100%;
    height: 78px;
    background-image: url(infinity.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20%
}

.g-recaptcha>div {
    margin: 0 auto;
}

#captcha_error {
    display: none;
    text-align: center;
    color: red;
}

#cancel {
    background-color: #fff;
    color: #f44336;
    border-bottom: none;
    width: auto;
    padding-left: 1em;
    padding-right: 1em;
    cursor: pointer
}

#cancel:active {
    border-top: 2px solid transparent
}

#success,
#problem {
    width: auto;
    font-weight: bold;
}

#success {
    background-color: #c5e1a5;
    border-color: #8bc34a;
    color: #33691e
}

#problem {
    background-color: #ef9a9a;
    border-color: #f44336;
    color: #b71c1c
}

#sending {
    position: absolute;
    right: 2.1em;
    height: 70%;
    display: none;
}

@media screen and (max-width: 480px) {
    form {
        border: none;
        padding: 0;
    }
}

@media (prefers-color-scheme: dark) {

    html,
    a {
        color: white;
        background-color: #1C1B22;
    }

    .card {
        background-color: #1C1B22;
        box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.5);
    }
}