/*css reset rule*/
* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

:root {
    font-size: 62.5%; /*10/16, 16 is typically the default font size on a browser. Using the root unit of measurement */
    min-height: 100vh; /* to ensure that the page fills up the height of the device */
    --color-accent1: rgb(102,178,178);/* css variable to easily change the color on all over the page, just change the color in one place*/
    --page-background: rgb(235, 235, 235);/*color for background pages*/
    --text-content-color: rgb(70, 70, 70);/*for pages' text content*/
    --dark-background-headlines: rgb(210, 210, 210);/* for h1, h2, h3...*/
    --header-min-height: 25vh;
    --footer-anchor-height: 40px; /* min-height of anchors in the footer */
}

body {
    background-color: var(--page-background);
    border-bottom: 15px solid var(--color-accent1);
    min-height: 100vh; /* viewport height, visible space on the screen */
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 1.7rem;
    color: var(--text-content-color);
}

header {
    padding: 10px;
    min-height: var(--header-min-height);
    overflow: hidden;
    color: var(--page-background);
    position: relative;
    background-image: url(../images/css-functions-header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}

/* header nav menu */
nav#header-nav {
    display: block;
    margin-top: 8px;
}

/* unordered list/ ul */
#header-nav-menu {
    display: flex;
    justify-content: flex-end;
    flex-flow: row wrap;
}

#header-nav-menu > li {
    display: inline-block;
    margin-right: 8px;
    padding: 4px;
}

#header-nav-menu > li:hover {
    box-shadow: 2px 2px 8px var(--color-accent1);
}

#header-nav-menu > li > a {
    color: var(--dark-background-headlines);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

#header-nav-menu > li > a:hover {
    color: var(--color-accent1);
}

#logo {
    border-radius: 10px;
    width: 120px; height: 120px;
    padding: 10px;
    font-family: 'Pacifico', 'cursive';
    font-size: 2.5rem;
    text-align: center;
    color: rgb(210, 210, 210);
    background-image: url(../images/luna1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 45% 50%;
    text-decoration: none;
    text-shadow: 2px 2px 2px rgb(70,70,70), -3px 2px 15px rgb(190,190,190);
    position: absolute; top: 30px; left: 100px;
}

#logo:hover {
    text-shadow: 2px 2px 4px rgb(190,190,190);
}

#page-title {
    padding: 24px;
    text-align: center;
    color: var(--color-accent1);
    text-shadow: 2px 1px 0px var(--text-content-color);
    font-size: 48px;
}

.description {
    padding: 0px 48px;
    margin: 0px 32px;
}

.description-example {
    display: block;
    padding: 0px 48px;
    margin: 10px 32px;
}

.function-container {
    display: flex;
    flex-flow: row wrap;
    padding: 0px 32px;
    margin: 0px 0px;
}

.function-container h2 {
    padding: 10px;
}

/* these are the divs containing the examples of css functions */
.function-example {
    flex: 1 0 50%;
    padding: 2rem;
    display: flex;
    flex-flow: row wrap;

}

.font-code {
    display: block;
    padding: 20px 24px;
    color: var(--text-content-color);
    font-weight: bold;
    font-family: monospace;
}

.block-code {
    display: block;
    padding: 20px 24px;
    color: var(--text-content-color);
    font-weight: bold;
    font-family: monospace;
}

.var-function-screenshot {
    width: 150px; height: 150px;
    background-image: url(../images/var-function.JPG);
    background-repeat: no-repeat;
    background-size: cover;
}

.nth-function-screenshot {
    width: 150px; height: 150px;
    background-image: url(../images/nth-child.JPG);
    background-repeat: no-repeat;
    background-size: cover;
}

.url-function-screenshot {
    width: 150px; height: 150px;
    background-image: url(../images/url-function.JPG);
    background-repeat: no-repeat;
    background-size: cover;
}

.linear-gradient-screenshot {
    width: 150px; height: 150px;
    background-image: url(../images/linear-gradient.JPG);
    background-repeat: no-repeat;
    background-size: cover;
}

footer {
    padding: 10px;
    font-size: 1.3rem;
}

footer nav {
    display: flex; 
    flex-flow: row wrap;
}

footer nav a {
    flex: 1 0 100px;
    display: block;
    min-height: var(--footer-anchor-height);
    border-bottom: 3px solid var(--color-accent1);
    text-align: center; 
    text-decoration: none;
    margin: 4px; 
    padding-top: 28px;
    /*background-color: rgb(70, 70, 70);*/
    color: var(--text-content-color);
}

footer nav a:hover {
    color: var(--color-accent1);
    background-color: var(--text-content-color);
    border:5px solid var(--color-accent1);
    margin: 4px;
    padding: 11px;
    

}

.copy {
    text-align: left;
    font-size: x-small;
    margin-top: 25px;
    color:var(--text-content-color);
}