/* Basic body styling */
body {
	background: url('/images/seikaiha.png');
}

.clear {
    clear: both;
}

/* Margin Reset */
body, ul {
    margin: 0;
}

/* Headings */
h3 {
    line-height: 30px;
}

/* Top Nav Bar */
#topnav {
    background-color: rgb(36, 84, 11);
    color: #fff;
    font-family: "Helvetica Neue","HelveticaNeue",Helvetica,Arial,"Lucida Grande",sans-serif;
    font-size: 1em;
    padding: 15px 5%;
    position: relative;
    text-align: center;
    width: 90%;
}

#topnav a {
	color: #fff;
	display: block;
	text-decoration: none;
}

#topnav a:hover {
	color: rgb(230, 194, 52);
}

#navitems { 
    margin: 0 0 0 10%;
    width: auto;
}

#navitems li {
    display: inline-block;
    list-style-type: none;
    margin: 0 30px 0 5px;
    text-align: left;
}

#navitems li a {
    color: #fff;
    display: block;
    font-weight: bold;
    text-decoration: none;
}

#navitems li a div.subtitle {
    font-weight: normal;
    text-transform: none;
}

#navitems li a:hover {
	color: rgb(230, 194, 52);
}

#navitems li#socialicons img {
    vertical-align: baseline;
}

#logo {
    font-family: Georgia, serif;
    font-size: 1.8em;
    float: left;
    line-height: 1.8em;
    position: absolute;
    top: 0;
}

#logo a img {
  display: inline-block;
  height: 0.9em;
  margin: 0 0.3em 0.1em 0;
}

.italic {
    font-style: italic;
}

/* Generic feature image and text rules */
#feature {
    margin: 0 0 10px;
    position: relative;
    width: 100%;
    z-index: -1;
}

#feature img {
    width: 100%;
}

#feature .feature-text {
    background-color: #000;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.2em;
    font-style: italic;
    float: right;
    max-width: 80%;
    opacity: 0.75;
    padding: 10px;
    position: absolute;
}

/* Page-specific feature image and text rules */
body#index #feature .feature-text {
    right: 20px;
    bottom: 20px;
}

body#index .leaf {
  display: block;
  margin: 2em auto 0;
}

body#chado #feature .feature-text {
    right: 20px;
    bottom: 20px;
}
    
body#boston #feature .feature-text {
    left: 20px;
    bottom: 20px;
}

body#resources #feature .feature-text {
    right: 20px;
    bottom: 20px;
}

body#classes #feature .feature-text {
    left: 20px;
    bottom: 20px;
}

body#members #feature .feature-text {
    right: 20px;
    bottom: 20px;
}

/* Page content styling */
#content {
    margin: 0 0 0;
}

/* (What is Chado page) */
body#chado #content #rikyu-picture {
    float: right;
    height: 160px;
    margin: 0 0 10px 10px;
}

body#chado #content #wakeiseijaku-picture {
    float: none;
    margin: 15px auto;
}

body#chado #content .wakeiseijaku {
    margin: 0 0 20px;
}

body#chado #content .wakeiseijaku .wakeiseijaku-character {
    float: left;
    font-size: 50px;
    line-height: 50px;
    width: 5%
}

body#chado #content .wakeiseijaku .wakeiseijaku-meaning {
    float: right;
    width: 93%;
}

body#chado #content .precept {
    margin: 0 0 10px;
}

body#chado #content .precept p {
    margin: 0 0 0 15px;
}

/* (Boston page) */
body#boston #content .quote {
    clear: both;
    margin: 0 0 20px;
    width: 65%;
}

body#boston #conteont .quote-left {
    float: left;
}

body#boston #content .quote-right {
    float: right;
    text-align: right;
}

body#boston #content .quote-nowrap {
    white-space: nowrap;
}

body#boston #content #t-symbol {
    height: 25px;
    vertical-align: baseline;
}

body#boston #content #view-larger {
    display: block;
    margin: 0 0 10px;
}

/* (Classes/Instructors page) */
#content .picture {
	display: block;
	float:left;
	margin-left: auto;
	margin-right: auto;
	margin: 10px;
	padding:8px;
	border:solid;
	border-color: #dddddd #aaaaaa #aaaaaa #dddddd;
	border-width: 1px 2px 2px 1px;
	background-color:white;
}

#content #class-schedule {
    background-color: #fff;
}

/* (Resources page) */
#content .book-listing,
#content .movie-listing {
    margin: 0 0 15px;
}

#content .book-listing img,
#content .movie-listing img {
    float: left;
    margin: 0 10px 0 0;
    width: 75px;
}

#content ul {
    margin: 0 0 0 20px;
}

#content ul li {
    margin: 0 0 5px;
}

/* Members only section */
#members .icon {
	margin: 0 .25em 0 0;
}

/* Footer */
footer {
    background-color: rgb(36, 84, 11);
    color: #fff;
    margin: 30px 0 0;
    padding: 15px 5%;
}

footer a {
    color: #fff;
}

footer a:hover {
	color: rgb(230, 194, 52);
  text-decoration: none;
}

footer .privacy {
  color: #c0c0c0;
  font-size: 0.75em;
}

footer .privacy a {
  color: inherit;
  text-decoration: underline;
}

/* Respond to changes in site styling brought about by Twitter Bootstrap */
@media only screen and (max-width: 767px) {

    /* In this case, we're preserving our full-width top navigation bar at this 767px and under */
    #topnav, #feature, footer {
        margin: 0 -20px;
        width: auto;
    }

    #topnav #navitems {
        width: auto;
    }
}

/* Media queries for both iPad/tablet and iPhone/smart phone devices  */
@media only screen and (max-width: 1024px) {
    #logo {
       display: block;
       float: none;
       line-height: 1em;
       margin: 0 0 20px;
       position: static;
   }
}

/* Media queries only for iPads and tablet-sized devices */
@media only screen and (min-width: 600px) and (max-width: 1024px) {
    #feature {
        background-size: cover;
    }

    #navitems li {
        vertical-align: top;
    }
    
    body#chado #content .wakeiseijaku .wakeiseijaku-meaning {
        width: 90%;
    }
}

/* Media queries only for iPods and smart phones */
@media screen and (max-width: 599px) {
    #navitems {
        margin: 0;
    }

    #navitems li {
        display: block;
        margin: 0 0 8px;
        text-align: center;
        width: 100%;
    }

    .feature-text {
        display: none;
    }

    #content {
        margin: 55px 0 0;
    }

    body#chado #content .wakeiseijaku .wakeiseijaku-character {
        float: none;
        margin: 0 auto;
    }

    body#boston #content .quote {
        margin: 0 0 20px;
        width: 100%;
    }

    body#boston #conteont .quote-left {
        float: none;
    }

    body#boston #content .quote-right {
        float: none;
        text-align: left;
    }

    #footer-facebook-icon {
        padding: 12px 0 0;
    }
}
