html, body {
height: 100%;
font-family: 'Roboto', sans-serif;
}
body {
background-color: white;
margin: 0;
}
ul {
list-style-type: none;
}
a {
text-decoration: none;
}
/*top_bar.height + main.height + footer.height = 8% + 80% + 12% */
#top-bar{
width: 100%;
height: 8%;
display: flex;
display: -webkit-flex;
flex-direction: row;
-webkit-flex-direction: row;
justify-content: space-between;
-webkit-justify-content: space-between;
align-items: flex-end;
-webkit-align-items: flex-end;
}
#top-bar nav {
flex: 0 1 auto;
-webkit-flex: 0 1 auto;
padding-right: 20%;
}
#top-bar #logo {
padding-left: 20%;
}
#top-bar img {
padding: 10%;
width: auto;
/* Humair - I added this because size wasn't working for firefox*/
max-width: 150px;
}
#top-bar nav ul {
margin: 0;
padding: 0;
overflow: hidden;
}
#top-bar ul li {
float: right;
}
#top-bar ul li a {
display: block;
color: darkgray;
text-align: center;
padding: 14px 16px;
vertical-align: bottom;
}
#top-bar ul li a:hover {
color: lightblue;
}
/*.drop-menu {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.drop-menu a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
.drop-down:hover .drop-menu {
display: block;
}*/
main {
background-image: url("../images/main.jpg");
background-size: 250px 250px;
text-align: center;
width: 100%;
min-height: 80%;
/*position: relative;
height: 80%;
overflow: auto;*/
}
/* Changes - main is a flex container for search content*/
main{
display: flex;
align-items: center;
justify-content: center;
flex-flow: column; /* Makes it grow vertically */
}
/* Changes - search is a flex container for h2 and bar, removed various attributes */
main #search {
flex: 1;
width: 60%;
height: 100%;
background-color: rgba(235,235,235, 0.7);
}
/* Changes - added h2 styiling for main */
main #search h2{
font-family: 'Lato', sans-serif;
color: gray;
font-size: 2.5em;
margin: 4%;
padding-top: 200px; /* Change to move search bar content. Keep as pixel*/
}
main #search input[type=text] {
display: inline;
width: 250px;
height: 40px;
text-align: center;
box-sizing: border-box;
border: 2px solid #ccc;
font-size: 16px;
border-radius: 10px;
background-color: white;
background-image: url('../images/search_icon.png');
background-size: 20px 20px;
background-position: 9px 9px;
background-repeat: no-repeat;
padding: 12px 20px 12px 40px;
-webkit-transition: width 0.4s ease-in-out;
transition: width 0.4s ease-in-out;
}
main #search input[type=text]:focus {
width: 50%;
}
main #search img {
width: 50px;
display: inline;
}
footer {
background-color: #333333;
bottom: 0;
height: 12%;
}
footer #footer-container{
margin-left: 20%;
margin-right: 20%;
padding: .5%;
}
footer nav a{
float: left;
padding-right: 20px;
font-size: 1em;
}
footer h6 {
margin: 0;
color: white;
float: right;
font-size: 1em;
font-weight: normal;
font-style: italic;
}
footer nav a {
display: block;
color: darkgray;
vertical-align: top;
}