/*
 *  Theme Name: Xubuntu Fifteen
 *  Description: A theme built for the Xubuntu website at xubuntu.org.
 *  Author: Pasi Lallinaho
 *  Version: 2016-aug (r116)
 *  Author URI: http://open.knome.fi/
 *  Theme URI: https://xubuntu.org/
 *
 */

body {
	font-size: small;
	font-family: "Open Sans", sans-serif;
	font-weight: 500;
	line-height: 1.5em;

	background-color: #e4e4e4;
	color: #444;

	min-height: 760px;
}

/*  Content width
 *
 */

#content, #main, #header, #header_art, #footer, #navi,
#content_gallery,
.widgets_inner {
	width: 90%;
	margin: 0 auto;

	max-width: 1400px;

	clear: both;
}

/*  Basic layouting
 *
 */

#header_outer {
	background: #0e82d0 linear-gradient( to right top, rgba( 0, 0, 0, 0 ), rgba( 0, 0, 0, 0.15 ) );
	box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );

	position: relative;
}
	#header {
		padding: 1.6em 0 1.2em 0;
		position: relative;
	}

	#header_art {
		position: relative;
		z-index: 0;
	}
		#header_art::before,
		#header_art::after {
			content: "";

			display: block;
			position: absolute;
		}
			#header_art::before {
				height: 250px;
				width: 900px;
				top: 0;
				left: -35px;

				background: transparent linear-gradient( to left, rgba( 255, 255, 255, 0.2 ), rgba( 20, 165, 245, 0.5 ) );
				transform: rotate( 15deg ) skewX( -2deg );
				z-index: 1;
			}
			#header_art::after {
				height: 200px;
				width: 850px;
				top: 75px;
				left: -50px;

				background: transparent linear-gradient( to right top, rgba( 255, 255, 255, 0 ), rgba( 255, 255, 255, 0.3 ) );
				transform: rotate( -18deg ) skewX( -6deg );
				z-index: 2;
				opacity: 0.5;
			}

	 	#logo {
			color: #fff;
			position: relative;
			z-index: 100;
		}
		#navi_outer {
			font-size: 90%;
			background-color: rgba( 0, 0, 0, 0.2 );

			position: relative;
			z-index: 100;
		}
			#navi .navigation {
				position: relative;
				z-index: 100;
			}
				#navi .navigation ul {
					margin-bottom: 0;
				}
				#navi .navigation .sub-menu .current_page_item a {
					background-color: rgba( 255, 255, 255, 0.3 );
					border-radius: 3px;
					box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
				}
					#navi .navigation:hover .sub-menu .current_page_item a {
						background-color: transparent;
						box-shadow: none;
					}
			#navi_quick {
				display: none;

				padding: 0.5em 40px 0em 2.5%;

				background-color: rgba( 0, 0, 0, 0.2 );
				border-top: 1px solid rgba( 255, 255, 255, 0.2 );

				font-size: 90%;
			}
				#navi_quick .navi_open_button {
					font-size: 120%;
					display: block;
					border: none;
					height: 100%;
					padding: 0 0 0.5em 0;
					color: rgba( 255, 255, 255, 0.5 );
				}
				#navi_quick li {
					display: inline;
				}
				#navi_quick a {
					color: #fff;
					margin-right: 1em;
					font-weight: 600;

					white-space: nowrap;
					display: inline;
				}
			#opennavi {
				display: none;

				float: right;

				position: relative;
				top: 1px;
				right: 1em;
				z-index: 100;

				border: none;
			}

#content_outer {
	padding: 1.5em 0;

	background-color: #eee;
	box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );

	position: relative;
	z-index: 50;
}
	#content {
		font-size: 110%;
		padding: 0;

		background-color: #fafafa;
		border-radius: 4px;
		box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
	}
		#content.air {
			background-color: transparent;
			border-radius: 0;
			box-shadow: none;
		}

		#main {
			box-sizing: border-box;
			width: 100%;
			float: left;

			padding: 25px 30px;
		}
			body.home #main {
				float: none;
				width: 90%;
				margin: 0 auto 25px auto;
			}

#footer {
	box-sizing: border-box;

	margin-top: 1em;
	padding: 2px;
	font-size: 80%;
	color: #555;
}
	#footer_widgets {
		padding-bottom: 1.5em;
		margin-bottom: 1.5em;
		border-bottom: 1px dotted #aaa;
	}
		#footer_navi .menu .sub-menu {
			font-size: 110%;
		}


/*  PAGES
 *
 */

/*  Home page
 *
 */

body.home #content_outer {
	background-color: #f8f8f8;
	padding: 0;
}

	body.home #content {
		width: 100%;
		margin: 0;
		max-width: 100%;

		background-color: transparent;
		box-shadow: none;
		padding: 1.5em 0 0 0;
		border-radius: 0;
	}
		body.home #main {
			padding: 0;
		}

	body.home .widgets_outer {
		padding: 1em 0;
		margin-bottom: 1em;
	}
		body.home .widgets_outer#front,
		body.home .widgets_outer#front-3 {
			padding: 2em 0;
			background-color: #fff;
			box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
		}

		body.home .widgets_outer:last-child {
			padding-bottom: 2em;
		}

/*  Blog
 *
 */

body.single-post #main,
body.blog #main,
body.archive #main,
body.search #main {
	float: left;
	width: 65%;
}

#sidebar {
	float: right;
	box-sizing: border-box;
	width: 35%;

	font-size: 90%;
	padding: 0 30px 2em 30px;
}
	#sidebar .search-form {
		display: flex;
	}
		#sidebar .search-form label {
			/* Search input box */
			flex: 3;
			margin-right: 0.5em;
		}
			#sidebar .search-form label input {
				width: 100%;
			}
		#sidebar .search-form .search-submit {
			flex: 1;
		}

/*  Blog front and paging  */

#main .post + .post,
.post-pagination {
	margin-top: 2em;
	padding-top: 1.25em;
	border-top: 1px dotted rgba( 28, 80, 161, 0.5 );
}
.post-pagination {
	margin-bottom: 0;
	font-size: 90%;
	border-top-color: rgba( 0, 0, 0, 0.5 );
}


/*  Post styles  */
.post-post {
	color: #333;
	margin: 1.5em 0 0.5em 0;
}
	.post-post img,
	.post-post figure {
		max-width: 100%;
		height: auto;
	}
		.post-post > :last-child {
			margin-bottom: 0;
		}

.post-meta, .post-meta a {
	color: #ccc;
	color: rgba( 0, 0, 0, 0.2 );
}

.post-meta span a {
	transition: all 0.5s ease-in-out;
}
.post-meta span a:hover,
.post-meta span a:focus {
	color: #808080;
	color: rgba( 0, 0, 0, 0.5 );
}

/*  Release archive
 *
 */

dl.release-info {
	margin-bottom: 1em;
}
	dl.release-info dt {
		float: left;
		clear: both;

		width: 25%;
		margin-right: 5px;

		font-weight: bold;
	}
	dl.release-info dd {
		float: left;
	}
	dl.release-info dd.eol::after {
		content: "Unsupported";
		margin-left: 0.5em;
		color: rgba( 200, 0, 0, 1 );
	}

/*  Attachments
 *
 */

#attachment {
	margin-top: -1em;
	margin-bottom: 1em;
}
	#attachment img {
		width: 100%;
		height: auto;

		border-radius: 3px;
		box-shadow: 0 0 10px rgba( 0, 0, 0, 0.1 );
	}
	body.attachment .boxed {
		padding: 1em 2em;
	}
	#attachment_navi {
		text-align: center;
		margin-bottom: 1em;
	}
		#attachment_navi .button:last-child {
			margin-right: 0;
		}
		#attachment_navi .primary {
			font-weight: 600 !important;
		}


/*  WIDGET AREAS
 *
 */

.widgets_flex .widgets {
	display: flex;
}
	.widgets_flex .widget {
		float: left;
		width: 25.1%;

		box-sizing: border-box;
		flex-grow: 1;

		padding: 0 1.5em;

		border-right: 1px dotted rgba( 0, 0, 0, 0.2 );
	}
		.widgets_flex .widget:first-child {
			padding-left: 0;
		}
		.widgets_flex .widget:last-child {
			border-right: none;
			padding-right: 0;
		}
		.widgets_flex .widget p:last-child {
			margin-bottom: 0;
		}

/*  Tagclouds  */

.tagcloud a {
	display: block;
	font-size: 100% !important;
	margin-left: 1em;
	margin-bottom: 0.2em;
}
	.tagcloud a {
		border-bottom: none !important;
	}
	.tagcloud a::before {
		/* Imitates the list style */
		display: block;
		float: left;

		width: 0.7em;
		margin-left: -0.7em;
		margin-top: -0.12em;
		content: "›";
		font-weight: 300;
		font-size: 140%;
		color: #555;
	}


/*  NAVIGATION
 *
 */

.navigation .menu a {
	display: block;
	width: 90%;
}
	.navigation .menu > li > a {
		font-size: 125%;
		color: #333;
		border-bottom: none;
	}
	.navigation .menu .sub-menu {
		font-size: 100%;
	}
	.navigation .menu .menu-item-has-children ul {
		margin: 0.5em 0 1.5em 0;
	}

/*  Dropdown navigation
 *
 */
.navigation.nd {
	border-left: 1px solid rgba( 0, 0, 0, 0.2 );
}

.navigation.nd .menu {
	display: block;

	margin-bottom: 0;
	padding: 0;
}
	.navigation.nd .menu li {
		float: left;
	}
		.navigation.nd .menu li a {
			width: auto;
			display: block;
			padding: 0.5em 15px;
			margin: 0;
			color: #fff;
		}
			.navigation.nd .menu > li > a {
				font-size: 115%;
				font-weight: 600;
			}
		.navigation.nd .menu > li {
			height: 3em;
			margin-left: 0;

			border-left: 1px solid rgba( 255, 255, 255, 0.2 );
			border-right: 1px solid rgba( 0, 0, 0, 0.2 );
		}
			.navigation.nd .menu > li:last-child::after {
				content: "";
				position: relative;
				float: left;
				height: 100%;

				top: -2.95em;
				left: 100%;
				margin-left: 1px;
				border-right: 1px solid rgba( 255, 255, 255, 0.2 );
			}
			.navigation.nd .menu > li:last-child:hover::after {
				top: -3.85em;
			}


	/*  Hovered menu items  */
	.navigation.nd .menu > li:hover {
		background-color: rgba( 0, 0, 0, 0.1 );
		position: relative;
	}
		.navigation.nd .menu > li:hover > a {
			position: relative;
			z-index: 1100;
			padding-bottom: 1.3em;
		}
		.navigation.nd .menu > li.menu-item-has-children:hover > a {
			background: transparent url(images/arrowup.png) 50% 2.3em no-repeat;
		}

	/*  Submenus  */
	.navigation.nd .menu .sub-menu {
		display: none;

		position: absolute;
		z-index: 1000;
		top: 3.2em;
		left: 0;

		width: 200px;
		padding: 0.5em 0;

		border-radius: 3px;
	}
		.navigation.nd li:first-child .sub-menu {
			left: -2px;
		}
		.navigation.nd li:last-child .sub-menu {
			left: 0;
		}
		.navigation.nd .sub-menu li {
			display: block;
			width: 100%;
		}

		/*  Submenu hover  */
		.navigation.nd .menu li:hover .sub-menu {
			display: block;
			z-index: 900;

			background-color: #eee;
		}
			.navigation.nd .menu > li:hover .sub-menu {
				z-index: 1000;
				background-color: #fff;
				box-shadow: 0 0 10px rgba( 0, 0, 0, 0.2 );
			}

		.navigation.nd .sub-menu li a {
			display: block;

			font-size: 110%;
			color: #555;
			padding: 0.35em 1em;
			border: none;
		}
			.navigation.nd .sub-menu a:hover,
			.navigation.nd .sub-menu a:active,
			.navigation.nd .sub-menu a:focus {
				color: #2c82dd;
			}

#navi .expand {
	display: none;
}

/*  Horizontal navigation
 *
 */

.navigation.nh .menu {
	display: flex;
}
	.navigation.nh .menu > li {
		float: left;
		width: 15%;

		box-sizing: border-box;
		flex-grow: 1;

		padding: 0 1.5em;
	}
		.navigation.nh .menu a {
			width: 100%;
			line-height: 1.3em;
			padding: 0.2em 0;
		}
		.navigation.nh .menu > li {
			border-right: 1px solid rgba( 0, 0, 0, 0.10 );
		}
			.navigation.nh .menu .sub-menu {
				margin-bottom: 0;
			}
			.navigation.nh .menu > li:first-child {
				padding-left: 0;
			}
			.navigation.nh .menu > li:last-child {
				padding-right: 0;
				border-right: none;
			}
