
:root {
    --theme-color: #231f20;
    --accent-color: #be1e20;
}

* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    box-sizing: border-box;
}

body {
    background-image: linear-gradient(to bottom right, #305170, #6DFC6B);
    margin: 0;
    padding: 0;
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#backdrop img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 30% 50%;
}

main {
    padding: 1rem;
    margin: 1rem;
    background: rgba(0,0,0, .5);
    backdrop-filter: blur(.5rem);
    max-width: 35rem;
    border-radius: 1.5rem;
}

header {
    background: #231f20;
    color: #fff;
    border-radius: 1rem 1rem 0 0;
    padding: 1rem;
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
}

header img {
    width: 100%;
}

header h1 {
    margin: 0;
    line-height: 2em;
}

article {
    background: #fff;
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
}

h2 {
    margin-top: 1rem;
    margin-bottom: .5rem;
    break-after: avoid;
    font-size: 1.3rem;
    ---border-bottom: .2rem solid var(--accent-color);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: .2rem;
    text-underline-offset: .3rem;
    margin-inline: -.25rem;
}

h2::after,
h2::before {
    content: '\00a0';
    width: .5rem;
    font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"],
select,
textarea,
label:has(input[type="radio"]) {
    line-height: 1.5em;
    font-size: 1rem;
    padding: .5rem;
    border: .1rem #555 solid;
    border-radius: .3rem;
    display: inline-block;
}

input[type="text"].full,
input[type="email"].full,
textarea.full {
    width: 100%;
}

button,
input[type="button"] {
    padding: .5rem;
}


@media screen and (max-width: 34rem) {
    :root {
        --margins: .5rem;
    }

    main {
        margin: 0;
        margin-top: 60vh;
        padding: 0;
    }

    #backdrop {
        height: calc(60vh + 1.5rem);
    }

    #backdrop img {
        object-position: 50% 50%;
    }
}
