:root {
    color-scheme: light;
    --yellow: #ffc600;
    --black: #000;
    --white: #fff;
    --cream: #fafafa;
    --lightGrey: #d8d8d8;
    --darkGrey: #696969;
    --border: 2.5px;
    --shadow: 5px;

    --dutch-red: #ae1c28;
    --dutch-white: #ffffff;
    --dutch-blue: #21468b;

    --wordcard-header-height: 190px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;

    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
        font-weight: 700;
    }

    p {
        margin-bottom: 1rem;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    max-width: 1200px;
}

fieldset {
    display: grid;
    gap: 1rem;
    padding: 0.75rem;

    legend {
        padding-inline: 0.5rem;
    }

    .helptext {
        font-size: small;
        font-style: italic;
        list-style-position: inside;
        ul {
          margin: 0px;
        }
    }

    .errorlist {
        color: red;
        font-size: small;
        font-style: italic;
        font-weight: bold;
        list-style-type: none;
        list-style-position: inside;
        margin: 0px;
    }
}

button, .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--black);
    border: var(--border) solid var(--black);
    border-radius: 6px;
    box-shadow: var(--shadow) var(--shadow) 0 var(--black);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: monospace;

    &:hover {
        box-shadow: 6px 6px 0 var(--black);
    }
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    border: var(--border) solid var(--black);
    border-radius: 6px;
    box-shadow: var(--shadow) var(--shadow) 0 var(--black);
    font-size: max(1em, 16px);
    font-family: monospace;
}

textarea {
    resize: vertical;
}

label {
  font-weight: bold;
}

input[type="radio"], input[type="checkbox"] {
    display: inline-block;
    width: auto;
    margin-right: 0.5rem;
}

input[type="submit"] {
    cursor: pointer;
}

select[multiple] {
    height: auto;
}

.text-center {
    text-align: center;
}

.alert {
    padding: 1rem;
    border: var(--border) solid var(--black);
    border-radius: 6px;
    box-shadow: var(--shadow) var(--shadow) 0 var(--black);
    margin-bottom: 1rem;

    /* Django messages are displayed in ul > li */
    list-style: none;

    &.info {
        background-color: #e7f5ff;
    }

    &.warning {
        background-color: #fff3cd;
    }

    &.error {
        background-color: #f8d7da;
    }

    &.success {
        background-color: #cef3dd;
    }
}

a {
    color: var(--black);
    text-decoration: underline;

    &:hover {
        color: #808080;
    }
}

ul {
    list-style-type: square;
    padding: 0;

    li {
        font-family: inherit;
        margin-bottom: 0.5em;
    }
}

header {
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2em;
        font-family: monospace;
        font-size: 16px;
    }

    .nav-links {
        align-items: center;
        display: flex;
        gap: 20px;
    }
}

footer {
    margin-top: 1rem;
    nav {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        margin-bottom: 2em;
        font-family: monospace;
        font-size: 16px;
    }

    .nav-links {
        align-items: center;
        display: flex;
        gap: 20px;
    }
}
