* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 2em 1em;
    line-height: 1.5em;
}

main {
    width: 60%;
}

h1 {
    color: #373fff;
    max-width: calc(100% - 5rem);
    line-height: 1.1;
}

h2 {
    color: #010101;
    max-width: calc(100% - 5rem);
    line-height: 1.1;
}

h3 {
    color: #010101;
    max-width: calc(100% - 5rem);
    line-height: 1.1;
}

form {
    background-color: #eeeeee;
    display: grid;
    grid-gap: 1em;
    grid-template-columns: max-content 1fr;
    padding: 1em;
    width: 100%;
}

form label {
    text-align: right;
}

form input,
form select {
    margin-right: auto;
    font-size: 16px;
}

#fetch-input-box,
#fetch-headers,
#fetch-body,
#subresource-input-box,
#subframe-input-box {
    border: 1px solid silver;
    display: block;
    margin-bottom: 10px;
    padding: 5px;
    width: 100%;
}

form input:invalid {
    border: 1px solid red;
}

form button {
    background-color: #bbbbf2;
    border: 2px solid currentColor;
    border-radius: 0.25em;
    cursor: pointer;
    font-size: inherit;
    line-height: 1.4em;
    padding: 0.25em 1em;
    max-width: 20ch;
}

form button:hover {
    background-color: lavender;
}

#fetch-results {
    margin: 1em;
}

footer {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid lightgrey;
}