@font-face {
    font-family: "Inter";
    src: url("resource/reader/font/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("resource/reader/font/inter-var-i.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
}

body {
    font-family: "Inter", Arial, sans-serif;
    font-size: 1em;
}

#page-head {
    color: #222;
    text-align: center;
    width: 80%;
    margin: auto;
    font-size: 3rem;
    padding-bottom: 1rem;
}

#box-heading {
    color: #000;
    text-align: center;
    width: 70%;
    margin: auto;
    margin-bottom: 1rem;
}

.text-box {
    background-color: #e8e5e8;
    width: 50%;
    margin: auto;
    padding: 1rem;
    padding-bottom: 2rem;
    border-radius: 2rem;
    text-align: center;
}

.bottom-column {
    width: 50%;
    margin: auto;
}

.button-container {
    display: flex;
    flex-direction: column;
}

/* implement more repsonsive design and work with flex */

.link-button {
    color: #fff;
    font-size: 1.5rem;
    background-color: #2a3674;
    padding: 2rem 1rem;
    border-radius: 1rem;
    margin: auto;
    margin-top: 1rem;
    width: 80%;
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.32), 0 17px 32px 0 rgba(0,0,0,0.20);
    flex-grow: 1;
}

#twelve {
    background-color: #68217a;
}

#living-sober {
    background-color: #4b76ba;
}

#plain-lang {
    background-color: #97d5d0;
}

#testing {
    background-color: #252525;
}

/*.link-but:hover {
    box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}*/

#dark-mode-toggle {
    background-color: #111;
    color: #eee;
    padding: 0.3rem;
}

body.dark {
    background-color: #111;
    color: #eee;
}

body.dark #page-head {
    color: #fff;
}

body.dark #box-heading {
    color: #eee;
}

body.dark .text-box {
    background-color: #333333; /* optional */
}

body.dark #dark-mode-toggle {
    background-color: #eee;
    color: #111;
    padding: 0.3rem;
}

body.dark a {
    color: #b9ebff;
}

.pdf-list {
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    /*border: 0.1rem, solid, #000;*/
}

.pdf-list summary {
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* removes default disclosure triangle in some browsers */
}

.pdf-list summary::marker {
    content: '▸'; 
    margin-right: 0.5rem;
}

.pdf-list[open] summary::marker {
    content: '▾'; /* points down when open */
}

.pdf-list[open] {
    padding-bottom: 2rem;
}


@media screen and (max-width: 720px) {
    #page-head {
        width: 90%;
        padding: 1rem;
        font-size: 2rem;
        border-radius: 1.5rem;
    }
    
    #box-heading {
        font-size: 1rem;
        width: 90%;
    }

    .text-box {
        width: 90%;
    }

    .bottom-column {
        width: 90%;
    }
    
    .link-button {
        width: 80%;
    }
}