body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

select,
body {
    font-size: 22px;
}

header {
    background: #e0f2fb;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: space-around;
}

header img {
    max-height: 5em;
}

nav {
    background-color: #f4f4f4;
}

nav ul {
    list-style: none;
    /* Reset margins */
    margin: 0;
    padding: 0;
    display: flex;
    margin-left: 2em;
}

nav ul li {
    padding: 1em;
}

main {
    padding: 20px 10%;
    background: #f4f4f4;
    color: #253875;
    min-height: 100vh;
    margin-bottom: 50px;
}

footer {
    background: #e0f2fb;
    color: #000;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 50px;
    z-index: 3;
}

form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#familiarity-form,
#example-form-1,
#example-form-2,
#post-example-form,
#post-example-form-2 {
    text-align: center;
}

form label {
    margin: 10px 0 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type='submit'],
button {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type='submit']:hover,
button:hover {
    background: #555;
}

#example-heading {
    color: red;
}

#example {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
}

#example.hidden {
    opacity: 0;
}


/* More instructions to be shown/ hidden */
#instructions {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    ;
}

#post-example {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    ;
}

#example-2 {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    ;
}

#post-example-2 {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    ;
}

#complete-task {
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    ;
}

#instructions.hidden {
    opacity: 0;
}

#example.hidden {
    opacity: 0;
}

#post-example.hidden {
    opacity: 0;
}

#example-2.hidden {
    opacity: 0;
}

#post-example-2.hidden {
    opacity: 0;
}

#complete-task.hidden {
    opacity: 0;
}

#register-button {
    margin-right: 1em;
}

.form-element {
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 5px 0;
}

td {
    padding: 0.5em;
}

tr {
    background-color: none;
    transition: background-color 0.3s;
}

tr:hover:not(:first-of-type) {
    background-color: #f5f5f5;
}

.radio-td label {
    cursor: pointer;
    height: 100%;
    width: 100%;
}

.radio-td label input {
    cursor: pointer;
}

.radio-td:has(> label input:checked) {
    background-color: #bee3f5;
    opacity: 0.7;
    color: #fff;
}

ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #253875;
}

ul li {
    margin-bottom: 10px;
}

a {
    color: #253875;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 56, 117, 0);
    transition: color 0.5s, border-color 0.3s;
}

a:hover {
    color: #1a2745;
    border-color: rgba(26, 39, 69, 1);
}

input[type="radio"],
input[type="checkbox"] {
    height: 1.5em;
    width: 1.5em;
}

/* Homepage */
#study-progress {
    list-style-type: none;
    /* Remove default bullets */
    padding: 0;
    width: 100%;
}

#study-progress li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 1.2em;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 50%;
}

#study-progress li:hover {
    background-color: #bee3f5;
}

#study-progress li.incomplete {
    border-color: red;
}

#study-progress li.complete {
    border-color: green;
    font-weight: bold;
}


#emotional-state-table tr td.radio-td {
    text-align: center;
}

#word-highlight {
    color: red;
    text-transform: uppercase;
}

.slider-container {
    display: flex;
    align-items: center;
}

.slider-value {
    margin-left: 10px;
    font-weight: bold;
}

#emotion-map,
#emotion-map-container {
    width: auto;
    position: relative;
    margin: auto;
    margin-top: 0;
    grid-area: 1 / 2 / 2 / 7;
}

#word-bank {
    grid-column: 1/5;
    grid-area: 1 / 1 / 2 / 2;
    align-items: center;
    align-self: center;
}

#tool {
    user-select: none;
    margin-bottom: 1em;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.draggable {
    user-select: none;
    cursor: move;
    border-radius: 1em;
    list-style: none;
    border: 1px solid #000;
    display: inline-block;
    padding: 0.1em 0.5em;
    margin: 0.1em;
}

/* Make dropped elements rly small */
.dropped {
    width: 1em;
    height: 1em;
    padding: 0;
    border: 0;
    background-color: black;
    cursor: pointer;
    position: absolute;
}

.dropped.clicked {
    background-color: red;
}

.dropped p {
    display: none;
}

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0);
    color: #000;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;
    position: absolute;
    z-index: 101;
    width: 120px;
    bottom: 110%;
    left: 50%;
    margin-left: -60px;
    transform: scale(0.5);
    transition: background-color 0.3s, color 0.3s, opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.dragging .tooltiptext {
    opacity: 0;
    width: 0;
}

.tooltip:hover .tooltiptext {
    color: #fff;
    background-color: rgba(0, 0, 0, 1);
    opacity: 1;
    transform: scale(1.2);
}

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 1em;
}

.img-flex {
    display: flex;
    width: 300px;
    height: auto;
    transform: scale(1);
    z-index: 0;
    transition: transform 0.3s, z-index 0.3s;
}

.img-flex:hover {
    transform: scale(1.2);
    transition: transform 0.3s;
    z-index: 1;
}

.completion-code {
    font-size: 1.5em;
    font-weight: bold;
    color: #253875;
}

#small-screen-warning {
    display: none;
}

@media only screen and (max-width: 1024px) {
    #small-screen-warning {
        display: block;
        background-color: #fff;
        position: fixed;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        z-index: 100;
    }

}

#va-comprehension-form .form-element {
    display: flex;
    flex-direction: column;
}

#va-comprehension-form label,
#va-comprehension-form h4 {
    text-align: center;
}

#va-comprehension-form h3 {
    text-align: left;
}

#va-comprehension-form h3 {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.meeple-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}