html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-weight: inherit;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}
/* remember to define focus styles! */
:focus {
	outline: 0;
}
body {
	line-height: 1;
	color: black;
	background: white;
}
ol, ul {
	list-style: none;
}
/* tables still need 'cellspacing="0"' in the markup */
table {
	border-collapse: separate;
	border-spacing: 0;
}
caption, th, td {
	text-align: left;
	font-weight: normal;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: "";
}
blockquote, q {
	quotes: "" "";
}

/* END OF RESET */

/* START OF MY RULES */

/* box sizing */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Alice', 'Playfair Display', "EB Garamond", serif;
    font-size: 1.7em;
    line-height: 1.6em;
    color: #fff;
    padding-top: 1.5em;
    margin-top: 1em;
    background-color: #ecbb48;
}

main{
    max-width: 88%;
    margin: 0 auto;
    background-color: #913a83;
    padding: 1em;
    border: 50px #ecbb48 dotted;
    border-width: 0.4em;
}

h1{
    font-family: 'Flavors', 'Rancho', 'Schoolbell', cursive;
    font-size: 5.4em;
    line-height: 0.85em;
    color: #3b3081;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}
h2{
    font-family: 'Flavors', 'Rancho', 'Schoolbell', cursive;
    font-size: 1.7em;
    margin-bottom: 0.8em;
    margin-top: 0.3em;
    text-decoration: underline double;
}
h3 {
    font-family: 'Flavors', 'Rancho', 'Schoolbell', cursive;
    font-size: 1.2em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    color: #ecbb48;
}
header {
    text-align: center;
    margin-bottom: 2em;
}

cite {
    font-family: 'Alice', 'Playfair Display', "EB Garamond", serif;
    color: #913a83;
    font-size: 1em;
}

hr {
    border-top: 4px solid #913a83;
    margin-top: 2em;
    margin-bottom: 2em;
}
p {
    margin-bottom: 0.75em;
}
    
h2 + p {
    font-family: 'Gaegu', 'Manslava', 'Amatic SC', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
}

/*navigation bar style rules*/
nav {
    max-width: 88%;
    margin: 2em auto 1em auto;
    margin-bottom: 2.25em;
}

nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
}
nav ul a {
    text-decoration: none;
	display: inline-block;
	padding: 3px 3px 3px 20px;
    color: #3b3081;
    font-size: 0.8em;
}
nav ul a:hover {
    color: #913a83;
    background-color: #fff;
    padding-right: 20px;
    border-radius: 30px;
}

/*other links style rules*/
a:hover {
    color:#913a83;
    background-color: #fff;
    border-radius: 30px;
}
a:focus{
    outline: none;
    color: #913a83;
    background-color: #fff;
    border-radius: 18px;
}
li.external a{
    color: #ecbb48;
    text-decoration: none;
}
li.external a:hover{
    color: #3b3081;
}
p.external a{
    color: #ecbb48;
    text-decoration: none;
}

p.external a:hover{
    color: #3b3081;
}
/*some lists style rules*/
ul.facts{
    list-style: square;
    padding-left: 1em;
}
ul.reasons {
    list-style: square;
    padding-left: 1em;
}s

/* p.quote is for the quote found under About Roald Dahl page*/
p.quote {
    font-family:'Gaegu', 'Manslava', 'Amatic SC', sans-serif;
    font-size: 1.7em;
    text-align: center;
    padding-left: 2em;
    padding-right: 2em;
    margin-left: 3em;
    margin-right: 3em;
    margin-top: 0.75em;
    color: #ecbb48;
    border-left: 10px #fff solid;
    border-right: 10px #fff solid;
}
p:nth-child(22), p:nth-child(35) {
    font-style: italic;
    border-left: 10px #fff solid;
    font-size: 1.3em;
    color: #ecbb48;
    margin: 3em 1em 3em 1em;
    padding-left: 1em;
    padding-right: 1em;
}

p:last-of-type, p.plot, p.analysis {
    font-family: 'Gaegu', 'Manslava', 'Amatic SC', sans-serif;
    font-size: 1.15em;
    font-weight: 700;
}
p.overall {
    font-family: 'Alice', 'Playfair Display', "EB Garamond", serif;
    font-size: 1em;
    font-weight: 400;
    color: #fff;
}


/*footer rules*/
footer {
    max-width: 100%;
    margin: 2em auto 0em auto;
    background-color: #3b3081;
    text-align: center;
    font-size: 0.6em;
}
footer p {
    margin: auto;
}
footer p a {
    text-decoration: none;
    font-family:'Alice', 'Playfair Display', "EB Garamond", serif;
    color: #fff;
    font-size: 0.9em;
}

footer.footer:focus {
    background-color: #fff;
}


/*back to the top link style rules*/
p.top {
    text-align: center
}
a.top {
    color: #3b3081;
    text-decoration: none;
}
a.top:hover {
    color: #913a83;
    background-color: #fff;
    border-radius: 18px;
}
a.top:focus{
    background-color: #fff;
    outline: none;
    border-bottom-color: #fff;
}
a.top:active {
    color: #913a83;
}
a.top:link{
    color: #ecbb48;
}

/*whimsical link style rules*/
p.whimsical {
    font-style: italic;
    font-family:'Alice', 'Playfair Display', "EB Garamond", serif;
    font-size: 1em;
    color: #ecbb48;
    border-left: 10px #fff solid;
    border-right: 10px #fff solid;
    margin: 1.5em 4em 1.5em 4em;
    padding-left: 1em;
    padding-right: 1em;
}
p.whimsical a{
    font-style: normal;
    text-decoration: none;
    font-weight: 700;
}
p.whimsical a:visited {
	color: #ecbb48;
}
p.whimsical a:hover {
	color: #3b3081;
	background-color: #fff;
	border-bottom-color: #000;
    border-radius: 10px;
}
p.whimsical a:active {
	color: #fff;
}
p.whimsical a:focus {
	outline: none;
	background-color: #000;
	border-bottom-color: #fff;
}


/*---- 

Media Queries 

----*/

@media (min-width: 460px) {
    main {
        margin: 0 auto;
        font-size: 0.7em;
    }
    header {
        padding-left: 1em;
        padding-right: 1em;
        margin-bottom: 0.5em;
    }
    h1 {
        font-size: 1.7em;
    }
    cite {
        font-size: 0.4em;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        font-size: 1.2em;
    }
    nav {
        margin-top: 0.25;
        font-size: 0.8em;
    }
}

@media (min-width: 680px) {
    main {
        margin: 0 auto;
        font-size: 0.9em;
    }
    nav ul{
        display: flex;
	    flex-wrap: wrap;
	    justify-content: center;
        font-size: 1.5em;
    }
    h1{
        font-size: 2.3em;
    }
    h2 {
        font-size: 1.7em;
    }
    cite {
        font-size: 0.6em;
    }
    nav ul li{
        padding-right: 1.0em;
    }
    li a{
        display: inline-block;
    }
    nav {
        margin-top: 0.4;
    }
    header {
        padding-left: 0.7em;
        padding-right: 0.7em;
    }
}

@media (min-width: 820px) {
    header {
        padding-left: 0.4em;
        padding-right: 0.4em;
    }
    main {
        margin: 0 auto;
        font-size: 1em;
    }
    h1{
        font-size: 3.2em;
    }
    cite {
        font-size: 1em;
    }
    nav {
        margin-top: 0.5em;
    }
    nav ul {
        font-size: 1.5em;
        margin-top: 1.2em;
    }
    li a{
        display: inline-block;
    }
}

@media (min-width: 1000px) {
    header {
        padding-left: 0.4em;
        padding-right: 0.4em;
    }
    nav ul {
	    display: flex;
        flex-direction: row;
        font-size: 1.7em;
        margin-top: 2em;
        margin-bottom: 1.75em;
    }
    h1{
        font-size: 5.4em ;
    }
    main {
        font-size: 1.1em;
    }
    
}