/*  Styles for douglas.html */
/*  Author: D. G. Adams */
/*  Date: 2026-June-03 */

body {
    display:flex; flex-direction: column; justify-content: center;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 1.2dvw, 1.5rem); /* allows font to scale with screen size */
    min-height: 100dvh;                 /* important so margin auto works */
    margin: 0;                          /* no margin or padding */
    color: seashell;                    /* a nice yellow-white for text */
    position: relative;
}
body::before {
/*  Create a background image using a gradient 
    This is much faster than downloading a file 
    and solves the white flash on reload issue */
    background-image:   radial-gradient(farthest-corner at 80% 80%,
                        #004800  0%, #002040 40%,
                        #001000 60%, #003000 99%); 
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    display:flex; flex-direction:row; justify-content:left;

    font-size: 1.4rem;
    padding: 3dvh 3dvw 0 3dvw;          
    gap: 0.5vw;

    & > img {                   /* icon img */
    width: 2em;                 /* sized use em,  */    
    height: auto; 
    margin-top: -0.15em;        /* icon is off center, so nudge it up a bit */
    }
}

main {
    display:flex; flex-direction: row; justify-content: left;

    & figcaption {text-align:center;}
    & article {margin-right:6vw;}
    & li {margin: 0.5dvh 0 0 2dvw;}      
}

footer {
    display:flex; flex-direction:row; justify-content:left;

    margin: auto 2dvw 2dvh 2dvw;
    & > address {
        margin-left: 2dvw;
        display: inline;          /* don't show email address */
    }
    & .email {
        color: cyan; 
        text-decoration: none;
    }
    & .page-tag {               /* page tag in lower right corner */
        font-size: 0.7rem;
        margin-left: auto;
        align-self: flex-end;
    }
    & .btn {
        margin: 0;
        width: 8dvw;
        justify-content: center;
        text-align: center;
    }
}
