body {
    background-color: #e2e2e2;
    font-family: sans;
}

#container {
    max-width: 45rem;
    margin: 1rem auto;
    box-shadow: grey 3px 3px 15px 2px;
    padding: 2rem;
    background-image: url("/toren_small.png");
    background-repeat: no-repeat;
    background-position: left 1.5rem;
    background-size: 29% auto;
    background-color: white;
    position: relative;
}

@media (max-width: 50rem) {
    body {
        background-color: white;
    }

    #container {
        margin: 0;
        box-shadow: none;
        max-width: none;
        padding: 0.5rem;
    }
    .compact #container {
        background-image: none;
    }

    .compact #container > * {
        margin-left: 0;
    }
}


#container > * {
    margin-left: 30%;
}

h1 {
    margin-top: 0;
    font-family: sans;
}

h2 {
    font-family: sans;
}

#language_selector {
    float:right;
}

#language_selector a {
    color: black;
}

details {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: #e2e2e2;
    border-radius:0.5rem;
    position: relative;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    font-family: sans;
}

summary + * {
    margin-top: 1rem;
    margin-bottom: 0;
}
summary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}






/* Survey stuff */

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.75rem;
}

label,
legend {
    font-weight: bold;
}

.sublabel {
    color: #555;
    margin-top: .25rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    padding: .5rem;
    margin-top: .4rem;
}

textarea {
    min-height: 7rem;
}

.choices label {
    display: block;
    font-weight: normal;
    margin: .35rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: .45rem;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th:first-child,
td:first-child {
    text-align: left;
}

.error {
    border: 1px solid #b00;
    padding: .75rem;
    color: #b00;
}

button {
    padding: .6rem 1rem;
}

.required {
    cursor: help;
    color: #b00;
}

.invalid {
    border-left: 3px solid #b00;
    padding-left: .75rem;
}

.submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#form-error {
color: #b00;
font-weight: bold;
}
