@font-face {
    font-family: Fraunces;
    src: url(Fraunces-VariableFont_SOFT,WONK,opsz,wght.ttf);
}

body {
    background-color: lightgoldenrodyellow;
    margin: 1vw 3vw;                                /* Relative Unit */
    padding: 1% 1% 1% 1%;
    display: inline-block;
}

/* changes the background color if the screen is shrunk  */
@media only screen and (max-width: 1064px) {
    body {
      background-color: #CCCCFF;
    }
}

/* Class Selector, Selector List, Descendant Combinator, Combining Two Selectors */

.greeting, header h1, pre.footer {
    color: orangered;
    line-height: 2em;                               /* Relative Unit */
    text-align: center;
}

h1, h2 {
    text-decoration: underline;
    font-family: Fraunces;
    display: block;
}

h1 {
    position: relative;
    top: 10px;
    right: 5px;
    left: 5px;      /* Right and left cancel out */
}

h2.greeting {
    position: -webkit-sticky;   /* Safari ref */
    position: sticky;
    top: 0;
}


hr {
    width: 150ch;                                   /* Relative Unit */
}

.userforms {
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    margin-left: auto;

    padding-top: 0.5%;
    padding-right: 0.3%;
    padding-bottom: 1%;
    padding-left: 0.5%;

    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    justify-content: space-evenly;
    align-content: center;
}



nav {
    display: flex;
    
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

/* ID Selector (#id) */

/* Color Canvas background */
#myCanvas {
    border-style: double;
    border-color: rgb(124, 90, 90);
    border-width: 3mm;                              /* Absolute Unit */
    border-radius: 15px 50pt;                       /* Absolute Units x2 */

    background-color: rgb(202, 202, 202);

    height: 20vw;

    max-width: 1000px;
    min-width: 10px;
}

/* Universal Selector (*) */
* {
    color: rgba(0, 0, 70, 1.0);
}

h3 {
    font-family: Fraunces;
}

h3.aboutMe, h3 ~ div {
    background-color: #2EF;
}

/* Element Selector (element) */

/* Attribute Selector, Adjacent sibling combinator */
[name="passtimes"], [type="text"], br+label, form > label, section > label {
    color: #7851A9;
}

[type="hidden"] {
    display:none;
}

/* Pseudo-class Selectors (e.g. p::hover) */

a:hover {
    color: hsla(195, 91%, 48%);
}

a:active {
    color: hsla(195, 91%, 25%, 0.85);
}