/*
Name: Amy Blain
Current Date: 22MAR18
Class.Section: CGS1821.054
Assignment: Module 7 Halloween
Language: HTML5
Purpose: Adding transitions and transformations to HTML pages*/

html {
	background-image: url("../images/bats.gif");	
}
body  {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	width: 800px;
	background-color: white;
	margin: 0 auto; 
	padding: 0;
	border: 3px solid black;
	box-shadow: 0 9px 18px 9px;
}
h1, h2, h3, p {
	margin: 0;
	padding: 0;
}

/* Header */
header { 
    background-image: -webkit-linear-gradient(45deg, white 0%, orange 75%, black 100%);
    background-image: -moz-linear-gradient(45deg, white 0%, orange 75%, black 100%);
    background-image: -o-linear-gradient(45deg, white 0%, orange 75%, black 100%);
    background-image: linear-gradient(45deg, white 0%, orange 75%, black 100%);
    padding: 15px;
} 
header img { 
	float: left; 
	padding-right: 15px;  
} 
header h2 {
	font-size: 230%;
}
header h3 {
	font-size: 125%;
	padding-bottom: 15px;
}

/* Navigation menu */
#nav_menu {
	clear: left;
}
#nav_menu ul {
	list-style: none;
	position: relative;
}
#nav_menu ul li {
	float: left;
}
#nav_menu ul ul {
	display: none;
	position: absolute;
	top: 100%;
}
#nav_menu ul ul li {
	float: none;
}
#nav_menu ul li:hover > ul {
	display: block;
}
#nav_menu > ul::after {
	content: "";
	clear: both;
	display: block;
}
#nav_menu ul {
	margin: 0;
	padding: 0;
}
#nav_menu ul li a {
	text-align: center;
	display: block;
	width: 160px;
	padding: .7em 0;
	text-decoration: none;
	background-color: black;
	color: white;
}
#nav_menu ul li a.current {
	color: orange;
}
#nav_menu ul li a:hover, #nav_menu ul li a:focus {
	background-color: gray;
}

/* Left sidebar */
#sidebarA {
	float: left; 
	width: 160px;
	padding: 20px 0; 
}
#nav_list ul { 
	list-style: none;
	padding-left: 1.5em;
	margin-top: 0;
}
#nav_list ul li { 
	width: 110px;
	margin-bottom: .5em;
	border: 2px solid black; }
#nav_list ul li a {
	display: block;
	font-weight: bold;
	text-decoration: none;
	background-color: orange;
	padding: .5em 0 .5em .5em;
	color: black;
}

/* Section */
section {
	width: 400px;
	float: left;
	padding: 20px 20px 30px 20px;	
}
section h1 { 
	font-size: 140%;
	margin-bottom: .5em;
}
section img {
	float: left;
    animation: shimmyshake .5s ease-in-out 6 alternate;
    -webkit-animation: shimmyshake .5s ease-in-out 6 alternate;
}
/* the code for the bouncing cat */
@keyframes shimmyshake {
    from {
        margin-top: 0;
    }
    to {
        margin-top: 100px;
    }
}
@-webkit-keyframes shimmyshake {
    from {
        margin-top: 0;
    }
    to {
        margin-top: 100px;
    }
}
section p {
	font-size: 90%;
	margin-bottom: .8em;
	margin-left: 220px;
}
/* Right sidebar */
#sidebarB {
	float: right; 
	width: 180px;
	padding: 20px 10px; 
	background: #F5DEB3;
}
#sidebarB h2 {
	font-size: 80%;
}
#sidebarB ul {
	list-style: none;
	padding-left: 0;
}
#sidebarB li {
	margin-bottom: 10px;
}
#sidebarB a {
	font-size: 80%;
	color: black;
}
#sidebarB a:link, #sidebarB a:visited { 
    color: black; 
}
#sidebarB a:hover, #sidebarB a:focus { 
    color: green;
}
#sidebarB figure {
	margin: 0;
	padding-left: 20px;
}
#sidebarB figcaption {
	display: block;
}
/* the styles for the right sidebar images */
#sidebarB img {
    width: 50px;
    transition: width 3s linear;
    -webkit-transition: width 3s linear;
}
#sidebarB img:hover {
    width: 125px;
}
/* Footer */
footer { 
	clear: both;
	border-top: 2px solid black;
	padding: 15px;
    background-image: -webkit-linear-gradient(45deg, black 0%, orange 25%, white 100%);
    background-image: -moz-linear-gradient(45deg, black 0%, orange 25%, white 100%);
    background-image: -o-linear-gradient(45deg, black 0%, orange 25%, white 100%);
    background-image: linear-gradient(45deg, black 0%, orange 25%, white 100%);
} 
footer p {
	font-size: 90%;
	text-align: center;
}