:root {
	font-family: Roboto, Arial, Helvetica, sans-serif;

	/* colors */
	--c-white-bg: #ffffff;
	--c-white-bg-highlite: #d0e3f0;
	--c-white-txt: #333333;
	--c-white-a: #0089c7;
	--c-white-border: #333333;
	--c-blue-bg: #0089c7;
	--c-blue-bg-highlite: #1577ad;
	--c-blue-txt: #eeeeee;
	--c-blue-a: #ffffff;
	--c-blue-border: #ffffff;
	--c-bright-bg: #d0e3f0;
	--c-bright-bg-highlite: ;
	--c-bright-txt: #444444;
	--c-bright-a: #000000;
	--c-grey-bg: #ececec;
	--c-grey-bg-highlite:#ececec;
	--c-grey-txt: #f6f6f6;
	--c-dark-bg: #333333;
	--c-dark-bg-highlite: #222222;
	--c-dark-txt: #dddddd;
	--c-dark-a: #ffffff;

	--c-footer-bg: #222222;
	--c-footer-txt:#aaa;
	--c-footer-a:  #dddddd;

	/* page sizes */
	--s-pagewidth: 83rem;
	--s-contentwidth: 60rem;
}

body {
	margin: 0;
	padding: 0;
}

h1{font-size:2.5rem;}
h2{font-size:2rem;}
h3{font-size:1.75rem;}
h4{font-size:1.5rem;}
h5{font-size:1.3rem;}
h6{font-size:1.3rem;}
body,p,div{font-size:1.3rem;}


a {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* general backgrounds */
.white {
	background-color: var(--c-white-bg);
	color: var(--c-white-txt);
}
.white a {
	color: var(--c-white-a);
}
.dark {
	background-color: var(--c-dark-bg);
	color: var(--c-dark-txt);
}
.dark a {
	color: var(--c-dark-a);
}
.blue {
	background-color: var(--c-blue-bg);
	color: var(--c-blue-txt);
}
.blue a {
	color: var(--c-blue-a);
}
.bright {
	background-color: var(--c-bright-bg);
	color: var(--c-bright-txt);
}
.bright a {
	color: --c-bright-
}


/* navigation */
nav ul {
	list-style: none;
	padding:0;
	margin:0;
}
nav li {
	padding-bottom: 0.5rem;
}

/* tab navigation */
header {
	background-color: var(--c-blue-bg);
}
nav.main {
	max-width: var(--s-pagewidth);
	margin: 0 auto 0 auto;
	display: flex;
	flex-flow: row;
	align-items: stretch;
}
nav.main div {
	padding:0;
	margin:0;
	margin-top: 1rem;
}
nav.main ul {
	display: flex;
	justify-content: flex-end;
	flex-flow: row;
	margin:0;
	padding:0;
}
nav.main li {
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
nav.main .inline-svg.git-square {
	top: 0.1rem;
}
nav.main .inline-svg.language {
	top: -0.02rem;
	width: 2.3rem;
}
nav.main .inline-svg.angle-down {
	top: -0.02rem;
	width: 1rem;
}
nav.main .languages ul {
	background-color: var(--c-blue-bg);
	flex-direction: column;
	position: absolute;
	z-index: 10;
	border: 1px solid var(--c-blue-border);
}
#nav-lang.hide {
	display: none;
}

nav.main a {
	color: var(--c-blue-txt);
	font-weight: bold;
	display: block;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	padding-top:0.5rem;
	padding-bottom: 0;
	height: 2.5rem;
}
nav.main a:hover{
	text-decoration: none;
	background-color: var(--c-blue-bg-highlite);
}
nav.main a.active {
	background-color: var(--c-blue-bg-highlite);
}
nav.main a.active:hover {
	background-color: var(--c-blue-bg-highlite);
}
nav.main a.logo {
	font-weight: bold;
	padding-left: 1rem;
	padding-right: 1rem;
	white-space: nowrap;
	display: inline-block;
}
nav.main a.icons {
	padding-left:0.5rem;
	padding-right: 0.5rem;
}
nav.main a.toggle {
	float: right;
	display: none;
}
nav.main .languages ul a {
	height: auto;
	padding-bottom: 0.35rem;
	padding-top: 0.35rem;
}
nav.main .languages ul a:hover {
	background-color: var(--c-dark-bg-highlite);
}


@media only screen and (max-width: 768px) {
	nav.main {
		flex-flow: column;
	}
	#nav-top.hide {
		display: none;
	}
	nav.main a.toggle {
		display: block;
	}
}

@media only screen and (max-width: 600px) {
	nav.main ul {
		flex-flow: column wrap;
	}

	nav.main #nav-top a {
		text-align: center;
		border-top: 1px solid rgba(255,255,255,0.3);
		border-bottom: 1px solid rgba(0,0,0,0.1);
	}
	nav.main .languages ul {
		display: block;
		position: static;
		border-width: 0;
	}

	nav.main #nav-top .languages a {
		background-color: var(--c-dark-bg);
	}
	nav.main #nav-top .languages ul a {
		padding-top:0.5rem;
		padding-bottom: 0.5rem;
	}
	nav.main #nav-top .languages ul a:hover {
		background-color: var(--c-dark-bg-highlite);
	}

	.navigation li:last-of-type a {
		border-bottom: none;
	}
}

ul.left-aligned > li {
	text-align: left;
}

/* footer */
footer {
	background-color: var(--c-footer-bg);
	color: var(--c-footer-txt);
	box-shadow: 0 0 1rem 0 var(--c-footer-bg);
	padding-top: 2rem;
	padding-bottom: 4rem;
}
footer nav {
	padding: 1rem;
	display: flex;
	align-items: flex-start;
	flex-flow: row wrap;
	justify-content: space-around;
}

footer a {
	color: var(--c-footer-a);
}
footer a.cc-license span.inline-svg {
    height: 2rem;
    width: 2rem;
}
footer h5 {
	font-size: 1.15rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
}


/* main area */
.page {
	max-width: var(--s-pagewidth);
	margin: 0 auto 0 auto;
}


/* index page */
.home section {
	text-align: center;
	padding: 2rem 1rem;
}

#description {
	padding: 0;
	padding-top: 56.25%;
	position: relative;
	background-image: url('/img/qaul-logo-white.svg');
	background-position: 25vw 0vw;
	background-repeat: no-repeat;
}
#description h2, #description h1 {
	position: absolute;
	font-size: 5vw;
}
#description h1 {
	font-weight: inherit;
	top: 20%;
	width: 100%;
}
#description h2 {
	top: 40%;
}

#mesh {
	text-align: initial;
	padding-top: 4rem;
	padding-bottom: 3rem;
}
#mesh .page {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	align-items: center;
}
#mesh .page div {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

#features .page {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}
#features h1 {
	width: 100%;
}
#features h3 {
	margin-bottom: 0;
}
#features .feature {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 2rem;
}
#features .feature p {
	max-width: 20rem;
	padding: 1rem;
	margin: auto;
}
#features .inline-svg {
	width: 5rem;
}
#features .inline-svg.copy {
	width: 4rem;
}
#features .inline-svg.phone-volume {
	width: 3.5rem;
}

#screenshots img {
	width: 100%;
}

#download .page {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}
#download .distro {
	margin-bottom: 2rem;
	margin-top: 2rem;
}
#download .distro a {
	font-weight: bold;
}
#download .distro a .inline-svg {
	width: 7rem;
	height: 7rem;
	border-radius: 3.5rem;
	background-color: var(--c-blue-txt);
	color: var(--c-blue-bg);
	display: block;
	margin: auto;
	margin-bottom: 1rem;
}
#download .distro a .inline-svg.ubuntu {
	background-color: transparent;
	color: var(--c-blue-txt);
}
#download .distro a .inline-svg.ubuntu svg {
	width: 7rem;
	margin-top: 0;
}
#download .distro a .inline-svg.windows svg {
	width: 3.5rem;
	margin-top: 1.5rem;
}
#download .distro a .inline-svg.apple svg {
	width: 3.5rem;
}
#download .distro svg {
	width: 4.5rem;
	margin-top: 1rem;
}

#participation .page {
	margin: 0 auto 0 auto;
}
#participation nav {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
}
#participation div {
	margin: 2rem 0;
}
#participation div h3 {
	margin-bottom: 1.5rem;
}
#participation h3 .inline-svg {
	width: 4rem;
}
#participation h3 .inline-svg.laptop-code {
	width: 5rem;
}
#participation h3 .inline-svg.comments-solid {
	width: 4.8rem;
}
#participation ul .inline-svg {
	display: inline-block;
	width: 1.15rem;
}


/* single page */
h1.top {
	background-color: var(--c-blue-bg);
	color: var(--c-blue-txt);
	margin: 0;
	padding: 2rem;
	text-align: center;
}

.page article {
	padding: 1rem 1rem 3rem 1rem;
}
.page img, .page video {
	max-width: 100%;
}

.page figure {
	margin-left: 0;
	margin-right: 0;
}
.page figcaption {
	font-style: italic;
}


/* tags */
.taxonomy {
	padding: 1rem;
}
.taxonomy li {
	display: inline-block;
	padding-right: 0.3rem;
}
.taxonomy a.is-active {
  background-color: var(--c-blue-bg);
  color: var(--c-blue-txt) !important;
  padding: 6px;
  border-radius: 3px;
}


/* tutorials */
.tutorial .taxonomy {
	padding-bottom: 0;
}
.tutorial article :first-child {
	margin-top: 0;
}
.tutorial article {
	padding-top: 1rem;
	padding-bottom: 3rem;
}

.tutorials {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-around;
	padding: 1rem;
	padding-bottom: 3rem;
}
.tutorials .preview {
	margin: 0;
	margin-top: 1rem;
	margin-bottom: 1rem;
	padding: 0;
}
.preview .visual {
	width: 100%;
	padding-top: 56.25%;
	background-image: linear-gradient(to bottom right, var(--c-bright-bg), var(--c-blue-bg));
	background-size: cover;
	background-position: center center;
}
.preview .caption {
	padding: 1rem 0;
}

.participation__box {
	display: flex;
	flex-direction: column;
	align-items: center;
}


/* news */
/* news index teasers */
#news .headline {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
}
.headline .line {
	flex: 1;
	margin. 0;
	padding: 0;
}
.headline .line hr {
	border: 0;
	border-bottom: 1px solid var(--c-bright-bg);
}
.headline h4 {
	margin: 0;
	padding: 1rem;
	font-weight: normal;
	font-size: 1rem;
}
.headline h4 a:hover {
	text-decoration: none;
}
.teasers {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-evenly;
	margin: 0;
	padding: 0;
}
.teasers a.item {
	max-width: 15rem;
	min-width: 13rem;
	margin: 0;
	padding: 1rem;
}
.teasers a.item:hover {
	background-color: var(--c-blue-bg-highlite);
	text-decoration: none;
}
.teasers .title {
	font-size: 1.1rem;
	margin-bottom: 0.4rem;
}
.teasers .description {
	font-size: 1.1rem;
	color: var(--c-white-bg-highlite);
}




/* news pages */
article.news h1 {
	padding: 0 1rem;
}
a.newslist {
	display:block;
	padding: 1rem;
	margin-bottom: 1rem;
	color: inherit;
}
a.newslist:hover {
	background-color: var(--c-white-bg-highlite);
}
.newslist h3, .newslist p {
	margin: 0;
}
.newslist .date {
	font-size: smaller;
	color: var(--c-footer-txt);
}
