@import url('https://fonts.googleapis.com/css2?family=Playwrite+AT:wght@100&display=swap');


@font-face {
    font-family: "Faire Octave Thin";
    src: url("FAIRE-Octave-Thin.woff2") format("woff2"), ;
}

@font-face {
    font-family: "Faire Octave";
    src: url("FAIRE-Octave-Regular.woff2") format("woff2"),
}

body {
    font-family: "Faire Octave Thin", serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.5;
    font-optical-sizing: auto;
    background-image: url("background.png");
    background-size: cover;
    color: #090602;
    overflow: hidden;
}

@media screen and (max-width: 1000px) {

    body,
    button {
        font-size: 2.3vh;
    }

    #colophon {
        font-size: 1.7vh;
    }

    #container {
        background: none;
    }

    input[type="range"] {
        width: 100%;
    }
}

@media screen and (min-width: 1000px) {

    body,
    button {
        font-size: 2vh;
    }

    #colophon {
        font-size: 1vh;
    }

    #container {
        background-image: url("ibsen.png");
        background-position-y: bottom;
        background-position-x: right;
        background-repeat: no-repeat;
        background-size: 20%;
    }

    input[type="range"] {
        width: 50%;
    }
}

#container {
    padding: 1rem;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    align-content: space-between;

}

h1 {
    font-family: "Playwrite AT", cursive;
    letter-spacing: normal;
    text-align: center;
}

p {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: #3e2f1b;
    text-decoration-thickness: from-font;
}

label {
    margin: 2rem;
}

button {
    font-family: "Faire Octave", serif !important;
}

#output {
    font-family: "Faire Octave", serif;
    margin: 5rem;
    font-size: 125%;
    word-wrap: break-word;
}

#frame {
    text-align: center;
    margin: 3rem;
}

#wordCountDisplay {
    font-variant-numeric: tabular-nums;
    display: inline-block;
    width: 1em;
    text-align: right;
}

#footer {
    position: absolute;
    bottom: 0;
    margin: auto auto;
    text-align: center;
    width: 98%;

    ul {
        list-style-type: none;
        padding: 0;

        li {
            display: inline;
            margin: auto 1rem;
        }
    }
}

#colophon {
    text-align: left;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    max-width: 1000px;
    margin: auto auto;
    padding-left: 20px;
    padding-right: 20px;
    pointer-events: none;
    background-color: #f6eed9;
    /* Prevent interaction when hidden */
}

#colophon.show {
    opacity: 1;
    max-height: 500px;
    /* Adjust to fit your content */
    pointer-events: auto;
}

#language-toggle {
    position: absolute;
    right: 20px;
    top: 20px;
}

input[type="checkbox"] {
    width: 1.8rem;
    height: 1.8rem;
}

input[type="range"] {
    margin-bottom: 5em;
}