html:not(.nobackground,.lightgreen,.lila) {
    background-image: url(../img/background2.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 2rem 4rem;
}

html.clouds {
    background-image: url(../img/background.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 2rem 4rem;
}

html.clouds-thanks {
    background-image: url(../img/background4.png);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    padding: 2rem 4rem;
}

html {
    font-family: 'Montserrat', sans-serif;
    color: #303030;
    background-color: #ffc37d;
    padding: 2rem 4rem;
}

html.lightgreen {
    background-color: #09E666;
}

html.lila {
    background-color: #c67bec;
}

body {
    margin: 0;
    border-radius: 1rem;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    margin: 0 auto;
    max-width: 1280px;
}

h1 {
    text-align: center;
    vertical-align: center;
    margin: auto;
    font-size: 4rem;
}

ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-left: auto;
    flex-direction: column;
    gap: 2.75rem;
    align-content: flex-end;
}

a {
    text-decoration: none;
    color: unset;
}

a:hover {
    text-decoration: underline;
}

li {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 18rem;
    height: 9.5rem;
    padding: 1rem;
    align-items: center;
    display: flex;
    border-radius: 1rem;
    flex-direction: column;
    align-self: end;
}

li.first-grade:not(.eerste-leerjaar) {
    background-image: url(../img/cloudpng.png);
}

li:not(.no-auto) {
    width: auto;
    height: auto;
}

li.eerste-leerjaar {
    background-color: #e6a637;
}

li.tweede-leerjaar {
    background-color: #d23b3b;
}

h2.button-h2 {
    margin: 1rem;
    padding: 0;
}

li.fictie {
    background-color: #f65353;
}

li.prentenboeken {
    background-color: #0a74d3;
}

li.poezie {
    background-color: mediumpurple;
}

.orange {
    background-color: #e6a637;
}

.green {
    background-color: forestgreen;
}

.gray {
    background-color: #6f6fab;
}

li.second-grade:not(.tweede-leerjaar) {
    background-image: url(../img/cloud-2.png);
}

li.third-grade {
    background-image: url(../img/cloud-3.png);
}

li > h2 {
    padding-top: 3rem;
}

li h2 {
    font-size: 1.35rem;
}

li > h2, li > h3 {
    margin: auto;
}

div.titlebox {
    display: flex;
    align-content: center;
}

div.titlebox > div {
    margin: auto;
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
}

div.titlebox > div > * {
    margin: 1rem;
}

div.contentbox {
    display: flex;
    flex-direction: row;
    margin-top: 3rem;
    gap: 3rem;
}

div.contentbox > div.imgbox {
    width: 33%;
}

div.contentbox > div.imgbox > img {
    width: 100%;
}

div.contentbox > div {
    width: 66%;
}

div.contentbox > div.imgbox {
    display: flex;
    justify-content: flex-end;
}

div.textbox > div > p:nth-child(odd) {
    font-weight: bold;
}

div.textbox > div > p {
    display: inline;
    font-size: 1.2rem;
    margin: 0.75rem 0;
}

div.textbox > div.block > p {
    display: block;
    font-size: 1.2rem;
    margin: 0.75rem 0 0 0;
}

div.textbox > div.block > p:nth-child(even) {
    display: block;
    font-size: 1.2rem;
    margin: 0;
}

div.textbox > div.block {
    display: flex;
    flex-direction: column;
}

div.textbox > div {
    display: flex;
    gap: 0.3rem;
}

div.choice-box {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    flex-wrap: wrap;
}

div.choice-box > a {
    width: calc(33% - 2rem);
    display: flex;
    flex-direction: column;
    align-content: center;
}

div.choice-box > a > img {
    margin: 0 auto;
    height: 40vh;
}

div.choice-box > a > h2 {
    text-align: center;
}

img.width {
    width: 8vw;
}


input:not([type=submit]),
textarea {
    display: block;
    width: 100%;
    max-width: 40rem;
    padding: .75em;
    border: 2px solid #666;
    border-radius: .3rem;
}

label,
input[type=submit] {
    margin-top: 1.75rem;
}

input[type=submit] {
    padding: .5em 2em;
}

input[type=radio] + label,
input[type=checkbox] + label {
    display: inline-block;
    margin: 0 0 .2em .2em;
    font-weight: normal;
}

input[type=radio] {
    width: min-content;
}

label {
    display: block;
    margin-bottom: .2em;
    font-weight: bold;
}

.message.error {
    color: #b90e0a;
}

#btnSubmit {
    margin-bottom: 1.25rem;
    background-color: #2e5bff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    color: white;
    font-weight: bold;
    border-color: #f3f6fd;
}

#btnSubmit:hover {
    cursor: pointer;
}

legend,
label {
    font-weight: bold;
}

legend {
    padding: 0 .2em;
}

.large {
    font-size: 1.7rem;
}


.styled-table {
    border-collapse: collapse;
    font-size: 0.9em;
    min-width: 400px;
    margin: 1rem;
}

.styled-table thead tr {
    color: black;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: .75rem 1rem;
}

.styled-table tbody tr {
    border-bottom: 2px solid #666;
    border-radius: 50%;
}

div.half {
    display: flex;
    flex-direction: row;
}

div.half > div {
    width: calc(50% - 1rem);
}

div.thanks-box {
    width: inherit;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    height: 300px;
}

div.thanks-box > div {
    margin: auto;
    display: flex;
    align-self: center;
    vertical-align: center;
}

p.thx {
    font-size: 1.5rem;
    font-weight: bold;
}