/*

DO NOT EDIT THIS FILE.

Default styles for the Quote Garden. 

These styles only affect the following:
- the nav bar and its elements
- box-sizing on the entire document (to border-box)
- removing margin and padding from the body (except for nav-sized padding at the top)
- modal pop-up for "about the theme"

In your submitted styles, try not to override these.

If you want to add a custom font, use an @import line at the beginning of your CSS.

In your CSS, you can refer to the variables defined here, if necessary.

*/

/* define variables for nav elements */
:root {
    --nav-height: 3rem;
    --nav-bkgd-color: rgb(100,100,100);
    --nav-bkgd-clicked-color: rgb(100,100,100);
    --nav-text-color: white;
    --nav-hover-bkgd-color: lightgray;
    --nav-hover-text-color: black;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-top: var(--nav-height) !important; /* don't try to overwrite the top padding */
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--nav-bkgd-color);
    transition: background-color 0.2s;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
}

nav.navClicked {
    background-color: var(--nav-bkgd-clicked-color);
}

#navBurger {
    position: relative;
    display: block;
    font-size: 2rem;
    color: var(--nav-text-color);
    padding: 0.1em 0 0 0.3em;
    max-height: 2rem;
}

nav ul {
    position: relative;
    background-color: var(--nav-bkgd-color);
    list-style: none;
    margin: 0;
    padding: 0;
}

nav>ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s, background-color 0.2s;
}

nav.navClicked>ul {
    max-height: 90vh;
    background-color: var(--nav-bkgd-clicked-color);
}

nav>ul>li {
    position: relative;
    display: block;
    margin: 1rem;
}

nav>ul>li>a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

nav>ul>li>a::after {
    position: absolute;
    content: "⌄";
    right: 0.3rem;
    top: 0.2rem;
    color: inherit;
    font-size: 110%;
}

nav>ul>li>ul {
    margin: 0 0 0 1rem;
    background-color: var(--nav-bkgd-clicked-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s;
}

nav>ul>li.navClicked>ul {
    max-height: 90vh;
}

nav>ul>li>ul>li {
    padding: 0.5rem 0 0.5rem 0.5rem;
}

nav a {
    text-decoration: none;
    color: var(--nav-text-color);
}

nav>ul>li>ul>li:hover {
    background-color: var(--nav-hover-bkgd-color);
}

nav>ul>li>ul>li:hover a {
    color: var(--nav-hover-text-color);
}

/* blur and dim the background with a cover */
#modalCover {
	position: fixed;
	display: none; /* hidden by default */
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(255,255,255,0.7);
	backdrop-filter: blur(8px);
	z-index: 1000;
}

/* pop-up window */
#modalPopup {
    font-family: Arial, sans-serif;
	position: fixed;
	display: none; /* hidden by default */
	width: 90vw;
	height: 90vh;
	left: 5vw;
	top: 5vh;
	padding: 2em;
    border-radius: 2em;
    box-shadow: 0 5px 10px #ccc;
    border: 1px solid #ccc;
	background-color: white;
	color: black;
	z-index: 1001;
}

#modalPopup button {
    float: right;
    font-family: monospace;
    border: 0;
    background-color: #fff;
    font-weight: bold;
    font-size: 2em;
    color: black;
}

#modalPopup button:hover {
    color: #777;
}

/* freeze the body when a modal appears by giving it the window's
   width and height, with overflow hidden */
body.showModal {
    height: 100%; 
    overflow: hidden;
}

/* show modal when page has added class */
body.showModal #modalCover,
body.showModal #modalPopup {
	display: block;
}

/* page loads with the header, main, footer hidden, to be revealed after load, reducing FOUC */
body.prehide {
    visibility: hidden;
    opacity: 0;
}

/* ----- MEDIA QUERY for landscape/desktop layout ----- */
@media screen and (orientation: landscape) {

    #navBurger {
        display: none;
    }

    nav>ul {
        overflow: visible;
    }

    nav>ul>li {
        float: left;
        margin: 0.5rem;
    }

    nav>ul>li a {
        padding-right: 0.5rem;
        margin: 0;
    }

    nav>ul>li>ul {
        margin: 0 0.5rem 0.5rem 0;
        visibility: hidden;
        position: absolute;
    }

    nav>ul>li.navClicked>ul {
        display: block;
        visibility: visible;
    }

    nav>ul>li>ul li {
        margin: 0;
        white-space: nowrap;
    }

    nav>ul>li>a::after {
        content: "";
    }

}