body {
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        "Helvetica Neue",
        Arial,
        sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #112d61;
}

p {
    text-align: center;
}

h2 {
    color: white;
    text-align: center;
}

table {
    font-family: monospace;
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

table:last-child {
    margin-bottom: 0;
}

td,
th {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
}

.header {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1em;
    color: white;
}

.header a,
.header a:visited {
    color: white;
}

label {
    font-size: 16px;
}

input {
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
}

/* Form */

form {
    display: flex;
    flex-direction: column;
    background-color: white; /* new */
    border-radius: 10px; /* new */
}

table form {
    flex-flow: row wrap;
    text-align: left;
}
table form label {
    font-size: medium;
}
table form input[type="checkbox"] {
    width: 1em;
}

.connection-form {
    align-items: center;
    width: 50%;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0px;
    gap: 36px;
    border-radius: 10px;
    width: 80vw;
    /* width: 1000px; */
}

.form-container.login-form {
    background-color: white;
    align-items: center;
    border: 1px solid grey;
}

.form-line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 16px;
}

.edit-name-form {
    background: none;
    gap: 10px;
}

/* Button */

button {
    font-size: 16px;
    padding: 8px 12px;
    background-color: #254889;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

button.button-standard {
    padding: 4px 8px;
    font-size: 14px;
    /* border: none; */
}

button.button-contrast {
    background-color: #f5945c;
    color: white;
    font-size: 14px;
    padding: 4px 8px;
}

button:hover {
    background-color: #ab9aff;
    color: #112d61;
}

button:disabled {
    background-color: #c1c1c1;
}

.button-container {
    display: flex;
    justify-content: center;
}

/*
    login.html
*/
.buttons-group {
    display: flex;
    justify-content: space-between;
    width: 50%; /* check if needed at login */
    gap: 8px;
    flex-wrap: wrap;
}
.buttons-group button {
    display: inline-block;
    width: 30%;
}

.login-form .selected,
.query-form .selected {
    border-radius: 10px;
    background-color: #ab9aff;
    color: #112d61;
}

.query-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: auto;
    width: 30vw;
}

.query-form-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.query-form button {
    font-size: 20px;
    padding: 12px 20px;
}

.query-input {
    padding: 24px;
}

.table-result {
    background-color: white;
    width: 100%;
    padding: 1em;
    border-radius: 10px;
}

.table-result:empty {
    display: none;
}

.text-on-white-bg {
    color: black;
}

/* classroom-table */

.classroom-table {
    margin-bottom: 16px;
}

.classroom-table .th-bg {
    background-color: #ab9aff;
}

.classroom-table .header {
    background-color: #114683;
    color: white;
    font-size: medium;
}

.classroom-table .header th {
    font-weight: 300;
    text-align: left;
}

.classroom-table td {
    background-color: #ebeff2;
}
/* new */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2em;
    border-radius: 8px;
    max-width: 300px;
    width: 30%;
}

.hidden {
    display: none;
}

.message {
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    font-size: 12pt;
    font-weight: bold;
}

.error {
    background: pink;
    color: red;
}

.correct {
    background: lightgreen;
    color: green;
}

.error-div:empty {
    display: none;
}

.info {
    background: white;
    padding: 10px;
    border-radius: 10px;
}
