/* Summer 2025 A1 syst10199 Wendi Jollymore */

/* colour blind theme */
:root {
    --accent-dark: #b61651;
    --accent-light: #fce8f0;
    --dark: #2E2585;
    --med: #7e74d8;
    --light: #edebf9;
    --shadow: #998c66;
}
/* document body */

html, body, input, button {
    font: 20px Arial, sans-serif;
}

body {
    background: var(--dark);
    background: linear-gradient(135deg, var(--dark) 0%, var(--med) 35%, var(--light) 100%);
    padding: .5em 2em;
}

/* document structure styling */
header,
footer {
    margin: .5em .2em;
}

header {
    text-align: right;
}

h1,
h2 {
    margin: .2em;
    padding: .1em;
}

h1 {
    font-size: 1.5em;
}

h2 {
    font-size: 1.3em;
}

/* form and input styling, including form table */
form {
    background-color: var(--light);
    border: .05em solid var(--dark);
    box-shadow: 0px 0px .2em .2em var(--shadow);
    margin: auto;
    min-width: 320px;
    padding: .25em;
    width: 95%;
}

form>div,
form>table {
    margin: .4em .35em;
}

select {
    padding: .1em;
}

label,
legend {
    font-weight: bold;
}

legend {
    color: var(--accent-dark);
}

fieldset label {
    font-weight: normal;
}

input[type=radio] {
    accent-color: var(--med);
}

input[type=number] {
    text-align: right;
}

fieldset {
    border: .1em solid var(--dark);
}

button,
input[type=submit] {
    background-color: var(--dark);
    border: .2em solid var(--dark);
    border-radius: 3px;
    color: var(--light);
    padding: .25em;
}

button:hover,
input[type=submit]:hover {
    background-color: var(--light);
    color: var(--dark);
}

form table caption {
    border-bottom: .1em solid var(--dark);
    color: var(--accent-dark);
    font-weight: bold;
}

form table {
    border-collapse: collapse;
    min-width: 300px;
}

td,
th {
    border: .1em dashed var(--light);
    padding: .25em;
}

th:first-child {
    text-align: left;
}

@media only screen and (min-width: 480px) {

    fieldset label {
        display: block;
    }
}