/* reset browser styles */
* {
  box-sizing: border-box;
}

/* CSS Rules for the site */

body {
    color: #000;
    background-color: #635866;
    font-family: Arial, Verdana, sans-serif;
    font-size: 16px;
    margin: 0px;
}

#page {
    width: 970px;
    margin: 20px auto 20px auto;
    border: 2px solid black;
    background-color: #fff;
}

.container {
    width: 1000px;
    height: auto;
    margin: auto;
    margin-bottom: 25px;
    padding: 0 20px;
    position: relative;
    background: #fff;
    box-shadow: 0 0 10px black;
    border-radius: 5px;
}

header {
    color: #000;
    background-color: #fff;
}


.logo {
    display: inline-block;
    float: left;
    margin: 10px;
    margin-bottom: 14px;
}

.logoh1 {
    display: inline-block;
    float: left;
    vertical-align: middle;
    padding: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.building {
    margin: 25px auto;
}

td {
    padding: 10px;
}

.hdrfrm {
    margin-left: 525px;
}

input[type=search] {
    border-style: inset;
    border-width: 2px;
    border-radius: 5px;
    background-color: #635866;
    color: white;
    width: 350px;
    height: 40px;
}

#search {
    width: 70px;
    height: 40px;
}


/* CSS Rules for the main menu */

nav {
    clear: both;
    height: 30px;
}

nav ul {
    margin: 0px;
    padding: 5px 0px 5px 30px;
}

nav li {
    display: inline;
    color: #fff;
    margin-left: 50px;
    margin-bottom: 50px;
}

nav li+li {
    border-left: 1px solid black;
    padding-left: 50px;
}

article {
    color: #000;
    margin-top: 10px;
    padding: 10px;
}


/* CSS Rules for Menu Effects */

nav a:link {
    color: black;
    text-decoration: none;
}

nav a:visited {
    color: #635866;
}

nav a:hover {
    color: #FF3300;
    text-decoration: underline;
}


/* Rules for the index page */

blockquote {
    font-size: 18px;
    font-style: italic;
    text-align: center;
}

figure img {
    border: 1px solid #666;
    background-color: #fff;
    padding: 4px;
    box-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

figcaption {
    font: Arial, sans-serif;
    text-align: center;
    margin: 10px 0 0 0;
}

figure {
    display: block;
    float: left;
    width: 240px;
    margin: 0 25px 25px 25px;
}

.address {
    width: 330px;
    height: 181px;
    text-align: right;
    margin-left: 150px;
    padding: 30px 20px 40px 20px;
    line-height: 1.4em;
}

.time {
    width: 340px;
    height: 181px;
    text-align: left;
    margin-left: 50px;
    padding: 30px 40px 100px 20px;
    line-height: 1.4em;
}

iframe {
    border: none;
}


/* Rules for About the Library */

.article-content h2 {
    text-align: center;
    margin-top: 20px;
}

img.aboutpics {
    float: left;
    width: 320px;
    height: 213px;
    margin: 10px;
}

p.abouttext {
    float:right;
    width: 550px;
    height: 213px;
    margin: 10px;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-align: left;
    color: black;
}

ul a:link {
    color: mediumvioletred;
    text-decoration: none;
}

ul a:visited {
    color: darkred;
}

ul a:hover {
    color: red;
    text-decoration: underline;
}


/* CSS Rules for Library Floors */

a.back {
    text-align: center;
}

/*CSS Rules for the contact page */

.button {
    cursor: pointer;
    margin-left: 230px;
    margin-bottom: 10px;
}

.button a:hover {
    color: #7B98AC;
}

fieldset {
    width: 970px;
    margin: 10px auto 20px auto;
    border-radius: 20px;
}

input[type=text], input[type=name], input[type=email], textarea {
    border-style: inset;
    border-width: 2px;
}


/* CSS Rules for the footer */

footer {
    clear: both;
    width: 1000px;
    height: 130px;
    margin: auto;
    padding: 1em;
    background-color: #aeaca8;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px 5px 0px 0px;
}

footer p {
    margin-top: 10px;
}

.footer-social {
    float: right;
    margin-top: 5px;
    text-decoration: none;
}

.footer-social ul {
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.footer-social li {
    display: inline;
    text-decoration: none;
}

.footer-social span {
    margin-top: -20px;
    text-decoration: none;
    color: black;
}

.logosmall {
    display: block;
    width: 100px;
    height: 100px;
    margin-left: -5px;
    margin-right: 10px;
    margin-top: -10px;
}

.footercenter {
    color: black;
    width: auto;
}

.ftrtbl {
    width: 970px;
    height: 125px;
}