

body {
    font-family: Arial, sans-serif;
    font-size: 19px;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
    color: #333;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    max-width: 35em;
    padding: auto;
    margin:auto;
    text-align: center;
}
main > section{
    border-bottom: #333 1px dashed;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    color: #4CAF50;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

footer p {
    margin: 0;
}

ol.question-list li{
    margin-bottom: 1rem;
    font-size: 1.2em;
}

#contact{
    padding-bottom: 3em;
}
#back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

#back-to-top:hover {
    background-color: #45a049;
}

section p, section ol, section ul {
    text-align: left;
}

p{
    text-indent: 30px;
    line-height: 1.2em;
}

/* Small devices (e.g., iPhone 7 width 375px) */
@media (max-width: 400px) {
    body {
        font-size: 17px;
    }

    header {
        padding: 0.75rem 0;
    }

    header h1 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin: 0.25rem 0;
    }

    nav ul li {
        display: inline-block;
        margin: 0 0.5rem;
    }

    /* Make nav horizontally scrollable on small screens */
    nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    nav ul {
        white-space: nowrap;
        padding: 0 0.5rem;
    }
    nav ul li a {
        display: inline-block;
        padding: 0.5rem 0.75rem;
    }

    main {
        max-width: 100%;
        padding: 0 1rem;
        text-align: center; /* ensure correct spelling overrides */
    }

    section {
        margin-bottom: 1.25rem;
    }

    ol.question-list li {
        font-size: 1em;
    }

    p {
        text-indent: 0;
        line-height: 1.6;
    }

    footer {
        position: static;
        padding: 0.75rem 0;
        bottom: auto;
    }

    #back-to-top {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 0.9rem;
        min-width: 44px;
        min-height: 44px;
    }
}