@font-face {
    font-family: "OpenDyslexic";
    src: url("fonts/opendyslexic-regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "OpenDyslexic";
    src: url("fonts/opendyslexic-bold-webfont.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

html {
    font-family: "OpenDyslexic", sans-serif;
}

h1 {
  font-size: 1em;
  font-weight: bold;
}

h5 {
  font-size: 0.5em;
    font-style: normal;
}

body {
    font-family: inherit;
    background: #EAF6FF;
    margin: 0;
    min-height: 100vh;
    padding: clamp(1rem, 4vh, 5rem);

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 0;
    box-sizing: border-box;
}

.challenge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;

    width: 100%;
    max-width: 1000px;
}

.wordArea {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 900px) {
    .challenge {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .wordArea {
        align-items: flex-start;
    }
}

#word {
    font-size: clamp(2rem, 7vw, 4rem);
    font-weight: 700;
}

input {
    font-family: inherit;
    font-size: clamp(1.2rem, 4vw, 2.5rem);

    width: min(90vw, 400px);
    padding: 0.2em;
}

.correct {
    border: 4px solid green;
}

.incorrect {
    border: 4px solid red;
}

#picture {
    font-size: 100px;
}

#wordImage {
    width: min(40vw, 300px);
    height: auto;
    max-height: 40vh;
    object-fit: contain;
}

#score {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
}

footer {
    padding: 1rem;
    text-align: center;

    font-size: 0.85rem;
    color: #666;
}

footer a {
    color: inherit;
}