/*
Theme Name: KState
Theme URI: http://underscores.me/
Author: David Pedergnana
Author URI: http://underscores.me/
Description: eNewsletter and blog Theme for Kansas State University
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kstate
Tags: three-columns, responsive-layout

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

kstate is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/

#ksu-header, #ksu-banner, #ksu-wrapper, .ksu-sidebar, #ksu-footer {
    /* Prevent collision with WordPress administrative dropdown menus */
    z-index:0;
}

#header {
    width: 950px;
    height: 270px;
}

#ksu-banner {
    margin-bottom: 5px;
}

iframe{
    max-width: 520px !important;
}

embed {
    max-width: 520px !important; 
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/

.ksu-sidebar > .ksu-round-top > ul {
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-radius: 8px 8px 8px 8px;
  /* Next, round the top-most corners. of the menu item (LI) if they contribute their own colors. */
}

.ksu-sidebar > .ksu-round-top > ul > li:first-child > a:hover,
.ksu-sidebar > .ksu-round-top > ul > li:first-child > a.ksu-active {
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.ksu-sidebar > .ksu-round-top > ul {
  padding: 0;
  width: 175px;
  font-size: 11px;
  font-size: 0.6875rem;
  list-style: none;
  background-color: #e2e0d6;
  margin: 5px 0;
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  /*
   * Set styles for all levels of the menu.
   */
  /*
   * Set styles for only the first level of the menu.
   */
  /* The background of the active menu items is highlighted in a light color... */
  /* ...except for the top-most item, and all items on hover, which have a darker background. */
  /*
   * Hide all menu items after the top-level.
   */
  /*
   * JavaScript sets a class of ksu-last-item on the last item *visible* in the menu, even if the
   * item isn't the last item structurally, i.e., isn't the last LI in the whole structure.
   *
   * The bottom-right corner of the last item is always rounded...
   */
  /*
   * ...and the bottom-left corner is rounded if the menu item is at the top level.
   */
  /* After the top-level menu, submenus have a ligher background color.  Note that although this
   * selector applies only to the second level (not third, fourth, etc.), the default background color
   * for subsequent levels is "transparent", so the background of the secodn level UL element is visible.
   */
  /*
   * Second-level and following menu items.
   */
  /*
   * Third-level menu items.
   */
  /*
   * Fourth-level menu items.
   */
  /*
   * Submenu items are hidden by default.  However, they are displayed
   * if the parent menu item (LI) is open (has class ksu-active), or the menu itself
   * (UL) has been forced open (has class ksu-force-open).
   */
}

.ksu-sidebar > .ksu-round-top > ul {
  margin: 0;
  padding: 0;
}
.ksu-sidebar > .ksu-round-top > ul > a {
  display: block;
  color: #333 !important;
}
.ksu-sidebar > .ksu-round-top > ul > li > a {
  display: block;
  color: #333 !important;
  padding: 7px 10px;
  font-weight: bold;
  line-height: 16px;
  border-top: solid 1px #FFF;
}
.ksu-sidebar > .ksu-round-top > ul > li:first-child > a {
  border-top: none;
}
.ksu-sidebar > .ksu-round-top > ul .ksu-active > a {
  background-color: #f8e7b9;
}
.ksu-sidebar > .ksu-round-top > ul > .ksu-active > a,
.ksu-sidebar > .ksu-round-top > ul a:hover {
  background-color: #ecd391;
}
.ksu-sidebar > .ksu-round-top > ul li > ul li {
  display: none;
}
.ksu-sidebar > .ksu-round-top > ul a.ksu-last-item {
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-bottom-right-radius: 8px;
}
.ksu-sidebar > .ksu-round-top > ul > li:last-child > a {
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.ksu-sidebar > .ksu-round-top > ul > li > ul {
  background-color: #eeede8;
  position: relative;
  /* Needed only for PIE, see http://css3pie.com/documentation/known-issues/#z-index */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.ksu-sidebar > .ksu-round-top > ul > li > ul > li a {
  padding: 5px 10px;
  margin-left: 10px;
  font-size: 95%;
}
.ksu-sidebar > .ksu-round-top > ul > li > ul > li > ul > li > a {
  margin-left: 20px;
  font-size: 90.25%;
}
.ksu-sidebar > .ksu-round-top > ul > li > ul > li > ul > li > ul > li > a {
  margin-left: 30px;
  font-size: 85.7375%;
}
.ksu-sidebar > .ksu-round-top > ul .ksu-active > ul > li,
.ksu-sidebar > .ksu-round-top > ul .ksu-force-open > li {
  display: block;
}



.current_page_item {
    background-color: #ecd391;
}

.ksu-sidebar > .ksu-round-top > ul > li.current_page_item:first-child {
  border-top: none;
  background-color: #ecd391;
   position: relative;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.ksu-sidebar > .ksu-round-top > ul > li.current_page_item:last-child {
  background-color: #ecd391;
  position: relative;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}


.comment-edit-link {
    margin-left:16px;
}

.comment-content, .comment-respond, .comment-awaiting-moderation {
    margin-top:12px;
}

#cancel-comment-reply-link {
    font-size: 1.0em;
    font-weight: normal;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000; /* Above WP toolbar. */
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin: 5px 15px 10px 0px;
}

.alignright {
	display: inline;
	float: right;
	margin: 5px 0px 10px 15px;
}

.aligncenter {
	clear: both;
	display: block;
	margin: 5px auto 10px auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
}

/* Make sure select elements fit in widgets. */
.widget select {
	max-width: 100%;
}

/* Search widget. */
.widget_search .search-submit {
	display: none;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/

@media (max-width: 480px) {
	.size-medium {
	      width:180px;
	}
}

/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.hentry {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.byline,
.single .byline,
.group-blog .byline {
	display: inline;
}

.post-thumbnail {
	float:left;
	margin:1.5em 1.0em 0.75em 0;
	width:150px;
	height:150px;
	overflow:hidden;
}

.post-thumbnail > img {
	height:150px;
	width:auto;
	max-width:none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.entry-footer {
	margin: 1.0em 0 3.0em 0;;
}

.cat-links, .tags-links {
	font-style: italic;
	font-size: .88em;
}

.nav-links {
	margin: -1.5em 0 0 0;
}

.comment-and-edit-links {
	margin: 0.75em 0 0 0;
}

.nav-previous:before {
	content: '\2190';
}

.nav-next:after {
	content: '\2192';
}

#respond {
	margin: 36px 0 0 0;
}

#comment {
	width:310px;
}

.form-allowed-tags {
	width: 400px;
	font-size: 0.88em;
}

@media (min-width: 640px) {
	#comment {
	      width:440px;
	}
	
	.form-allowed-tags {
	      width: 100%;
	}
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

#entry-author-info {
	margin: 18px 0px 28px 0px;
}

#entry-author-info #author-avatar {
    background: #fff;
    border: 1px solid #e7e7e7;
    float: left;
    height: 60px;
    margin: 0 12px 7px 0;
    padding: 7px;
}

#entry-author-info #author-link {
    margin: 7px 0 7px 0;
}

/*--------------------------------------------------------------
## Asides
--------------------------------------------------------------*/
.blog .format-aside .entry-title,
.archive .format-aside .entry-title {
	display: none;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comments-area {
	width: 520px;
	margin-top:64px;
}

.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation, /* Older / Newer Posts Navigation (always hidden) */
.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}
