/* Kahvimuki.com v8.x CSS */

html {
	background: #151515 url('img/bg.jpg') no-repeat center center fixed; 
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
}

html, body {
	padding: 0;
	margin: 0;
	height: 100%;
	min-height: 100%;
}

form {
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: .8em;
	color: #666;
	line-height: 1.5em;
}

h2 {
	color: #333;
	font-size: 1.2em;
	font-weight: bold;
	margin: .5em 0;
}

h3 {
	color: #333;
	font-size: 1em;
	font-weight: bold;
}

#wrapper {
	width: 100%;
	max-width: 900px;
	margin: auto;
	padding-top: 50px;
}

#logo {
	margin: 0;
	text-align: center;
	background-image: url('img/logo2017.png');
	background-size: contain;
	background-position: 50% 0;
	background-repeat: no-repeat;
	height: 70px;
}

#inner-wrapper {
	padding: 16px;
	margin: auto;
	background: #FFF;
	background: rgba(255,255,255,0.3);
	border-radius: 5px;
}

#content {
	padding: 10px 12px;
	background-color: #FFF;
	min-height: 350px;
	clear: both;
}

.news .item {
	margin-bottom: 20px;
}

.news .date {
	font-weight: bold;
}

.ajankohtaista .item {
	margin-bottom: 20px;
}

.admin-item {
	border: 1px solid #DDD;
	padding: 5px;
}

.admin-item a {
	font-weight: bold;
}

#content ul.linkit {
	list-style-type: square;
	padding-left: 20px;
}

#content ul.tiedostot {
	list-style-type: none;
	padding-left: 5px;
}

#content ul.tiedostot .fileicon {
	margin-right: 5px;
}

#content ul.tiedostot .fileicon:hover {
	content: url("/img/file-remove.png");
}

#content ul.tiedostot li {
	padding: 2px 0;
}

#content img, #content span {
	vertical-align: middle;
}

#content p small {
	font-weight: normal;
}

footer {
	color: #999;
	padding: 6px;
	font-size: .92em;
	text-align: center;
	line-height: 1.6em;
	background-color: #333;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	clear: both;
}

#login-button {
	position: absolute;
	top: 5px;
	right: 5px;
}

#login-bar, #logged-bar {
	text-align: center;
	margin: auto;
	padding: 3px;
	background: #303030;
	border-bottom: 2px solid #FFF;
	color: #B0AEAC;
}

#login-bar input, #login-bar button {
	margin: 0 2px;
}

#login-bar input[type=submit], #login-bar button {
	padding: 4px 6px;
}

#logged-bar a:link, #logged-bar a:visited, #logged-bar a:active {
	color: #8BB9E0;
}

#login-bar {
	display: none;
	color: #FFF;
}

#login-bar div {
	display: inline;
}

#userlist {
	list-style: none;
	margin: 0;
	padding: 0;
}

#userlist li {
	background: url('img/user.png') left center no-repeat;
	padding: 4px 0 2px 18px;
}

::selection {
	background: #519AC9;
	color: #fff !important;
}

.ilmoitus {
	background-color: #FFEAA8;
	padding: 4px;
	border: 1px solid #FFC237;
	color: #826200;
}

/* Tabs */
ul.tabs {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  margin-bottom: 10px;
}

ul.tabs a {
  background-color: #2BA6CB;
  color: #FFF;
  padding: 10px 14px;
  margin-right: 10px;
  float: left;
  display: block;
  text-decoration: none;
}

ul.tabs a:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

ul.tabs a.selected {
  background: #ccc;
  border-color: #ccc;
  color: #fff;    
}

/* Linkit */

a {
	color: #2BA6CB;
	text-decoration: none;
}

a:hover {
	color: #258FAF;
	text-decoration: underline;
}

footer a {
	color: #999;
	border-bottom: 1px dotted #999;
}

footer a:hover {
	color: #BBB;
	border-bottom: 1px solid #BBB;
	text-decoration: none;
}

/* Nav */

nav ul {
	width: 100%;
	list-style: none;
	position: relative;
	margin: 0;
	padding: 0;
	background: #333;
	float: left;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

nav ul.inner {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

nav ul li a {
	display: block;
	color: #FFF;
	text-decoration: none;
	font-weight: bold;
	font-size: 12px;
	padding: 10px;
	text-align: center;
	min-width: 80px;
}

nav ul li a:hover {
	color: #FFF;
	text-decoration: none;
}

nav ul li {
	position: relative;
	float: left;
	margin: 0;
	padding: 0;
}

nav ul li.active {
	background: #519AC9;
}

nav ul li:first-child.active {
	border-top-left-radius: 5px;
}

nav ul li:hover:not(.active) {
	background: #555;
}

nav ul li:first-child:hover:not(.active) {
	background: #555;
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #555;
	padding: 0;
}

nav ul ul li {
	float: none;
	position: relative;
}

nav ul ul a {
	padding: 10px 0;
	color: #FFF;
}

nav ul ul a:hover {
	color: #FFF;
	background: #519AC9;
	text-decoration: none;
}

nav ul li:hover > ul {
	display: block;
}

/* Input / label */

#content label {
	display: inline-block;
	text-align: right;
	font-weight: bold;
}

input, select {
	padding: 2px 4px;
	margin: 2px;
	border-radius: 4px;
	background-color: #EEE;
	border: 1px solid #CCC;
	vertical-align: middle;
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}

input[type=submit], input[type=button], button {
  margin: 2px;
	padding: 8px 12px;
	background-color: #2ba6cb;
	border-color: #2285a2;
	color: #fff;
	transition: background-color 300ms ease-out;
	border-style: none;
	cursor: pointer;
}

input[type=submit]:hover, input[type=button]:hover, button:hover {
	background-color: #2285a2;
}

input[type=submit]:focus, input[type=button]:focus, button:focus {
  background-color: #2285a2;
}

input:disabled, input:read-only {
	background-color: #CCC;
}

input[type=submit]:disabled:hover, input[type=button]:disabled:focus {
  background-color: #CCC;
}

/* HashGen / PassGen */

label.characters {
	text-decoration: line-through;
	text-align: left !important;
	font-weight: normal !important;
}

input[type="checkbox"]:checked + label.characters {
  text-decoration: none;
}

.hash pre {
	font-size: 1.2em;
  overflow: auto;
  white-space: nowrap;
}

.passwords {
  list-style-position: inside;
  padding-left: 10px;
}

.passwords li {
	font-size: 1.2em;
  overflow: auto;
  white-space: nowrap;
  margin: 10px 0;
}

.passwords pre {
  display: inline;
}

.g-recaptcha {
  margin: 10px 0;
}

/* Mobile */

@media (max-width: 540px) {
	#login-bar {
		text-align: left;
	}
	#content img.gamercard {
		width: 100%;
		height: auto;
		max-width: 425px;
	}
}

@media (max-width: 430px) {
	#content .box label:not(label.characters) {
		display: block;
		text-align: left;
	}
	#content .box input[type=text], select {
		width: 100%;
	}
	nav ul li {
		float: none;
	}
	nav ul li:hover > ul {
		display: none;
	}
	nav ul li:first-child:hover {
		border-bottom-left-radius: 0 !important;
		border-top-right-radius: 5px;
	}
	nav ul li:first-child.active {
		border-bottom-left-radius: 0;
		border-top-right-radius: 5px;
	}
	nav ul a {
		text-align: center;
	}
	.downarrow {
		display: none;
	}
}