/* Main styles  here assume mobile (vertical) orientation. */

.annie-use-your-telescope-regular {
  font-family: "Annie Use Your Telescope", cursive;
  font-weight: 400;
  font-style: normal;
}


* { margin: 0; padding: 0; width: 100%; box-sizing: border-box; 
    /* Color scheme */
      --textcolor: #000;
      --bgcolor: #d0e0cf;
      --highlight: #59845e;
      --headerbg: #eee;
      --rollover: #86C600; 
}

body { 
        font-size: 16px;
        font-family: Helvetica, Arial, Verdana, system-ui, sans-serif;
        color: var(--textcolor);
        background: var(--bgcolor);
    }

header {
        text-align: center;
        padding: 0.3rem 2rem;
        overflow: auto;
        width: 100%; 
        background: var(--headerbg);
        /* Background image code */
        background-image: url("./headerbackground-light.png"); 
        background-repeat: no-repeat;
        background-size: cover;
        background-position: top left;
    }

header h1, header h2, header h3, header h4 {
        font-family: "Love Ya Like A Sister", cursive;
        }

header a:link, header a:visited {
        text-decoration: none; 
        color: #000; 
    }

header a:hover, header a:active {
        color: var(--highlight); 
    }

/* Default nav menu is for a mobile device, vertically oriented and  */
/* taking up the full width of the viewport. */

a#hamburger {
    font-size: 200%;
    width: 3rem;
    display: block;
    position: absolute;
    top: 1rem;
    right: 0;
}

nav 
    { 
        width: 100%;
        text-align: center;
        font-weight: bold;
        /* background: var(--headerbg); */
        display: none;
    }
nav a:link, nav a:visited 
    { 
        width: 100%;
        display: block;
        margin: 0;
        padding: 0.3rem 1rem;
        border-top: solid 1px var(--highlight);
        text-decoration: none; 
        color: var(--textcolor);
        /* background: var(--bgcolor); */
        white-space: nowrap;
    }
nav a:hover, nav a:active 
    { 
        color: var(--rollover);
        background: var(--highlight);
    }   
nav .here
    {
        display: none;  /* don't display in vertical mode */
    }
               
main 
    { 
        overflow: auto; 
        padding: 0.3rem 1.5rem;
        line-height: 1.5rem;
        border-bottom: solid 1px var(--highlight);
        border-top: solid 1px var(--highlight);
    }

section
    {
        margin: 2rem 0;
        scroll-margin-top: 1rem;
    } 
 
h1, h2, h3, h4
    {
        margin: 1rem 0;
    }
    
p   {
        padding: 0.5rem 0;
    }

a:link, a:visited {
    color: var(--highlight);
}

a:hover, a:active 
{ 
    color: var(--rollover); 
}   
    
ul, ol {
        padding: 0 2em;
    }

input {
        font-size: 1.2rem;
        /* font-family: inherit; */
        height: 2.25rem;
        padding: 0.25em 0.5em;
        background-color: #fff;
        border: 1px solid var(--highlight);
        border-radius: 5px;
        display: block;
        width: 100%;
        margin: 0 auto 2em auto;
    }

input[type=submit] {
        text-align: center;
        width: 16em; 
        background: var(--headerbg); 
        color: var(--textcolor);
        border: 2px solid var(--highlight);
        border-radius: 10px;
    }    
details {
    margin: 0;
    padding: 0.5rem;
    background: var(--headerbg);
}

/* code blocks  */
code {font-family: "Courier";
      font-size: 1.2rem; }
    
pre { font-family: "Courier";
        margin: 0.5rem;
        border: solid 1px #ccc;
        border-radius: 3px;
        padding: 0.5rem;
        font-size: 1.2rem;
        background: #f3f6f9;
        color: #000; 
        overflow: auto;}

footer
    {
        padding: 0.3rem 1.5rem;
        text-align: center;
        background: var(--headerbg);
    }

               
img, video, audio {
        width: 100%;
        display: block;
    }

/* ------- Wider screens ------- */
@media (min-width: 800px) 
{   
    header {
        text-align: left;
        padding: 0.3rem 20%;
    }
    
    a#hamburger {
        display: none;
    }
    
    nav 
        { 
            padding: 0.3rem 8rem 0.3rem 0;
            display: inline;
            width: 40%;
            position: absolute;
            top: 2rem;
            right: 0;
        }
    nav a:link, nav a:visited, nav .here
        { 
            display: inline;
            border: 0;
            padding: 0.4rem 0 0.4rem 1.5rem; 
            /* background: var(--headerbg); */
        }
    nav .here
        {
            color: var(--highlight);
        }
    
    nav a:hover, nav a:active 
        { 
            color: var(--highlight);
            background: none;
        }   
            
    main {
        padding: 0.3rem 20%;
    }
    
    input {
        width: 70%;
    }
    
    footer {
        padding: 0.3rem 20%;
    }
}
